aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/css/css_parser.hxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-29 15:17:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-29 15:17:09 +0100
commit162b69d568210372475ca79bcefba8c070875b05 (patch)
treee916de1390d8986158890c9c7e02e7592b208868 /src/libserver/css/css_parser.hxx
parentdfbd181e9cc0dc13eba0d00b0fa77b133ee364f3 (diff)
downloadrspamd-162b69d568210372475ca79bcefba8c070875b05.tar.gz
rspamd-162b69d568210372475ca79bcefba8c070875b05.zip
[Project] Css: Implement styles merging
Diffstat (limited to 'src/libserver/css/css_parser.hxx')
-rw-r--r--src/libserver/css/css_parser.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libserver/css/css_parser.hxx b/src/libserver/css/css_parser.hxx
index 4b5598fa9..af79abb68 100644
--- a/src/libserver/css/css_parser.hxx
+++ b/src/libserver/css/css_parser.hxx
@@ -185,8 +185,12 @@ extern const css_consumed_block css_parser_eof_block;
using blocks_gen_functor = fu2::unique_function<const css_consumed_block &(void)>;
class css_style_sheet;
-auto parse_css(rspamd_mempool_t *pool, const std::string_view &st) ->
- tl::expected<std::unique_ptr<css_style_sheet>, css_parse_error>;
+/*
+ * Update the existing stylesheet with another stylesheet
+ */
+auto parse_css(rspamd_mempool_t *pool, const std::string_view &st,
+ css_style_sheet *other)
+ -> tl::expected<std::unique_ptr<css_style_sheet>, css_parse_error>;
auto get_selectors_parser_functor(rspamd_mempool_t *pool,
const std::string_view &st) -> blocks_gen_functor;