Lines Matching defs:newParent
923 // WRONG_DOCUMENT_ERR: Raised if newParent and the container of the start of the Range were
1365 RefPtr<Node> newParent = passNewParent;
1372 if (!newParent) {
1379 switch (newParent->nodeType()) {
1405 // WRONG_DOCUMENT_ERR: Raised if newParent and the container of the start of the Range were
1407 if (newParent->document() != m_start.container()->document()) {
1412 // Raise a HIERARCHY_REQUEST_ERR if m_start.container() doesn't accept children like newParent.
1416 // need to accept newParent (or in the case of a comment, it logically "would" be inserted into the parent,
1420 if (!parentOfNewParent || !parentOfNewParent->childTypeAllowed(newParent->nodeType())) {
1425 if (m_start.container() == newParent || m_start.container()->isDescendantOf(newParent.get())) {
1446 while (Node* n = newParent->firstChild()) {
1447 newParent->removeChild(n, ec);
1454 insertNode(newParent, ec);
1457 newParent->appendChild(fragment.release(), ec);
1460 selectNode(newParent.get(), ec);