Lines Matching refs:new_child

891 	xmlNodePtr new_child = NULL;  in dom_node_insert_before_legacy()  local
922 new_child = child; in dom_node_insert_before_legacy()
923 new_child->parent = refp->parent; in dom_node_insert_before_legacy()
924 new_child->next = refp; in dom_node_insert_before_legacy()
925 new_child->prev = refp->prev; in dom_node_insert_before_legacy()
926 refp->prev = new_child; in dom_node_insert_before_legacy()
927 if (new_child->prev != NULL) { in dom_node_insert_before_legacy()
928 new_child->prev->next = new_child; in dom_node_insert_before_legacy()
930 if (new_child->parent != NULL) { in dom_node_insert_before_legacy()
931 if (new_child->parent->children == refp) { in dom_node_insert_before_legacy()
932 new_child->parent->children = new_child; in dom_node_insert_before_legacy()
952 new_child = xmlAddPrevSibling(refp, child); in dom_node_insert_before_legacy()
953 if (UNEXPECTED(NULL == new_child)) { in dom_node_insert_before_legacy()
958 new_child = dom_insert_fragment(parentp, refp->prev, refp, child, intern); in dom_node_insert_before_legacy()
959 dom_reconcile_ns_list(parentp->doc, new_child, last); in dom_node_insert_before_legacy()
961 new_child = xmlAddPrevSibling(refp, child); in dom_node_insert_before_legacy()
962 if (UNEXPECTED(NULL == new_child)) { in dom_node_insert_before_legacy()
965 dom_reconcile_ns(parentp->doc, new_child); in dom_node_insert_before_legacy()
973 new_child = child; in dom_node_insert_before_legacy()
979 child->next = new_child; in dom_node_insert_before_legacy()
980 new_child->prev = child; in dom_node_insert_before_legacy()
981 parentp->last = new_child; in dom_node_insert_before_legacy()
999 new_child = xmlAddChild(parentp, child); in dom_node_insert_before_legacy()
1000 if (UNEXPECTED(NULL == new_child)) { in dom_node_insert_before_legacy()
1005 new_child = dom_insert_fragment(parentp, parentp->last, NULL, child, intern); in dom_node_insert_before_legacy()
1006 dom_reconcile_ns_list(parentp->doc, new_child, last); in dom_node_insert_before_legacy()
1008 new_child = xmlAddChild(parentp, child); in dom_node_insert_before_legacy()
1009 if (UNEXPECTED(NULL == new_child)) { in dom_node_insert_before_legacy()
1012 dom_reconcile_ns(parentp->doc, new_child); in dom_node_insert_before_legacy()
1016 DOM_RET_OBJ(new_child, intern); in dom_node_insert_before_legacy()
1312 xmlNodePtr new_child = NULL; in dom_node_append_child_legacy() local
1335 new_child = child; in dom_node_append_child_legacy()
1341 child->next = new_child; in dom_node_append_child_legacy()
1342 new_child->prev = child; in dom_node_append_child_legacy()
1343 nodep->last = new_child; in dom_node_append_child_legacy()
1358 new_child = xmlAddChild(nodep, child); in dom_node_append_child_legacy()
1359 if (UNEXPECTED(new_child == NULL)) { in dom_node_append_child_legacy()
1362 php_dom_reconcile_attribute_namespace_after_insertion((xmlAttrPtr) new_child); in dom_node_append_child_legacy()
1365 new_child = dom_insert_fragment(nodep, nodep->last, NULL, child, intern); in dom_node_append_child_legacy()
1366 dom_reconcile_ns_list(nodep->doc, new_child, last); in dom_node_append_child_legacy()
1372 new_child = xmlAddChild(nodep, child); in dom_node_append_child_legacy()
1373 if (UNEXPECTED(new_child == NULL)) { in dom_node_append_child_legacy()
1376 nodep->doc->intSubset = (xmlDtdPtr) new_child; in dom_node_append_child_legacy()
1378 new_child = xmlAddChild(nodep, child); in dom_node_append_child_legacy()
1379 if (UNEXPECTED(new_child == NULL)) { in dom_node_append_child_legacy()
1382 dom_reconcile_ns(nodep->doc, new_child); in dom_node_append_child_legacy()
1387 DOM_RET_OBJ(new_child, intern); in dom_node_append_child_legacy()