diff options
Diffstat (limited to 'src/libserver/css/css_value.hxx')
-rw-r--r-- | src/libserver/css/css_value.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/css/css_value.hxx b/src/libserver/css/css_value.hxx index d7c8f5c45..93324a57c 100644 --- a/src/libserver/css/css_value.hxx +++ b/src/libserver/css/css_value.hxx @@ -82,6 +82,8 @@ struct css_value { type(css_value_type::CSS_VALUE_NUMBER), value(num) {} css_value(css_dimension dim) : type(css_value_type::CSS_VALUE_DIMENSION), value(dim) {} + css_value(css_display_value d) : + type(css_value_type::CSS_VALUE_DISPLAY), value(d) {} auto to_color(void) const -> std::optional<css_color> { if (type == css_value_type::CSS_VALUE_COLOR) { @@ -121,8 +123,6 @@ struct css_value { auto debug_str() const -> std::string; - static auto from_css_block(const css_consumed_block &bl) -> tl::expected<css_value, css_parse_error>; - static auto maybe_color_from_string(const std::string_view &input) -> std::optional<css_value>; static auto maybe_color_from_hex(const std::string_view &input) @@ -131,6 +131,8 @@ struct css_value { -> std::optional<css_value>; static auto maybe_dimension_from_number(const css_parser_token &tok) -> std::optional<css_value>; + static auto maybe_display_from_string(const std::string_view &input) + -> std::optional<css_value>; }; } |