diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-09-17 17:01:29 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-09-17 17:01:29 -0400 |
commit | a08e2b5692cca817594aa11507f43dc672774d0c (patch) | |
tree | 40325e9ba935b5072be4ce9d82be433f3ff34eb3 /gtk/gtkcssparser.c | |
parent | d1b77fd60f7911169e283f81d2db7dfbd975b5a2 (diff) | |
download | gtk+-a08e2b5692cca817594aa11507f43dc672774d0c.tar.gz |
Drop code parsing deprecated forms of url
We no longer allow whitespace between url and (.
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r-- | gtk/gtkcssparser.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c index 960445ffb8..852f9ef091 100644 --- a/gtk/gtkcssparser.c +++ b/gtk/gtkcssparser.c @@ -835,18 +835,8 @@ _gtk_css_parser_read_url (GtkCssParser *parser) { if (!_gtk_css_parser_try (parser, "(", TRUE)) { - _gtk_css_parser_skip_whitespace (parser); - if (_gtk_css_parser_try (parser, "(", TRUE)) - { - _gtk_css_parser_error_full (parser, - GTK_CSS_PROVIDER_ERROR_DEPRECATED, - "Whitespace between 'url' and '(' is deprecated"); - } - else - { - _gtk_css_parser_error (parser, "Expected '(' after 'url'"); - return NULL; - } + _gtk_css_parser_error (parser, "Expected '(' after 'url'"); + return NULL; } path = _gtk_css_parser_read_string (parser); |