mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration
This commit is contained in:
@@ -16,8 +16,7 @@ StackOfOpenElements::~StackOfOpenElements() = default;
|
||||
|
||||
void StackOfOpenElements::visit_edges(JS::Cell::Visitor& visitor)
|
||||
{
|
||||
for (auto& element : m_elements)
|
||||
visitor.visit(element);
|
||||
visitor.visit(m_elements);
|
||||
}
|
||||
|
||||
bool StackOfOpenElements::has_in_scope_impl(FlyString const& tag_name, Vector<FlyString> const& list) const
|
||||
|
||||
Reference in New Issue
Block a user