LibWeb: Use generic <color-interpolation-method> parsing for gradients

See previous commit for details

We now support parsing of `display-p3-linear` (although it just falls
back to using Oklab since Skia doesn't support it)
This commit is contained in:
Callum Law
2026-03-18 21:51:26 +13:00
committed by Tim Ledbetter
parent d8c38a294c
commit 9db607b1a7
Notes: github-actions[bot] 2026-03-18 13:23:27 +00:00
13 changed files with 141 additions and 311 deletions

View File

@@ -373,7 +373,6 @@ private:
Optional<Vector<ColorStopListElement>> parse_color_stop_list(TokenStream<ComponentValue>& tokens, auto parse_position);
Optional<Vector<ColorStopListElement>> parse_linear_color_stop_list(TokenStream<ComponentValue>&);
Optional<Vector<ColorStopListElement>> parse_angular_color_stop_list(TokenStream<ComponentValue>&);
Optional<InterpolationMethod> parse_interpolation_method(TokenStream<ComponentValue>&);
RefPtr<ColorInterpolationMethodStyleValue const> parse_color_interpolation_method_value(TokenStream<ComponentValue>&);
RefPtr<LinearGradientStyleValue const> parse_linear_gradient_function(TokenStream<ComponentValue>&);