| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 20777d982c6888951e29e87cd19ac26dbf2691c6..62689136a550d721db3cf6049738707a39b4898b 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -3597,7 +3597,7 @@ void Document::updateRangesAfterChildrenChanged(ContainerNode* container)
|
| }
|
| }
|
|
|
| -void Document::nodeChildrenWillBeRemoved(ContainerNode* container)
|
| +void Document::nodeChildrenWillBeRemoved(ContainerNode& container)
|
| {
|
| NoEventDispatchAssertion assertNoEventDispatch;
|
| if (!m_ranges.isEmpty()) {
|
| @@ -3608,12 +3608,12 @@ 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())
|
| + for (Node* n = container.firstChild(); n; n = n->nextSibling())
|
| (*it)->nodeWillBeRemoved(*n);
|
| }
|
|
|
| if (Frame* frame = this->frame()) {
|
| - for (Node* n = container->firstChild(); n; n = n->nextSibling()) {
|
| + for (Node* n = container.firstChild(); n; n = n->nextSibling()) {
|
| frame->eventHandler().nodeWillBeRemoved(*n);
|
| frame->selection().nodeWillBeRemoved(*n);
|
| frame->page()->dragCaretController().nodeWillBeRemoved(*n);
|
|
|