Index: Source/core/html/imports/LinkImport.cpp |
diff --git a/Source/core/html/imports/LinkImport.cpp b/Source/core/html/imports/LinkImport.cpp |
index 812afedd10b4957c7cb9b20f74cf66d926e118f6..3a3e629e9812eac13882fd23e80eef820c7b98d6 100644 |
--- a/Source/core/html/imports/LinkImport.cpp |
+++ b/Source/core/html/imports/LinkImport.cpp |
@@ -128,7 +128,9 @@ |
bool LinkImport::hasLoaded() const |
{ |
- return m_owner && m_child && m_child->hasFinishedLoading() && !m_child->loader()->hasError(); |
+ // Should never be called after importChildWasDestroyed was called. |
+ ASSERT(m_owner); |
+ return m_child && m_child->hasFinishedLoading() && !m_child->loader()->hasError(); |
} |
void LinkImport::ownerInserted() |