Index: Source/WebCore/dom/ContainerNode.cpp |
=================================================================== |
--- Source/WebCore/dom/ContainerNode.cpp (revision 109353) |
+++ Source/WebCore/dom/ContainerNode.cpp (working copy) |
@@ -479,15 +479,15 @@ |
Node* next = child->nextSibling(); |
removeBetween(prev, next, child.get()); |
- // Dispatch post-removal mutation events |
- childrenChanged(false, prev, next, -1); |
- dispatchSubtreeModifiedEvent(); |
- |
if (child->inDocument()) |
child->removedFromDocument(); |
else |
child->removedFromTree(true); |
+ // Dispatch post-removal mutation events |
+ childrenChanged(false, prev, next, -1); |
+ dispatchSubtreeModifiedEvent(); |
+ |
return child; |
} |