mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
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:
parent
95e26819d9
commit
91925db9ca
Notes:
github-actions[bot]
2025-10-20 10:29:40 +00:00
Author: https://github.com/Calme1709
Commit: 91925db9ca
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6459
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 67 additions and 67 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue