From 4abd1dc81982a4fade826db923ff752298323984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 15 Dec 2017 20:01:39 +0100 Subject: [PATCH] style: Use derive(Parse) for RepeatKeyword. --- components/style/values/specified/background.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/style/values/specified/background.rs b/components/style/values/specified/background.rs index 52383deb460..2420825959c 100644 --- a/components/style/values/specified/background.rs +++ b/components/style/values/specified/background.rs @@ -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.