Index: third_party/WebKit/Source/core/page/Page.cpp |
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp |
index 6557e08891bf42e14e4b9151a32a90e3ea62c8ad..c9ca14fd86d5794fedf0e55e3b2ca23321c61b0d 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -180,14 +180,9 @@ ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { |
scrollingCoordinator->updateAfterCompositingChangeIfNeeded(); |
} |
- if (!frame->view()->layerForScrolling()) |
- return ClientRectList::create(); |
- |
- // Now retain non-fast scrollable regions |
- return ClientRectList::create(frame->view() |
- ->layerForScrolling() |
- ->platformLayer() |
- ->nonFastScrollableRegion()); |
+ return frame->view() |
+ ->layoutViewportScrollableArea() |
+ ->nonFastScrollableRects(); |
skobes
2017/01/27 20:14:18
Could this just read layoutViewportScrollableArea(
szager1
2017/01/27 22:32:49
layerForScrolling()
layer()->compositedLayerMappi
|
} |
void Page::setMainFrame(Frame* mainFrame) { |