Implement Animate for FontSettings

This commit is contained in:
Daisuke Akatsuka 2017-09-05 16:12:20 +09:00
parent 951662848f
commit 653bced7a5
2 changed files with 177 additions and 0 deletions

View file

@ -219,6 +219,7 @@ pub struct FontSettingTagInt(pub u32);
/// because it serializes with the preceding space
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
#[cfg_attr(feature = "gecko", derive(Animate, ComputeSquaredDistance))]
pub struct FontSettingTagFloat(pub f32);
impl ToCss for FontSettingTagInt {