From ec766e8669a0f71a67d6134ab1e3cc257d141fe8 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 2 Mar 2024 07:33:23 -0700 Subject: [PATCH] LibWeb: Correctly set @keyframe rule's effect target --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index 9b7ad068de..f4cb456001 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -1412,7 +1412,7 @@ ErrorOr StyleComputer::compute_cascaded_values(StyleProperties& style, DOM if (auto keyframe_set = rule_cache.rules_by_animation_keyframes.get(animation->id()); keyframe_set.has_value()) effect->set_key_frame_set(keyframe_set.value()); - element.associate_with_effect(effect); + effect->set_target(&element); element.set_cached_animation_name_animation(animation); } else { // The animation hasn't changed, but some properties of the animation may have