mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Use CustomIdent for animation-name and @keyframes
This commit is contained in:
parent
4993a80074
commit
d9c2d1a9fb
8 changed files with 35 additions and 43 deletions
|
@ -349,13 +349,13 @@ impl Stylist {
|
|||
|
||||
// Don't let a prefixed keyframes animation override a non-prefixed one.
|
||||
let needs_insertion = keyframes_rule.vendor_prefix.is_none() ||
|
||||
self.animations.get(&keyframes_rule.name).map_or(true, |rule|
|
||||
self.animations.get(&keyframes_rule.name.0).map_or(true, |rule|
|
||||
rule.vendor_prefix.is_some());
|
||||
if needs_insertion {
|
||||
let animation = KeyframesAnimation::from_keyframes(
|
||||
&keyframes_rule.keyframes, keyframes_rule.vendor_prefix.clone(), guard);
|
||||
debug!("Found valid keyframe animation: {:?}", animation);
|
||||
self.animations.insert(keyframes_rule.name.clone(), animation);
|
||||
self.animations.insert(keyframes_rule.name.0.clone(), animation);
|
||||
}
|
||||
}
|
||||
CssRule::FontFace(ref rule) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue