mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Add flag that represents the traversal is only for animation-only restyle.
We will set the flag when the root node of the traversal has has-animation-only-dirty-descendants flag or has animation restyle hints. Also we will use this flag to detect whether we need to trigger CSS transitions or not.
This commit is contained in:
parent
499d1c4117
commit
be332fe5a4
4 changed files with 20 additions and 3 deletions
|
@ -87,6 +87,9 @@ pub struct SharedStyleContext<'a> {
|
|||
|
||||
/// The QuirksMode state which the document needs to be rendered with
|
||||
pub quirks_mode: QuirksMode,
|
||||
|
||||
/// True if the traversal is processing only animation restyles.
|
||||
pub animation_only_restyle: bool,
|
||||
}
|
||||
|
||||
impl<'a> SharedStyleContext<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue