mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Don't process RestyleKind::MatchAndCascade during animation-only restyle.
This commit is contained in:
parent
849bdc958c
commit
8d519011d8
2 changed files with 25 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue