style: cherry-pick some changes from m-c that had got lost.

This commit is contained in:
Emilio Cobos Álvarez 2018-04-29 02:41:36 +02:00
parent 07de715bb5
commit 64cceb328a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 10 additions and 6 deletions

View file

@ -227,13 +227,14 @@ impl Default for KeywordSize {
///
/// https://drafts.csswg.org/css-fonts-4/#font-style-prop
#[allow(missing_docs)]
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, Debug, MallocSizeOf,
PartialEq, ToAnimatedValue, ToAnimatedZero)]
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, Debug, MallocSizeOf,
PartialEq, SpecifiedValueInfo, ToAnimatedValue, ToAnimatedZero)]
pub enum FontStyle<Angle> {
#[animation(error)]
Normal,
#[animation(error)]
Italic,
#[value_info(starts_with_keyword)]
Oblique(Angle),
}