mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +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
@@ -98,10 +98,10 @@ void HTMLCollection::update_cache_if_needed() const
|
||||
m_cached_dom_tree_version = root()->document().dom_tree_version();
|
||||
}
|
||||
|
||||
GC::MarkedVector<GC::Ref<Element>> HTMLCollection::collect_matching_elements() const
|
||||
GC::RootVector<GC::Ref<Element>> HTMLCollection::collect_matching_elements() const
|
||||
{
|
||||
update_cache_if_needed();
|
||||
GC::MarkedVector<GC::Ref<Element>> elements(heap());
|
||||
GC::RootVector<GC::Ref<Element>> elements(heap());
|
||||
for (auto& element : m_cached_elements)
|
||||
elements.append(element);
|
||||
return elements;
|
||||
|
||||
Reference in New Issue
Block a user