LibWeb: Don't invalidate style of finished animations

Removes lots of completely unnecessary work, especially when animated
property affects layout.
This commit is contained in:
Aliaksandr Kalenik 2025-03-03 20:09:42 +01:00 committed by Alexander Kalenik
parent 94de31ff3b
commit 8e481f65f5
Notes: github-actions[bot] 2025-03-03 20:46:36 +00:00

View file

@ -1529,6 +1529,8 @@ void Document::update_animated_style_if_needed()
}
for (auto& animation : timeline->associated_animations()) {
if (animation->is_finished())
continue;
if (auto effect = animation->effect())
effect->update_computed_properties();
}