mirror of
https://github.com/servo/servo.git
synced 2025-07-17 20:33:40 +01:00
style: Shadow declarations of no-op animations
Although we don't generate a "computed" keyframe animation, we're required to shadow others.
This commit is contained in:
parent
faed3df594
commit
392f243ca7
1 changed files with 5 additions and 0 deletions
|
@ -258,6 +258,11 @@ impl<Impl: SelectorImplExt> Stylist<Impl> {
|
||||||
debug!("Found valid keyframe animation: {:?}", animation);
|
debug!("Found valid keyframe animation: {:?}", animation);
|
||||||
self.animations.insert(keyframes_rule.name.clone(),
|
self.animations.insert(keyframes_rule.name.clone(),
|
||||||
animation);
|
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.
|
// We don't care about any other rule.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue