| 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 c04fa5c4bbb02df540152001fdce0ba31dd6b694..a234fe80bedfdc2425c2c3053c3875714d88c8f0 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
|
| @@ -182,6 +182,15 @@ 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)
|
| {
|
| if (!button)
|
|
|