mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb: Take AbstractElement in start_a_transition()
This commit is contained in:
parent
e6bb0ab000
commit
524a161a51
Notes:
github-actions[bot]
2025-09-11 16:46:43 +00:00
Author: https://github.com/AtkinsSJ
Commit: 524a161a51
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6118
3 changed files with 14 additions and 14 deletions
|
@ -1341,7 +1341,7 @@ void StyleComputer::start_needed_transitions(ComputedProperties const& previous_
|
|||
auto start_a_transition = [&](auto delay, auto start_time, auto end_time, auto const& start_value, auto const& end_value, auto const& reversing_adjusted_start_value, auto reversing_shortening_factor) {
|
||||
dbgln_if(CSS_TRANSITIONS_DEBUG, "Starting a transition of {} from {} to {}", string_from_property_id(property_id), start_value->to_string(), end_value->to_string());
|
||||
|
||||
auto transition = CSSTransition::start_a_transition(element, pseudo_element, property_id,
|
||||
auto transition = CSSTransition::start_a_transition(abstract_element, property_id,
|
||||
document().transition_generation(), delay, start_time, end_time, start_value, end_value, reversing_adjusted_start_value, reversing_shortening_factor);
|
||||
// Immediately set the property's value to the transition's current value, to prevent single-frame jumps.
|
||||
collect_animation_into(abstract_element, as<Animations::KeyframeEffect>(*transition->effect()), new_style);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue