| Index: Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
|
| index 447636ba56a17cc7e0bcae0a6463c44e579a7780..bca6511696ee6c0a9059c2c9cafe2b2b41cb9469 100644
|
| --- a/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/Source/core/html/HTMLMediaElement.cpp
|
| @@ -4025,12 +4025,24 @@ bool HTMLMediaElement::isInteractiveContent() const
|
| return fastHasAttribute(controlsAttr);
|
| }
|
|
|
| +bool HTMLMediaElement::willRespondToMouseClickEvents()
|
| +{
|
| + return fastHasAttribute(controlsAttr);
|
| +}
|
| +
|
| void HTMLMediaElement::defaultEventHandler(Event* event)
|
| {
|
| + if (event->type() == EventTypeNames::click && willRespondToMouseClickEvents()) {
|
| + togglePlayState();
|
| + event->setDefaultHandled();
|
| + return;
|
| + }
|
| +
|
| if (event->type() == EventTypeNames::focusin) {
|
| if (hasMediaControls())
|
| mediaControls()->mediaElementFocused();
|
| }
|
| +
|
| HTMLElement::defaultEventHandler(event);
|
| }
|
|
|
|
|