Index: third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
diff --git a/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp b/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
index cc50258b41815fd13a98fd5038d342124019d990..d44eab531d10cfaa686e46d3a81cb71288d24b80 100644 |
--- a/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
+++ b/third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp |
@@ -6,17 +6,16 @@ |
#include "core/dom/Document.h" |
#include "core/events/Event.h" |
-#include "core/frame/LocalDOMWindow.h" |
#include "core/page/Page.h" |
namespace blink { |
DeviceSingleWindowEventController::DeviceSingleWindowEventController(Document& document) |
: PlatformEventController(document.page()) |
- , DOMWindowLifecycleObserver(document.domWindow()) |
, m_needsCheckingNullEvents(true) |
, m_document(document) |
{ |
+ document.domWindow()->registerEventListenerObserver(this); |
} |
DeviceSingleWindowEventController::~DeviceSingleWindowEventController() |
@@ -73,7 +72,6 @@ DEFINE_TRACE(DeviceSingleWindowEventController) |
{ |
visitor->trace(m_document); |
PlatformEventController::trace(visitor); |
- DOMWindowLifecycleObserver::trace(visitor); |
} |
} // namespace blink |