mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibWeb: Keep track of associated AnimationEffects in Animatable
This commit is contained in:
parent
2ade834655
commit
5eea53f27a
4 changed files with 33 additions and 1 deletions
|
@ -29,6 +29,12 @@ public:
|
|||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Animation>> animate(Optional<JS::Handle<JS::Object>> keyframes, Variant<Empty, double, KeyframeAnimationOptions> options = {});
|
||||
Vector<JS::NonnullGCPtr<Animation>> get_animations(GetAnimationsOptions options = {});
|
||||
|
||||
void associate_with_effect(JS::NonnullGCPtr<AnimationEffect> effect);
|
||||
void disassociate_with_effect(JS::NonnullGCPtr<AnimationEffect> effect);
|
||||
|
||||
private:
|
||||
Vector<JS::NonnullGCPtr<AnimationEffect>> m_associated_effects;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue