Lines Matching refs:context

583 void dom_parent_node_append(dom_object *context, zval *nodes, uint32_t nodesc)  in dom_parent_node_append()  argument
585 …de_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != S… in dom_parent_node_append()
589 xmlNode *parentNode = dom_object_get_node(context); 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()
604 void dom_parent_node_prepend(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_prepend() argument
606 xmlNode *parentNode = dom_object_get_node(context); in dom_parent_node_prepend()
609 dom_parent_node_append(context, nodes, nodesc); in dom_parent_node_prepend()
613 …de_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != S… 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()
630 void dom_parent_node_after(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_after() argument
632 …de_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != S… in dom_parent_node_after()
636 xmlNode *thisp = dom_object_get_node(context); 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()
662 void dom_parent_node_before(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_before() argument
664 …de_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != S… in dom_parent_node_before()
668 xmlNode *thisp = dom_object_get_node(context); 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()
700 static zend_result dom_child_removal_preconditions(const xmlNode *child, const dom_object *context) in dom_child_removal_preconditions() argument
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()
716 void dom_child_node_remove(dom_object *context) in dom_child_node_remove() argument
718 xmlNode *child = dom_object_get_node(context); in dom_child_node_remove()
720 if (UNEXPECTED(dom_child_removal_preconditions(child, context) != SUCCESS)) { in dom_child_node_remove()
724 php_libxml_invalidate_node_list_cache(context->document); in dom_child_node_remove()
730 void dom_child_replace_with(dom_object *context, zval *nodes, uint32_t nodesc) in dom_child_replace_with() argument
732 …de_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != S… in dom_child_replace_with()
736 xmlNodePtr child = dom_object_get_node(context); in dom_child_replace_with()
752 if (UNEXPECTED(dom_child_removal_preconditions(child, context) != 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()
779 void dom_parent_node_replace_children(dom_object *context, zval *nodes, uint32_t nodesc) in dom_parent_node_replace_children() argument
781 …de_list_types(nodes, nodesc, dom_get_node_ce(php_dom_follow_spec_doc_ref(context->document))) != S… in dom_parent_node_replace_children()
785 xmlNodePtr thisp = dom_object_get_node(context); 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()