Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index da1d48b4b68c77fd75ac2f50deae39f399b88d3a..b9265e8a47a49d2caba4740837823dd2df721132 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -1271,10 +1271,16 @@ unsigned Internals::scrollEventHandlerCount(Document* document) |
return eventHandlerCount(*document, EventHandlerRegistry::ScrollEvent); |
} |
-unsigned Internals::touchEventHandlerCount(Document* document) |
+unsigned Internals::touchStartOrMoveEventHandlerCount(Document* document) |
{ |
ASSERT(document); |
- return eventHandlerCount(*document, EventHandlerRegistry::TouchEventBlocking); |
+ return eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMoveEventBlocking) + eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMoveEventPassive); |
+} |
+ |
+unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) |
+{ |
+ ASSERT(document); |
+ return eventHandlerCount(*document, EventHandlerRegistry::TouchEndOrCancelEventBlocking) + eventHandlerCount(*document, EventHandlerRegistry::TouchEndOrCancelEventPassive); |
} |
static PaintLayer* findLayerForGraphicsLayer(PaintLayer* searchRoot, GraphicsLayer* graphicsLayer, IntSize* layerOffset, String* layerType) |