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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2849403002: Use const ref for LocalFrame::LocalFrameRoot and FrameTree::Top (Closed)
Patch Set: 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/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index d6e5d1829d8d4b721fe8baf6ef01225ef17c74a1..746f4f20cad44591f02c4263beaed3a7ff058c9b 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -154,7 +154,7 @@ class CORE_EXPORT LocalFrame final : public Frame,
// frame's in-process subtree.
// FIXME: This is a temporary hack to support RemoteFrames, and callers
// should be updated to avoid storing things on the main frame.
- LocalFrame* LocalFrameRoot();
+ LocalFrame& LocalFrameRoot() const;
// Note that the result of this function should not be cached: a frame is
// not necessarily detached when it is navigated, so the return value can

Powered by Google App Engine
This is Rietveld 408576698