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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2849403002: Use const ref for LocalFrame::LocalFrameRoot and FrameTree::Top (Closed)
Patch Set: fix compile and dchecks Created 3 years, 8 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
Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 6d8352e8a9ce583a03b426daf72da614db504e39..fbdd9e40a89379a5cb5d9643c920a767642e1de6 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -1637,7 +1637,7 @@ DOMWindow* LocalDOMWindow::open(const String& url_string,
// In those cases, we schedule a location change right now and return early.
Frame* target_frame = nullptr;
if (EqualIgnoringASCIICase(frame_name, "_top")) {
- target_frame = GetFrame()->Tree().Top();
+ target_frame = &GetFrame()->Tree().Top();
} else if (EqualIgnoringASCIICase(frame_name, "_parent")) {
if (Frame* parent = GetFrame()->Tree().Parent())
target_frame = parent;
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698