diff options
author | jbroman <jbroman@chromium.org> | 2016-01-14 18:16:21 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-15 02:18:27 +0000 |
commit | c4c7392300e1143e3cd1bac07cac4b97a83ad7af (patch) | |
tree | 4c81357835d04f9221f6c75fcfbffecfa4b7d115 | |
parent | 0b374d03dc653645e90dce52f234285d766728e3 (diff) | |
download | chromium_src-c4c7392300e1143e3cd1bac07cac4b97a83ad7af.zip chromium_src-c4c7392300e1143e3cd1bac07cac4b97a83ad7af.tar.gz chromium_src-c4c7392300e1143e3cd1bac07cac4b97a83ad7af.tar.bz2 |
Enable SlimmingPaintV2 from the command-line switch instead of from WebPreferences.
BUG=471333
Review URL: https://codereview.chromium.org/1585313002
Cr-Commit-Position: refs/heads/master@{#369660}
-rw-r--r-- | content/browser/renderer_host/render_view_host_impl.cc | 3 | ||||
-rw-r--r-- | content/child/runtime_features.cc | 3 | ||||
-rw-r--r-- | content/public/common/common_param_traits_macros.h | 1 | ||||
-rw-r--r-- | content/public/common/web_preferences.cc | 1 | ||||
-rw-r--r-- | content/public/common/web_preferences.h | 1 | ||||
-rw-r--r-- | content/renderer/render_view_impl.cc | 1 |
6 files changed, 3 insertions, 7 deletions
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc index e12be0b..5916c11 100644 --- a/content/browser/renderer_host/render_view_host_impl.cc +++ b/content/browser/renderer_host/render_view_host_impl.cc @@ -478,9 +478,6 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() { prefs.touch_adjustment_enabled = !command_line.HasSwitch(switches::kDisableTouchAdjustment); - prefs.slimming_paint_v2_enabled = - command_line.HasSwitch(switches::kEnableSlimmingPaintV2); - prefs.enable_scroll_animator = !command_line.HasSwitch(switches::kDisableSmoothScrolling) && gfx::Animation::ShouldRenderRichAnimation(); diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc index 8625bc9..03c2495 100644 --- a/content/child/runtime_features.cc +++ b/content/child/runtime_features.cc @@ -196,6 +196,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( if (base::FeatureList::IsEnabled(features::kWebFontsIntervention)) WebRuntimeFeatures::enableWebFontsIntervention(true); + if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2)) + WebRuntimeFeatures::enableSlimmingPaintV2(true); + // Enable explicitly enabled features, and then disable explicitly disabled // ones. if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) { diff --git a/content/public/common/common_param_traits_macros.h b/content/public/common/common_param_traits_macros.h index e836e1b..a9811c4 100644 --- a/content/public/common/common_param_traits_macros.h +++ b/content/public/common/common_param_traits_macros.h @@ -197,7 +197,6 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences) IPC_STRUCT_TRAITS_MEMBER(navigate_on_drag_drop) IPC_STRUCT_TRAITS_MEMBER(spatial_navigation_enabled) IPC_STRUCT_TRAITS_MEMBER(v8_cache_options) - IPC_STRUCT_TRAITS_MEMBER(slimming_paint_v2_enabled) IPC_STRUCT_TRAITS_MEMBER(pepper_accelerated_video_decode_enabled) IPC_STRUCT_TRAITS_MEMBER(animation_policy) #if defined(OS_ANDROID) diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc index c887f9a8..4a83a70 100644 --- a/content/public/common/web_preferences.cc +++ b/content/public/common/web_preferences.cc @@ -172,7 +172,6 @@ WebPreferences::WebPreferences() use_solid_color_scrollbars(false), navigate_on_drag_drop(true), v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), - slimming_paint_v2_enabled(false), cookie_enabled(true), pepper_accelerated_video_decode_enabled(false), animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h index fc1ee14..de5a3c5 100644 --- a/content/public/common/web_preferences.h +++ b/content/public/common/web_preferences.h @@ -173,7 +173,6 @@ struct CONTENT_EXPORT WebPreferences { bool use_solid_color_scrollbars; bool navigate_on_drag_drop; V8CacheOptions v8_cache_options; - bool slimming_paint_v2_enabled; // This flags corresponds to a Page's Settings' setCookieEnabled state. It // only controls whether or not the "document.cookie" field is properly diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc index 415bd9e..8e6b887 100644 --- a/content/renderer/render_view_impl.cc +++ b/content/renderer/render_view_impl.cc @@ -925,7 +925,6 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs, settings->setJavaScriptCanAccessClipboard( prefs.javascript_can_access_clipboard); WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); - WebRuntimeFeatures::enableSlimmingPaintV2(prefs.slimming_paint_v2_enabled); settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); settings->setDataSaverEnabled(prefs.data_saver_enabled); |