| Index: third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp
|
| index 910c773a9f5d04904e4f5a918dc860a09c00eb19..f971c9f0841175adf5bb766edf00f3317c55b17f 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp
|
| @@ -6,7 +6,8 @@
|
|
|
| #include "core/events/Event.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| -#include "core/html/shadow/MediaControls.h"
|
| +#include "core/html/media/MediaControls.h"
|
| +#include "core/html/shadow/MediaControlElements.h"
|
|
|
| namespace blink {
|
|
|
| @@ -49,7 +50,7 @@ void MediaControlsWindowEventListener::start() {
|
| if (m_isActive)
|
| return;
|
|
|
| - if (LocalDOMWindow* window = m_mediaControls->document().domWindow()) {
|
| + if (LocalDOMWindow* window = m_mediaControls->ownerDocument().domWindow()) {
|
| window->addEventListener(EventTypeNames::click, this, true);
|
|
|
| if (LocalDOMWindow* outerWindow = getTopLocalDOMWindow(window)) {
|
| @@ -75,7 +76,7 @@ void MediaControlsWindowEventListener::stop() {
|
| if (!m_isActive)
|
| return;
|
|
|
| - if (LocalDOMWindow* window = m_mediaControls->document().domWindow()) {
|
| + if (LocalDOMWindow* window = m_mediaControls->ownerDocument().domWindow()) {
|
| window->removeEventListener(EventTypeNames::click, this, true);
|
|
|
| if (LocalDOMWindow* outerWindow = getTopLocalDOMWindow(window)) {
|
|
|