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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 169043004: Start commit on last stylesheet loaded if we already have the HTML body (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@deferredcommit
Patch Set: Compile fix Created 6 years, 4 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
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 9f8c31ff244cd5c6fcd84ac10f547d188cc6ce3f..2d809da2cefd6e230f4bc0156cbc974da3fc715a 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3705,6 +3705,17 @@ void WebViewImpl::willInsertBody(WebLocalFrameImpl* webframe)
resumeTreeViewCommits();
}
+void WebViewImpl::didRemoveAllPendingStylesheet(WebLocalFrameImpl* webframe)
+{
+ if (webframe != mainFrameImpl())
+ return;
+
+ // If we have no more stylesheets to load and we're past the body tag,
+ // we should have something to paint and should start as soon as possible.
+ if (m_page->deprecatedLocalMainFrame()->document()->body())
+ resumeTreeViewCommits();
+}
+
void WebViewImpl::resumeTreeViewCommits()
{
if (m_layerTreeViewCommitsDeferred) {
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698