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

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

Issue 1922793002: Move deferred commit logic from WebViewImpl to Document. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index c3acd08f5f04e4e600fdc4107904a0f8568faeb9..8760f9cd761d4e48f23ccc93e167ebbd93251d49 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -934,6 +934,14 @@ void ChromeClientImpl::setEventListenerProperties(WebEventListenerClass eventCla
}
}
+void ChromeClientImpl::beginLifecycleUpdates()
+{
+ if (WebLayerTreeView* treeView = m_webView->layerTreeView()) {
+ treeView->setDeferCommits(false);
+ treeView->setNeedsBeginFrame();
+ }
+}
+
WebEventListenerProperties ChromeClientImpl::eventListenerProperties(WebEventListenerClass eventClass) const
{
if (WebLayerTreeView* treeView = m_webView->layerTreeView())

Powered by Google App Engine
This is Rietveld 408576698