Unreviewed, rolling out r227437.
[WebKit-https.git] / Source / WebCore / page / DeprecatedGlobalSettings.cpp
index fa92e2e..269d93b 100644 (file)
@@ -46,6 +46,10 @@ bool DeprecatedGlobalSettings::gAVFoundationEnabled = true;
 bool DeprecatedGlobalSettings::gAVFoundationNSURLSessionEnabled = true;
 #endif
 
+#if PLATFORM(COCOA)
+bool DeprecatedGlobalSettings::gQTKitEnabled = false;
+#endif
+
 #if USE(GSTREAMER)
 bool DeprecatedGlobalSettings::gGStreamerEnabled = true;
 #endif
@@ -101,6 +105,17 @@ void DeprecatedGlobalSettings::setAVFoundationNSURLSessionEnabled(bool enabled)
 }
 #endif
 
+#if PLATFORM(COCOA)
+void DeprecatedGlobalSettings::setQTKitEnabled(bool enabled)
+{
+    if (gQTKitEnabled == enabled)
+        return;
+
+    gQTKitEnabled = enabled;
+    HTMLMediaElement::resetMediaEngines();
+}
+#endif
+
 #if USE(GSTREAMER)
 void DeprecatedGlobalSettings::setGStreamerEnabled(bool enabled)
 {