Truly independent web browser
LibWeb: Collect the source text of a CSS query in inline memory
Andreas Kling28c2f592ade9
diff --git a/Libraries/LibWeb/Rust/src/css/parser/query_parser.rs b/Libraries/LibWeb/Rust/src/css/parser/query_parser.rsindex 02f5cb58b4c..dd92b727884 100644--- a/Libraries/LibWeb/Rust/src/css/parser/query_parser.rs+++ b/Libraries/LibWeb/Rust/src/css/parser/query_parser.rs@@ -507,7 +507,7 @@ fn original_source(values: &[ComponentValue]) -> ParserString {/// The source text `values` were tokenized from.fn source_text(values: &[ComponentValue]) -> CssString {- let text: Vec<u16> = values+ let text: smallvec::SmallVec<[u16; 128]> = values.iter().flat_map(|component| component.original_source_text.iter()).collect();