summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r--Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp5
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