diff options
author | James Gilbertson <james.gilbertson@luniv.ca> | 2015-03-05 12:34:07 -0700 |
---|---|---|
committer | James Gilbertson <james.gilbertson@luniv.ca> | 2015-03-05 12:45:58 -0700 |
commit | a8cd40e270ca7145a660684b575188b64b56ff22 (patch) | |
tree | a3a1830f325dce219c2ec1c3acc7621bec74beb6 /components | |
parent | dc5a9e56c74255d6dfd43b6c022a7b6c0e26ce0b (diff) | |
download | servo-a8cd40e270ca7145a660684b575188b64b56ff22.tar.gz servo-a8cd40e270ca7145a660684b575188b64b56ff22.zip |
Remove the 'ch' font-relative length unit
Diffstat (limited to 'components')
-rw-r--r-- | components/style/values.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/components/style/values.rs b/components/style/values.rs index 5195f806563..8c57af3884c 100644 --- a/components/style/values.rs +++ b/components/style/values.rs @@ -120,7 +120,6 @@ pub mod specified { pub enum FontRelativeLength { Em(CSSFloat), Ex(CSSFloat), - Ch(CSSFloat), Rem(CSSFloat) } @@ -133,7 +132,6 @@ pub mod specified { match self { &FontRelativeLength::Em(length) => write!(dest, "{}em", length), &FontRelativeLength::Ex(length) => write!(dest, "{}ex", length), - &FontRelativeLength::Ch(length) => write!(dest, "{}ch", length), &FontRelativeLength::Rem(length) => write!(dest, "{}rem", length) } } @@ -151,7 +149,6 @@ pub mod specified { let x_height = 0.5; // TODO: find that from the font reference_font_size.scale_by(length * x_height) }, - &FontRelativeLength::Ch(_) => unimplemented!(), &FontRelativeLength::Rem(length) => root_font_size.scale_by(length) } } @@ -281,7 +278,6 @@ pub mod specified { // font-relative "em" => Ok(Length::FontRelative(FontRelativeLength::Em(value))), "ex" => Ok(Length::FontRelative(FontRelativeLength::Ex(value))), - "ch" => Err(()), "rem" => Ok(Length::FontRelative(FontRelativeLength::Rem(value))), // viewport percentages "vw" => Ok(Length::ViewportPercentage(ViewportPercentageLength::Vw(value))), |