mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 14:58:11 +00:00
LibWeb: Correctly set @keyframe rule's effect target
This commit is contained in:
parent
1bd20a4595
commit
ec766e8669
1 changed files with 1 additions and 1 deletions
|
@ -1412,7 +1412,7 @@ ErrorOr<void> StyleComputer::compute_cascaded_values(StyleProperties& style, DOM
|
||||||
if (auto keyframe_set = rule_cache.rules_by_animation_keyframes.get(animation->id()); keyframe_set.has_value())
|
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());
|
effect->set_key_frame_set(keyframe_set.value());
|
||||||
|
|
||||||
element.associate_with_effect(effect);
|
effect->set_target(&element);
|
||||||
element.set_cached_animation_name_animation(animation);
|
element.set_cached_animation_name_animation(animation);
|
||||||
} else {
|
} else {
|
||||||
// The animation hasn't changed, but some properties of the animation may have
|
// The animation hasn't changed, but some properties of the animation may have
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue