Don't process RestyleKind::MatchAndCascade during animation-only restyle.

This commit is contained in:
Hiroyuki Ikezoe 2017-06-14 10:51:52 +09:00
parent 849bdc958c
commit 8d519011d8
2 changed files with 25 additions and 3 deletions

View file

@ -786,10 +786,15 @@ fn compute_style<E, D>(_traversal: &D,
use sharing::StyleSharingResult::*;
context.thread_local.statistics.elements_styled += 1;
let kind = data.restyle_kind();
let kind = data.restyle_kind(context.shared);
debug!("compute_style: {:?} (kind={:?})", element, kind);
match kind {
MatchAndCascade => {
debug_assert!(!context.shared.traversal_flags.for_animation_only(),
"MatchAndCascade shouldn't be processed during \
animation-only traversal");
// Ensure the bloom filter is up to date.
context.thread_local.bloom_filter
.insert_parents_recovering(element,