diff options
Diffstat (limited to 'Source/WebCore/platform/efl/RenderThemeEfl.cpp')
-rw-r--r-- | Source/WebCore/platform/efl/RenderThemeEfl.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebCore/platform/efl/RenderThemeEfl.cpp b/Source/WebCore/platform/efl/RenderThemeEfl.cpp index e5784af03..b466cbf0f 100644 --- a/Source/WebCore/platform/efl/RenderThemeEfl.cpp +++ b/Source/WebCore/platform/efl/RenderThemeEfl.cpp @@ -1105,7 +1105,9 @@ String RenderThemeEfl::formatMediaControlsCurrentTime(float currentTime, float d bool RenderThemeEfl::paintMediaFullscreenButton(RenderObject* object, const PaintInfo& info, const IntRect& rect) { - Node* mediaNode = object->node() ? object->node()->shadowAncestorNode() : 0; + Node* mediaNode = object->node() ? object->node()->shadowHost() : 0; + if (!mediaNode) + mediaNode = object->node(); if (!mediaNode || (!mediaNode->hasTagName(videoTag))) return false; @@ -1117,7 +1119,9 @@ bool RenderThemeEfl::paintMediaFullscreenButton(RenderObject* object, const Pain bool RenderThemeEfl::paintMediaMuteButton(RenderObject* object, const PaintInfo& info, const IntRect& rect) { - Node* mediaNode = object->node() ? object->node()->shadowAncestorNode() : 0; + Node* mediaNode = object->node() ? object->node()->shadowHost() : 0; + if (!mediaNode) + mediaNode = object->node(); if (!mediaNode || !mediaNode->isElementNode() || !static_cast<Element*>(mediaNode)->isMediaElement()) return false; |