mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
LibWeb: Remove unused TemporaryExecutionContext from Animation
We don't need a temporary execution context to create a promise.
This commit is contained in:
parent
55255586e8
commit
af552856c8
Notes:
github-actions[bot]
2025-08-26 16:49:16 +00:00
Author: https://github.com/gmta
Commit: af552856c8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5991
1 changed files with 0 additions and 1 deletions
|
@ -1182,7 +1182,6 @@ void Animation::update_finished_state(DidSeek did_seek, SynchronouslyNotify sync
|
|||
// 6. If current finished state is false and animation’s current finished promise is already resolved, set
|
||||
// animation’s current finished promise to a new promise in the relevant Realm of animation.
|
||||
if (!current_finished_state && m_is_finished) {
|
||||
HTML::TemporaryExecutionContext execution_context { realm };
|
||||
m_current_finished_promise = WebIDL::create_promise(realm);
|
||||
m_is_finished = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue