Skip to content

Commit

Permalink
style: Shadow declarations of no-op animations
Browse files Browse the repository at this point in the history
Although we don't generate a "computed" keyframe animation, we're required to
shadow others.
  • Loading branch information
emilio committed Jun 28, 2016
1 parent faed3df commit 392f243
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/style/selector_matching.rs
Expand Up @@ -258,6 +258,11 @@ impl<Impl: SelectorImplExt> Stylist<Impl> {
debug!("Found valid keyframe animation: {:?}", animation);
self.animations.insert(keyframes_rule.name.clone(),
animation);
} else {
// If there's a valid keyframes rule, even if it doesn't
// produce an animation, should shadow other animations
// with the same name.
self.animations.remove(&keyframes_rule.name);
}
}
// We don't care about any other rule.
Expand Down

0 comments on commit 392f243

Please sign in to comment.