mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Kill a few more CVAS uses in font.mako.rs.
This commit is contained in:
parent
b12a34e06e
commit
ba5897adbd
1 changed files with 2 additions and 8 deletions
|
@ -2183,11 +2183,8 @@ https://drafts.csswg.org/css-fonts-4/#low-level-font-variation-settings-control-
|
||||||
|
|
||||||
<%helpers:longhand name="-x-lang" products="gecko" animation_value_type="none" internal="True"
|
<%helpers:longhand name="-x-lang" products="gecko" animation_value_type="none" internal="True"
|
||||||
spec="Internal (not web-exposed)">
|
spec="Internal (not web-exposed)">
|
||||||
use values::computed::ComputedValueAsSpecified;
|
|
||||||
pub use self::computed_value::T as SpecifiedValue;
|
pub use self::computed_value::T as SpecifiedValue;
|
||||||
|
|
||||||
impl ComputedValueAsSpecified for SpecifiedValue {}
|
|
||||||
|
|
||||||
pub mod computed_value {
|
pub mod computed_value {
|
||||||
use Atom;
|
use Atom;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
@ -2199,7 +2196,7 @@ https://drafts.csswg.org/css-fonts-4/#low-level-font-variation-settings-control-
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq, ToComputedValue)]
|
||||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||||
pub struct T(pub Atom);
|
pub struct T(pub Atom);
|
||||||
}
|
}
|
||||||
|
@ -2390,11 +2387,8 @@ ${helpers.single_keyword("-moz-math-variant",
|
||||||
|
|
||||||
<%helpers:longhand name="-x-text-zoom" products="gecko" animation_value_type="none" internal="True"
|
<%helpers:longhand name="-x-text-zoom" products="gecko" animation_value_type="none" internal="True"
|
||||||
spec="Internal (not web-exposed)">
|
spec="Internal (not web-exposed)">
|
||||||
use values::computed::ComputedValueAsSpecified;
|
|
||||||
pub use self::computed_value::T as SpecifiedValue;
|
pub use self::computed_value::T as SpecifiedValue;
|
||||||
|
|
||||||
impl ComputedValueAsSpecified for SpecifiedValue {}
|
|
||||||
|
|
||||||
pub mod computed_value {
|
pub mod computed_value {
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use style_traits::ToCss;
|
use style_traits::ToCss;
|
||||||
|
@ -2405,7 +2399,7 @@ ${helpers.single_keyword("-moz-math-variant",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq, ToComputedValue)]
|
||||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||||
/// text-zoom. Enable if true, disable if false
|
/// text-zoom. Enable if true, disable if false
|
||||||
pub struct T(pub bool);
|
pub struct T(pub bool);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue