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:
Hiroyuki Ikezoe 2017-03-26 18:47:16 +09:00
parent 499d1c4117
commit be332fe5a4
4 changed files with 20 additions and 3 deletions

View file

@ -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()),