Lines Matching refs:parentp

838 static bool dom_node_check_legacy_insertion_validity(xmlNodePtr parentp, xmlNodePtr child, bool str…  in dom_node_check_legacy_insertion_validity()  argument
840 if (dom_node_is_read_only(parentp) || in dom_node_check_legacy_insertion_validity()
846 if (dom_hierarchy(parentp, child) == FAILURE) { in dom_node_check_legacy_insertion_validity()
851 if (child->doc != parentp->doc && child->doc != NULL) { in dom_node_check_legacy_insertion_validity()
863 …if (parentp->type == XML_ATTRIBUTE_NODE && child->type != XML_TEXT_NODE && child->type != XML_ENTI… in dom_node_check_legacy_insertion_validity()
868 if (child->type == XML_ATTRIBUTE_NODE && parentp->type != XML_ELEMENT_NODE) { in dom_node_check_legacy_insertion_validity()
885 …n_value, zval *ref, dom_object *intern, dom_object *childobj, xmlNodePtr parentp, xmlNodePtr child) in dom_node_insert_before_legacy() argument
887 if (!dom_node_children_valid(parentp)) { in dom_node_insert_before_legacy()
894 if (!dom_node_check_legacy_insertion_validity(parentp, child, stricterror, true)) { in dom_node_insert_before_legacy()
902 if (refp->parent != parentp) { in dom_node_insert_before_legacy()
908 if (child->doc == NULL && parentp->doc != NULL) { in dom_node_insert_before_legacy()
909 xmlSetTreeDoc(child, parentp->doc); 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()
965 dom_reconcile_ns(parentp->doc, new_child); in dom_node_insert_before_legacy()
971 …if (child->type == XML_TEXT_NODE && parentp->last != NULL && parentp->last->type == XML_TEXT_NODE)… in dom_node_insert_before_legacy()
972 child->parent = parentp; in dom_node_insert_before_legacy()
974 if (parentp->children == NULL) { in dom_node_insert_before_legacy()
975 parentp->children = child; in dom_node_insert_before_legacy()
976 parentp->last = child; in dom_node_insert_before_legacy()
978 child = parentp->last; in dom_node_insert_before_legacy()
981 parentp->last = new_child; in dom_node_insert_before_legacy()
987 lastattr = xmlHasProp(parentp, child->name); in dom_node_insert_before_legacy()
989 lastattr = xmlHasNsProp(parentp, child->name, child->ns->href); in dom_node_insert_before_legacy()
999 new_child = xmlAddChild(parentp, 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()
1012 dom_reconcile_ns(parentp->doc, new_child); in dom_node_insert_before_legacy()
1025 …ore_modern(zval *return_value, zval *ref, dom_object *intern, xmlNodePtr parentp, xmlNodePtr child) in dom_node_insert_before_modern() argument
1029 if (php_dom_pre_insert_is_parent_invalid(parentp)) { in dom_node_insert_before_modern()
1037 php_dom_pre_insert(intern->document, child, parentp, refp); in dom_node_insert_before_modern()
1044 xmlNodePtr child, parentp; in dom_node_insert_before() local
1052 DOM_GET_OBJ(parentp, id, xmlNodePtr, intern); in dom_node_insert_before()
1057 dom_node_insert_before_modern(return_value, ref, intern, parentp, child); in dom_node_insert_before()
1059 dom_node_insert_before_legacy(return_value, ref, intern, childobj, parentp, child); in dom_node_insert_before()