Index: Source/core/html/HTMLImportChild.cpp |
diff --git a/Source/core/html/HTMLImportChild.cpp b/Source/core/html/HTMLImportChild.cpp |
index a708092dbbb3ac1db801ce5b7ddf10176ea28769..93d9c7fa13affc0eb8e887717b7ec6f546fe4f3e 100644 |
--- a/Source/core/html/HTMLImportChild.cpp |
+++ b/Source/core/html/HTMLImportChild.cpp |
@@ -69,8 +69,8 @@ void HTMLImportChild::wasAlreadyLoaded() |
ASSERT(!m_loader); |
ASSERT(m_clients.size()); |
- loaderWasResolved(); |
ensureLoader(); |
+ loaderWasResolved(); |
} |
void HTMLImportChild::startLoading(const ResourcePtr<RawResource>& resource) |
@@ -161,7 +161,6 @@ void HTMLImportChild::didFinishParsing() |
void HTMLImportChild::didUnblockFromCreatingDocument() |
{ |
HTMLImport::didUnblockFromCreatingDocument(); |
- ASSERT(!m_loader || !m_loader->isOwnedBy(this)); |
ensureLoader(); |
} |
@@ -204,6 +203,11 @@ bool HTMLImportChild::isDone() const |
return m_loader && m_loader->isDone(); |
} |
+bool HTMLImportChild::hasLoader() const |
+{ |
+ return m_loader; |
+} |
+ |
bool HTMLImportChild::ownsLoader() const |
{ |
return m_loader->isOwnedBy(this); |