mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb: Set animation update flag from Animation::invalidate_effect()
Fixes regressed animation tests.
This commit is contained in:
parent
aad110ec7e
commit
42d5883d57
Notes:
sideshowbarker
2024-07-17 02:21:14 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 42d5883d57
Pull-request: https://github.com/SerenityOS/serenity/pull/23665
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 4 additions and 3 deletions
|
@ -1316,8 +1316,10 @@ JS::NonnullGCPtr<WebIDL::Promise> Animation::current_finished_promise() const
|
|||
void Animation::invalidate_effect()
|
||||
{
|
||||
if (m_effect) {
|
||||
if (auto target = m_effect->target(); target && target->paintable())
|
||||
if (auto target = m_effect->target(); target && target->paintable()) {
|
||||
target->document().set_needs_animated_style_update();
|
||||
target->paintable()->set_needs_display();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue