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

Unified Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 18854016: Add runtime flags for Web Animations CSS and SVG implementations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Turn on WebAnimations when WebAnimationsCSS/SVG is specified. Fix copy pasta. 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 | Source/core/page/RuntimeEnabledFeatures.in » ('j') | public/web/WebRuntimeFeatures.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
index a78ab0fced113bfdf6612958c757afec6db4d10b..9750015fddcef798d6c4fc71ed048024c3a12d43 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -331,6 +331,18 @@ bool WebRuntimeFeatures::isTouchEnabled()
return RuntimeEnabledFeatures::touchEnabled();
}
+void WebRuntimeFeatures::enableWebAnimationsCSS()
+{
+ RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
+ RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(true);
+}
+
+void WebRuntimeFeatures::enableWebAnimationsSVG()
+{
+ RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
+ RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(true);
+}
+
void WebRuntimeFeatures::enableWebAudio(bool enable)
{
RuntimeEnabledFeatures::setWebAudioEnabled(enable);
« no previous file with comments | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | public/web/WebRuntimeFeatures.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698