Index: Source/WebCore/platform/efl/RenderThemeEfl.cpp |
=================================================================== |
--- Source/WebCore/platform/efl/RenderThemeEfl.cpp (revision 92737) |
+++ Source/WebCore/platform/efl/RenderThemeEfl.cpp (working copy) |
@@ -1160,7 +1160,7 @@ |
bool RenderThemeEfl::paintMediaMuteButton(RenderObject* object, const PaintInfo& info, const IntRect& rect) |
{ |
Node* mediaNode = object->node() ? object->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); |