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

Unified Diff: Source/core/testing/Internals.cpp

Issue 317493002: Change FrameTree to return Frames instead of LocalFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed conflicts 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 58ae5411fb34bc30aa723a12ad376b036497acfe..753197aeea236b1fc8445f3eaa2ebe88a0f8ef88 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1602,9 +1602,9 @@ unsigned Internals::numberOfScrollableAreas(Document* document, ExceptionState&)
if (frame->view()->scrollableAreas())
count += frame->view()->scrollableAreas()->size();
- for (LocalFrame* child = frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
- if (child->view() && child->view()->scrollableAreas())
- count += child->view()->scrollableAreas()->size();
+ for (Frame* child = frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
+ if (child->isLocalFrame() && toLocalFrame(child)->view() && toLocalFrame(child)->view()->scrollableAreas())
+ count += toLocalFrame(child)->view()->scrollableAreas()->size();
}
return count;

Powered by Google App Engine
This is Rietveld 408576698