| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 415e15916e72377cce1fceaeaabc3bddac49ce0b..12d3ec1ecfdc1ba71d33ed4dbfea8ed8d363b4cb 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;
|
|
|