summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/rendering/RenderLayerBacking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/RenderLayerBacking.cpp')
-rw-r--r--Source/WebCore/rendering/RenderLayerBacking.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/WebCore/rendering/RenderLayerBacking.cpp b/Source/WebCore/rendering/RenderLayerBacking.cpp
index 6f56eca..c0c562a 100644
--- a/Source/WebCore/rendering/RenderLayerBacking.cpp
+++ b/Source/WebCore/rendering/RenderLayerBacking.cpp
@@ -1114,12 +1114,24 @@ void RenderLayerBacking::paintIntoLayer(RenderLayer* rootLayer, GraphicsContext*
bool shouldPaint = (m_owningLayer->hasVisibleContent() || m_owningLayer->hasVisibleDescendant()) && m_owningLayer->isSelfPaintingLayer();
+#if PLATFORM(ANDROID)
+ if (shouldPaint && ((paintingPhase & GraphicsLayerPaintBackground)
+ || (paintingPhase & GraphicsLayerPaintBackgroundDecorations))) {
+#else
if (shouldPaint && (paintingPhase & GraphicsLayerPaintBackground)) {
+#endif
// Paint our background first, before painting any child layers.
// Establish the clip used to paint our background.
setClip(context, paintDirtyRect, damageRect);
+#if PLATFORM(ANDROID)
+ PaintPhase phase = PaintPhaseBlockBackground;
+ if (paintingPhase & GraphicsLayerPaintBackgroundDecorations)
+ phase = PaintPhaseBlockBackgroundDecorations;
+ PaintInfo info(context, damageRect, phase, false, paintingRootForRenderer, 0);
+#else
PaintInfo info(context, damageRect, PaintPhaseBlockBackground, false, paintingRootForRenderer, 0);
+#endif
renderer()->paint(info, tx, ty);
// Our scrollbar widgets paint exactly when we tell them to, so that they work properly with