diff --git a/components/style/gecko/conversions.rs b/components/style/gecko/conversions.rs index de42d262694..a36f82018df 100644 --- a/components/style/gecko/conversions.rs +++ b/components/style/gecko/conversions.rs @@ -707,9 +707,9 @@ pub mod basic_shape { } StyleBasicShapeType::Polygon => { let fill_rule = if other.mFillRule == StyleFillRule::Evenodd { - FillRule::EvenOdd + FillRule::Evenodd } else { - FillRule::NonZero + FillRule::Nonzero }; let mut coords = Vec::with_capacity(other.mCoordinates.len() / 2); for i in 0..(other.mCoordinates.len() / 2) { diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 27bc26f932d..2e4cf3db43b 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -5101,7 +5101,7 @@ fn static_assert() { coord.0.to_gecko_style_coord(&mut shape.mCoordinates[2 * i]); coord.1.to_gecko_style_coord(&mut shape.mCoordinates[2 * i + 1]); } - shape.mFillRule = if poly.fill == FillRule::EvenOdd { + shape.mFillRule = if poly.fill == FillRule::Evenodd { StyleFillRule::Evenodd } else { StyleFillRule::Nonzero diff --git a/components/style/values/generics/basic_shape.rs b/components/style/values/generics/basic_shape.rs index 07881a3a103..65395e253fe 100644 --- a/components/style/values/generics/basic_shape.rs +++ b/components/style/values/generics/basic_shape.rs @@ -118,8 +118,8 @@ pub struct Polygon { // https://www.w3.org/TR/SVG/painting.html#FillRuleProperty // says that it can also be `inherit` define_css_keyword_enum!(FillRule: - "nonzero" => NonZero, - "evenodd" => EvenOdd + "nonzero" => Nonzero, + "evenodd" => Evenodd ); add_impls_for_keyword_enum!(FillRule); @@ -239,5 +239,5 @@ impl ToCss for Polygon { impl Default for FillRule { #[inline] - fn default() -> Self { FillRule::NonZero } + fn default() -> Self { FillRule::Nonzero } }