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

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

Issue 2614663004: Pause HTML parser for external stylesheets in the body (Closed)
Patch Set: Fixed interaction with imports 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/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index af6777e99ccd8e23c99c72ea2685633a9206fc28..265945b1b85cbdf446ddd1d5ce128693970cbd50 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -163,6 +163,8 @@ void StyleEngine::addPendingSheet(StyleEngineContext& context) {
context.addingPendingSheet(document());
if (context.addedPendingSheetBeforeBody())
m_pendingRenderBlockingStylesheets++;
+ else
+ document().didAddPendingStylesheetInBody();
}
// This method is called whenever a top-level stylesheet has finished loading.

Powered by Google App Engine
This is Rietveld 408576698