mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
LibWeb: Ensure m_is_finished is false after cancelling Animation
This commit is contained in:
parent
e11b9658ed
commit
fc6a6d29ec
Notes:
sideshowbarker
2024-07-17 20:22:04 +09:00
Author: https://github.com/mattco98
Commit: fc6a6d29ec
Pull-request: https://github.com/SerenityOS/serenity/pull/23523
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