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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 66023004: Allow Web Animations flags to be turned off as well as on (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebRuntimeFeatures.cpp
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp
index 10f809c75d77b6757fafeba38a7fb68f34ef5217..ba7bf85ee4ba0cfa47389370266b11bcae84d6e0 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -349,16 +349,16 @@ bool WebRuntimeFeatures::isTouchEnabled()
return RuntimeEnabledFeatures::touchEnabled();
}
-void WebRuntimeFeatures::enableWebAnimationsCSS()
+void WebRuntimeFeatures::enableWebAnimationsCSS(bool enable)
{
- RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
- RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(true);
+ RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeatures::webAnimationsSVGEnabled());
+ RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(enable);
}
-void WebRuntimeFeatures::enableWebAnimationsSVG()
+void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable)
{
- RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
- RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(true);
+ RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeatures::webAnimationsCSSEnabled());
+ RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable);
}
void WebRuntimeFeatures::enableWebAudio(bool enable)
« no previous file with comments | « no previous file | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698