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
246 php_dom_throw_error(WRONG_DOCUMENT_ERR, dom_get_strict_error(document)); in dom_is_pre_insert_valid_without_step_1()
252 php_dom_throw_error(NOT_FOUND_ERR, dom_get_strict_error(document)); in dom_is_pre_insert_valid_without_step_1()
262 || (php_dom_follow_spec_doc_ref(document) && ( in dom_is_pre_insert_valid_without_step_1()
269 php_dom_throw_error(HIERARCHY_REQUEST_ERR, dom_get_strict_error(document)); in dom_is_pre_insert_valid_without_step_1()
273 if (php_dom_follow_spec_doc_ref(document)) { in dom_is_pre_insert_valid_without_step_1()
341 xmlNode* dom_zvals_to_single_node(php_libxml_ref_obj *document, xmlNode *contextNode, zval *nodes, … in dom_zvals_to_single_node() argument
387 if (!dom_is_pre_insert_valid_without_step_1(document, node, newNode, NULL, documentNode)) { in dom_zvals_to_single_node()
395 ZEND_ASSERT(newNodeObj->document == document); in dom_zvals_to_single_node()
505 static void dom_insert_node_list_unchecked(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePt… in dom_insert_node_list_unchecked() argument
519 if (!php_dom_follow_spec_doc_ref(document)) { in dom_insert_node_list_unchecked()
549 if (!php_dom_follow_spec_doc_ref(document)) { in dom_insert_node_list_unchecked()
557 bool php_dom_pre_insert(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent, xmlNodePt… in php_dom_pre_insert() argument
564 if (dom_is_pre_insert_valid_without_step_1(document, parent, node, insertion_point, parent->doc)) { in php_dom_pre_insert()
565 dom_insert_node_list_unchecked(document, node, parent, insertion_point); in php_dom_pre_insert()
574 void php_dom_node_append(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent) in php_dom_node_append() argument
576 php_dom_pre_insert(document, node, parent, NULL); in php_dom_node_append()
582 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_append()
588 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_append()
591 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_append()
597 php_dom_node_append(context->document, node, parentNode); in dom_parent_node_append()
610 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_prepend()
614 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_prepend()
617 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_prepend()
623 php_dom_pre_insert(context->document, node, parentNode, parentNode->children); in dom_parent_node_prepend()
629 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_after()
649 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_after()
652 xmlNodePtr fragment = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_after()
655 php_dom_pre_insert(context->document, fragment, parentNode, viable_next_sibling); in dom_parent_node_after()
661 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_before()
681 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_before()
684 xmlNodePtr fragment = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_parent_node_before()
694 php_dom_pre_insert(context->document, fragment, parentNode, viable_previous_sibling); in dom_parent_node_before()
701 php_dom_throw_error(NO_MODIFICATION_ALLOWED_ERR, dom_get_strict_error(context->document)); in dom_child_removal_preconditions()
706 php_dom_throw_error(NOT_FOUND_ERR, dom_get_strict_error(context->document)); in dom_child_removal_preconditions()
721 php_libxml_invalidate_node_list_cache(context->document); in dom_child_node_remove()
729 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_child_replace_with()
753 php_libxml_invalidate_node_list_cache(context->document); in dom_child_replace_with()
756 xmlNodePtr node = dom_zvals_to_single_node(context->document, parentNode, nodes, nodesc); in dom_child_replace_with()
762 …if (dom_is_pre_insert_valid_without_step_1(context->document, parentNode, node, viable_next_siblin… in dom_child_replace_with()
769 dom_insert_node_list_unchecked(context->document, node, parentNode, viable_next_sibling); in dom_child_replace_with()
778 …ypes(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != SUCCESS)) { in dom_parent_node_replace_children()
784 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_replace_children()
787 xmlNodePtr node = dom_zvals_to_single_node(context->document, thisp, nodes, nodesc); in dom_parent_node_replace_children()
793 if (dom_is_pre_insert_valid_without_step_1(context->document, thisp, node, NULL, thisp->doc)) { in dom_parent_node_replace_children()
795 php_dom_pre_insert(context->document, node, thisp, NULL); in dom_parent_node_replace_children()