Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
style: Make several more specified values Copy.
  • Loading branch information
upsuper authored and emilio committed Aug 18, 2018
1 parent e22850d commit 5299ce3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions components/style/properties/data.py
Expand Up @@ -304,6 +304,9 @@ def specified_is_copy(self):
"FontStyle",
"FontStyleAdjust",
"FontSynthesis",
"FontVariantEastAsian",
"FontVariantLigatures",
"FontVariantNumeric",
"FontWeight",
"GreaterThanOrEqualToOneNumber",
"GridAutoFlow",
Expand All @@ -327,6 +330,7 @@ def specified_is_copy(self):
"ScrollSnapType",
"TextAlign",
"TextDecorationLine",
"TextEmphasisPosition",
"TouchAction",
"TransformStyle",
"XSpan",
Expand Down
6 changes: 3 additions & 3 deletions components/style/values/specified/font.rs
Expand Up @@ -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`
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion components/style/values/specified/text.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 5299ce3

Please sign in to comment.