style: Use derive(Parse) for RepeatKeyword.

This commit is contained in:
Emilio Cobos Álvarez 2017-12-15 20:01:39 +01:00
parent 7036cb0077
commit 4abd1dc819
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -46,11 +46,13 @@ impl BackgroundSize {
}
/// One of the keywords for `background-repeat`.
define_css_keyword_enum! { RepeatKeyword:
"repeat" => Repeat,
"space" => Space,
"round" => Round,
"no-repeat" => NoRepeat
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq, ToComputedValue, ToCss)]
#[allow(missing_docs)]
pub enum RepeatKeyword {
Repeat,
Space,
Round,
NoRepeat,
}
/// The specified value for the `background-repeat` property.