LibWeb: Don't invalidate style for animations in idle state

This commit is contained in:
Aliaksandr Kalenik 2025-03-04 16:17:49 +01:00 committed by Alexander Kalenik
commit 80c0a16597
Notes: github-actions[bot] 2025-03-04 17:37:09 +00:00
2 changed files with 3 additions and 1 deletions

View file

@ -1522,7 +1522,7 @@ void Document::update_animated_style_if_needed()
for (auto& timeline : m_associated_animation_timelines) {
for (auto& animation : timeline->associated_animations()) {
if (animation->is_finished())
if (animation->is_idle() || animation->is_finished())
continue;
if (auto effect = animation->effect()) {
if (auto* target = effect->target())