1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibWeb: Add parsing for CSS <paint> values

This gets rid of a couple of FIXMEs in Properties.json :^)
This commit is contained in:
Sam Atkins 2023-06-15 16:37:36 +01:00 committed by Andreas Kling
parent 23aae7c7f3
commit 5cdcd135ab
4 changed files with 44 additions and 22 deletions

View file

@ -311,6 +311,7 @@ private:
ErrorOr<RefPtr<StyleValue>> parse_ratio_value(TokenStream<ComponentValue>&);
ErrorOr<RefPtr<StyleValue>> parse_string_value(ComponentValue const&);
ErrorOr<RefPtr<StyleValue>> parse_image_value(ComponentValue const&);
ErrorOr<RefPtr<StyleValue>> parse_paint_value(TokenStream<ComponentValue>&);
template<typename ParseFunction>
ErrorOr<RefPtr<StyleValue>> parse_comma_separated_value_list(Vector<ComponentValue> const&, ParseFunction);
ErrorOr<RefPtr<StyleValue>> parse_simple_comma_separated_value_list(PropertyID, Vector<ComponentValue> const&);