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

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

Issue 1903803002: Do not block painting for in-body CSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed premature script execution Created 4 years, 8 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.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index fd862518bb85da378c6eb1473ae0affad2dcde12..9005bc5f246448cb099aecee17c00c93e4daa6ba 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -374,8 +374,8 @@ public:
bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNamespaces; }
- bool isRenderingReady() const { return haveImportsLoaded() && haveStylesheetsLoaded(); }
- bool isScriptExecutionReady() const { return isRenderingReady(); }
+ bool isRenderingReady() const { return haveImportsLoaded() && haveRenderBlockingStylesheetsLoaded(); }
+ bool isScriptExecutionReady() const { return haveImportsLoaded() && haveStylesheetsLoaded(); }
// This is a DOM function.
StyleSheetList& styleSheets();
@@ -1152,6 +1152,7 @@ private:
void clearFocusedElementTimerFired(Timer<Document>*);
bool haveStylesheetsLoaded() const;
+ bool haveRenderBlockingStylesheetsLoaded() const;
void styleResolverMayHaveChanged();
void setHoverNode(Node*);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | third_party/WebKit/Source/core/dom/StyleElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698