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