Lines Matching refs:document

237 static bool dom_is_pre_insert_valid_without_step_1(php_libxml_ref_obj *document, xmlNodePtr parentN…  in dom_is_pre_insert_valid_without_step_1()  argument
244 php_dom_throw_error(HIERARCHY_REQUEST_ERR, dom_get_strict_error(document)); in dom_is_pre_insert_valid_without_step_1()
249 php_dom_throw_error(WRONG_DOCUMENT_ERR, dom_get_strict_error(document)); in dom_is_pre_insert_valid_without_step_1()
255 php_dom_throw_error(NOT_FOUND_ERR, dom_get_strict_error(document)); in dom_is_pre_insert_valid_without_step_1()
265 || (php_dom_follow_spec_doc_ref(document) && ( in dom_is_pre_insert_valid_without_step_1()
272 php_dom_throw_error(HIERARCHY_REQUEST_ERR, dom_get_strict_error(document)); in dom_is_pre_insert_valid_without_step_1()
276 if (php_dom_follow_spec_doc_ref(document)) { in dom_is_pre_insert_valid_without_step_1()
344 xmlNode* dom_zvals_to_single_node(php_libxml_ref_obj *document, xmlNode *contextNode, zval *nodes, … in dom_zvals_to_single_node() argument
390 if (!dom_is_pre_insert_valid_without_step_1(document, node, newNode, NULL, documentNode)) { in dom_zvals_to_single_node()
398 ZEND_ASSERT(newNodeObj->document == document); in dom_zvals_to_single_node()
508 static void dom_insert_node_list_unchecked(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePt… in dom_insert_node_list_unchecked() argument
522 if (!php_dom_follow_spec_doc_ref(document)) { in dom_insert_node_list_unchecked()
552 if (!php_dom_follow_spec_doc_ref(document)) { 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()
585 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_append()
591 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_append()
594 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_append()
600 php_dom_node_append(context->document, node, parentNode); in dom_parent_node_append()
613 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_prepend()
617 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_prepend()
620 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_prepend()
626 php_dom_pre_insert(context->document, node, parentNode, parentNode->children); in dom_parent_node_prepend()
632 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_after()
652 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_after()
655 xmlNodePtr fragment = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_after()
658 php_dom_pre_insert(context->document, fragment, parentNode, viable_next_sibling); in dom_parent_node_after()
664 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_before()
684 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_before()
687 xmlNodePtr fragment = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_before()
697 php_dom_pre_insert(context->document, fragment, parentNode, viable_previous_sibling); in dom_parent_node_before()
704 php_dom_throw_error(NO_MODIFICATION_ALLOWED_ERR, dom_get_strict_error(context->document)); in dom_child_removal_preconditions()
709 php_dom_throw_error(NOT_FOUND_ERR, dom_get_strict_error(context->document)); in dom_child_removal_preconditions()
724 php_libxml_invalidate_node_list_cache(context->document); in dom_child_node_remove()
732 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_child_replace_with()
756 php_libxml_invalidate_node_list_cache(context->document); in dom_child_replace_with()
759 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_child_replace_with()
765 …if (dom_is_pre_insert_valid_without_step_1(context->document, parentNode, node, viable_next_siblin… in dom_child_replace_with()
772 dom_insert_node_list_unchecked(context->document, node, parentNode, viable_next_sibling); in dom_child_replace_with()
781 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_replace_children()
787 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_replace_children()
790 xmlNodePtr node = dom_zvals_to_single_node(context->document, thisp, nodes, nodesc); in dom_parent_node_replace_children()
796 if (dom_is_pre_insert_valid_without_step_1(context->document, thisp, node, NULL, thisp->doc)) { in dom_parent_node_replace_children()
798 php_dom_pre_insert(context->document, node, thisp, NULL); in dom_parent_node_replace_children()