Skip to content

Truly independent web browser

LibWeb: Keep recorded values in a ConservativeVector when deleting

Andreas Kling8f3203a25d19
diff --git a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp b/Libraries/LibWeb/Editing/Internal/Algorithms.cpp
index 83f353fb91b..42a662678e8 100644
--- a/Libraries/LibWeb/Editing/Internal/Algorithms.cpp
+++ b/Libraries/LibWeb/Editing/Internal/Algorithms.cpp
@@ -1292,7 +1292,7 @@ void delete_the_selection(Selection& selection, bool block_merging, bool strip_w
remove_node(*start_block->first_child());
// 32. If start block is an ancestor of end block:
- Vector<RecordedNodeValue> values;
+ GC::ConservativeVector<RecordedNodeValue> values;
GC::ConservativeVector<RecordedWhiteSpace> recorded_white_space;
if (start_block->is_ancestor_of(*end_block)) {
// 1. Let reference node be end block.