| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index 4f6f9054ad39c487557fcb8384c866ccbe58a860..03dabfada7a44ca249853f9ee39e5a3a7f5aed3e 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -4025,13 +4025,13 @@ void WebViewImpl::ApplyViewportDeltas(
|
| void WebViewImpl::RecordWheelAndTouchScrollingCount(
|
| bool has_scrolled_by_wheel,
|
| bool has_scrolled_by_touch) {
|
| - if (!GetPage() || !GetPage()->MainFrame())
|
| + if (!MainFrameImpl())
|
| return;
|
|
|
| if (has_scrolled_by_wheel)
|
| - UseCounter::Count(GetPage()->MainFrame(), UseCounter::kScrollByWheel);
|
| + UseCounter::Count(MainFrameImpl()->GetFrame(), UseCounter::kScrollByWheel);
|
| if (has_scrolled_by_touch)
|
| - UseCounter::Count(GetPage()->MainFrame(), UseCounter::kScrollByTouch);
|
| + UseCounter::Count(MainFrameImpl()->GetFrame(), UseCounter::kScrollByTouch);
|
| }
|
|
|
| void WebViewImpl::UpdateLayerTreeViewport() {
|
|
|