mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 18:31:09 +00:00
cssprovider: Reset the scope before skipping to the next rule after an error happens.
This is so the selector token gets parsed with the correct GScanner scope/config on all situations.
This commit is contained in:
parent
aa6eee73e5
commit
fe12c46531
@ -3564,6 +3564,8 @@ parse_stylesheet (GtkCssProvider *css_provider,
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
css_provider_reset_parser (css_provider);
|
||||
|
||||
while (!g_scanner_eof (priv->scanner) &&
|
||||
priv->scanner->token != G_TOKEN_RIGHT_CURLY)
|
||||
g_scanner_get_next_token (priv->scanner);
|
||||
|
Loading…
Reference in New Issue
Block a user