| 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;
|
|
|