From 4deab0f06a69826c0d8d116d53db88fff464be92 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Fri, 26 May 2017 13:53:23 +0900 Subject: Fix calculation of base styles to drop animation rules It seems that changeset 97ce9ed5b08f7b1c7c6cd71a9499068b8bd2ae4e mistakenly changed the check that a cascade level to keep is *not* an animation level to a check that it *is* an animation level. --- components/style/rule_tree/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/style/rule_tree') diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index bb13836c2a6..22a862cac5f 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -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; -- cgit v1.2.3