mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 13:37:10 +09: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:
parent
ada36e5c0a
commit
3bfb0534be
Notes:
github-actions[bot]
2024-12-26 18:11:36 +00:00
Author: https://github.com/awesomekling
Commit: 3bfb0534be
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3048
117 changed files with 281 additions and 281 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue