mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Separate CSSAnimation::animationName from Animation::id
This commit is contained in:
parent
2447b8a759
commit
a95cde3660
Notes:
github-actions[bot]
2025-11-02 22:55:20 +00:00
Author: https://github.com/Calme1709
Commit: a95cde3660
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6642
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 40 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue