mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1840890 - Reorder code in _cairo_tag_stack_pop. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D182469
This commit is contained in:
parent
9e6f0307fb
commit
fa1ad68423
@ -233,10 +233,12 @@ _cairo_tag_stack_pop (cairo_tag_stack_t *stack,
|
||||
cairo_list_del (&top->link);
|
||||
stack->size--;
|
||||
if (strcmp (top->name, name) != 0) {
|
||||
cairo_status_t status =
|
||||
_cairo_tag_error ("cairo_tag_end(\"%s\") does not matching previous begin tag \"%s\"",
|
||||
name, top->name);
|
||||
stack->type = TAG_TYPE_INVALID;
|
||||
_cairo_tag_stack_free_elem (top);
|
||||
return _cairo_tag_error ("cairo_tag_end(\"%s\") does not matching previous begin tag \"%s\"",
|
||||
name, top->name);
|
||||
return status;
|
||||
}
|
||||
|
||||
if (elem)
|
||||
|
Loading…
Reference in New Issue
Block a user