Skip to content

Truly independent web browser

LibWeb: Return a RootVector from the editing clear the value algorithm

Shannon Boothc1c5a30da13e
diff --git a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp b/Libraries/LibWeb/Editing/Internal/Algorithms.cpp
index 9fdc9ed2483..2426cd82bd5 100644
--- a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp
+++ b/Libraries/LibWeb/Editing/Internal/Algorithms.cpp
@@ -697,7 +697,7 @@ void canonicalize_whitespace_after_node_insertion(DOM::BoundaryPoint boundary)
}
// https://w3c.github.io/editing/docs/execCommand/#clear-the-value
-Vector<GC::Ref<DOM::Node>> clear_the_value(Utf16FlyString const& command, GC::Ref<DOM::Element> element)
+GC::RootVector<GC::Ref<DOM::Node>> clear_the_value(Utf16FlyString const& command, GC::Ref<DOM::Element> element)
{
// 1. Let command be the current command.
diff --git a/Libraries/LibWeb/Editing/Internal/Algorithms.h b/Libraries/LibWeb/Editing/Internal/Algorithms.h
index 8c7ee15210c..0dd63b742f9 100644
--- a/Libraries/LibWeb/Editing/Internal/Algorithms.h
+++ b/Libraries/LibWeb/Editing/Internal/Algorithms.h
@@ -64,7 +64,7 @@ void canonicalize_collapsed_selection_for_editing(Selection&);
void canonicalize_whitespace(DOM::BoundaryPoint, bool fix_collapsed_space = true);
void canonicalize_whitespace_after_selection_replacement(DOM::BoundaryPoint);
void canonicalize_whitespace_after_node_insertion(DOM::BoundaryPoint);
-Vector<GC::Ref<DOM::Node>> clear_the_value(Utf16FlyString const&, GC::Ref<DOM::Element>);
+GC::RootVector<GC::Ref<DOM::Node>> clear_the_value(Utf16FlyString const&, GC::Ref<DOM::Element>);
void delete_the_selection(Selection&, bool block_merging = true, bool strip_wrappers = true, Selection::Direction = Selection::Direction::Forwards);
Optional<Utf16String> effective_command_value(GC::Ptr<DOM::Node>, Utf16FlyString const& command);
DOM::BoundaryPoint first_equivalent_point(DOM::BoundaryPoint);