Chromium Code Reviews| Index: Source/core/html/shadow/MediaControls.cpp |
| diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp |
| index bd04ac6ae8d41c0d3a59898d537b5670bfb522cc..7ae18973a456859b155119d1727a9628efbe0301 100644 |
| --- a/Source/core/html/shadow/MediaControls.cpp |
| +++ b/Source/core/html/shadow/MediaControls.cpp |
| @@ -34,6 +34,7 @@ |
| #include "core/html/HTMLMediaElement.h" |
| #include "core/html/MediaController.h" |
| #include "core/layout/LayoutTheme.h" |
| +#include "core/page/EventHandler.h" |
| namespace blink { |
| @@ -441,6 +442,9 @@ void MediaControls::defaultEventHandler(Event* event) |
| m_wasLastEventTouch = event->isTouchEvent() || event->isGestureEvent() |
| || (event->isMouseEvent() && toMouseEvent(event)->fromTouch()); |
| + if (m_wasLastEventTouch && document().frame()) |
| + document().frame()->eventHandler().scheduleHoverStateUpdate(); |
|
philipj_slow
2015/02/05 08:14:32
Does this actually work? Is the problem that the h
|
| + |
| if (event->type() == EventTypeNames::mouseover) { |
| if (!containsRelatedTarget(event)) { |
| m_isMouseOverControls = true; |