mirror of
https://github.com/servo/servo.git
synced 2025-06-28 11:03:39 +01:00
style: Use a proper flattened tree iterator if we're under a shadow tree.
This commit is contained in:
parent
421baa854e
commit
97c9dae40d
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