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

@@ -99,8 +99,7 @@ void Element::visit_edges(Cell::Visitor& visitor)
visitor.visit(m_shadow_root);
visitor.visit(m_custom_element_definition);
if (m_pseudo_element_nodes) {
for (auto& pseudo_element_layout_node : *m_pseudo_element_nodes)
visitor.visit(pseudo_element_layout_node);
visitor.visit(m_pseudo_element_nodes->span());
}
if (m_registered_intersection_observers) {
for (auto& registered_intersection_observers : *m_registered_intersection_observers)