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

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

Issue 1055683003: (NOT FOR REVIEW) Distinguish between touch and touchmove handler presence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix loading Created 5 years, 3 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 9694b94df8c122495db4c659ab1452c33863f81f..121dfc69e6f5e34b96ea1d98c1c4e31af0e72b0e 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1248,7 +1248,7 @@ unsigned Internals::scrollEventHandlerCount(Document* document)
unsigned Internals::touchEventHandlerCount(Document* document)
{
ASSERT(document);
- return eventHandlerCount(*document, EventHandlerRegistry::TouchEvent);
+ return eventHandlerCount(*document, EventHandlerRegistry::TouchEvent) + eventHandlerCount(*document, EventHandlerRegistry::TouchMoveEvent);
}
static DeprecatedPaintLayer* findLayerForGraphicsLayer(DeprecatedPaintLayer* searchRoot, GraphicsLayer* graphicsLayer, IntSize* layerOffset, String* layerType)

Powered by Google App Engine
This is Rietveld 408576698