| Index: Source/WebCore/platform/gtk/RenderThemeGtk.cpp
|
| ===================================================================
|
| --- Source/WebCore/platform/gtk/RenderThemeGtk.cpp (revision 92737)
|
| +++ Source/WebCore/platform/gtk/RenderThemeGtk.cpp (working copy)
|
| @@ -64,7 +64,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 0;
|
|
|
| return static_cast<HTMLMediaElement*>(mediaNode);
|
|
|