LibWeb: Don't canonicalize linear easing function points until use time

Canonicalization can require information that is only known after
compute time (i.e. resolved relative lengths within calcs).

This also allows us to get rid of the `had_explicit_input` flag and just
rely on whether Optional has a value
This commit is contained in:
Callum Law 2025-10-09 21:55:55 +13:00 committed by Sam Atkins
commit 91925db9ca
Notes: github-actions[bot] 2025-10-20 10:29:40 +00:00
5 changed files with 67 additions and 67 deletions

View file

@ -2931,9 +2931,9 @@ RefPtr<StyleValue const> Parser::parse_easing_value(TokenStream<ComponentValue>&
if (argument_tokens.has_next_token() || !output.has_value())
return nullptr;
stops.append({ output.value(), first_input, first_input.has_value() });
stops.append({ output.value(), first_input });
if (second_input.has_value())
stops.append({ output.value(), second_input, true });
stops.append({ output.value(), second_input });
}
if (stops.is_empty())