Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp |
index 598edd9585a3494897d71226a3ee55f05652fcc6..3e36432c61dc7d6b605324a1d7220fcab4ed9226 100644 |
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp |
@@ -1242,7 +1242,7 @@ void GraphicsLayer::setScrollableArea(ScrollableArea* scrollableArea, bool isVis |
void GraphicsLayer::didScroll() |
{ |
if (m_scrollableArea) { |
- DoublePoint newPosition = m_scrollableArea->minimumScrollPosition() + toDoubleSize(m_layer->layer()->scrollPositionDouble()); |
+ DoublePoint newPosition = -m_scrollableArea->scrollOrigin() + toDoubleSize(m_layer->layer()->scrollPositionDouble()); |
// FrameView::setScrollPosition doesn't work for compositor commits (interacts poorly with programmatic scroll animations) |
// so we need to use the ScrollableArea version. The FrameView method should go away soon anyway. |