diff --git a/src/document/dom/select.c b/src/document/dom/select.c index aa7661222..890553ae5 100644 --- a/src/document/dom/select.c +++ b/src/document/dom/select.c @@ -709,8 +709,6 @@ match_attribute_selectors(struct dom_select_node *base, struct dom_node *node) #define has_element_match(selector, name) \ ((selector)->match.element & (name)) -#define get_dom_select_data(stack) ((stack)->current->data) - static int match_element_selector(struct dom_select_node *selector, struct dom_node *node) { @@ -773,6 +771,8 @@ match_element_selector(struct dom_select_node *selector, struct dom_node *node) } +#define get_dom_select_data(stack) ((stack)->current->data) + /* Matches an element node being visited against the current selector stack. */ static void dom_select_push_element(struct dom_stack *stack, struct dom_node *node, void *data)