Reviewed by Anders Carlsson.
Bug 23694: REGRESSION: Running svg/custom tests crashes, randomly, depending on the order of tests
https://bugs.webkit.org/show_bug.cgi?id=23694
* dom/ContainerNode.cpp:
(WebCore::ContainerNode::insertedIntoDocument): Added back the call through to EventTargetNode.
(WebCore::ContainerNode::removedFromDocument): Ditto.
* dom/EventTargetNode.cpp:
(WebCore::EventTargetNode::insertedIntoDocument): Changed this to not call through to Node.
(WebCore::EventTargetNode::removedFromDocument): Ditto.
* dom/Node.cpp:
(WebCore::Node::insertedIntoDocument): Updated comment.
(WebCore::Node::removedFromDocument): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40499
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-02-02 Darin Adler <darin@apple.com>
+
+ Reviewed by Anders Carlsson.
+
+ Bug 23694: REGRESSION: Running svg/custom tests crashes, randomly, depending on the order of tests
+ https://bugs.webkit.org/show_bug.cgi?id=23694
+
+ * dom/ContainerNode.cpp:
+ (WebCore::ContainerNode::insertedIntoDocument): Added back the call through to EventTargetNode.
+ (WebCore::ContainerNode::removedFromDocument): Ditto.
+ * dom/EventTargetNode.cpp:
+ (WebCore::EventTargetNode::insertedIntoDocument): Changed this to not call through to Node.
+ (WebCore::EventTargetNode::removedFromDocument): Ditto.
+ * dom/Node.cpp:
+ (WebCore::Node::insertedIntoDocument): Updated comment.
+ (WebCore::Node::removedFromDocument): Ditto.
+
2009-02-02 Anders Carlsson <andersca@apple.com>
Reviewed by Dan Bernstein.
void ContainerNode::insertedIntoDocument()
{
- setInDocument(true);
+ EventTargetNode::insertedIntoDocument();
insertedIntoTree(false);
for (Node* child = m_firstChild; child; child = child->nextSibling())
child->insertedIntoDocument();
void ContainerNode::removedFromDocument()
{
- if (document()->cssTarget() == this)
- document()->setCSSTarget(0);
+ EventTargetNode::removedFromDocument();
setInDocument(false);
removedFromTree(false);
for (Node* child = m_firstChild; child; child = child->nextSibling())
if (!eventListeners().isEmpty())
document()->unregisterDisconnectedNodeWithEventListeners(this);
- Node::insertedIntoDocument();
+ setInDocument(true);
}
void EventTargetNode::removedFromDocument()
if (!eventListeners().isEmpty())
document()->registerDisconnectedNodeWithEventListeners(this);
- Node::removedFromDocument();
+ setInDocument(false);
}
void EventTargetNode::willMoveToNewOwnerDocument()
void Node::insertedIntoDocument()
{
- // Note: ContainerNode::insertedIntoDocument does not call through here, so if you
+ // Note: EventTargetNode::insertedIntoDocument does not call through here, so if you
// change this function, change that one as well.
setInDocument(true);
}
void Node::removedFromDocument()
{
- // Note: ContainerNode::insertedIntoDocument does not call through here, so if you
+ // Note: EventTargetNode::insertedIntoDocument does not call through here, so if you
// change this function, change that one as well.
setInDocument(false);
}