Index: Source/WebCore/page/FrameView.cpp |
=================================================================== |
--- Source/WebCore/page/FrameView.cpp (revision 92737) |
+++ Source/WebCore/page/FrameView.cpp (working copy) |
@@ -2003,7 +2003,7 @@ |
static_cast<HTMLPlugInImageElement*>(ownerElement)->updateWidget(CreateAnyWidgetType); |
// FIXME: It is not clear that Media elements need or want this updateWidget() call. |
#if ENABLE(PLUGIN_PROXY_FOR_VIDEO) |
- else if (ownerElement->hasTagName(videoTag) || ownerElement->hasTagName(audioTag)) |
+ else if (ownerElement->isMediaElement()) |
static_cast<HTMLMediaElement*>(ownerElement)->updateWidget(CreateAnyWidgetType); |
#endif |
else |