Lines Matching refs:node2

2435 	xmlNodePtr node2 = this;  in dom_node_compare_document_position()  local
2448 if (node2->type == XML_ATTRIBUTE_NODE) { in dom_node_compare_document_position()
2450 attr2 = node2; in dom_node_compare_document_position()
2451 node2 = attr2->parent; in dom_node_compare_document_position()
2454 if (attr1 != NULL && node1 != NULL && node2 == node1) { in dom_node_compare_document_position()
2455 for (const xmlAttr *attr = node2->properties; attr != NULL; attr = attr->next) { in dom_node_compare_document_position()
2468 if (node1 == NULL || node2 == NULL) { in dom_node_compare_document_position()
2476 if (node1_root == node2) { in dom_node_compare_document_position()
2483 xmlNodePtr node2_root = node2; in dom_node_compare_document_position()
2497 if ((node1_is_ancestor_of_node2 && attr1 == NULL) || (node1 == node2 && attr2 != NULL)) { in dom_node_compare_document_position()
2502 if ((node2_is_ancestor_of_node1 && attr2 == NULL) || (node1 == node2 && attr1 != NULL)) { in dom_node_compare_document_position()
2534 node2 = node2->parent; in dom_node_compare_document_position()
2539 while (node1->parent != node2->parent) { in dom_node_compare_document_position()
2541 node2 = node2->parent; in dom_node_compare_document_position()
2544 ZEND_ASSERT(node1 != node2); in dom_node_compare_document_position()
2546 ZEND_ASSERT(node2 != NULL); in dom_node_compare_document_position()
2549 if (node1 == node2) { in dom_node_compare_document_position()
2559 if (node1 == node2) { in dom_node_compare_document_position()
2564 ordering = node1 < node2 ? DOCUMENT_POSITION_PRECEDING : DOCUMENT_POSITION_FOLLOWING; in dom_node_compare_document_position()