Index: Source/core/html/HTMLImportsController.cpp |
diff --git a/Source/core/html/HTMLImportsController.cpp b/Source/core/html/HTMLImportsController.cpp |
index 7ba3f7e4601c226158c77118049c9f622af5c712..ee1e137fa4962df03d52bdf602ab0bfbf926e3de 100644 |
--- a/Source/core/html/HTMLImportsController.cpp |
+++ b/Source/core/html/HTMLImportsController.cpp |
@@ -208,7 +208,7 @@ HTMLImportLoader::State HTMLImportLoader::finishParsing() |
Document* HTMLImportLoader::importedDocument() const |
{ |
- if (m_state != StateReady) |
+ if (m_state == StateError) |
return 0; |
return m_importedDocument.get(); |
} |