Add runtime and compile time flags for enabling Web Animations API and model.
[WebKit-https.git] / Source / WebCore / bindings / generic / RuntimeEnabledFeatures.cpp
index 48003d3..6666331 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "DatabaseManager.h"
 #include "MediaPlayer.h"
-#include "SharedWorkerRepository.h"
 #include "WebSocket.h"
 #include <wtf/NeverDestroyed.h>
 
@@ -60,9 +59,6 @@ RuntimeEnabledFeatures::RuntimeEnabledFeatures()
 #else
     , m_isPluginReplacementEnabled(false)
 #endif
-#if ENABLE(SCRIPTED_SPEECH)
-    , m_isScriptedSpeechEnabled(false)
-#endif
 #if ENABLE(MEDIA_STREAM)
     , m_isMediaStreamEnabled(true)
     , m_isPeerConnectionEnabled(true)
@@ -98,11 +94,17 @@ RuntimeEnabledFeatures::RuntimeEnabledFeatures()
     , m_areExperimentalContentSecurityPolicyFeaturesEnabled(false)
 #endif
 #if ENABLE(FONT_LOAD_EVENTS)
-    , m_isFontLoadEventsEnabled(false)
+    , m_isFontLoadEventsEnabled(true)
 #endif
 #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
 {
 }
 
@@ -162,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
 {