mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
63bd783c55
commit
b1fecea0aa
4 changed files with 18 additions and 80 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue