Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
index dbfde763873517b83fb35a6378974d86b7de0588..ac8cf0379045d6489572d69262cc34cc9f67eb45 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
@@ -656,7 +656,7 @@ enum AcceleratedFixedRootBackgroundHistogramBuckets { |
void PaintLayerCompositor::frameViewDidScroll() { |
FrameView* frameView = m_layoutView.frameView(); |
- IntPoint scrollPosition = frameView->scrollPosition(); |
+ IntSize scrollOffset = frameView->scrollOffsetInt(); |
if (!m_scrollLayer) |
return; |
@@ -674,7 +674,7 @@ void PaintLayerCompositor::frameViewDidScroll() { |
if (scrollingCoordinatorHandlesOffset) |
m_scrollLayer->setPosition(frameView->scrollOrigin()); |
else |
- m_scrollLayer->setPosition(-scrollPosition); |
+ m_scrollLayer->setPosition(IntPoint(-scrollOffset)); |
DEFINE_STATIC_LOCAL(EnumerationHistogram, acceleratedBackgroundHistogram, |
("Renderer.AcceleratedFixedRootBackground", |