Lines Matching refs:node1

2448 	xmlNodePtr node1 = other;  in dom_node_compare_document_position()  local
2456 if (node1->type == XML_ATTRIBUTE_NODE) { in dom_node_compare_document_position()
2457 attr1 = node1; in dom_node_compare_document_position()
2458 node1 = attr1->parent; in dom_node_compare_document_position()
2468 if (attr1 != NULL && node1 != NULL && node2 == node1) { in dom_node_compare_document_position()
2482 if (node1 == NULL || node2 == NULL) { in dom_node_compare_document_position()
2487 xmlNodePtr node1_root = node1; in dom_node_compare_document_position()
2500 if (node2_root == node1) { 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()
2543 node1 = node1->parent; in dom_node_compare_document_position()
2553 while (node1->parent != node2->parent) { in dom_node_compare_document_position()
2554 node1 = node1->parent; in dom_node_compare_document_position()
2558 ZEND_ASSERT(node1 != node2); in dom_node_compare_document_position()
2559 ZEND_ASSERT(node1 != NULL); in dom_node_compare_document_position()
2562 node1 = node1->next; in dom_node_compare_document_position()
2563 if (node1 == node2) { in dom_node_compare_document_position()
2566 } while (node1 != NULL); in dom_node_compare_document_position()
2573 if (node1 == node2) { in dom_node_compare_document_position()
2575 ZEND_ASSERT(node1 == NULL); in dom_node_compare_document_position()
2578 ordering = node1 < node2 ? DOCUMENT_POSITION_PRECEDING : DOCUMENT_POSITION_FOLLOWING; in dom_node_compare_document_position()