diff options
-rw-r--r-- | content/browser/renderer_host/render_process_host_impl.cc | 1 | ||||
-rw-r--r-- | content/browser/web_contents/web_contents_impl.cc | 6 | ||||
-rw-r--r-- | content/renderer/render_view_impl.cc | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index 68afc6b2..de389a6 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -768,6 +768,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( switches::kEnableAccessibilityLogging, switches::kEnableBrowserPluginCompositing, switches::kEnableBrowserPluginForAllViewTypes, + switches::kEnableCssTransformPinch, switches::kEnableDCHECK, switches::kEnableDataChannels, switches::kEnableEncryptedMedia, diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc index b7b43b4..02600f3 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc @@ -639,6 +639,12 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh, prefs.apply_page_scale_factor_in_compositor = command_line.HasSwitch(switches::kEnablePinch); + + if (command_line.HasSwitch(switches::kEnableCssTransformPinch)) { + prefs.apply_default_device_scale_factor_in_compositor = false; + prefs.apply_page_scale_factor_in_compositor = false; + } + prefs.per_tile_painting_enabled = command_line.HasSwitch(cc::switches::kEnablePerTilePainting); prefs.accelerated_animation_enabled = diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc index 6ab5709..8d75551 100644 --- a/content/renderer/render_view_impl.cc +++ b/content/renderer/render_view_impl.cc @@ -3309,7 +3309,8 @@ void RenderViewImpl::ProcessAcceleratedPinchZoomFlags( return; bool enable_viewport = command_line.HasSwitch(switches::kEnableViewport); - bool enable_pinch = command_line.HasSwitch(switches::kEnablePinch); + bool enable_pinch = command_line.HasSwitch(switches::kEnablePinch) + || command_line.HasSwitch(switches::kEnableCssTransformPinch); if (enable_viewport) return; |