Lines Matching refs:parent
121 static void dom_add_child_without_merging(xmlNodePtr parent, xmlNodePtr child) in dom_add_child_without_merging() argument
123 if (parent->children == NULL) { in dom_add_child_without_merging()
124 parent->children = child; in dom_add_child_without_merging()
126 xmlNodePtr last = parent->last; in dom_add_child_without_merging()
130 parent->last = child; in dom_add_child_without_merging()
131 child->parent = parent; in dom_add_child_without_merging()
139 node->parent = parentNode; in dom_fragment_assign_parent_node()
172 bool php_dom_fragment_insertion_hierarchy_check_pre_insertion(xmlNodePtr parent, xmlNodePtr node, x… in php_dom_fragment_insertion_hierarchy_check_pre_insertion() argument
182 if (php_dom_has_child_of_type(parent, XML_ELEMENT_NODE)) { in php_dom_fragment_insertion_hierarchy_check_pre_insertion()
198 bool php_dom_fragment_insertion_hierarchy_check_replace(xmlNodePtr parent, xmlNodePtr node, xmlNode… in php_dom_fragment_insertion_hierarchy_check_replace() argument
208 xmlNodePtr iter = parent->children; in php_dom_fragment_insertion_hierarchy_check_replace()
228 bool php_dom_pre_insert_is_parent_invalid(xmlNodePtr parent) in php_dom_pre_insert_is_parent_invalid() argument
230 return parent->type != XML_DOCUMENT_NODE in php_dom_pre_insert_is_parent_invalid()
231 && parent->type != XML_HTML_DOCUMENT_NODE in php_dom_pre_insert_is_parent_invalid()
232 && parent->type != XML_ELEMENT_NODE in php_dom_pre_insert_is_parent_invalid()
233 && parent->type != XML_DOCUMENT_FRAG_NODE; in php_dom_pre_insert_is_parent_invalid()
254 if (child != NULL && child->parent != parentNode) { in dom_is_pre_insert_valid_without_step_1()
394 if (newNode->parent != NULL) { in dom_zvals_to_single_node()
499 ZEND_ASSERT(node->parent == NULL); in dom_insert_node_list_cleanup()
508 …list_unchecked(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent, xmlNodePtr insert… in dom_insert_node_list_unchecked() argument
520 php_dom_pre_insert_helper(insertion_point, parent, newchild, last); in dom_insert_node_list_unchecked()
521 dom_fragment_assign_parent_node(parent, node); in dom_insert_node_list_unchecked()
523 dom_reconcile_ns_list(parent->doc, newchild, last); in dom_insert_node_list_unchecked()
525 if (parent->doc && newchild->type == XML_DTD_NODE) { in dom_insert_node_list_unchecked()
526 parent->doc->intSubset = (xmlDtdPtr) newchild; in dom_insert_node_list_unchecked()
527 newchild->parent = (xmlNodePtr) parent->doc; in dom_insert_node_list_unchecked()
546 php_dom_pre_insert_helper(insertion_point, parent, node, node); in dom_insert_node_list_unchecked()
547 node->parent = parent; in dom_insert_node_list_unchecked()
548 if (parent->doc && node->type == XML_DTD_NODE) { in dom_insert_node_list_unchecked()
549 parent->doc->intSubset = (xmlDtdPtr) node; in dom_insert_node_list_unchecked()
550 node->parent = (xmlNodePtr) parent->doc; in dom_insert_node_list_unchecked()
553 dom_reconcile_ns(parent->doc, node); in dom_insert_node_list_unchecked()
560 bool php_dom_pre_insert(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent, xmlNodePt… in php_dom_pre_insert() argument
567 if (dom_is_pre_insert_valid_without_step_1(document, parent, node, insertion_point, parent->doc)) { in php_dom_pre_insert()
568 dom_insert_node_list_unchecked(document, node, parent, insertion_point); in php_dom_pre_insert()
577 void php_dom_node_append(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent) in php_dom_node_append() argument
579 php_dom_pre_insert(document, node, parent, NULL); in php_dom_node_append()
639 xmlNodePtr parentNode = thisp->parent; in dom_parent_node_after()
671 xmlNodePtr parentNode = thisp->parent; in dom_parent_node_before()
703 (child->parent != NULL && dom_node_is_read_only(child->parent))) { in dom_child_removal_preconditions()
708 if (!child->parent) { in dom_child_removal_preconditions()
739 xmlNodePtr parentNode = child->parent; in dom_child_replace_with()
768 if (child->parent != node) { in dom_child_replace_with()