Index: trunk/Source/core/page/EventHandler.cpp |
=================================================================== |
--- trunk/Source/core/page/EventHandler.cpp (revision 177995) |
+++ trunk/Source/core/page/EventHandler.cpp (working copy) |
@@ -51,7 +51,6 @@ |
#include "core/events/TouchEvent.h" |
#include "core/events/WheelEvent.h" |
#include "core/fetch/ImageResource.h" |
-#include "core/frame/EventHandlerRegistry.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/LocalFrame.h" |
#include "core/frame/Settings.h" |
@@ -3545,7 +3544,7 @@ |
// If there's no document receiving touch events, or no handlers on the |
// document set to receive the events, then we can skip all the rest of |
// this work. |
- if (!m_touchSequenceDocument || !m_touchSequenceDocument->frameHost() || !m_touchSequenceDocument->frameHost()->eventHandlerRegistry().hasEventHandlers(EventHandlerRegistry::TouchEvent) || !m_touchSequenceDocument->frame()) { |
+ if (!m_touchSequenceDocument || !m_touchSequenceDocument->hasTouchEventHandlers() || !m_touchSequenceDocument->frame()) { |
if (allTouchReleased) { |
m_touchSequenceDocument.clear(); |
m_touchSequenceUserGestureToken.clear(); |