style: Get rid of unstyled children only traversals.

They're useless now, provided we remove the hack to not traverse XBL-bound
elements on initial styling.

Bug: 1418456
Reviewed-by: heycam
MozReview-Commit-ID: AvBVdyF1wb6
This commit is contained in:
Emilio Cobos Álvarez 2017-11-17 21:13:48 +01:00
parent 63bd783c55
commit b1fecea0aa
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 18 additions and 80 deletions

View file

@ -557,11 +557,6 @@ pub trait TElement
!data.hint.has_animation_hint_or_recascade();
}
if traversal_flags.contains(TraversalFlags::UnstyledOnly) {
// We don't process invalidations in UnstyledOnly mode.
return data.has_styles();
}
if self.has_snapshot() && !self.handled_snapshot() {
return false;
}