Lines Matching refs:newchild
880 xmlNodePtr newchild, node; in _php_dom_insert_fragment() local
882 newchild = fragment->children; in _php_dom_insert_fragment()
884 if (newchild) { in _php_dom_insert_fragment()
886 nodep->children = newchild; in _php_dom_insert_fragment()
888 prevsib->next = newchild; in _php_dom_insert_fragment()
890 newchild->prev = prevsib; in _php_dom_insert_fragment()
898 node = newchild; in _php_dom_insert_fragment()
919 return newchild; in _php_dom_insert_fragment()
1091 xmlNodePtr children, newchild, oldchild, nodep; in PHP_FUNCTION() local
1107 DOM_GET_OBJ(newchild, newnode, xmlNodePtr, newchildobj); in PHP_FUNCTION()
1118 (newchild->parent != NULL && dom_node_is_read_only(newchild->parent) == SUCCESS)) { in PHP_FUNCTION()
1123 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in PHP_FUNCTION()
1128 if (dom_hierarchy(nodep, newchild) == FAILURE) { in PHP_FUNCTION()
1143 if (newchild->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1150 newchild = _php_dom_insert_fragment(nodep, prevsib, nextsib, newchild, intern, newchildobj); in PHP_FUNCTION()
1151 if (newchild) { in PHP_FUNCTION()
1152 dom_reconcile_ns(nodep->doc, newchild); in PHP_FUNCTION()
1154 } else if (oldchild != newchild) { in PHP_FUNCTION()
1155 if (newchild->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1156 xmlSetTreeDoc(newchild, nodep->doc); in PHP_FUNCTION()
1160 xmlReplaceNode(oldchild, newchild); in PHP_FUNCTION()
1161 dom_reconcile_ns(nodep->doc, newchild); in PHP_FUNCTION()