diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-20 12:56:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-20 12:56:42 +0100 |
commit | 818f37f646fb536047f4408390007eef000a33a3 (patch) | |
tree | 5d44d03c045cf23f32bd6757d8592b7bbd3b70f8 /src/libserver/css | |
parent | 24214a2fa4485f08476d69c3b48619dd4ac309ac (diff) | |
download | rspamd-818f37f646fb536047f4408390007eef000a33a3.tar.gz rspamd-818f37f646fb536047f4408390007eef000a33a3.zip |
[Rework] Redesign html blocks propagation logic
Diffstat (limited to 'src/libserver/css')
-rw-r--r-- | src/libserver/css/css_rule.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/css/css_rule.cxx b/src/libserver/css/css_rule.cxx index 17301e724..3a93d97d4 100644 --- a/src/libserver/css/css_rule.cxx +++ b/src/libserver/css/css_rule.cxx @@ -456,7 +456,7 @@ css_declarations_block::compile_to_block(rspamd_mempool_t *pool) const -> rspamd } /* Optional properties */ - if (!(block->mask & rspamd::html::html_block::fg_color_mask) && font_rule) { + if (!(block->fg_color_mask) && font_rule) { auto &vals = font_rule->get_values(); for (const auto &val : vals) { @@ -468,7 +468,7 @@ css_declarations_block::compile_to_block(rspamd_mempool_t *pool) const -> rspamd } } - if (!(block->mask & rspamd::html::html_block::font_size_mask) && font_rule) { + if (!(block->font_mask) && font_rule) { auto &vals = font_rule->get_values(); for (const auto &val : vals) { @@ -480,7 +480,7 @@ css_declarations_block::compile_to_block(rspamd_mempool_t *pool) const -> rspamd } } - if (!(block->mask & rspamd::html::html_block::bg_color_mask) && background_rule) { + if (!(block->bg_color_mask) && background_rule) { auto &vals = background_rule->get_values(); for (const auto &val : vals) { |