mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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",
|
||||
"FontStyleAdjust",
|
||||
"FontSynthesis",
|
||||
"FontVariantEastAsian",
|
||||
"FontVariantLigatures",
|
||||
"FontVariantNumeric",
|
||||
"FontWeight",
|
||||
"GreaterThanOrEqualToOneNumber",
|
||||
"GridAutoFlow",
|
||||
|
@ -327,6 +330,7 @@ class Longhand(object):
|
|||
"ScrollSnapType",
|
||||
"TextAlign",
|
||||
"TextDecorationLine",
|
||||
"TextEmphasisPosition",
|
||||
"TouchAction",
|
||||
"TransformStyle",
|
||||
"XSpan",
|
||||
|
|
|
@ -1359,7 +1359,7 @@ impl VariantEastAsian {
|
|||
impl_gecko_keyword_conversions!(VariantEastAsian, u16);
|
||||
|
||||
#[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.
|
||||
pub enum FontVariantEastAsian {
|
||||
/// Value variant with `variant-east-asian`
|
||||
|
@ -1570,7 +1570,7 @@ impl VariantLigatures {
|
|||
impl_gecko_keyword_conversions!(VariantLigatures, u16);
|
||||
|
||||
#[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
|
||||
/// to produce more harmonized forms
|
||||
pub enum FontVariantLigatures {
|
||||
|
@ -1786,7 +1786,7 @@ impl VariantNumeric {
|
|||
impl_gecko_keyword_conversions!(VariantNumeric, u8);
|
||||
|
||||
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
||||
#[derive(Clone, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, SpecifiedValueInfo, ToCss)]
|
||||
/// Specifies control over numerical forms.
|
||||
pub enum FontVariantNumeric {
|
||||
/// Value variant with `variant-numeric`
|
||||
|
|
|
@ -744,7 +744,7 @@ pub enum TextEmphasisVerticalWritingModeValue {
|
|||
}
|
||||
|
||||
/// Specified value of `text-emphasis-position` property.
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, SpecifiedValueInfo,
|
||||
#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, SpecifiedValueInfo,
|
||||
ToComputedValue, ToCss)]
|
||||
pub struct TextEmphasisPosition(
|
||||
pub TextEmphasisHorizontalWritingModeValue,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue