From c769271e820c43da892ef0ae5dd2ef17bfea2359 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Mon, 3 Mar 2025 20:28:51 +0100 Subject: [PATCH] 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. --- Libraries/LibWeb/DOM/Document.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index bf1f992fa9b..01c881a3ad1 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -1520,8 +1520,6 @@ void Document::update_animated_style_if_needed() if (!m_needs_animated_style_update) return; - invalidate_display_list(); - for (auto& timeline : m_associated_animation_timelines) { for (auto& animation : timeline->associated_animations()) { if (animation->is_finished())