mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb/CSS: Use AbstractElement animation helpers
This commit is contained in:
parent
dacc64cb8b
commit
b61c857c64
Notes:
github-actions[bot]
2025-12-03 12:31:15 +00:00
Author: https://github.com/AtkinsSJ
Commit: b61c857c64
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6998
2 changed files with 5 additions and 13 deletions
|
|
@ -102,9 +102,7 @@ CSSTransition::CSSTransition(JS::Realm& realm, DOM::AbstractElement abstract_ele
|
|||
// that have been disassociated from their owning element but are still idle do not have a defined composite order.
|
||||
|
||||
// Construct a KeyframesEffect for our animation
|
||||
m_keyframe_effect->set_target(&abstract_element.element());
|
||||
if (abstract_element.pseudo_element().has_value())
|
||||
m_keyframe_effect->set_pseudo_element(Selector::PseudoElementSelector { abstract_element.pseudo_element().value() });
|
||||
m_keyframe_effect->set_target(abstract_element);
|
||||
m_keyframe_effect->set_start_delay(delay);
|
||||
m_keyframe_effect->set_iteration_duration(end_time - start_time);
|
||||
m_keyframe_effect->set_timing_function(abstract_element.element().property_transition_attributes(abstract_element.pseudo_element(), property_id)->timing_function);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue