LibWeb: Remove unused TemporaryExecutionContext from Animation

We don't need a temporary execution context to create a promise.
This commit is contained in:
Jelle Raaijmakers 2025-08-26 14:22:05 +02:00 committed by Jelle Raaijmakers
commit af552856c8
Notes: github-actions[bot] 2025-08-26 16:49:16 +00:00

View file

@ -1182,7 +1182,6 @@ void Animation::update_finished_state(DidSeek did_seek, SynchronouslyNotify sync
// 6. If current finished state is false and animations current finished promise is already resolved, set
// animations 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;
}