LibWeb: Apply composite operator to keyframe effects

This commit is contained in:
Tim Ledbetter 2025-09-16 14:42:48 +01:00 committed by Sam Atkins
parent 004bd3dc8f
commit 9b15517052
Notes: github-actions[bot] 2025-09-18 15:50:50 +00:00
60 changed files with 2849 additions and 201 deletions

View file

@ -872,6 +872,7 @@ WebIDL::ExceptionOr<void> KeyframeEffect::set_keyframes(Optional<GC::Root<JS::Ob
for (auto& keyframe : m_keyframes) {
Animations::KeyframeEffect::KeyFrameSet::ResolvedKeyFrame resolved_keyframe;
resolved_keyframe.composite = keyframe.composite;
auto key = static_cast<u64>(keyframe.computed_offset.value() * 100 * AnimationKeyFrameKeyScaleFactor);

View file

@ -67,6 +67,7 @@ public:
// These StyleValue properties can be unresolved, as they may be generated from a @keyframes rule, well
// before they are applied to an element
HashMap<CSS::PropertyID, Variant<UseInitial, NonnullRefPtr<CSS::StyleValue const>>> properties {};
Bindings::CompositeOperationOrAuto composite { Bindings::CompositeOperationOrAuto::Auto };
};
RedBlackTree<u64, ResolvedKeyFrame> keyframes_by_key;
};