Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 3f4d27cb88978ab503883ffa1b63583c1df3b03e..cd10bc5a08dccce4d4be6b6e382a7032ee75fdbd 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3498,19 +3498,19 @@ void Document::nodeChildrenWillBeRemoved(ContainerNode* container) |
HashSet<NodeIterator*>::const_iterator nodeIteratorsEnd = m_nodeIterators.end(); |
for (HashSet<NodeIterator*>::const_iterator it = m_nodeIterators.begin(); it != nodeIteratorsEnd; ++it) { |
for (Node* n = container->firstChild(); n; n = n->nextSibling()) |
- (*it)->nodeWillBeRemoved(n); |
+ (*it)->nodeWillBeRemoved(*n); |
} |
if (Frame* frame = this->frame()) { |
for (Node* n = container->firstChild(); n; n = n->nextSibling()) { |
- frame->eventHandler().nodeWillBeRemoved(n); |
- frame->selection().nodeWillBeRemoved(n); |
- frame->page()->dragCaretController().nodeWillBeRemoved(n); |
+ frame->eventHandler().nodeWillBeRemoved(*n); |
+ frame->selection().nodeWillBeRemoved(*n); |
+ frame->page()->dragCaretController().nodeWillBeRemoved(*n); |
} |
} |
} |
-void Document::nodeWillBeRemoved(Node* n) |
+void Document::nodeWillBeRemoved(Node& n) |
{ |
HashSet<NodeIterator*>::const_iterator nodeIteratorsEnd = m_nodeIterators.end(); |
for (HashSet<NodeIterator*>::const_iterator it = m_nodeIterators.begin(); it != nodeIteratorsEnd; ++it) |