Reviewed by Darin.
[WebKit-https.git] / WebCore / khtml / xml / dom_docimpl.h
index b4d159e3390e57849f58994805a8bb38474f0b74..c54bcf253b061624042ab69fd37f8116537f812a 100644 (file)
@@ -702,6 +702,8 @@ protected:
 
     DOMString m_policyBaseURL;
 
+    QPtrDict<NodeImpl> m_disconnectedNodesWithEventListeners;
+
 #if APPLE_CHANGES
 public:
     KWQSignal m_finishedParsing;
@@ -733,7 +735,14 @@ public:
     const QValueList<khtml::DashboardRegionValue> & dashboardRegions() const;
     void setDashboardRegions (const QValueList<khtml::DashboardRegionValue>& regions);
     
+    void removeAllEventListenersFromAllNodes();
+
+    void registerDisconnectedNodeWithEventListeners(NodeImpl *node);
+    void unregisterDisconnectedNodeWithEventListeners(NodeImpl *node);
+
 private:
+    void removeAllDisconnectedNodeEventListeners();
+
     JSEditor *jsEditor();
 
     JSEditor *m_jsEditor;