mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Remove useless animation relevancy check
This is already done in Animatable::get_animations()
This commit is contained in:
parent
0743a33266
commit
e2dfef90fb
Notes:
sideshowbarker
2024-07-16 23:55:09 +09:00
Author: https://github.com/mattco98
Commit: e2dfef90fb
Pull-request: https://github.com/SerenityOS/serenity/pull/23723
Issue: https://github.com/SerenityOS/serenity/issues/23716
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue