Index: Source/core/html/imports/HTMLImportStateResolver.cpp |
diff --git a/Source/core/html/imports/HTMLImportStateResolver.cpp b/Source/core/html/imports/HTMLImportStateResolver.cpp |
index df03643504e0a68fd7e00a2fe6c8146dd02f41de..9a1f2bfa534863ea03e83cd83630d58fd4910d75 100644 |
--- a/Source/core/html/imports/HTMLImportStateResolver.cpp |
+++ b/Source/core/html/imports/HTMLImportStateResolver.cpp |
@@ -33,6 +33,7 @@ |
#include "core/html/imports/HTMLImport.h" |
#include "core/html/imports/HTMLImportChild.h" |
+#include "core/html/imports/HTMLImportLoader.h" |
namespace WebCore { |
@@ -40,10 +41,9 @@ inline bool HTMLImportStateResolver::isBlockingFollowers(HTMLImport* import) |
{ |
if (!import->isSync()) |
return false; |
- if (!toHTMLImportChild(import)->isFirst()) |
+ HTMLImportChild* child = toHTMLImportChild(import); |
+ if (!child->loader()->isFirstImport(child)) |
return false; |
- if (!import->loader()) |
- return true; |
return !import->state().isReady(); |
} |