diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-04 20:39:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-04 20:39:29 +0000 |
commit | 5ea57860c64e89d688ed9658db279a164374cbe8 (patch) | |
tree | a8d25d47d8540a53d0c221e7b88a5309d818ab9d /src/libserver/css/css_parser.hxx | |
parent | 956aa233ad9536a5d2ca8b1ed6924b15cd5fee10 (diff) | |
download | rspamd-5ea57860c64e89d688ed9658db279a164374cbe8.tar.gz rspamd-5ea57860c64e89d688ed9658db279a164374cbe8.zip |
[Project] CSS: Various fixes in the declarations and values parsing
Diffstat (limited to 'src/libserver/css/css_parser.hxx')
-rw-r--r-- | src/libserver/css/css_parser.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/css/css_parser.hxx b/src/libserver/css/css_parser.hxx index 5b2d93ae5..887d846ad 100644 --- a/src/libserver/css/css_parser.hxx +++ b/src/libserver/css/css_parser.hxx @@ -39,7 +39,7 @@ namespace rspamd::css { class css_consumed_block { public: enum class parser_tag_type : std::uint8_t { - css_top_block, + css_top_block = 0, css_qualified_rule, css_at_rule, css_simple_block, @@ -133,7 +133,7 @@ public: } auto get_function_or_invalid() const -> const css_function_block& { - if (is_token()) { + if (is_function()) { return std::get<css_function_block>(content); } |