Skip to content

Commit

Permalink
LibWeb: Ensure m_is_finished is false after cancelling Animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 authored and kalenikaliaksandr committed Mar 9, 2024
1 parent e11b965 commit fc6a6d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Userland/Libraries/LibWeb/Animations/Animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 cancelEvent’s type attribute to cancel.
Expand Down

0 comments on commit fc6a6d2

Please sign in to comment.