mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
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:
parent
b61c857c64
commit
d717dd64b3
Notes:
github-actions[bot]
2025-12-03 12:31:08 +00:00
Author: https://github.com/AtkinsSJ
Commit: d717dd64b3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6998
6 changed files with 22 additions and 20 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue