aboutsummaryrefslogtreecommitdiffstats
path: root/components/style
diff options
context:
space:
mode:
authorBrian Birtles <birtles@gmail.com>2017-05-26 13:53:23 +0900
committerBrian Birtles <birtles@gmail.com>2017-05-26 13:53:23 +0900
commit4deab0f06a69826c0d8d116d53db88fff464be92 (patch)
tree1c9c07fcd42db93bd41228743f092e3decb47d11 /components/style
parent764da7ba39c0ccbaf807c6131418761f70584322 (diff)
downloadservo-4deab0f06a69826c0d8d116d53db88fff464be92.tar.gz
servo-4deab0f06a69826c0d8d116d53db88fff464be92.zip
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.
Diffstat (limited to 'components/style')
-rw-r--r--components/style/rule_tree/mod.rs2
1 files changed, 1 insertions, 1 deletions
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;