Index: Source/core/input/EventHandler.cpp |
diff --git a/Source/core/input/EventHandler.cpp b/Source/core/input/EventHandler.cpp |
index 7a7ed83811585d1682b8cabd481973016ae35ecb..87ba338e3829f6360805bfff3cd45b3e2bc4a4d8 100644 |
--- a/Source/core/input/EventHandler.cpp |
+++ b/Source/core/input/EventHandler.cpp |
@@ -3871,7 +3871,11 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event) |
// 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->frame() |
+ || !m_touchSequenceDocument->frameHost() |
+ || !(m_touchSequenceDocument->frameHost()->eventHandlerRegistry().hasEventHandlers(EventHandlerRegistry::TouchEvent) |
+ || m_touchSequenceDocument->frameHost()->eventHandlerRegistry().hasEventHandlers(EventHandlerRegistry::TouchMoveEvent))) { |
if (allTouchReleased) { |
m_touchSequenceDocument.clear(); |
m_touchSequenceUserGestureToken.clear(); |