1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:37:45 +00:00

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
parent 2a021a35fc
commit 24ec5838ba
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);
}
}