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

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

Issue 391483002: Revert 177812 "Migrate touch events to EventHandlerRegistry" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 5 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
« no previous file with comments | « trunk/Source/core/rendering/RenderObject.cpp ('k') | trunk/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/testing/Internals.cpp
===================================================================
--- trunk/Source/core/testing/Internals.cpp (revision 177995)
+++ trunk/Source/core/testing/Internals.cpp (working copy)
@@ -1310,7 +1310,14 @@
return 0;
}
- return eventHandlerCount(*document, EventHandlerRegistry::TouchEvent);
+ const TouchEventTargetSet* touchHandlers = document->touchEventTargets();
+ if (!touchHandlers)
+ return 0;
+
+ unsigned count = 0;
+ for (TouchEventTargetSet::const_iterator iter = touchHandlers->begin(); iter != touchHandlers->end(); ++iter)
+ count += iter->value;
+ return count;
}
static RenderLayer* findRenderLayerForGraphicsLayer(RenderLayer* searchRoot, GraphicsLayer* graphicsLayer, IntSize* layerOffset, String* layerType)
« no previous file with comments | « trunk/Source/core/rendering/RenderObject.cpp ('k') | trunk/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698