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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2614663004: Pause HTML parser for external stylesheets in the body (Closed)
Patch Set: merge to trunk Created 3 years, 11 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index c4e9e772377ba78e4557a3c03de2c16574a396e8..f1b51eec6aca3870bf5344bf5824eb3450534a41 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3339,12 +3339,19 @@ void Document::didLoadAllImports() {
didLoadAllScriptBlockingResources();
}
+void Document::didAddPendingStylesheetInBody() {
+ if (ScriptableDocumentParser* parser = scriptableDocumentParser())
+ parser->didAddPendingStylesheetInBody();
+}
+
void Document::didRemoveAllPendingStylesheet() {
styleResolverMayHaveChanged();
// Only imports on master documents can trigger rendering.
if (HTMLImportLoader* import = importLoader())
import->didRemoveAllPendingStylesheet();
+ if (ScriptableDocumentParser* parser = scriptableDocumentParser())
+ parser->didLoadAllStylesheets();
if (!haveImportsLoaded())
return;
didLoadAllScriptBlockingResources();

Powered by Google App Engine
This is Rietveld 408576698