| Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
|
| index 98196c1bdb4c979ce8cd17657584bf909f4c3015..8abd84b258199c91dc3f920ced137688a0319299 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
|
| @@ -397,7 +397,7 @@ void MediaControlTimelineElement::defaultEventHandler(Event* event)
|
| if (event->isMouseEvent() && toMouseEvent(event)->button() != LeftButton)
|
| return;
|
|
|
| - if (!inDocument() || !document().isActive())
|
| + if (!inShadowIncludingDocument() || !document().isActive())
|
| return;
|
|
|
| if (event->type() == EventTypeNames::mousedown)
|
| @@ -426,7 +426,7 @@ void MediaControlTimelineElement::defaultEventHandler(Event* event)
|
|
|
| bool MediaControlTimelineElement::willRespondToMouseClickEvents()
|
| {
|
| - return inDocument() && document().isActive();
|
| + return inShadowIncludingDocument() && document().isActive();
|
| }
|
|
|
| void MediaControlTimelineElement::setPosition(double currentTime)
|
| @@ -473,7 +473,7 @@ void MediaControlVolumeSliderElement::defaultEventHandler(Event* event)
|
| if (event->isMouseEvent() && toMouseEvent(event)->button() != LeftButton)
|
| return;
|
|
|
| - if (!inDocument() || !document().isActive())
|
| + if (!inShadowIncludingDocument() || !document().isActive())
|
| return;
|
|
|
| MediaControlInputElement::defaultEventHandler(event);
|
| @@ -488,7 +488,7 @@ void MediaControlVolumeSliderElement::defaultEventHandler(Event* event)
|
|
|
| bool MediaControlVolumeSliderElement::willRespondToMouseMoveEvents()
|
| {
|
| - if (!inDocument() || !document().isActive())
|
| + if (!inShadowIncludingDocument() || !document().isActive())
|
| return false;
|
|
|
| return MediaControlInputElement::willRespondToMouseMoveEvents();
|
| @@ -496,7 +496,7 @@ bool MediaControlVolumeSliderElement::willRespondToMouseMoveEvents()
|
|
|
| bool MediaControlVolumeSliderElement::willRespondToMouseClickEvents()
|
| {
|
| - if (!inDocument() || !document().isActive())
|
| + if (!inShadowIncludingDocument() || !document().isActive())
|
| return false;
|
|
|
| return MediaControlInputElement::willRespondToMouseClickEvents();
|
|
|