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:
parent
c02163c31f
commit
f1f1977e2d
2 changed files with 29 additions and 26 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue