Index: Source/WebCore/dom/ContainerNode.cpp |
=================================================================== |
--- Source/WebCore/dom/ContainerNode.cpp (revision 112456) |
+++ Source/WebCore/dom/ContainerNode.cpp (working copy) |
@@ -853,16 +853,20 @@ |
{ |
if (!deep) |
return; |
+ forbidEventDispatch(); |
for (Node* child = m_firstChild; child; child = child->nextSibling()) |
child->insertedIntoTree(true); |
+ allowEventDispatch(); |
} |
void ContainerNode::removedFromTree(bool deep) |
{ |
if (!deep) |
return; |
+ forbidEventDispatch(); |
for (Node* child = m_firstChild; child; child = child->nextSibling()) |
child->removedFromTree(true); |
+ allowEventDispatch(); |
} |
void ContainerNode::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |