Index: Source/WebCore/rendering/RenderThemeMac.mm |
=================================================================== |
--- Source/WebCore/rendering/RenderThemeMac.mm (revision 92737) |
+++ Source/WebCore/rendering/RenderThemeMac.mm (working copy) |
@@ -1792,7 +1792,7 @@ |
{ |
Node* node = o->node(); |
Node* mediaNode = node ? node->shadowAncestorNode() : 0; |
- if (!mediaNode || (!mediaNode->hasTagName(videoTag) && !mediaNode->hasTagName(audioTag))) |
+ if (!mediaNode || !mediaNode->isElementNode() || !static_cast<Element*>(mediaNode)->isMediaElement()) |
return false; |
HTMLMediaElement* mediaElement = static_cast<HTMLMediaElement*>(mediaNode); |