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

Unified Diff: Source/core/dom/DocumentInit.cpp

Issue 31063004: Have Frame::loader() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/dom/Document.cpp ('k') | Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentInit.cpp
diff --git a/Source/core/dom/DocumentInit.cpp b/Source/core/dom/DocumentInit.cpp
index b28c3993c8856e926cd34773c16a486547fa04cb..c29bef990456e6a598ca6cbb7bc163856a0b6699 100644
--- a/Source/core/dom/DocumentInit.cpp
+++ b/Source/core/dom/DocumentInit.cpp
@@ -66,7 +66,7 @@ bool DocumentInit::shouldSetURL() const
bool DocumentInit::shouldTreatURLAsSrcdocDocument() const
{
ASSERT(m_frame);
- return m_frame->loader()->shouldTreatURLAsSrcdocDocument(m_url);
+ return m_frame->loader().shouldTreatURLAsSrcdocDocument(m_url);
}
Frame* DocumentInit::frameForSecurityContext() const
@@ -81,7 +81,7 @@ Frame* DocumentInit::frameForSecurityContext() const
SandboxFlags DocumentInit::sandboxFlags() const
{
ASSERT(frameForSecurityContext());
- return frameForSecurityContext()->loader()->effectiveSandboxFlags();
+ return frameForSecurityContext()->loader().effectiveSandboxFlags();
}
Settings* DocumentInit::settings() const
@@ -97,7 +97,7 @@ Frame* DocumentInit::ownerFrame() const
Frame* ownerFrame = m_frame->tree().parent();
if (!ownerFrame)
- ownerFrame = m_frame->loader()->opener();
+ ownerFrame = m_frame->loader().opener();
return ownerFrame;
}
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698