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

LibWeb: Move color stop list parsing to standalone functions

This makes these slightly less clunky to use for other gradient types.
This commit is contained in:
MacDue 2022-11-08 21:33:00 +01:00 committed by Sam Atkins
parent c02163c31f
commit f1f1977e2d
2 changed files with 29 additions and 26 deletions

View file

@ -264,6 +264,9 @@ private:
};
Optional<AK::URL> parse_url_function(ComponentValue const&, AllowedDataUrlType = AllowedDataUrlType::None);
Optional<Vector<LinearColorStopListElement>> parse_linear_color_stop_list(TokenStream<ComponentValue>&);
Optional<Vector<AngularColorStopListElement>> parse_angular_color_stop_list(TokenStream<ComponentValue>&);
RefPtr<StyleValue> parse_linear_gradient_function(ComponentValue const&);
RefPtr<StyleValue> parse_conic_gradient_function(ComponentValue const&);