Lines Matching refs:idx

48     size_t idx = tree->active_formatting->length;  in lxb_html_tree_active_formatting_remove_by_node()  local
50 while (idx != 0) { in lxb_html_tree_active_formatting_remove_by_node()
51 idx--; in lxb_html_tree_active_formatting_remove_by_node()
53 if (list[idx] == node) { in lxb_html_tree_active_formatting_remove_by_node()
54 delta = tree->active_formatting->length - idx - 1; in lxb_html_tree_active_formatting_remove_by_node()
56 memmove(list + idx, list + idx + 1, sizeof(void *) * delta); in lxb_html_tree_active_formatting_remove_by_node()
190 size_t idx = tree->active_formatting->length; in lxb_html_tree_active_formatting_between_last_marker() local
192 while (idx) { in lxb_html_tree_active_formatting_between_last_marker()
193 idx--; in lxb_html_tree_active_formatting_between_last_marker()
195 if (list[idx] == lxb_html_tree_active_formatting_marker_node_static) { in lxb_html_tree_active_formatting_between_last_marker()
199 if (list[idx]->local_name == tag_idx && list[idx]->ns == LXB_NS_HTML) { in lxb_html_tree_active_formatting_between_last_marker()
201 *return_idx = idx; in lxb_html_tree_active_formatting_between_last_marker()
204 return list[idx]; in lxb_html_tree_active_formatting_between_last_marker()
216 size_t idx = tree->active_formatting->length; in lxb_html_tree_active_formatting_push_with_check_dupl() local
217 size_t earliest_idx = (idx ? (idx - 1) : 0); in lxb_html_tree_active_formatting_push_with_check_dupl()
220 while (idx) { in lxb_html_tree_active_formatting_push_with_check_dupl()
221 idx--; in lxb_html_tree_active_formatting_push_with_check_dupl()
223 if (list[idx] == lxb_html_tree_active_formatting_marker_node_static) { in lxb_html_tree_active_formatting_push_with_check_dupl()
227 if(list[idx]->local_name == node->local_name && list[idx]->ns == node->ns in lxb_html_tree_active_formatting_push_with_check_dupl()
228 && lxb_dom_element_compare(lxb_dom_interface_element(list[idx]), in lxb_html_tree_active_formatting_push_with_check_dupl()
232 earliest_idx = idx; in lxb_html_tree_active_formatting_push_with_check_dupl()