aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/invalidation/element/element_wrapper.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-10-30 12:38:55 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-10-30 12:40:25 +0100
commitf060cbb38c82a29d791f44c41b5b880b56c2ed93 (patch)
tree2db83888bc64a4aa1a6eb2de0a53029c36610b27 /components/style/invalidation/element/element_wrapper.rs
parentbea79aabff861c8eddc43a3e505e6097cf373ad9 (diff)
downloadservo-f060cbb38c82a29d791f44c41b5b880b56c2ed93.tar.gz
servo-f060cbb38c82a29d791f44c41b5b880b56c2ed93.zip
style: Properly forward ElementWrapper::blocks_ancestor_combinators.
Not doing it is buggy. I think the only outcome of it is that we may over-invalidate, so it's probably not a huge deal, but worth doing it.
Diffstat (limited to 'components/style/invalidation/element/element_wrapper.rs')
-rw-r--r--components/style/invalidation/element/element_wrapper.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/style/invalidation/element/element_wrapper.rs b/components/style/invalidation/element/element_wrapper.rs
index 2cbe56bf955..8b3fb0385bb 100644
--- a/components/style/invalidation/element/element_wrapper.rs
+++ b/components/style/invalidation/element/element_wrapper.rs
@@ -351,4 +351,8 @@ impl<'a, E> Element for ElementWrapper<'a, E>
self.element.pseudo_element_originating_element()
.map(|e| ElementWrapper::new(e, self.snapshot_map))
}
+
+ fn blocks_ancestor_combinators(&self) -> bool {
+ self.element.blocks_ancestor_combinators()
+ }
}