Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow deriving Parse on keywords. #19578

Merged
merged 4 commits into from Dec 15, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

style: Use derive(Parse) for RepeatKeyword.

  • Loading branch information
emilio committed Dec 15, 2017
commit 4abd1dc81982a4fade826db923ff752298323984
@@ -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.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.