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:
Andreas Kling
2024-12-26 14:32:52 +01:00
committed by Andreas Kling
parent ada36e5c0a
commit 3bfb0534be
117 changed files with 281 additions and 281 deletions

View File

@@ -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;