mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Use derive(Parse) for RepeatKeyword.
This commit is contained in:
parent
7036cb0077
commit
4abd1dc819
1 changed files with 7 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue