Index: Source/core/dom/ContainerNode.cpp |
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp |
index 798d4eb2f857cfb622216a56d1c26a20e8782905..4a5d84cac3afb78b40d01db31aafa57fccc6300f 100644 |
--- a/Source/core/dom/ContainerNode.cpp |
+++ b/Source/core/dom/ContainerNode.cpp |
@@ -96,8 +96,7 @@ void ContainerNode::parserTakeAllChildrenFrom(ContainerNode* oldParent) |
ContainerNode::~ContainerNode() |
{ |
- if (Document* document = documentInternal()) |
- willBeDeletedFrom(document); |
+ willBeDeletedFromDocument(); |
removeDetachedChildren(); |
} |