From e2dfef90fb1fab21832f9272f4802f1ef46896eb Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Mon, 25 Mar 2024 16:57:50 -0700 Subject: [PATCH] LibWeb: Remove useless animation relevancy check This is already done in Animatable::get_animations() --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index f61af71eb0e..fc78d42668a 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -1579,9 +1579,6 @@ void StyleComputer::compute_cascaded_values(StyleProperties& style, DOM::Element auto animations = element.get_animations({ .subtree = false }); for (auto& animation : animations) { - if (!animation->is_relevant()) - continue; - if (auto effect = animation->effect(); effect && effect->is_keyframe_effect()) { auto& keyframe_effect = *static_cast(effect.ptr()); if (keyframe_effect.pseudo_element_type() == pseudo_element)