Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2651793012: [RootLayerScrolls] Annotate non-fast-scroll regions to correct layer (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698