Skip to content
Permalink
Browse files

style: Shadow declarations of no-op animations

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 392f243ca7dd08a34da4ca15dfc5596f69adf4d8
Showing with 5 additions and 0 deletions.
  1. +5 −0 components/style/selector_matching.rs
@@ -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.

0 comments on commit 392f243

Please sign in to comment.
You can’t perform that action at this time.