LibWeb: Separate CSSAnimation::animationName from Animation::id

This commit is contained in:
Callum Law 2025-10-30 21:10:36 +13:00 committed by Alexander Kalenik
parent 2447b8a759
commit a95cde3660
Notes: github-actions[bot] 2025-11-02 22:55:20 +00:00
5 changed files with 40 additions and 3 deletions

View file

@ -1235,7 +1235,7 @@ void StyleComputer::process_animation_definitions(ComputedProperties const& comp
// An animation applies to an element if its name appears as one of the identifiers in the computed value of the
// animation-name property and the animation uses a valid @keyframes rule
auto animation = CSSAnimation::create(document.realm());
animation->set_id(animation_properties.name);
animation->set_animation_name(animation_properties.name);
animation->set_timeline(document.timeline());
animation->set_owning_element(element);