Auto merge of #19060 - emilio:invalidation-fishy, r=nox

style: Fix some fishiness in the invalidation code.

See individual commits for details, I think this is not observable.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19060)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-10-30 07:39:00 -05:00 committed by GitHub
commit 26279064eb

View file

@ -348,7 +348,11 @@ impl<'a, E> Element for ElementWrapper<'a, E>
}
fn pseudo_element_originating_element(&self) -> Option<Self> {
self.element.closest_non_native_anonymous_ancestor()
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()
}
}