mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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
@@ -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 we’re traversing the node tree. This is because the post-connection
|
||||
// steps can modify the tree’s 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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user