LibWeb: Remove useless animation relevancy check

This is already done in Animatable::get_animations()
This commit is contained in:
Matthew Olsson
2024-03-25 16:57:50 -07:00
committed by Andreas Kling
parent 0743a33266
commit e2dfef90fb

View File

@@ -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<Animations::KeyframeEffect*>(effect.ptr());
if (keyframe_effect.pseudo_element_type() == pseudo_element)