Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(962)

Unified Diff: Source/WebCore/dom/Node.cpp

Issue 11644037: Revert 138188 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/history/CachedFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/Node.cpp
===================================================================
--- Source/WebCore/dom/Node.cpp (revision 138208)
+++ 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;
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/history/CachedFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698