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

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

Issue 317493002: Change FrameTree to return Frames instead of LocalFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: dcheng's comment addressed Created 6 years, 6 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/FrameTree.cpp ('k') | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 89a01af81d3b4dec41d48978223312a9a481ac5f..8a88e23933b122312a1a3a15bceab2c683537d8b 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -563,8 +563,10 @@ void Page::acceptLanguagesChanged()
// Even though we don't fire an event from here, the DOMWindow's will fire
// an event so we keep the frames alive until we are done.
- for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseNext())
- frames.append(frame);
+ for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()) {
+ if (frame->isLocalFrame())
+ frames.append(toLocalFrame(frame));
+ }
for (unsigned i = 0; i < frames.size(); ++i)
frames[i]->domWindow()->acceptLanguagesChanged();
« no previous file with comments | « Source/core/page/FrameTree.cpp ('k') | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698