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

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

Issue 2289833002: Disable clipping on root scroller's ancestors. (Closed)
Patch Set: Undo changes to REF and moved comment Created 4 years, 3 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 b23bf7cfd2002b6d4170398fc7fb00fdb6675afa..417bd5278b78466748afcf0f0967c44951469440 100644
--- a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.cpp
@@ -94,10 +94,10 @@ void TopDocumentRootScrollerController::updateGlobalRootScroller()
void TopDocumentRootScrollerController::didUpdateCompositing()
{
- FrameHost* frameHost = m_document->frameHost();
+ RootScrollerController::didUpdateCompositing();
// Let the compositor-side counterpart know about this change.
- if (frameHost)
+ if (FrameHost* frameHost = m_document->frameHost())
frameHost->chromeClient().registerViewportLayers();
}
@@ -148,4 +148,9 @@ GraphicsLayer* TopDocumentRootScrollerController::rootScrollerLayer()
return graphicsLayer;
}
+Element* TopDocumentRootScrollerController::globalRootScroller() const
+{
+ return m_globalRootScroller.get();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698