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

Unified Diff: sky/engine/core/dom/ViewportDescription.cpp

Issue 681583002: Remove pinch viewports. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: upload synced patch Created 6 years, 2 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
Index: sky/engine/core/dom/ViewportDescription.cpp
diff --git a/sky/engine/core/dom/ViewportDescription.cpp b/sky/engine/core/dom/ViewportDescription.cpp
index f463f6f8c8ae32d2b2e417c3f201af17d79b9274..e8fd88eaaf883f36668072f9dd72f01308ae64f5 100644
--- a/sky/engine/core/dom/ViewportDescription.cpp
+++ b/sky/engine/core/dom/ViewportDescription.cpp
@@ -99,9 +99,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->view()->frameRect().width();
int overviewZoomPercent = 100 * windowWidth / static_cast<float>(viewportWidth);
Platform::current()->histogramSparse("Viewport.OverviewZoom", overviewZoomPercent);
}

Powered by Google App Engine
This is Rietveld 408576698