mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Eliminate RestyleData entirely.
Without this change, the previous commit increases the size of ElementData. MozReview-Commit-ID: 87BZuXINiT9
This commit is contained in:
parent
61cad869d9
commit
50cee3e133
12 changed files with 66 additions and 94 deletions
|
@ -436,7 +436,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
// animation in a SequentialTask) is processed after the normal
|
||||
// traversal in that we had elements that handled snapshot.
|
||||
return data.has_styles() &&
|
||||
!data.restyle.hint.has_animation_hint_or_recascade();
|
||||
!data.hint.has_animation_hint_or_recascade();
|
||||
}
|
||||
|
||||
if traversal_flags.contains(traversal_flags::UnstyledOnly) {
|
||||
|
@ -448,7 +448,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
return false;
|
||||
}
|
||||
|
||||
data.has_styles() && !data.restyle.hint.has_non_animation_invalidations()
|
||||
data.has_styles() && !data.hint.has_non_animation_invalidations()
|
||||
}
|
||||
|
||||
/// Returns whether the element's styles are up-to-date after traversal
|
||||
|
@ -470,7 +470,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
//
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1389675 tracks fixing
|
||||
// this.
|
||||
!data.restyle.hint.has_non_animation_invalidations()
|
||||
!data.hint.has_non_animation_invalidations()
|
||||
}
|
||||
|
||||
/// Flag that this element has a descendant for style processing.
|
||||
|
@ -620,7 +620,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
Some(d) => d,
|
||||
None => return false,
|
||||
};
|
||||
return data.restyle.hint.has_animation_hint()
|
||||
return data.hint.has_animation_hint()
|
||||
}
|
||||
|
||||
/// Returns the anonymous content for the current element's XBL binding,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue