| Index: Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
|
| index cfb07c3d6bee971bd25d6e314ceadfb038495f74..2abdc36a09c964a95c2230743f09eb291c2339ff 100644
|
| --- a/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/Source/core/html/HTMLMediaElement.cpp
|
| @@ -4041,12 +4041,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);
|
| }
|
|
|
|
|