LibWeb: Don't invalidate display list in update_animated_style_if_needed

All necessary invalidations are issued while invalidating animated
style. There is no need to drop display list simply because there are
some animations that might need an update.
This commit is contained in:
Aliaksandr Kalenik 2025-03-03 20:28:51 +01:00 committed by Alexander Kalenik
commit c769271e82
Notes: github-actions[bot] 2025-03-03 20:46:21 +00:00

View file

@ -1520,8 +1520,6 @@ void Document::update_animated_style_if_needed()
if (!m_needs_animated_style_update) if (!m_needs_animated_style_update)
return; return;
invalidate_display_list();
for (auto& timeline : m_associated_animation_timelines) { for (auto& timeline : m_associated_animation_timelines) {
for (auto& animation : timeline->associated_animations()) { for (auto& animation : timeline->associated_animations()) {
if (animation->is_finished()) if (animation->is_finished())