aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/css
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-20 12:56:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-20 12:56:42 +0100
commit818f37f646fb536047f4408390007eef000a33a3 (patch)
tree5d44d03c045cf23f32bd6757d8592b7bbd3b70f8 /src/libserver/css
parent24214a2fa4485f08476d69c3b48619dd4ac309ac (diff)
downloadrspamd-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.cxx6
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) {