Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2877893002: Make UseCounter take a LocaFrame instead of any Frame (Closed)
Patch Set: Fix compile Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12e2e3b5158be4287dad2dbcdbe675b124fe4413..88bbe848612685b5824d5c641567f0e945afe52e 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() {
« no previous file with comments | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698