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

@@ -673,7 +673,7 @@ void Node::insert_before(GC::Ref<Node> node, GC::Ptr<Node> child, bool suppress_
// 1. If inclusiveDescendant is custom, then enqueue a custom element callback reaction with inclusiveDescendant,
// callback name "connectedCallback", and an empty argument list.
if (element.is_custom()) {
GC::MarkedVector<JS::Value> empty_arguments { vm().heap() };
GC::RootVector<JS::Value> empty_arguments { vm().heap() };
element.enqueue_a_custom_element_callback_reaction(HTML::CustomElementReactionNames::connectedCallback, move(empty_arguments));
}
@@ -702,7 +702,7 @@ void Node::insert_before(GC::Ref<Node> node, GC::Ptr<Node> child, bool suppress_
// the post-connection steps while were traversing the node tree. This is because the post-connection
// steps can modify the trees structure, making live traversal unsafe, possibly leading to the
// post-connection steps being called multiple times on the same node.
GC::MarkedVector<GC::Ref<Node>> static_node_list(heap());
GC::RootVector<GC::Ref<Node>> static_node_list(heap());
// 11. For each node of nodes, in tree order:
for (auto& node : nodes) {
@@ -882,7 +882,7 @@ void Node::remove(bool suppress_observers)
auto& element = static_cast<DOM::Element&>(*this);
if (element.is_custom() && is_parent_connected) {
GC::MarkedVector<JS::Value> empty_arguments { vm().heap() };
GC::RootVector<JS::Value> empty_arguments { vm().heap() };
element.enqueue_a_custom_element_callback_reaction(HTML::CustomElementReactionNames::disconnectedCallback, move(empty_arguments));
}
}
@@ -898,7 +898,7 @@ void Node::remove(bool suppress_observers)
auto& element = static_cast<DOM::Element&>(descendant);
if (element.is_custom() && is_parent_connected) {
GC::MarkedVector<JS::Value> empty_arguments { vm().heap() };
GC::RootVector<JS::Value> empty_arguments { vm().heap() };
element.enqueue_a_custom_element_callback_reaction(HTML::CustomElementReactionNames::disconnectedCallback, move(empty_arguments));
}
}