Lines Matching refs:node2

2449 	xmlNodePtr node2 = this;  in dom_node_compare_document_position()  local
2462 if (node2->type == XML_ATTRIBUTE_NODE) { in dom_node_compare_document_position()
2464 attr2 = node2; in dom_node_compare_document_position()
2465 node2 = attr2->parent; in dom_node_compare_document_position()
2468 if (attr1 != NULL && node1 != NULL && node2 == node1) { in dom_node_compare_document_position()
2469 for (const xmlAttr *attr = node2->properties; attr != NULL; attr = attr->next) { in dom_node_compare_document_position()
2482 if (node1 == NULL || node2 == NULL) { in dom_node_compare_document_position()
2490 if (node1_root == node2) { in dom_node_compare_document_position()
2497 xmlNodePtr node2_root = node2; in dom_node_compare_document_position()
2511 if ((node1_is_ancestor_of_node2 && attr1 == NULL) || (node1 == node2 && attr2 != NULL)) { in dom_node_compare_document_position()
2516 if ((node2_is_ancestor_of_node1 && attr2 == NULL) || (node1 == node2 && attr1 != NULL)) { in dom_node_compare_document_position()
2548 node2 = node2->parent; in dom_node_compare_document_position()
2553 while (node1->parent != node2->parent) { in dom_node_compare_document_position()
2555 node2 = node2->parent; in dom_node_compare_document_position()
2558 ZEND_ASSERT(node1 != node2); in dom_node_compare_document_position()
2560 ZEND_ASSERT(node2 != NULL); in dom_node_compare_document_position()
2563 if (node1 == node2) { in dom_node_compare_document_position()
2573 if (node1 == node2) { in dom_node_compare_document_position()
2578 ordering = node1 < node2 ? DOCUMENT_POSITION_PRECEDING : DOCUMENT_POSITION_FOLLOWING; in dom_node_compare_document_position()