Index: Source/WebCore/dom/ContainerNodeAlgorithms.h |
=================================================================== |
--- Source/WebCore/dom/ContainerNodeAlgorithms.h (revision 119655) |
+++ Source/WebCore/dom/ContainerNodeAlgorithms.h (working copy) |
@@ -135,7 +135,8 @@ |
// Clean up any TreeScope to a removed tree. |
if (Document* containerDocument = container->ownerDocument()) |
containerDocument->adoptIfNeeded(node); |
- ChildNodeRemovalNotifier(container).notify(node); |
+ if (node->inDocument()) |
+ ChildNodeRemovalNotifier(container).notify(node); |
} |
}; |