Rename FillRule variants to follow the same rules as other enums

This commit is contained in:
Anthony Ramine 2018-01-30 11:55:42 +01:00
parent bac8781cc7
commit 09e304adb3
3 changed files with 6 additions and 6 deletions

View file

@ -118,8 +118,8 @@ pub struct Polygon<LengthOrPercentage> {
// 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<L: ToCss> ToCss for Polygon<L> {
impl Default for FillRule {
#[inline]
fn default() -> Self { FillRule::NonZero }
fn default() -> Self { FillRule::Nonzero }
}