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
commit 154b4d4196
Notes: sideshowbarker 2024-07-17 10:16:43 +09:00

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