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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2585353002: Detach Event Listener Properties before moving Node. (Closed)
Patch Set: Use oldDocument instead of node's document() when deregistering event handlers. Created 3 years, 11 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
Index: third_party/WebKit/Source/core/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index 8725bf275c9008b7177b6b66618e33d8a940b2e8..87fa89f1e2c48320d917c3ce731a759a3f239697 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -867,6 +867,7 @@ class CORE_EXPORT Node : public EventTarget {
Node(TreeScope*, ConstructionType);
+ virtual void willMoveToNewDocument(Document& oldDocument);
virtual void didMoveToNewDocument(Document& oldDocument);
void addedEventListener(const AtomicString& eventType,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | third_party/WebKit/Source/core/dom/TreeScopeAdopter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698