summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-10-05 16:14:36 -0700
committerNicolas Roard <nicolasroard@google.com>2011-10-05 16:14:36 -0700
commit4a7bb352bfa0e515586d929c9528bc6e3a4ca0da (patch)
tree0a41635877e81c22dd7348c8f63485b143c56c3a /Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
parent4357667d698f572b676929bfcb26b7cbff80a212 (diff)
downloadexternal_webkit-4a7bb352bfa0e515586d929c9528bc6e3a4ca0da.zip
external_webkit-4a7bb352bfa0e515586d929c9528bc6e3a4ca0da.tar.gz
external_webkit-4a7bb352bfa0e515586d929c9528bc6e3a4ca0da.tar.bz2
Fix repaint issues with overflow layers
bug:5297412 Change-Id: I6b483e174339bc854e5d301c5c1f2e5851e57772
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
index 7722e5a..09a4bc6 100644
--- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
@@ -325,6 +325,7 @@ void GraphicsLayerAndroid::setSize(const FloatSize& size)
}
m_contentLayer->setSize(size.width(), size.height());
+ setNeedsDisplay();
askForSync();
}
@@ -598,6 +599,7 @@ bool GraphicsLayerAndroid::repaint()
m_foregroundLayer->setPosition(-x, -y);
// Set the scrollable bounds of the layer.
m_foregroundLayer->setScrollLimits(-x, -y, m_size.width(), m_size.height());
+ m_foregroundLayer->markAsDirty(m_dirtyRegion);
m_foregroundLayer->needsRepaint();
} else {
// If there is no contents clip, we can draw everything into one