Index: Source/core/dom/ContainerNode.cpp |
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp |
index 3dc0a353a60fe43f858b0ebee5f3ee75a51792db..a99e3ead98203804622b4b987576e66b245107c0 100644 |
--- a/Source/core/dom/ContainerNode.cpp |
+++ b/Source/core/dom/ContainerNode.cpp |
@@ -947,7 +947,7 @@ static void dispatchChildInsertionEvents(Node& child) |
// dispatch the DOMNodeInsertedIntoDocument event to all descendants |
if (c->inDocument() && document->hasListenerType(Document::DOMNODEINSERTEDINTODOCUMENT_LISTENER)) { |
- for (; c; c = NodeTraversal::next(c.get(), &child)) |
+ for (; c; c = NodeTraversal::next(*c, &child)) |
c->dispatchScopedEvent(MutationEvent::create(EventTypeNames::DOMNodeInsertedIntoDocument, false)); |
} |
} |
@@ -975,7 +975,7 @@ static void dispatchChildRemovalEvents(Node& child) |
// dispatch the DOMNodeRemovedFromDocument event to all descendants |
if (c->inDocument() && document->hasListenerType(Document::DOMNODEREMOVEDFROMDOCUMENT_LISTENER)) { |
NodeChildRemovalTracker scope(child); |
- for (; c; c = NodeTraversal::next(c.get(), &child)) |
+ for (; c; c = NodeTraversal::next(*c, &child)) |
c->dispatchScopedEvent(MutationEvent::create(EventTypeNames::DOMNodeRemovedFromDocument, false)); |
} |
} |