Chromium Code Reviews| Index: sky/engine/core/page/EventHandler.cpp |
| diff --git a/sky/engine/core/page/EventHandler.cpp b/sky/engine/core/page/EventHandler.cpp |
| index 6aff760bbb04c8e243a15d82d0af4f0a4815d833..9f20e8475e1cc23e751048a9ff857c0ce4ba5ddb 100644 |
| --- a/sky/engine/core/page/EventHandler.cpp |
| +++ b/sky/engine/core/page/EventHandler.cpp |
| @@ -47,7 +47,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" |
| @@ -2509,10 +2508,9 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event) |
| m_touchPressed = !allTouchReleased; |
| - // 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 there's no document receiving touch events, then we can skip all the |
| + // rest of this work. |
| + if (!m_touchSequenceDocument || !m_touchSequenceDocument->frame()) { |
|
rafaelw
2014/11/10 20:31:21
PTAL
abarth-chromium
2014/11/10 21:03:42
Yep
|
| if (allTouchReleased) { |
| m_touchSequenceDocument.clear(); |
| m_touchSequenceUserGestureToken.clear(); |