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

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: 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 93a13ab219b2a1740691546634dd51c213453042..6920e1c3d6b5703a4994a2cf3cb113317872db9f 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2095,6 +2095,11 @@ void Document::setIsViewSource(bool isViewSource)
didUpdateSecurityOrigin();
}
+bool Document::isRenderingReady() const
+{
+ return haveImportsLoaded() && (RuntimeEnabledFeatures::htmlParserBlocksOnCSSEnabled() || haveStylesheetsLoaded());
esprehn 2016/03/07 21:35:50 I don't think you want to do this, isRenderingRead
Pat Meenan 2016/03/07 21:49:53 Right. The change basically removes the check of
+}
+
bool Document::dirtyElementsForLayerUpdate()
{
if (m_layerUpdateSVGFilterElements.isEmpty())

Powered by Google App Engine
This is Rietveld 408576698