| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 13f0a035c1e34c8b93ffef5c0e14801c57a8daf3..21d32f36bf34461d1c15ea105a2b4333d198fe04 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1617,6 +1617,9 @@ bool Internals::hasGrammarMarker(Document* document, int from, int length, Excep
|
|
|
| unsigned Internals::numberOfScrollableAreas(Document* document, ExceptionState&)
|
| {
|
| + if (!document || !document->frame())
|
| + return 0;
|
| +
|
| unsigned count = 0;
|
| LocalFrame* frame = document->frame();
|
| if (frame->view()->scrollableAreas())
|
|
|