Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index 4fc499f761308e2a7600aaba2f651dd86aa68afe..1bc1e8ea97e0c7685ac7dae15493a0844f8384b2 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -2059,11 +2059,7 @@ String Internals::mainThreadScrollingReasons( |
document->frame()->view()->updateAllLifecyclePhases(); |
- Page* page = document->page(); |
- if (!page) |
- return String(); |
- |
- return page->mainThreadScrollingReasonsAsText(); |
+ return document->frame()->view()->mainThreadScrollingReasonsAsText(); |
} |
ClientRectList* Internals::nonFastScrollableRects( |