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

Unified Diff: Source/core/html/LinkResource.cpp

Issue 305743003: HTMLImportsController does not need to hold Document ptr. (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/fetch/ResourceFetcher.cpp ('k') | Source/core/html/imports/HTMLImportsController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/html/imports/HTMLImportsController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698