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

Unified Diff: Source/core/page/CreateWindow.cpp

Issue 33353003: Have Frame::tree() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/page/Chrome.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/CreateWindow.cpp
diff --git a/Source/core/page/CreateWindow.cpp b/Source/core/page/CreateWindow.cpp
index b740d417dbb196479f8131b27eedddb23ebd089b..10d2694b33295e374e71d6c897839ca0bb2484a7 100644
--- a/Source/core/page/CreateWindow.cpp
+++ b/Source/core/page/CreateWindow.cpp
@@ -66,7 +66,7 @@ static Frame* createWindow(Frame* openerFrame, Frame* lookupFrame, const FrameLo
if (openerFrame->settings() && !openerFrame->settings()->supportsMultipleWindows()) {
created = false;
- return openerFrame->tree()->top();
+ return openerFrame->tree().top();
}
Page* oldPage = openerFrame->page();
@@ -82,7 +82,7 @@ static Frame* createWindow(Frame* openerFrame, Frame* lookupFrame, const FrameLo
frame->loader()->forceSandboxFlags(openerFrame->document()->sandboxFlags());
if (request.frameName() != "_blank")
- frame->tree()->setName(request.frameName());
+ frame->tree().setName(request.frameName());
page->chrome().setWindowFeatures(features);
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698