Index: Source/WebCore/dom/Node.cpp |
=================================================================== |
--- Source/WebCore/dom/Node.cpp (revision 138019) |
+++ Source/WebCore/dom/Node.cpp (working copy) |
@@ -412,13 +412,8 @@ |
if (hasRareData()) |
clearRareData(); |
- if (hasEventTargetData()) { |
-#if ENABLE(TOUCH_EVENT_TRACKING) |
- if (m_document) |
- m_document->didRemoveEventTargetNode(this); |
-#endif |
+ if (hasEventTargetData()) |
clearEventTargetData(); |
- } |
if (renderer()) |
detach(); |
@@ -2130,8 +2125,8 @@ |
for (size_t i = 0; i < touchEventNames.size(); ++i) { |
const EventListenerVector& listeners = getEventListeners(touchEventNames[i]); |
for (size_t j = 0; j < listeners.size(); ++j) { |
- oldDocument->didRemoveTouchEventHandler(this); |
- document()->didAddTouchEventHandler(this); |
+ oldDocument->didRemoveTouchEventHandler(); |
+ document()->didAddTouchEventHandler(); |
} |
} |
@@ -2160,7 +2155,7 @@ |
if (eventType == eventNames().mousewheelEvent) |
document->didAddWheelEventHandler(); |
else if (eventNames().isTouchEventType(eventType)) |
- document->didAddTouchEventHandler(targetNode); |
+ document->didAddTouchEventHandler(); |
} |
return true; |
@@ -2182,7 +2177,7 @@ |
if (eventType == eventNames().mousewheelEvent) |
document->didRemoveWheelEventHandler(); |
else if (eventNames().isTouchEventType(eventType)) |
- document->didRemoveTouchEventHandler(targetNode); |
+ document->didRemoveTouchEventHandler(); |
} |
return true; |