Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 5ba85e137c74ce44d20b5837e47c42632839f99e..e10e7b4572a1b846dc2240155736e4ae23d7afa6 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -57,6 +57,7 @@ |
#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" |
@@ -65,7 +66,6 @@ |
#include "core/dom/StaticNodeList.h" |
#include "core/dom/TreeScope.h" |
#include "core/dom/ViewportDescription.h" |
-#include "core/dom/WheelController.h" |
#include "core/dom/shadow/ComposedTreeWalker.h" |
#include "core/dom/shadow/ElementShadow.h" |
#include "core/dom/shadow/SelectRuleFeatureSet.h" |
@@ -1284,7 +1284,17 @@ unsigned Internals::wheelEventHandlerCount(Document* document, ExceptionState& e |
return 0; |
} |
- return WheelController::from(*document)->wheelEventHandlerCount(); |
+ return EventHandlerRegistry::from(*document)->wheelEventHandlerCount(); |
+} |
+ |
+unsigned Internals::scrollEventHandlerCount(Document* document, ExceptionState& exceptionState) |
+{ |
+ if (!document) { |
+ exceptionState.throwDOMException(InvalidAccessError, "No context document is available."); |
+ return 0; |
+ } |
+ |
+ return EventHandlerRegistry::from(*document)->scrollEventHandlerCount(); |
} |
unsigned Internals::touchEventHandlerCount(Document* document, ExceptionState& exceptionState) |