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

Unified Diff: Source/core/dom/ViewportDescription.cpp

Issue 1025543002: Remove old pinch-zoom paths from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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 | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ViewportDescription.cpp
diff --git a/Source/core/dom/ViewportDescription.cpp b/Source/core/dom/ViewportDescription.cpp
index c0b773a8d31c5ed6ce13b645ff223ac358bb2a44..82f16cb93b54d0ed9099472f4257a9ca4ec80371 100644
--- a/Source/core/dom/ViewportDescription.cpp
+++ b/Source/core/dom/ViewportDescription.cpp
@@ -238,9 +238,7 @@ void ViewportDescription::reportMobilePageStats(const LocalFrame* mainFrame) con
// To get an idea of how "far" the viewport is from the device's ideal width, we
// report the zoom level that we'd need to be at for the entire page to be visible.
int viewportWidth = maxWidth.intValue();
- int windowWidth = mainFrame->document()->settings()->pinchVirtualViewportEnabled()
- ? mainFrame->host()->pinchViewport().size().width()
- : mainFrame->view()->frameRect().width();
+ int windowWidth = mainFrame->host()->pinchViewport().size().width();
int overviewZoomPercent = 100 * windowWidth / static_cast<float>(viewportWidth);
Platform::current()->histogramSparse("Viewport.OverviewZoom", overviewZoomPercent);
}
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698