mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Make several more specified values Copy.
Differential Revision: https://phabricator.services.mozilla.com/D2932
This commit is contained in:
parent
e22850dc85
commit
5299ce31aa
3 changed files with 8 additions and 4 deletions
|
@ -304,6 +304,9 @@ class Longhand(object):
|
||||||
"FontStyle",
|
"FontStyle",
|
||||||
"FontStyleAdjust",
|
"FontStyleAdjust",
|
||||||
"FontSynthesis",
|
"FontSynthesis",
|
||||||
|
"FontVariantEastAsian",
|
||||||
|
"FontVariantLigatures",
|
||||||
|
"FontVariantNumeric",
|
||||||
"FontWeight",
|
"FontWeight",
|
||||||
"GreaterThanOrEqualToOneNumber",
|
"GreaterThanOrEqualToOneNumber",
|
||||||
"GridAutoFlow",
|
"GridAutoFlow",
|
||||||
|
@ -327,6 +330,7 @@ class Longhand(object):
|
||||||
"ScrollSnapType",
|
"ScrollSnapType",
|
||||||
"TextAlign",
|
"TextAlign",
|
||||||
"TextDecorationLine",
|
"TextDecorationLine",
|
||||||
|
"TextEmphasisPosition",
|
||||||
"TouchAction",
|
"TouchAction",
|
||||||
"TransformStyle",
|
"TransformStyle",
|
||||||
"XSpan",
|
"XSpan",
|
||||||
|
|
|
@ -1359,7 +1359,7 @@ impl VariantEastAsian {
|
||||||
impl_gecko_keyword_conversions!(VariantEastAsian, u16);
|
impl_gecko_keyword_conversions!(VariantEastAsian, u16);
|
||||||
|
|
||||||
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
||||||
#[derive(Clone, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
#[derive(Clone, Copy, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
||||||
/// Allows control of glyph substitution and sizing in East Asian text.
|
/// Allows control of glyph substitution and sizing in East Asian text.
|
||||||
pub enum FontVariantEastAsian {
|
pub enum FontVariantEastAsian {
|
||||||
/// Value variant with `variant-east-asian`
|
/// Value variant with `variant-east-asian`
|
||||||
|
@ -1570,7 +1570,7 @@ impl VariantLigatures {
|
||||||
impl_gecko_keyword_conversions!(VariantLigatures, u16);
|
impl_gecko_keyword_conversions!(VariantLigatures, u16);
|
||||||
|
|
||||||
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
||||||
#[derive(Clone, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
#[derive(Clone, Copy, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
||||||
/// Ligatures and contextual forms are ways of combining glyphs
|
/// Ligatures and contextual forms are ways of combining glyphs
|
||||||
/// to produce more harmonized forms
|
/// to produce more harmonized forms
|
||||||
pub enum FontVariantLigatures {
|
pub enum FontVariantLigatures {
|
||||||
|
@ -1786,7 +1786,7 @@ impl VariantNumeric {
|
||||||
impl_gecko_keyword_conversions!(VariantNumeric, u8);
|
impl_gecko_keyword_conversions!(VariantNumeric, u8);
|
||||||
|
|
||||||
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
||||||
#[derive(Clone, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
#[derive(Clone, Copy, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
||||||
/// Specifies control over numerical forms.
|
/// Specifies control over numerical forms.
|
||||||
pub enum FontVariantNumeric {
|
pub enum FontVariantNumeric {
|
||||||
/// Value variant with `variant-numeric`
|
/// Value variant with `variant-numeric`
|
||||||
|
|
|
@ -744,7 +744,7 @@ pub enum TextEmphasisVerticalWritingModeValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Specified value of `text-emphasis-position` property.
|
/// Specified value of `text-emphasis-position` property.
|
||||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, SpecifiedValueInfo,
|
#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, SpecifiedValueInfo,
|
||||||
ToComputedValue, ToCss)]
|
ToComputedValue, ToCss)]
|
||||||
pub struct TextEmphasisPosition(
|
pub struct TextEmphasisPosition(
|
||||||
pub TextEmphasisHorizontalWritingModeValue,
|
pub TextEmphasisHorizontalWritingModeValue,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue