| Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| index 3ab098c1a54a4d70b4cff42e37bd29263adaabd8..380860b6f13af335379ef04f5c2677be1af494f2 100644
|
| --- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| @@ -532,7 +532,7 @@
|
| RefPtrWillBeRawPtr<Node> protect(n); // removedFromDocument may remove all references to this node.
|
| container.document().adoptIfNeeded(*n);
|
| if (n->inDocument())
|
| - container.notifyNodeRemoved(*n, next);
|
| + container.notifyNodeRemoved(*n);
|
| }
|
| }
|
|
|
| @@ -591,7 +591,7 @@
|
| Node* prev = child->previousSibling();
|
| Node* next = child->nextSibling();
|
| removeBetween(prev, next, *child);
|
| - notifyNodeRemoved(*child, next);
|
| + notifyNodeRemoved(*child);
|
| childrenChanged(ChildrenChange::forRemoval(*child, prev, next, ChildrenChangeSourceAPI));
|
| }
|
| dispatchSubtreeModifiedEvent();
|
| @@ -643,7 +643,7 @@
|
| Node* next = oldChild.nextSibling();
|
| removeBetween(prev, next, oldChild);
|
|
|
| - notifyNodeRemoved(oldChild, next);
|
| + notifyNodeRemoved(oldChild);
|
| childrenChanged(ChildrenChange::forRemoval(oldChild, prev, next, ChildrenChangeSourceParser));
|
| }
|
|
|
| @@ -695,12 +695,11 @@
|
| removedChildren.reserveInitialCapacity(countChildren());
|
| #endif
|
| while (RefPtrWillBeRawPtr<Node> child = m_firstChild) {
|
| - Node* next = child->nextSibling();
|
| - removeBetween(nullptr, next, *child);
|
| + removeBetween(0, child->nextSibling(), *child);
|
| #if !ENABLE(OILPAN)
|
| removedChildren.append(child.get());
|
| #endif
|
| - notifyNodeRemoved(*child, next);
|
| + notifyNodeRemoved(*child);
|
| }
|
| }
|
|
|
| @@ -848,7 +847,7 @@
|
| }
|
| }
|
|
|
| -void ContainerNode::notifyNodeRemoved(Node& root, Node* next)
|
| +void ContainerNode::notifyNodeRemoved(Node& root)
|
| {
|
| ScriptForbiddenScope forbidScript;
|
| EventDispatchForbiddenScope assertNoEventDispatch;
|
| @@ -859,9 +858,9 @@
|
| // call to removedFrom is not needed.
|
| if (!node.isContainerNode() && !node.isInTreeScope())
|
| continue;
|
| - node.removedFrom(this, node == root ? next : node.nextSibling());
|
| + node.removedFrom(this);
|
| for (ShadowRoot* shadowRoot = node.youngestShadowRoot(); shadowRoot; shadowRoot = shadowRoot->olderShadowRoot())
|
| - notifyNodeRemoved(*shadowRoot, next);
|
| + notifyNodeRemoved(*shadowRoot);
|
| }
|
| }
|
|
|
|
|