Skip rule node which contains only inherited properties for rule cache.

This commit is contained in:
Xidorn Quan 2018-01-05 09:54:59 +11:00
parent 782e3fe4e4
commit 3593392788
6 changed files with 75 additions and 7 deletions

View file

@ -485,6 +485,7 @@ fn compute_style_for_animation_step(context: &SharedStyleContext,
properties::apply_declarations(context.stylist.device(),
/* pseudo = */ None,
previous_style.rules(),
&context.guards,
iter,
Some(previous_style),
Some(previous_style),