Add runtime and compile time flags for enabling Web Animations API and model.
[WebKit-https.git] / Source / WebCore / bindings / generic / RuntimeEnabledFeatures.h
index b9e643f..203144e 100644 (file)
@@ -201,6 +201,11 @@ public:
     bool animationTriggersEnabled() const { return m_areAnimationTriggersEnabled; }
 #endif
 
+#if ENABLE(WEB_ANIMATIONS)
+    void setWebAnimationsEnabled(bool areEnabled) { m_areWebAnimationsEnabled = areEnabled; }
+    bool webAnimationsEnabled() const { return m_areWebAnimationsEnabled; }
+#endif
+
     WEBCORE_EXPORT static RuntimeEnabledFeatures& sharedFeatures();
 
 private:
@@ -280,6 +285,10 @@ private:
     bool m_areAnimationTriggersEnabled;
 #endif
 
+#if ENABLE(WEB_ANIMATIONS)
+    bool m_areWebAnimationsEnabled;
+#endif
+
     friend class WTF::NeverDestroyed<RuntimeEnabledFeatures>;
 };