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

Unified Diff: content/renderer/render_view_impl.cc

Issue 22848002: Move call to ProcessViewLayoutFlags(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index c533788c961a49fb09d42a0029d81278db61f495..2f57b828cd42696a3295aea591922c5ad32b5a22 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3546,6 +3546,9 @@ void RenderViewImpl::ProcessViewLayoutFlags(const CommandLine& command_line) {
if (enable_viewport)
return;
+ // When navigating to a new page, reset the page scale factor to be 1.0.
+ webview()->setInitialPageScaleOverride(1.f);
+
if (enable_fixed_layout) {
std::string str =
command_line.GetSwitchValueASCII(switches::kEnableFixedLayout);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698