Index: Source/core/dom/ContainerNode.cpp |
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp |
index 676aac1242c518514d9857dd75f1267b15c5a118..be35f158b9552c5049c0927632a718c369a2f386 100644 |
--- a/Source/core/dom/ContainerNode.cpp |
+++ b/Source/core/dom/ContainerNode.cpp |
@@ -955,13 +955,13 @@ static void dispatchChildRemovalEvents(Node& child) |
// dispatch pre-removal mutation events |
if (c->parentNode() && document->hasListenerType(Document::DOMNODEREMOVED_LISTENER)) { |
- NodeChildRemovalTracker scope(&child); |
+ NodeChildRemovalTracker scope(child); |
c->dispatchScopedEvent(MutationEvent::create(EventTypeNames::DOMNodeRemoved, true, c->parentNode())); |
} |
// dispatch the DOMNodeRemovedFromDocument event to all descendants |
if (c->inDocument() && document->hasListenerType(Document::DOMNODEREMOVEDFROMDOCUMENT_LISTENER)) { |
- NodeChildRemovalTracker scope(&child); |
+ NodeChildRemovalTracker scope(child); |
for (; c; c = NodeTraversal::next(c.get(), &child)) |
c->dispatchScopedEvent(MutationEvent::create(EventTypeNames::DOMNodeRemovedFromDocument, false)); |
} |