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

Unified Diff: components/ui/zoom/page_zoom.cc

Issue 1408393003: Propagate pageScaleFactor to GuestViews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant initialization of AwLayoutSizer's page scale factor in tests Created 5 years, 1 month 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: components/ui/zoom/page_zoom.cc
diff --git a/components/ui/zoom/page_zoom.cc b/components/ui/zoom/page_zoom.cc
index 7d9670cdece6f6123d414bd504e954635be218a1..3f4470f7f6163885a860b3dee1d2fdaf0ea7adf7 100644
--- a/components/ui/zoom/page_zoom.cc
+++ b/components/ui/zoom/page_zoom.cc
@@ -83,7 +83,7 @@ void PageZoom::Zoom(content::WebContents* web_contents,
if (zoom == content::PAGE_ZOOM_RESET) {
zoom_controller->SetZoomLevel(default_zoom_level);
- web_contents->ResetPageScale();
+ web_contents->SetPageScale(1.f);
content::RecordAction(UserMetricsAction("ZoomNormal"));
return;
}

Powered by Google App Engine
This is Rietveld 408576698