diff options
author | Michael Kolb <kolby@google.com> | 2012-01-11 11:48:10 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2012-01-13 14:35:33 -0800 |
commit | 214a577b46bd12110c42f4a88dd087cfbaa4fd38 (patch) | |
tree | 68850e335499a0c618c8fef9fdc49727d2b010db /Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | |
parent | fdb7d19f652ba508451312116a466b4dad9c86de (diff) | |
download | external_webkit-214a577b46bd12110c42f4a88dd087cfbaa4fd38.zip external_webkit-214a577b46bd12110c42f4a88dd087cfbaa4fd38.tar.gz external_webkit-214a577b46bd12110c42f4a88dd087cfbaa4fd38.tar.bz2 |
fix jumpy scrolling on layers
Bug: 5782062
added scrollbar size to layer size
Change-Id: I66f91f7837edaca5d78b12a615360502f8016f31
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index fc2eddd..779eb36 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -588,8 +588,10 @@ bool GraphicsLayerAndroid::repaint() RenderBox* box = layer->renderBox(); int outline = box->view()->maximalOutlineSize(); IntRect contentsRect(0, 0, - box->borderLeft() + box->borderRight() + layer->scrollWidth(), - box->borderTop() + box->borderBottom() + layer->scrollHeight()); + box->borderLeft() + box->borderRight() + layer->scrollWidth() + + layer->verticalScrollbarWidth(), + box->borderTop() + box->borderBottom() + layer->scrollHeight() + + layer->horizontalScrollbarHeight()); contentsRect.inflate(outline); // Update the foreground layer size. m_foregroundLayer->setSize(contentsRect.width(), contentsRect.height()); |