Truly independent web browser
LibWeb: Root the formattable nodes of an editing command's state
Shannon Boothf38abc006b87
diff --git a/Libraries/LibWeb/Editing/ExecCommand.cpp b/Libraries/LibWeb/Editing/ExecCommand.cppindex bf9eed0c9f0..0af64b00ec8 100644--- a/Libraries/LibWeb/Editing/ExecCommand.cpp+++ b/Libraries/LibWeb/Editing/ExecCommand.cpp@@ -478,7 +478,7 @@ WebIDL::ExceptionOr<bool> Document::query_command_state(Utf16FlyString const& coif (!range)return false;- Vector<GC::Ref<Node>> formattable_nodes;+ GC::RootVector<GC::Ref<Node>> formattable_nodes;Editing::for_each_node_effectively_contained_in_range(range, [&](GC::Ref<Node> descendant) {if (Editing::is_formattable_node(descendant))formattable_nodes.append(descendant);