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

Unified Diff: Source/core/dom/Document.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 | « no previous file | Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index d721e4f70ef5cc5e9ed19d164121c13196463f12..fa34137a4151ac03364e5c186e70df7080798a5e 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -2996,6 +2996,9 @@ void Document::didLoadAllScriptBlockingResources()
{
m_executeScriptsWaitingForResourcesTimer.startOneShot(0, FROM_HERE);
+ if (frame())
+ frame()->loader().client()->didRemoveAllPendingStylesheet();
+
if (m_gotoAnchorNeededAfterStylesheetsLoad && view())
view()->scrollToFragment(m_url);
}
« no previous file with comments | « no previous file | Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698