Index: Source/core/html/LinkResource.cpp |
diff --git a/Source/core/html/LinkResource.cpp b/Source/core/html/LinkResource.cpp |
index f359848465284f35b145fba915d00d4c1420fcb4..54251879f7a4467124bb86d6867e13b61c4c0d44 100644 |
--- a/Source/core/html/LinkResource.cpp |
+++ b/Source/core/html/LinkResource.cpp |
@@ -55,10 +55,10 @@ bool LinkResource::shouldLoadResource() const |
LocalFrame* LinkResource::loadingFrame() const |
{ |
- HTMLImportsController* import = m_owner->document().importsController(); |
- if (!import) |
+ HTMLImportsController* importsController = m_owner->document().importsController(); |
+ if (!importsController) |
return m_owner->document().frame(); |
- return import->frame(); |
+ return importsController->master()->frame(); |
} |
void LinkResource::trace(Visitor* visitor) |