Index: sky/engine/core/dom/Node.cpp |
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp |
index 4e75b3c9a2a684b860df22515520796c10ff1ce5..ca66bb24cfb77243fe14ff75790e4dfe95863bea 100644 |
--- a/sky/engine/core/dom/Node.cpp |
+++ b/sky/engine/core/dom/Node.cpp |
@@ -62,7 +62,6 @@ |
#include "sky/engine/core/events/GestureEvent.h" |
#include "sky/engine/core/events/KeyboardEvent.h" |
#include "sky/engine/core/events/TextEvent.h" |
-#include "sky/engine/core/events/TouchEvent.h" |
#include "sky/engine/core/events/UIEvent.h" |
#include "sky/engine/core/frame/LocalFrame.h" |
#include "sky/engine/core/frame/Settings.h" |
@@ -1453,8 +1452,6 @@ void Node::dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator> |
bool Node::dispatchEvent(PassRefPtr<Event> event) |
{ |
- if (event->isTouchEvent()) |
- return dispatchTouchEvent(static_pointer_cast<TouchEvent>(event)); |
return EventDispatcher::dispatchEvent(this, EventDispatchMediator::create(event)); |
} |
@@ -1480,11 +1477,6 @@ bool Node::dispatchGestureEvent(const PlatformGestureEvent& event) |
return EventDispatcher::dispatchEvent(this, GestureEventDispatchMediator::create(gestureEvent)); |
} |
-bool Node::dispatchTouchEvent(PassRefPtr<TouchEvent> event) |
-{ |
- return EventDispatcher::dispatchEvent(this, TouchEventDispatchMediator::create(event)); |
-} |
- |
void Node::dispatchInputEvent() |
{ |
dispatchScopedEvent(Event::createBubble(EventTypeNames::input)); |
@@ -1524,11 +1516,6 @@ bool Node::willRespondToMouseClickEvents() |
return isContentEditable(UserSelectAllIsAlwaysNonEditable) || hasEventListeners(EventTypeNames::mouseup) || hasEventListeners(EventTypeNames::mousedown) || hasEventListeners(EventTypeNames::click) || hasEventListeners(EventTypeNames::DOMActivate); |
} |
-bool Node::willRespondToTouchEvents() |
-{ |
- return hasEventListeners(EventTypeNames::touchstart) || hasEventListeners(EventTypeNames::touchmove) || hasEventListeners(EventTypeNames::touchcancel) || hasEventListeners(EventTypeNames::touchend); |
-} |
- |
#if !ENABLE(OILPAN) |
// This is here for inlining |
inline void TreeScope::removedLastRefToScope() |