mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:27:35 +00:00
LibWeb: Ensure m_is_finished is false after cancelling Animation
This commit is contained in:
parent
e11b9658ed
commit
fc6a6d29ec
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue