1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:27:35 +00:00

LibWeb: Ensure m_is_finished is false after cancelling Animation

This commit is contained in:
Matthew Olsson 2024-03-07 21:39:54 -07:00 committed by Alexander Kalenik
parent e11b9658ed
commit fc6a6d29ec

View file

@ -430,6 +430,7 @@ void Animation::cancel(ShouldInvalidate should_invalidate)
// 4. Let current finished promise be a new promise in the relevant Realm of animation.
m_current_finished_promise = WebIDL::create_promise(realm);
m_is_finished = false;
// 5. Create an AnimationPlaybackEvent, cancelEvent.
// 6. Set cancelEvents type attribute to cancel.