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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp

Issue 2382233002: Hide overflow menu/closed caption list when clicking outside the list (Closed)
Patch Set: applied Mounir's comments Created 4 years, 2 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
Index: third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
index 882892c1521e74d72b8ac14b68648c7c0a243a72..44579a22d2736ed2d2922586d9014f6bcac22e07 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
@@ -168,16 +168,6 @@ bool MediaControlInputElement::isMouseFocusable() const {
return false;
}
-void MediaControlInputElement::defaultEventHandler(Event* event) {
- // If the element is in the overflow menu, clicking should hide the menu.
- if (mediaControls().overflowMenuVisible() &&
- parentElement()->shadowPseudoId() ==
- AtomicString("-internal-media-controls-overflow-menu-list-item"))
- mediaControls().toggleOverflowMenu();
-
- HTMLInputElement::defaultEventHandler(event);
-}
-
HTMLElement* MediaControlInputElement::createOverflowElement(
MediaControls& mediaControls,
MediaControlInputElement* button) {

Powered by Google App Engine
This is Rietveld 408576698