Truly independent web browser
LibWeb: Look up scope roots in the cold matching batch by row
Tim Ledbetter120c5c0c475b
diff --git a/Libraries/LibWeb/Rust/src/css/style/matching.rs b/Libraries/LibWeb/Rust/src/css/style/matching.rsindex 71be62b888c..421be47d281 100644--- a/Libraries/LibWeb/Rust/src/css/style/matching.rs+++ b/Libraries/LibWeb/Rust/src/css/style/matching.rs@@ -188,7 +188,7 @@ impl RetainedState {self.facts.materialize(nodes.iter().copied(), &mut batch);let mut expected_row_count = nodes.len();for scope_root in self.scope_roots.iter().flatten().copied() {- if self.tree.is_live(scope_root) && !nodes.contains(&scope_root) {+ if self.tree.is_live(scope_root) && batch.row_of(scope_root).is_none() {self.facts.materialize_missing(std::iter::once(scope_root), &mut batch);expected_row_count += 1;}