Lines Matching refs:thisp

538 static bool dom_remove_attribute(xmlNodePtr thisp, xmlNodePtr attrp)  in dom_remove_attribute()  argument
540 ZEND_ASSERT(thisp != NULL); in dom_remove_attribute()
560 if (thisp->nsDef == ns) { in dom_remove_attribute()
561 thisp->nsDef = ns->next; in dom_remove_attribute()
562 } else if (thisp->nsDef != NULL) { in dom_remove_attribute()
563 xmlNsPtr prev = thisp->nsDef; in dom_remove_attribute()
582 …php_libxml_set_old_ns(thisp->doc, ns); /* note: can't deallocate as it might be referenced by a "f… in dom_remove_attribute()
585 dom_deep_ns_redef(thisp, ns); in dom_remove_attribute()
1560 static xmlNodePtr dom_insert_adjacent(const zend_string *where, xmlNodePtr thisp, dom_object *this_… in dom_insert_adjacent() argument
1563 if (thisp->parent == NULL) { in dom_insert_adjacent()
1566 if (!php_dom_adopt_node(otherp, this_intern, thisp->doc)) { in dom_insert_adjacent()
1569 if (!php_dom_pre_insert(this_intern->document, otherp, thisp->parent, thisp)) { in dom_insert_adjacent()
1573 if (!php_dom_adopt_node(otherp, this_intern, thisp->doc)) { in dom_insert_adjacent()
1576 if (!php_dom_pre_insert(this_intern->document, otherp, thisp, thisp->children)) { in dom_insert_adjacent()
1580 if (!php_dom_adopt_node(otherp, this_intern, thisp->doc)) { in dom_insert_adjacent()
1583 if (!php_dom_pre_insert(this_intern->document, otherp, thisp, NULL)) { in dom_insert_adjacent()
1587 if (thisp->parent == NULL) { in dom_insert_adjacent()
1590 if (!php_dom_adopt_node(otherp, this_intern, thisp->doc)) { in dom_insert_adjacent()
1593 if (!php_dom_pre_insert(this_intern->document, otherp, thisp->parent, thisp->next)) { in dom_insert_adjacent()
1609 xmlNodePtr thisp, otherp; in dom_element_insert_adjacent_element() local
1612 DOM_GET_THIS_OBJ(thisp, id, xmlNodePtr, this_intern); in dom_element_insert_adjacent_element()
1615 xmlNodePtr result = dom_insert_adjacent(where, thisp, this_intern, otherp); in dom_element_insert_adjacent_element()
1658 xmlNodePtr thisp; in dom_element_insert_adjacent_text() local
1660 DOM_GET_THIS_OBJ(thisp, id, xmlNodePtr, this_intern); in dom_element_insert_adjacent_text()
1667 xmlNodePtr otherp = xmlNewDocTextLen(thisp->doc, (const xmlChar *) ZSTR_VAL(data), ZSTR_LEN(data)); in dom_element_insert_adjacent_text()
1668 xmlNodePtr result = dom_insert_adjacent(where, thisp, this_intern, otherp); in dom_element_insert_adjacent_text()
1708 xmlNodePtr thisp; in PHP_METHOD() local
1717 DOM_GET_THIS_OBJ(thisp, id, xmlNodePtr, intern); in PHP_METHOD()
1728 if (thisp->doc != NULL && thisp->doc->type == XML_HTML_DOCUMENT_NODE in PHP_METHOD()
1729 …&& ((!follow_spec && thisp->ns == NULL) || (thisp->ns != NULL && xmlStrEqual(thisp->ns->href, BAD_… in PHP_METHOD()
1737 xmlNodePtr attribute = dom_get_attribute_or_nsdecl(intern, thisp, BAD_CAST qname, qname_length); in PHP_METHOD()
1744 xmlSetNsProp(thisp, NULL, BAD_CAST qname, NULL); in PHP_METHOD()
1752 dom_create_attribute(thisp, qname, ""); in PHP_METHOD()
1755 xmlNewNs(thisp, (const xmlChar *) "", (const xmlChar *) (qname + len + 1)); in PHP_METHOD()
1768 dom_remove_attribute(thisp, attribute); in PHP_METHOD()
1792 xmlNodePtr thisp; in php_dom_dispatch_query_selector() local
1795 DOM_GET_THIS_OBJ(thisp, id, xmlNodePtr, intern); in php_dom_dispatch_query_selector()
1798 dom_parent_node_query_selector_all(thisp, intern, return_value, selectors_str); in php_dom_dispatch_query_selector()
1800 dom_parent_node_query_selector(thisp, intern, return_value, selectors_str); in php_dom_dispatch_query_selector()
1822 xmlNodePtr thisp; in PHP_METHOD() local
1825 DOM_GET_THIS_OBJ(thisp, id, xmlNodePtr, intern); in PHP_METHOD()
1827 dom_element_matches(thisp, intern, return_value, selectors_str); in PHP_METHOD()
1838 xmlNodePtr thisp; in PHP_METHOD() local
1841 DOM_GET_THIS_OBJ(thisp, id, xmlNodePtr, intern); in PHP_METHOD()
1843 dom_element_closest(thisp, intern, return_value, selectors_str); in PHP_METHOD()