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

Unified Diff: content/child/runtime_features.cc

Issue 18798004: Add command line flags to enable Web Animations CSS and SVG implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 2e9c1fe9b2dfdb49af49580f690def4322fc304b..b0b77193bb60e26cd085b6e12620cee9a6c0c12f 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -96,6 +96,12 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kDisableLegacyEncryptedMedia))
WebRuntimeFeatures::enableLegacyEncryptedMedia(false);
+ if (command_line.HasSwitch(switches::kEnableWebAnimationsCSS))
+ WebRuntimeFeatures::enableWebAnimationsCSS();
+
+ if (command_line.HasSwitch(switches::kEnableWebAnimationsSVG))
+ WebRuntimeFeatures::enableWebAnimationsSVG();
+
if (command_line.HasSwitch(switches::kEnableWebMIDI))
WebRuntimeFeatures::enableWebMIDI(true);
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698