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

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

Issue 2729493002: 'haveImportsLoaded' shouldn't block rendering, if ignoringPendingStylesheets. (Closed)
Patch Set: call EXPECT_TRUE twice Created 3 years, 10 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 e70bfb8ccbe5802e68441d2e7333a73d7acbff28..e84d19b00cc9e13e53228bd1232c754cf8251df7 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5637,6 +5637,11 @@ bool Document::canExecuteScripts(ReasonForCallingCanExecuteScripts reason) {
return true;
}
+bool Document::isRenderingReady() const {
+ return m_styleEngine->ignoringPendingStylesheets() ||
+ (haveImportsLoaded() && haveRenderBlockingStylesheetsLoaded());
+}
+
bool Document::allowInlineEventHandler(Node* node,
EventListener* listener,
const String& contextURL,
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698