mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Remove the for reconstruction traversals.
One less hack, a few more to go. Bug: 1374235 Reviewed-by: bholley MozReview-Commit-ID: 6katL1EGn2U Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
af52f5394a
commit
10ba4ead25
2 changed files with 1 additions and 11 deletions
|
@ -290,13 +290,7 @@ pub trait DomTraversal<E: TElement> : Sync {
|
|||
// Servo uses the post-order traversal for flow construction, so we need
|
||||
// to traverse any element with damage so that we can perform fixup /
|
||||
// reconstruction on our way back up the tree.
|
||||
//
|
||||
// In aggressively forgetful traversals (where we seek out and clear damage
|
||||
// in addition to not computing it) we also need to traverse nodes with
|
||||
// explicit damage and no other restyle data, so that this damage can be cleared.
|
||||
if (cfg!(feature = "servo") ||
|
||||
traversal_flags.contains(traversal_flags::AggressivelyForgetful)) &&
|
||||
!data.restyle.damage.is_empty() {
|
||||
if cfg!(feature = "servo") && !data.restyle.damage.is_empty() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue