Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1573)

Unified Diff: Source/core/testing/Internals.cpp

Issue 225823007: Migrate wheel events to EventHandlerRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 7624d3559af7110298088b32ffbb7c45a4b3c7b2..54604b5ab3ae2fac0a8ccd35b5f9b4ce700373c5 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -64,7 +64,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"
@@ -1253,7 +1252,7 @@ static unsigned eventHandlerCount(Document& document, EventHandlerRegistry::Even
if (!document.frameHost())
return 0;
EventHandlerRegistry* registry = &document.frameHost()->eventHandlerRegistry();
- unsigned count = 0;
+ unsigned count = registry->externalEventHandlerCount(handlerClass);
const EventTargetSet* targets = registry->eventHandlerTargets(handlerClass);
if (targets) {
for (EventTargetSet::const_iterator iter = targets->begin(); iter != targets->end(); ++iter)
@@ -1269,7 +1268,7 @@ unsigned Internals::wheelEventHandlerCount(Document* document, ExceptionState& e
return 0;
}
- return WheelController::from(*document)->wheelEventHandlerCount();
+ return eventHandlerCount(*document, EventHandlerRegistry::WheelEvent);
}
unsigned Internals::scrollEventHandlerCount(Document* document, ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698