Lines Matching refs:newchild
954 xmlNodePtr newchild, node; in _php_dom_insert_fragment() local
956 newchild = fragment->children; in _php_dom_insert_fragment()
958 if (newchild) { in _php_dom_insert_fragment()
960 nodep->children = newchild; in _php_dom_insert_fragment()
962 prevsib->next = newchild; in _php_dom_insert_fragment()
964 newchild->prev = prevsib; in _php_dom_insert_fragment()
972 node = newchild; in _php_dom_insert_fragment()
993 return newchild; in _php_dom_insert_fragment()
1165 xmlNodePtr children, newchild, oldchild, nodep; in PHP_FUNCTION() local
1181 DOM_GET_OBJ(newchild, newnode, xmlNodePtr, newchildobj); in PHP_FUNCTION()
1192 (newchild->parent != NULL && dom_node_is_read_only(newchild->parent) == SUCCESS)) { in PHP_FUNCTION()
1197 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in PHP_FUNCTION()
1202 if (dom_hierarchy(nodep, newchild) == FAILURE) { in PHP_FUNCTION()
1217 if (newchild->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1224 …newchild = _php_dom_insert_fragment(nodep, prevsib, nextsib, newchild, intern, newchildobj TSRMLS_… in PHP_FUNCTION()
1225 if (newchild) { in PHP_FUNCTION()
1226 dom_reconcile_ns(nodep->doc, newchild); in PHP_FUNCTION()
1228 } else if (oldchild != newchild) { in PHP_FUNCTION()
1229 if (newchild->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1230 xmlSetTreeDoc(newchild, nodep->doc); in PHP_FUNCTION()
1234 xmlReplaceNode(oldchild, newchild); in PHP_FUNCTION()
1235 dom_reconcile_ns(nodep->doc, newchild); in PHP_FUNCTION()