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

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

Issue 2614663004: Pause HTML parser for external stylesheets in the body (Closed)
Patch Set: Paramaterized test cases 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 150f6e080bfb8c13f4c10b664f5b87292c99ad25..6b32a0c332ca1d6ceb1e8ed8d3f692b7340a8c91 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3365,6 +3365,11 @@ void Document::didLoadAllImports() {
didLoadAllScriptBlockingResources();
}
+void Document::didAddPendingStylesheetInBody() {
+ if (ScriptableDocumentParser* parser = scriptableDocumentParser())
+ parser->didAddPendingStylesheetInBody();
+}
+
void Document::didRemoveAllPendingStylesheet() {
styleResolverMayHaveChanged();
@@ -3376,6 +3381,11 @@ void Document::didRemoveAllPendingStylesheet() {
didLoadAllScriptBlockingResources();
}
+void Document::didRemoveAllPendingBodyStylesheets() {
+ if (ScriptableDocumentParser* parser = scriptableDocumentParser())
+ parser->didLoadAllBodyStylesheets();
+}
+
void Document::didLoadAllScriptBlockingResources() {
// Use wrapWeakPersistent because the task should not keep this Document alive
// just for executing scripts.
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ScriptableDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698