LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration

This commit is contained in:
Andreas Kling
2024-04-15 13:58:21 +02:00
parent 1a6d025793
commit 53d0dd4a2e
63 changed files with 98 additions and 213 deletions

View File

@@ -90,8 +90,7 @@ void HTMLMediaElement::visit_edges(Cell::Visitor& visitor)
visitor.visit(m_document_observer);
visitor.visit(m_source_element_selector);
visitor.visit(m_fetch_controller);
for (auto& promise : m_pending_play_promises)
visitor.visit(promise);
visitor.visit(m_pending_play_promises);
}
void HTMLMediaElement::attribute_changed(FlyString const& name, Optional<String> const& value)