| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 3a020fbd25abf59ff3d65be557aa0b1cd73ac7d9..3193f561c36e4327f7838766049a1633be92f5b4 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1279,14 +1279,7 @@ unsigned Internals::touchEventHandlerCount(Document* document, ExceptionState& e
|
| return 0;
|
| }
|
|
|
| - 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;
|
| + return eventHandlerCount(*document, EventHandlerRegistry::TouchEvent);
|
| }
|
|
|
| static RenderLayer* findRenderLayerForGraphicsLayer(RenderLayer* searchRoot, GraphicsLayer* graphicsLayer, IntSize* layerOffset, String* layerType)
|
|
|