mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibWeb/CSS: Make parse_color() take a TokenStream
This makes the parse_color_value() code a lot simpler.
This commit is contained in:
parent
b0e3b28929
commit
e5553d6d2f
Notes:
github-actions[bot]
2024-08-10 08:39:31 +00:00
Author: https://github.com/AtkinsSJ
Commit: e5553d6d2f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1018
Reviewed-by: https://github.com/awesomekling
2 changed files with 32 additions and 34 deletions
|
@ -245,7 +245,7 @@ private:
|
|||
Optional<Color> parse_hwb_color(Vector<ComponentValue> const&);
|
||||
Optional<Color> parse_oklab_color(Vector<ComponentValue> const&);
|
||||
Optional<Color> parse_oklch_color(Vector<ComponentValue> const&);
|
||||
Optional<Color> parse_color(ComponentValue const&);
|
||||
Optional<Color> parse_color(TokenStream<ComponentValue>&);
|
||||
Optional<LengthOrCalculated> parse_source_size_value(TokenStream<ComponentValue>&);
|
||||
Optional<Ratio> parse_ratio(TokenStream<ComponentValue>&);
|
||||
Optional<Gfx::UnicodeRange> parse_unicode_range(TokenStream<ComponentValue>&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue