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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2113483002: Make RootScroller set the outer viewport scroll layer in the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 0003e29d42b451d8872648ca81a9b81b86e07a54..a993bf9a02b17686766e814eccee2ef48f6842b4 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1872,6 +1872,17 @@ void WebViewImpl::didUpdateTopControls()
}
}
+void WebViewImpl::didUpdateRootScrollerLayer(WebLayer* rootScrollerLayer)
+{
+ if (!m_layerTreeView)
+ return;
+
+ if (!page()->mainFrame() || !page()->mainFrame()->isLocalFrame())
dcheng 2016/06/29 22:34:29 I'm out of the loop on the root scroller work: is
bokan 2016/06/29 22:37:02 It is in the sense that an iframe can set document
+ return;
+
+ m_layerTreeView->setRootScrollerLayer(rootScrollerLayer);
+}
+
TopControls& WebViewImpl::topControls()
{
return page()->frameHost().topControls();

Powered by Google App Engine
This is Rietveld 408576698