mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Derive ToCss for font_feature_values_rule::SingleValue
This commit is contained in:
parent
6d2018ae38
commit
3672856efa
1 changed files with 1 additions and 7 deletions
|
@ -53,7 +53,7 @@ pub trait ToGeckoFontFeatureValues {
|
|||
}
|
||||
|
||||
/// A @font-feature-values block declaration value that keeps one value.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq, ToCss)]
|
||||
pub struct SingleValue(pub u32);
|
||||
|
||||
impl Parse for SingleValue {
|
||||
|
@ -67,12 +67,6 @@ impl Parse for SingleValue {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToCss for SingleValue {
|
||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||
self.0.to_css(dest)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
impl ToGeckoFontFeatureValues for SingleValue {
|
||||
fn to_gecko_font_feature_values(&self, array: &mut nsTArray<u32>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue