Lines Matching defs:oldNode
810 Node* oldNode = nodeForId(nodeId);
811 if (!oldNode || !oldNode->isElementNode())
815 RefPtrWillBeRawPtr<Element> newElem = oldNode->document().createElement(AtomicString(tagName), exceptionState);
820 newElem->cloneAttributesFromElement(*toElement(oldNode));
823 for (Node* child = oldNode->firstChild(); child; child = oldNode->firstChild()) {
829 ContainerNode* parent = oldNode->parentNode();
830 if (!m_domEditor->insertBefore(parent, newElem.get(), oldNode->nextSibling(), errorString))
832 if (!m_domEditor->removeChild(parent, oldNode, errorString))