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
commit e2dfef90fb
Notes: sideshowbarker 2024-07-16 23:55:09 +09:00

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)