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

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.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/page/ChromeClient.cpp
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.cpp b/third_party/WebKit/Source/core/page/ChromeClient.cpp
index 972b1dbc7adcffe79706ed637a0056225b4a55b5..a7c4ea868efbf805f6c00a50f6c8e5cf9fadac22 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.cpp
+++ b/third_party/WebKit/Source/core/page/ChromeClient.cpp
@@ -67,10 +67,11 @@ void ChromeClient::SetWindowRectWithAdjustment(const IntRect& pending_rect,
}
bool ChromeClient::CanOpenModalIfDuringPageDismissal(
- Frame* main_frame,
+ Frame& main_frame,
ChromeClient::DialogType dialog,
const String& message) {
- for (Frame* frame = main_frame; frame; frame = frame->Tree().TraverseNext()) {
+ for (Frame* frame = &main_frame; frame;
+ frame = frame->Tree().TraverseNext()) {
if (!frame->IsLocalFrame())
continue;
LocalFrame& local_frame = ToLocalFrame(*frame);
« no previous file with comments | « third_party/WebKit/Source/core/page/ChromeClient.h ('k') | third_party/WebKit/Source/core/page/CreateWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698