Add runtime and compile time flags for enabling Web Animations API and model.
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / C / WKPreferences.cpp
index 7ff030f..b03e580 100644 (file)
@@ -489,6 +489,16 @@ bool WKPreferencesGetCSSAnimationTriggersEnabled(WKPreferencesRef preferencesRef
     return toImpl(preferencesRef)->cssAnimationTriggersEnabled();
 }
 
+void WKPreferencesSetWebAnimationsEnabled(WKPreferencesRef preferencesRef, bool flag)
+{
+    toImpl(preferencesRef)->setWebAnimationsEnabled(flag);
+}
+
+bool WKPreferencesGetWebAnimationsEnabled(WKPreferencesRef preferencesRef)
+{
+    return toImpl(preferencesRef)->webAnimationsEnabled();
+}
+
 void WKPreferencesSetCSSRegionsEnabled(WKPreferencesRef preferencesRef, bool flag)
 {
     toImpl(preferencesRef)->setCSSRegionsEnabled(flag);