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

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

Issue 2651793012: [RootLayerScrolls] Annotate non-fast-scroll regions to correct layer (Closed)
Patch Set: Get rid of nonFastScrollableRects plumbing. 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 4e1bc08123dadd996f1aee4197958f70142b10b8..ecfd49d77745f84dfeb70b3cf949868ddecda93d 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -173,21 +173,19 @@ ScrollingCoordinator* Page::scrollingCoordinator() {
}
ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) {
+ DisableCompositingQueryAsserts disabler;
if (ScrollingCoordinator* scrollingCoordinator =
this->scrollingCoordinator()) {
// Hits in compositing/iframes/iframe-composited-scrolling.html
- DisableCompositingQueryAsserts disabler;
scrollingCoordinator->updateAfterCompositingChangeIfNeeded();
}
- if (!frame->view()->layerForScrolling())
+ GraphicsLayer* layer =
+ frame->view()->layoutViewportScrollableArea()->layerForScrolling();
+ if (!layer)
return ClientRectList::create();
-
- // Now retain non-fast scrollable regions
- return ClientRectList::create(frame->view()
- ->layerForScrolling()
- ->platformLayer()
- ->nonFastScrollableRegion());
+ return ClientRectList::create(
+ layer->platformLayer()->nonFastScrollableRegion());
}
void Page::setMainFrame(Frame* mainFrame) {

Powered by Google App Engine
This is Rietveld 408576698