LibWeb: Remove associated transitions when clearing transitions

This fixes a crash on nextjs.org
This commit is contained in:
ChaseKnowlden 2024-09-22 16:06:09 -04:00 committed by Tim Ledbetter
parent 9fbf5039a6
commit ee54f9ee95
Notes: github-actions[bot] 2024-09-23 15:09:50 +00:00

View file

@ -150,6 +150,7 @@ void Animatable::remove_transition(CSS::PropertyID property_id)
void Animatable::clear_transitions()
{
m_associated_transitions.clear();
m_transition_attribute_indices.clear();
m_transition_attributes.clear();
}