Add runtime and compile time flags for enabling Web Animations API and model.
[WebKit-https.git] / Source / WebCore / bindings / generic / RuntimeEnabledFeatures.cpp
index 5d4c8e3..6666331 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "DatabaseManager.h"
 #include "MediaPlayer.h"
-#include "SharedWorkerRepository.h"
 #include "WebSocket.h"
 #include <wtf/NeverDestroyed.h>
 
@@ -100,6 +99,12 @@ RuntimeEnabledFeatures::RuntimeEnabledFeatures()
 #if ENABLE(GAMEPAD)
     , m_areGamepadsEnabled(false)
 #endif
+#if ENABLE(CSS_ANIMATIONS_LEVEL_2)
+    , m_areAnimationTriggersEnabled(false)
+#endif
+#if ENABLE(WEB_ANIMATIONS)
+    , m_areWebAnimationsEnabled(false)
+#endif
 {
 }
 
@@ -159,13 +164,6 @@ bool RuntimeEnabledFeatures::timeRangesEnabled() const
 }
 #endif
 
-#if ENABLE(SHARED_WORKERS)
-bool RuntimeEnabledFeatures::sharedWorkerEnabled() const
-{
-    return SharedWorkerRepository::isAvailable();
-}
-#endif
-
 #if ENABLE(WEB_SOCKETS)
 bool RuntimeEnabledFeatures::webSocketEnabled() const
 {