mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
commit
eea678c141
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue