Skip to content

Truly independent web browser

LibWeb: Drop the growth slack of parsed declaration blocks

Andreas Klinge292b6433d1e
diff --git a/Libraries/LibWeb/Rust/src/css/parser/syntax_parser.rs b/Libraries/LibWeb/Rust/src/css/parser/syntax_parser.rs
index 237ce935725..62baa39a423 100644
--- a/Libraries/LibWeb/Rust/src/css/parser/syntax_parser.rs
+++ b/Libraries/LibWeb/Rust/src/css/parser/syntax_parser.rs
@@ -3289,6 +3289,7 @@ impl<'a> SyntaxParseBuilder<'a> {
)
}),
);
+ block.compact();
let declaration_block = Some(Arc::new(block));
let local_identity = self.next_identity();
let identity_index = usize::try_from(local_identity).expect("parsed declaration identity overflow");