Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 60159e585cb995e6ee9840608e2c0f1a45260411..3b25217c8ab72e32c4001dc413cf187da6d8b4a2 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -56,7 +56,6 @@ |
#include "core/dom/DocumentMarker.h" |
#include "core/dom/DocumentMarkerController.h" |
#include "core/dom/Element.h" |
-#include "core/dom/EventHandlerRegistry.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/FullscreenElementStack.h" |
#include "core/dom/NodeRenderStyle.h" |
@@ -105,6 +104,7 @@ |
#include "core/page/Chrome.h" |
#include "core/page/ChromeClient.h" |
#include "core/page/EventHandler.h" |
+#include "core/page/EventHandlerRegistry.h" |
#include "core/page/Page.h" |
#include "core/page/PagePopupController.h" |
#include "core/page/PrintContext.h" |
@@ -1260,7 +1260,7 @@ unsigned Internals::activeDOMObjectCount(Document* document, ExceptionState& exc |
static unsigned eventHandlerCount(Document& document, EventHandlerRegistry::EventHandlerClass handlerClass) |
{ |
- EventHandlerRegistry* registry = EventHandlerRegistry::from(document); |
+ EventHandlerRegistry* registry = EventHandlerRegistry::from(*document.page()); |
unsigned count = 0; |
const EventTargetSet* targets = registry->eventHandlerTargets(handlerClass); |
if (targets) { |