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
commit fc6a6d29ec
Notes: sideshowbarker 2024-07-17 20:22:04 +09:00

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.