Store custom properties in keyframes into servo's PropertyDeclarationBlock

This commit is contained in:
Hiroyuki Ikezoe 2017-09-27 12:49:15 +09:00
parent 54f8a131ea
commit ded0c713db
7 changed files with 33 additions and 0 deletions

View file

@ -1514,6 +1514,12 @@ impl PropertyDeclaration {
}
}
/// Returns true if this property is a custom property, false
/// otherwise.
pub fn is_custom(&self) -> bool {
matches!(*self, PropertyDeclaration::Custom(_, _))
}
/// The `context` parameter controls this:
///
/// https://drafts.csswg.org/css-animations/#keyframes