mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibWeb: Invalidate style of animation targets in update_finished_state
This commit is contained in:
parent
a7727215a6
commit
154b4d4196
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue