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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp

Issue 2887053002: Remove scroll_clip_layer dependency from viewport layer tracking (Closed)
Patch Set: Cleanup return stmt Created 3 years, 7 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/scrolling/TopDocumentRootScrollerController.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
index 33a2f69487485dd49744c67b838852ac94842244..2c96bad923a24ae7c1dc1397cee1df05876e312b 100644
--- a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
@@ -202,6 +202,13 @@ GraphicsLayer* TopDocumentRootScrollerController::RootScrollerLayer() const {
return graphics_layer;
}
+GraphicsLayer* TopDocumentRootScrollerController::RootContainerLayer() const {
+ ScrollableArea* area =
+ RootScrollerUtil::ScrollableAreaForRootScroller(global_root_scroller_);
+
+ return area ? area->LayerForContainer() : nullptr;
+}
+
PaintLayer* TopDocumentRootScrollerController::RootScrollerPaintLayer() const {
return RootScrollerUtil::PaintLayerForRootScroller(global_root_scroller_);
}

Powered by Google App Engine
This is Rietveld 408576698