Index: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp |
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp |
index fb8d5ea45911c55f0643bdc8e47dcf69bca751b7..90ffa14352af757a84d44e05f77c3eb11233fb38 100644 |
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp |
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp |
@@ -112,8 +112,10 @@ void ScrollingCoordinator::setShouldHandleScrollGestureOnMainThreadRegion( |
if (!m_page->mainFrame()->isLocalFrame() || |
!m_page->deprecatedLocalMainFrame()->view()) |
return; |
- if (WebLayer* scrollLayer = toWebLayer( |
- m_page->deprecatedLocalMainFrame()->view()->layerForScrolling())) { |
+ if (WebLayer* scrollLayer = toWebLayer(m_page->deprecatedLocalMainFrame() |
+ ->view() |
+ ->layoutViewportScrollableArea() |
+ ->layerForScrolling())) { |
Vector<IntRect> rects = region.rects(); |
WebVector<WebRect> webRects(rects.size()); |
for (size_t i = 0; i < rects.size(); ++i) |