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

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

Issue 2333263002: Document::haveImportsLoaded() should return true when ignoring pending sheets (Closed)
Patch Set: Use StyleEngine::styleForElementCount Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 739e80bde553a947bad6b7e5b611c1b2ac21e700..32f359724f750a44a859cbd20dd33f416f206fa5 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -769,6 +769,8 @@ HTMLImportLoader* Document::importLoader() const
bool Document::haveImportsLoaded() const
{
+ if (m_styleEngine->ignoringPendingStylesheets())
+ return true;
if (!m_importsController)
return true;
return !m_importsController->shouldBlockScriptExecution(*this);
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698