LibWeb/CSS: Split parse_rgb_or_hsl_color into separate functions

This commit is contained in:
Gingeh 2024-07-03 18:39:14 +10:00 committed by Andrew Kaster
commit 490a36bab1
Notes: sideshowbarker 2024-07-17 23:07:41 +09:00
2 changed files with 213 additions and 135 deletions

View file

@ -238,7 +238,8 @@ private:
Optional<TimeOrCalculated> parse_time(TokenStream<ComponentValue>&);
Optional<TimePercentage> parse_time_percentage(TokenStream<ComponentValue>&);
Optional<Color> parse_rgb_or_hsl_color(StringView function_name, Vector<ComponentValue> const&);
Optional<Color> parse_rgb_color(Vector<ComponentValue> const&);
Optional<Color> parse_hsl_color(Vector<ComponentValue> const&);
Optional<Color> parse_color(ComponentValue const&);
Optional<LengthOrCalculated> parse_source_size_value(TokenStream<ComponentValue>&);
Optional<Ratio> parse_ratio(TokenStream<ComponentValue>&);