| Index: Source/core/html/shadow/MediaControlElements.cpp
|
| diff --git a/Source/core/html/shadow/MediaControlElements.cpp b/Source/core/html/shadow/MediaControlElements.cpp
|
| index 967f8e3925e82adf9852c07addd24ae903f9f7e1..a9c1640aedebaf0e8fa83a3f951d0102f9a11d0d 100644
|
| --- a/Source/core/html/shadow/MediaControlElements.cpp
|
| +++ b/Source/core/html/shadow/MediaControlElements.cpp
|
| @@ -311,6 +311,15 @@
|
| 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().shouldShowControls() && mediaElement().togglePlayStateWillPlay())
|
|
|