mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/CSS: Take AbstractElement in collect_animation_into()
This commit is contained in:
parent
b2ee4a9444
commit
50c0b4549c
Notes:
github-actions[bot]
2025-09-11 16:47:56 +00:00
Author: https://github.com/AtkinsSJ
Commit: 50c0b4549c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6118
3 changed files with 12 additions and 12 deletions
|
|
@ -925,14 +925,14 @@ void KeyframeEffect::update_computed_properties(AnimationUpdateContext& context)
|
|||
auto computed_properties = target->computed_properties(pseudo_element_type());
|
||||
if (!computed_properties)
|
||||
return;
|
||||
|
||||
context.elements.ensure(DOM::AbstractElement { *target, pseudo_element_type() }, [computed_properties] {
|
||||
DOM::AbstractElement abstract_element { *target, pseudo_element_type() };
|
||||
context.elements.ensure(abstract_element, [computed_properties] {
|
||||
auto old_animated_properties = computed_properties->animated_property_values();
|
||||
computed_properties->reset_animated_properties({});
|
||||
return make<AnimationUpdateContext::ElementData>(move(old_animated_properties), computed_properties);
|
||||
});
|
||||
|
||||
target->document().style_computer().collect_animation_into(*target, pseudo_element_type(), *this, *computed_properties);
|
||||
target->document().style_computer().collect_animation_into(abstract_element, *this, *computed_properties);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue