diff --git a/src/document/dom/stack.c b/src/document/dom/stack.c index a5692a87..f7904b60 100644 --- a/src/document/dom/stack.c +++ b/src/document/dom/stack.c @@ -184,12 +184,11 @@ pop_dom_nodes(struct dom_stack *stack, enum dom_node_type type, state = search_dom_stack(stack, type, string); if (state) - pop_dom_state(stack, type, state); + pop_dom_state(stack, state); } void -pop_dom_state(struct dom_stack *stack, enum dom_node_type type, - struct dom_stack_state *target) +pop_dom_state(struct dom_stack *stack, struct dom_stack_state *target) { struct dom_stack_state *state; unsigned int pos; diff --git a/src/document/dom/stack.h b/src/document/dom/stack.h index 7f0ea4da..f3c62443 100644 --- a/src/document/dom/stack.h +++ b/src/document/dom/stack.h @@ -127,9 +127,7 @@ void pop_dom_nodes(struct dom_stack *stack, enum dom_node_type type, struct dom_string *string); /* Pop all stack states until a specific state is reached. */ -void -pop_dom_state(struct dom_stack *stack, enum dom_node_type type, - struct dom_stack_state *target); +void pop_dom_state(struct dom_stack *stack, struct dom_stack_state *target); /* Visit each node in the tree rooted at @root pre-order */ void walk_dom_nodes(struct dom_stack *stack, struct dom_node *root); diff --git a/src/document/sgml/parser.c b/src/document/sgml/parser.c index 50590553..34bfdfb9 100644 --- a/src/document/sgml/parser.c +++ b/src/document/sgml/parser.c @@ -255,7 +255,7 @@ parse_sgml_document(struct dom_stack *stack, struct scanner *scanner) pstate = get_dom_stack_state_data(stack, state); copy_struct(&pstate->end_token, token); - pop_dom_state(stack, DOM_NODE_ELEMENT, state); + pop_dom_state(stack, state); } } skip_scanner_token(scanner);