diff options
author | George Mount <mount@google.com> | 2011-12-16 11:21:22 -0800 |
---|---|---|
committer | George Mount <mount@google.com> | 2011-12-20 16:44:23 -0800 |
commit | d5fb0f1dd2265f0d472df761b1017ba891bc1951 (patch) | |
tree | d47341b2a8095af290df6de17c31f56c5c73e52f /Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | |
parent | adf365552d1a6b55782fa3b3c722f5ea914deb40 (diff) | |
download | external_webkit-d5fb0f1dd2265f0d472df761b1017ba891bc1951.zip external_webkit-d5fb0f1dd2265f0d472df761b1017ba891bc1951.tar.gz external_webkit-d5fb0f1dd2265f0d472df761b1017ba891bc1951.tar.bz2 |
Fix off-by-border RTL initial scrolling.
Bug 5774511
Change-Id: I8bfbc07750a129916ee804d6e1cfc1eb11288dc0
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index 3369118..fc2eddd 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -616,9 +616,8 @@ bool GraphicsLayerAndroid::repaint() m_foregroundClipLayer->setSize(width, height); int rtlOffset = 0; // LTR uses no offset. - if (!layer->renderer()->style()->isLeftToRightDirection()) { - rtlOffset = layer->scrollWidth() - clip.width(); // Scroll all the way right. - } + if (!layer->renderer()->style()->isLeftToRightDirection()) + rtlOffset = layer->scrollWidth() - width; // Scroll all the way right. m_foregroundLayer->setScrollOffset(IntPoint(scroll.width() + rtlOffset, scroll.height())); // Need to offset the foreground layer by the clip layer in order |