Lines Matching refs:newchild
952 xmlNodePtr newchild, node; in _php_dom_insert_fragment() local
954 newchild = fragment->children; in _php_dom_insert_fragment()
956 if (newchild) { in _php_dom_insert_fragment()
958 nodep->children = newchild; in _php_dom_insert_fragment()
960 prevsib->next = newchild; in _php_dom_insert_fragment()
962 newchild->prev = prevsib; in _php_dom_insert_fragment()
970 node = newchild; in _php_dom_insert_fragment()
991 return newchild; in _php_dom_insert_fragment()
1163 xmlNodePtr children, newchild, oldchild, nodep; in PHP_FUNCTION() local
1179 DOM_GET_OBJ(newchild, newnode, xmlNodePtr, newchildobj); in PHP_FUNCTION()
1190 (newchild->parent != NULL && dom_node_is_read_only(newchild->parent) == SUCCESS)) { in PHP_FUNCTION()
1195 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in PHP_FUNCTION()
1200 if (dom_hierarchy(nodep, newchild) == FAILURE) { in PHP_FUNCTION()
1215 if (newchild->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1222 …newchild = _php_dom_insert_fragment(nodep, prevsib, nextsib, newchild, intern, newchildobj TSRMLS_… in PHP_FUNCTION()
1223 if (newchild) { in PHP_FUNCTION()
1224 dom_reconcile_ns(nodep->doc, newchild); in PHP_FUNCTION()
1226 } else if (oldchild != newchild) { in PHP_FUNCTION()
1227 if (newchild->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1228 xmlSetTreeDoc(newchild, nodep->doc); in PHP_FUNCTION()
1232 xmlReplaceNode(oldchild, newchild); in PHP_FUNCTION()
1233 dom_reconcile_ns(nodep->doc, newchild); in PHP_FUNCTION()