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..e11cf5e919648ed65a6a2aab52165606a410e250 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 { |
| @@ -273,6 +274,9 @@ void MediaControls::playbackProgressed() |
| m_timeline->setPosition(mediaElement().currentTime()); |
| updateCurrentTimeDisplay(); |
| + if (m_panel->isOpaque() && document().frame()) |
| + document().frame()->eventHandler().scheduleHoverStateUpdate(); |
|
fs
2015/02/02 15:22:28
Did you consider doing something like:
unsigned b
|
| + |
| if (shouldHideMediaControls()) |
| makeTransparent(); |
| } |