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

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

Issue 392283002: Always remove registered handlers for deleted node (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clarifying comment. Created 6 years, 5 months 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 | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index e2e44c35e4b1dd0aa0792e159b82472828d0e074..e21c71738bd817a829b5d6885e5b9894c196aae9 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -330,10 +330,11 @@ void Node::willBeDeletedFromDocument()
if (hasEventTargetData()) {
clearEventTargetData();
document.didClearTouchEventHandlers(this);
- if (document.frameHost())
- document.frameHost()->eventHandlerRegistry().didRemoveAllEventHandlers(*this);
}
+ if (document.frameHost())
+ document.frameHost()->eventHandlerRegistry().didRemoveAllEventHandlers(*this);
+
if (AXObjectCache* cache = document.existingAXObjectCache())
cache->remove(this);
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698