HTMLElement factory doesn't need to call MediaPlayer::isAvailable
[WebKit-https.git] / Source / WebCore / dom / make_names.pl
index 1b30002..b1e76cf 100755 (executable)
@@ -412,7 +412,7 @@ sub printConstructorInterior
     # instead of having all the support for this here in this script?
     if ($enabledTags{$tagName}{wrapperOnlyIfMediaIsAvailable}) {
         print F <<END
-    if (!MediaPlayer::isAvailable() || !document.settings().mediaEnabled())
+    if (!document.settings().mediaEnabled())
         return $parameters{fallbackInterfaceName}::create($constructorTagName, document);
     
 END