Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index a1b315ee13a62c73184a708751cb011486d4e3e4..0797ebd9c0d780386fd7ca006c16fd7d43ea377a 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -2207,7 +2207,6 @@ bool HTMLMediaElement::togglePlayStateWillPlay() const |
void HTMLMediaElement::togglePlayState() |
{ |
- // The activation behavior of a media element that is exposing a user interface to the user |
if (m_mediaController) { |
if (m_mediaController->isRestrained()) |
m_mediaController->play(); |
@@ -3403,11 +3402,6 @@ void HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured() |
configureTextTracks(); |
} |
-bool HTMLMediaElement::willRespondToMouseClickEvents() |
-{ |
- return controls(); |
-} |
- |
void* HTMLMediaElement::preDispatchEventHandler(Event* event) |
{ |
if (event && event->type() == EventTypeNames::webkitfullscreenchange) |
@@ -3416,16 +3410,6 @@ void* HTMLMediaElement::preDispatchEventHandler(Event* event) |
return 0; |
} |
-void HTMLMediaElement::defaultEventHandler(Event* event) |
-{ |
- if (event->type() == EventTypeNames::click && willRespondToMouseClickEvents()) { |
- togglePlayState(); |
- event->setDefaultHandled(); |
- return; |
- } |
- HTMLElement::defaultEventHandler(event); |
-} |
- |
void HTMLMediaElement::createMediaPlayer() |
{ |
#if ENABLE(WEB_AUDIO) |