LibWeb: Make Animation's owning element an AbstractElement

From the spec:
> The owning element of a transition refers to the element or
  pseudo-element to which the transition-property property was applied
  that generated the animation.

https://drafts.csswg.org/css-transitions-2/#owning-element

Previously we only stored the element.
This commit is contained in:
Sam Atkins 2025-12-02 11:17:41 +00:00 committed by Andreas Kling
parent b61c857c64
commit d717dd64b3
Notes: github-actions[bot] 2025-12-03 12:31:08 +00:00
6 changed files with 22 additions and 20 deletions

View file

@ -1176,7 +1176,7 @@ void StyleComputer::process_animation_definitions(ComputedProperties const& comp
auto animation = CSSAnimation::create(document.realm());
animation->set_animation_name(animation_properties.name);
animation->set_timeline(document.timeline());
animation->set_owning_element(abstract_element.element());
animation->set_owning_element(abstract_element);
auto effect = Animations::KeyframeEffect::create(document.realm());
animation->set_effect(effect);