mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +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
|
@ -520,6 +520,7 @@ impl LayoutThread {
|
|||
local_context_creation_data: Mutex::new(thread_local_style_context_creation_data),
|
||||
timer: self.timer.clone(),
|
||||
quirks_mode: self.quirks_mode.unwrap(),
|
||||
animation_only_restyle: false,
|
||||
},
|
||||
image_cache_thread: Mutex::new(self.image_cache_thread.clone()),
|
||||
font_cache_thread: Mutex::new(self.font_cache_thread.clone()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue