mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibGC: Rename MarkedVector => RootVector
Let's try to make it a bit more clear that this is a Vector of GC roots.
This commit is contained in:
committed by
Andreas Kling
parent
ada36e5c0a
commit
3bfb0534be
@@ -84,9 +84,9 @@ static bool is_all_named_element(DOM::Element const& element)
|
||||
|| is<HTML::HTMLTextAreaElement>(element);
|
||||
}
|
||||
|
||||
GC::MarkedVector<GC::Ref<DOM::Element>> HTMLAllCollection::collect_matching_elements() const
|
||||
GC::RootVector<GC::Ref<DOM::Element>> HTMLAllCollection::collect_matching_elements() const
|
||||
{
|
||||
GC::MarkedVector<GC::Ref<DOM::Element>> elements(m_root->heap());
|
||||
GC::RootVector<GC::Ref<DOM::Element>> elements(m_root->heap());
|
||||
if (m_scope == Scope::Descendants) {
|
||||
m_root->for_each_in_subtree_of_type<DOM::Element>([&](auto& element) {
|
||||
if (m_filter(element))
|
||||
|
||||
Reference in New Issue
Block a user