Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 839293002: Revert of Re-enable the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/shadow/MediaControlElements.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/shadow/MediaControlElements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698