LibWeb: Visit Animatable::m_associated_effects

This commit is contained in:
Matthew Olsson 2024-03-07 09:31:52 -07:00 committed by Alexander Kalenik
commit 24ec5838ba
Notes: sideshowbarker 2024-07-16 20:39:14 +09:00
3 changed files with 12 additions and 0 deletions

View file

@ -94,4 +94,12 @@ void Animatable::disassociate_with_effect(JS::NonnullGCPtr<AnimationEffect> effe
m_associated_effects.remove_first_matching([&](auto element) { return effect == element; });
}
void Animatable::visit_edges(JS::Cell::Visitor& visitor)
{
for (auto const& effect : m_associated_effects)
visitor.visit(effect);
visitor.visit(m_cached_animation_name_source);
visitor.visit(m_cached_animation_name_animation);
}
}