Lines Matching refs:nextChild
247 void ContainerNode::insertBeforeCommon(Node& nextChild, Node& newChild)
257 Node* prev = nextChild.previousSibling();
259 nextChild.setPreviousSibling(&newChild);
261 ASSERT(firstChild() != nextChild);
262 ASSERT(prev->nextSibling() == nextChild);
265 ASSERT(firstChild() == nextChild);
270 newChild.setNextSibling(&nextChild);
287 void ContainerNode::parserInsertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node& nextChild)
290 ASSERT(nextChild.parentNode() == this);
294 if (nextChild.previousSibling() == newChild || &nextChild == newChild) // nothing to do
302 insertBeforeCommon(nextChild, *newChild);
491 void ContainerNode::removeBetween(Node* previousChild, Node* nextChild, Node& oldChild)
500 if (nextChild)
501 nextChild->setPreviousSibling(previousChild);
503 previousChild->setNextSibling(nextChild);
505 m_firstChild = nextChild;