Use generics for initial-letter

The former version used ComputedValueAsSpecified, which means we were storing
specified numbers and integers in the computed value.
This commit is contained in:
Anthony Ramine 2017-06-07 01:31:02 +02:00
parent f388c0ab1e
commit 7d09ce0495
7 changed files with 83 additions and 82 deletions

View file

@ -6,9 +6,14 @@
use app_units::Au;
use properties::animated_properties::Animatable;
use values::CSSFloat;
use values::{CSSInteger, CSSFloat};
use values::computed::length::{Length, LengthOrPercentage};
use values::generics::text::{LineHeight as GenericLineHeight, Spacing};
use values::generics::text::InitialLetter as GenericInitialLetter;
use values::generics::text::LineHeight as GenericLineHeight;
use values::generics::text::Spacing;
/// A computed value for the `initial-letter` property.
pub type InitialLetter = GenericInitialLetter<CSSFloat, CSSInteger>;
/// A computed value for the `letter-spacing` property.
pub type LetterSpacing = Spacing<Length>;