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

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

Issue 11635024: Merge 137939 (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 138187)
+++ Source/WebCore/dom/Node.cpp (working copy)
@@ -412,8 +412,13 @@
if (hasRareData())
clearRareData();
- if (hasEventTargetData())
+ if (hasEventTargetData()) {
+#if ENABLE(TOUCH_EVENT_TRACKING)
+ if (m_document)
+ m_document->didRemoveEventTargetNode(this);
+#endif
clearEventTargetData();
+ }
if (renderer())
detach();
@@ -2125,8 +2130,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();
- document()->didAddTouchEventHandler();
+ oldDocument->didRemoveTouchEventHandler(this);
+ document()->didAddTouchEventHandler(this);
}
}
@@ -2155,7 +2160,7 @@
if (eventType == eventNames().mousewheelEvent)
document->didAddWheelEventHandler();
else if (eventNames().isTouchEventType(eventType))
- document->didAddTouchEventHandler();
+ document->didAddTouchEventHandler(targetNode);
}
return true;
@@ -2177,7 +2182,7 @@
if (eventType == eventNames().mousewheelEvent)
document->didRemoveWheelEventHandler();
else if (eventNames().isTouchEventType(eventType))
- document->didRemoveTouchEventHandler();
+ document->didRemoveTouchEventHandler(targetNode);
}
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