Fix calculation of base styles to drop animation rules

It seems that changeset 97ce9ed5b0
mistakenly changed the check that a cascade level to keep is *not* an
animation level to a check that it *is* an animation level.
This commit is contained in:
Brian Birtles 2017-05-26 13:53:23 +09:00
parent 764da7ba39
commit 4deab0f06a

View file

@ -369,7 +369,7 @@ impl RuleTree {
let mut last = path;
let mut children = vec![];
for node in iter {
if node.cascade_level().is_animation() {
if !node.cascade_level().is_animation() {
children.push((node.get().source.clone().unwrap(), node.cascade_level()));
}
last = node;