Index: Source/WebCore/platform/efl/RenderThemeEfl.cpp |
=================================================================== |
--- Source/WebCore/platform/efl/RenderThemeEfl.cpp (revision 101562) |
+++ Source/WebCore/platform/efl/RenderThemeEfl.cpp (working copy) |
@@ -1202,8 +1202,7 @@ |
if (!node || !node->isMediaControlElement()) |
return false; |
- MediaControlPlayButtonElement* button = static_cast<MediaControlPlayButtonElement*>(node); |
- if (!emitMediaButtonSignal(PlayPauseButton, button->displayType(), rect)) |
+ if (!emitMediaButtonSignal(PlayPauseButton, mediaControlElementType(node), rect)) |
return false; |
return paintThemePart(object, PlayPauseButton, info, rect); |
@@ -1215,8 +1214,7 @@ |
if (!node || !node->isMediaControlElement()) |
return 0; |
- MediaControlSeekButtonElement* button = static_cast<MediaControlSeekButtonElement*>(node); |
- if (!emitMediaButtonSignal(SeekBackwardButton, button->displayType(), rect)) |
+ if (!emitMediaButtonSignal(SeekBackwardButton, mediaControlElementType(node), rect)) |
return false; |
return paintThemePart(object, SeekBackwardButton, info, rect); |
@@ -1228,8 +1226,7 @@ |
if (!node || !node->isMediaControlElement()) |
return 0; |
- MediaControlSeekButtonElement* button = static_cast<MediaControlSeekButtonElement*>(node); |
- if (!emitMediaButtonSignal(SeekForwardButton, button->displayType(), rect)) |
+ if (!emitMediaButtonSignal(SeekForwardButton, mediaControlElementType(node), rect)) |
return false; |
return paintThemePart(object, SeekForwardButton, info, rect); |