mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Remove mozmm CSS unit.
Bug: 1416564 Reviewed-by: heycam MozReview-Commit-ID: AU4CUq09tw4
This commit is contained in:
parent
c261ff38c7
commit
eac0d104a3
5 changed files with 2 additions and 94 deletions
|
@ -77,8 +77,6 @@ pub struct CalcLengthOrPercentage {
|
|||
pub ch: Option<CSSFloat>,
|
||||
pub rem: Option<CSSFloat>,
|
||||
pub percentage: Option<computed::Percentage>,
|
||||
#[cfg(feature = "gecko")]
|
||||
pub mozmm: Option<CSSFloat>,
|
||||
}
|
||||
|
||||
impl ToCss for CalcLengthOrPercentage {
|
||||
|
@ -142,14 +140,7 @@ impl ToCss for CalcLengthOrPercentage {
|
|||
serialize!(ch);
|
||||
serialize_abs!(Cm);
|
||||
serialize!(em, ex);
|
||||
serialize_abs!(In);
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
{
|
||||
serialize!(mozmm);
|
||||
}
|
||||
|
||||
serialize_abs!(Mm, Pc, Pt, Px, Q);
|
||||
serialize_abs!(In, Mm, Pc, Pt, Px, Q);
|
||||
serialize!(rem, vh, vmax, vmin, vw);
|
||||
|
||||
dest.write_str(")")
|
||||
|
@ -398,16 +389,6 @@ impl CalcNode {
|
|||
}
|
||||
}
|
||||
NoCalcLength::ServoCharacterWidth(..) => unreachable!(),
|
||||
#[cfg(feature = "gecko")]
|
||||
NoCalcLength::Physical(physical) => {
|
||||
use values::specified::length::PhysicalLength;
|
||||
|
||||
match physical {
|
||||
PhysicalLength::Mozmm(mozmm) => {
|
||||
ret.mozmm = Some(ret.mozmm.unwrap_or(0.) + mozmm * factor);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
CalcNode::Sub(ref a, ref b) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue