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); |