2009-02-02 Darin Adler <darin@apple.com>
[WebKit-https.git] / WebCore / dom / EventTargetNode.cpp
index ff0994e..c129ee2 100644 (file)
@@ -87,7 +87,7 @@ void EventTargetNode::insertedIntoDocument()
     if (!eventListeners().isEmpty())
         document()->unregisterDisconnectedNodeWithEventListeners(this);
 
-    Node::insertedIntoDocument();
+    setInDocument(true);
 }
 
 void EventTargetNode::removedFromDocument()
@@ -95,7 +95,7 @@ void EventTargetNode::removedFromDocument()
     if (!eventListeners().isEmpty())
         document()->registerDisconnectedNodeWithEventListeners(this);
 
-    Node::removedFromDocument();
+    setInDocument(false);
 }
 
 void EventTargetNode::willMoveToNewOwnerDocument()