mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibWeb/CSS: Parse gradient functions with TokenStream
They already used TokenStream for parsing the function parameters, but this makes the `parse_foo_gradient()` functions themselves take a TokenStream.
This commit is contained in:
parent
29d7aa9fc9
commit
9de73bf89b
Notes:
github-actions[bot]
2024-08-10 08:38:51 +00:00
Author: https://github.com/AtkinsSJ
Commit: 9de73bf89b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1018
Reviewed-by: https://github.com/awesomekling
3 changed files with 25 additions and 21 deletions
|
@ -271,9 +271,9 @@ private:
|
|||
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&);
|
||||
RefPtr<StyleValue> parse_radial_gradient_function(ComponentValue const&);
|
||||
RefPtr<StyleValue> parse_linear_gradient_function(TokenStream<ComponentValue>&);
|
||||
RefPtr<StyleValue> parse_conic_gradient_function(TokenStream<ComponentValue>&);
|
||||
RefPtr<StyleValue> parse_radial_gradient_function(TokenStream<ComponentValue>&);
|
||||
|
||||
ParseErrorOr<NonnullRefPtr<StyleValue>> parse_css_value(PropertyID, TokenStream<ComponentValue>&);
|
||||
RefPtr<StyleValue> parse_css_value_for_property(PropertyID, TokenStream<ComponentValue>&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue