Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: Source/core/html/imports/LinkImport.cpp

Issue 299313013: Remove indirection plumbing from HTMLImportChild. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/imports/HTMLImportsController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/html/imports/HTMLImportsController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698