Index: Source/WebCore/rendering/RenderThemeWinCE.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderThemeWinCE.cpp (revision 92737) |
+++ Source/WebCore/rendering/RenderThemeWinCE.cpp (working copy) |
@@ -479,7 +479,7 @@ |
if (!node) |
return 0; |
Node* mediaNode = node->shadowAncestorNode(); |
- if (!mediaNode || (!mediaNode->hasTagName(HTMLNames::videoTag) && !mediaNode->hasTagName(HTMLNames::audioTag))) |
+ if (!mediaNode || !mediaNode->isElementNode() || !static_cast<Element*>(mediaNode)->isMediaElement()) |
return 0; |
return static_cast<HTMLMediaElement*>(mediaNode); |