Auto merge of #18937 - emilio:shadow-proper-flattened-tree, r=heycam

style: Use a proper flattened tree iterator if we're under a shadow tree.

<!-- 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/18937)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-10-18 12:44:32 -05:00 committed by GitHub
commit eea678c141

View file

@ -867,6 +867,7 @@ impl<'le> TElement for GeckoElement<'le> {
// ::before/::after, XBL bindings, or nsIAnonymousContentCreators.
if self.is_in_anonymous_subtree() ||
self.has_xbl_binding_with_content() ||
self.is_in_shadow_tree() ||
self.may_have_anonymous_children() {
unsafe {
let mut iter: structs::StyleChildrenIterator = ::std::mem::zeroed();