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

Unified Diff: content/renderer/render_view_impl.cc

Issue 11348353: Simplify pinch flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « content/public/common/content_switches.cc ('k') | 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 b56a17eb6b246ed3da4a9dcc1eb18b42a781c1c4..d8701dc38b230b66dbd38f0b4b5fbad1bbc1e5b7 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3179,10 +3179,10 @@ void RenderViewImpl::ProcessAcceleratedPinchZoomFlags(
command_line.HasSwitch(switches::kEnableViewport);
bool enable_pinch = enable_viewport ||
aelias_OOO_until_Jul13 2012/12/03 18:34:35 This logic is broken because enable_viewport is al
command_line.HasSwitch(switches::kEnablePinch);
- bool enable_pinch_in_compositor =
- command_line.HasSwitch(cc::switches::kEnablePinchInCompositor);
+ bool enable_css_transform_pinch =
+ command_line.HasSwitch(switches::kEnableCssTransformPinch);
- if (!enable_pinch &&
+ if (!(enable_pinch || enable_css_transform_pinch) &&
webview()->isAcceleratedCompositingActive() &&
webkit_preferences_.apply_default_device_scale_factor_in_compositor &&
device_scale_factor_ != 1) {
@@ -3191,8 +3191,7 @@ void RenderViewImpl::ProcessAcceleratedPinchZoomFlags(
webview()->setPageScaleFactorLimits(1, 1);
}
- if (enable_pinch_in_compositor &&
- webview()->isAcceleratedCompositingActive())
+ if (enable_pinch && webview()->isAcceleratedCompositingActive())
webview()->setPageScaleFactorLimits(1, 4);
}
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698