Index: Source/core/html/shadow/MediaControlElements.cpp |
diff --git a/Source/core/html/shadow/MediaControlElements.cpp b/Source/core/html/shadow/MediaControlElements.cpp |
index d2134d06bcc402957804b83bddf925c4c616421a..ca24c9cb9d088bd44d8f96862321b3a964f2ff93 100644 |
--- a/Source/core/html/shadow/MediaControlElements.cpp |
+++ b/Source/core/html/shadow/MediaControlElements.cpp |
@@ -271,6 +271,15 @@ PassRefPtr<MediaControlOverlayPlayButtonElement> MediaControlOverlayPlayButtonEl |
return button.release(); |
} |
+void MediaControlOverlayPlayButtonElement::defaultEventHandler(Event* event) |
+{ |
+ if (event->type() == EventTypeNames::click && mediaElement().togglePlayStateWillPlay()) { |
+ mediaElement().togglePlayState(); |
+ updateDisplayType(); |
+ event->setDefaultHandled(); |
+ } |
+} |
+ |
void MediaControlOverlayPlayButtonElement::updateDisplayType() |
{ |
if (mediaElement().togglePlayStateWillPlay()) { |