| Index: Source/core/html/imports/LinkImport.cpp
|
| diff --git a/Source/core/html/imports/LinkImport.cpp b/Source/core/html/imports/LinkImport.cpp
|
| index 92e01fe1eebce5c1e61b822463a5e284c2ed116b..192e921fd85b4e7a9a85703a8f70d42082936413 100644
|
| --- a/Source/core/html/imports/LinkImport.cpp
|
| +++ b/Source/core/html/imports/LinkImport.cpp
|
| @@ -125,7 +125,9 @@ HTMLLinkElement* LinkImport::link()
|
|
|
| bool LinkImport::hasLoaded() const
|
| {
|
| - return m_child && m_child->isDone() && !m_child->loaderHasError();
|
| + // Should never be called after importChildWasDestroyed was called.
|
| + ASSERT(m_owner);
|
| + return m_child && m_child->isDone() && !m_child->loader()->hasError();
|
| }
|
|
|
| void LinkImport::trace(Visitor* visitor)
|
|
|