LibWeb: Don't deassociate animations when deregistering transitions

Also renames the `clear_transitions` function to clarify this doesn't
affect the associated transition animations.

This fixes an issue where transitions weren't being cancelled when the
relevant transition-property entry was no longer present
This commit is contained in:
Callum Law 2025-11-18 16:24:40 +13:00 committed by Jelle Raaijmakers
parent b262902b02
commit 025274cd86
Notes: github-actions[bot] 2025-11-23 08:44:52 +00:00
5 changed files with 30 additions and 4 deletions

View file

@ -1232,7 +1232,7 @@ static void compute_transitioned_properties(ComputedProperties const& style, DOM
if (source_declaration == element.cached_transition_property_source(pseudo_element))
return;
// Reparse this transition property
element.clear_transitions(pseudo_element);
element.clear_registered_transitions(pseudo_element);
element.set_cached_transition_property_source(pseudo_element, *source_declaration);
auto coordinated_transition_list = style.assemble_coordinated_value_list(