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

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

Issue 1772853002: Block the HTML parser on external stylesheets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified parser blocking logic Created 4 years, 9 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 12c4f9f08005cda108d0936b2ccc1a563df1550f..1ae24b262d9292e9b31fd596a12a6d89edbe1019 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2120,6 +2120,14 @@ void Document::setIsViewSource(bool isViewSource)
didUpdateSecurityOrigin();
}
+bool Document::isRenderingReady() const
+{
+ if (isHTMLDocument() && RuntimeEnabledFeatures::htmlParserBlocksOnCSSEnabled())
+ return true;
+
+ return haveImportsLoaded() && haveStylesheetsLoaded();
+}
+
bool Document::dirtyElementsForLayerUpdate()
{
if (m_layerUpdateSVGFilterElements.isEmpty())
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698