1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibWeb: Invalidate style of animation targets in update_finished_state

This commit is contained in:
Matthew Olsson 2024-02-04 14:13:16 -07:00 committed by Andreas Kling
parent a7727215a6
commit 154b4d4196

View file

@ -591,6 +591,12 @@ void Animation::update_finished_state(DidSeek did_seek, SynchronouslyNotify sync
m_current_finished_promise = WebIDL::create_promise(realm());
m_current_finished_promise_resolved = false;
}
// Invalidate the style of our target element, if applicable
if (m_effect) {
if (auto target = m_effect->target())
target->invalidate_style();
}
}
JS::NonnullGCPtr<WebIDL::Promise> Animation::current_ready_promise() const