mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Make transition order consider property name
class_specific_composite_order() also has no reason to return an Optional<int>, since it can just return 0.
This commit is contained in:
parent
1df94c4513
commit
2c4f2a3cb6
Notes:
github-actions[bot]
2025-11-11 12:48:13 +00:00
Author: https://github.com/Psychpsyo
Commit: 2c4f2a3cb6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6789
Reviewed-by: https://github.com/gmta ✅
8 changed files with 36 additions and 12 deletions
|
|
@ -647,8 +647,8 @@ int KeyframeEffect::composite_order(GC::Ref<KeyframeEffect> a, GC::Ref<KeyframeE
|
|||
|
||||
// 2. If A and B are still not sorted, sort by any class-specific composite order defined by the common class of
|
||||
// A and B’s associated animations.
|
||||
if (auto order = a_animation->class_specific_composite_order(*b_animation); order.has_value())
|
||||
return order.value();
|
||||
if (auto order = a_animation->class_specific_composite_order(*b_animation); order != 0)
|
||||
return order;
|
||||
|
||||
// 3. If A and B are still not sorted, sort by the position of their associated animations in the global
|
||||
// animation list.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue