mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add add_impls_for_keyword_enum macro for implementing necessary traits
This commit is contained in:
parent
6bd3469e28
commit
76df67fc7b
2 changed files with 23 additions and 1 deletions
|
@ -14,6 +14,7 @@ use properties::shorthands::{parse_four_sides, serialize_four_sides};
|
|||
use std::ascii::AsciiExt;
|
||||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
use values::HasViewportPercentage;
|
||||
use values::computed::{ComputedValueAsSpecified, Context, ToComputedValue};
|
||||
use values::computed::basic_shape as computed_basic_shape;
|
||||
use values::specified::{BorderRadiusSize, LengthOrPercentage, Percentage};
|
||||
|
@ -861,4 +862,4 @@ define_css_keyword_enum!(ShapeBox:
|
|||
"content-box" => ContentBox
|
||||
);
|
||||
|
||||
impl ComputedValueAsSpecified for ShapeBox {}
|
||||
add_impls_for_keyword_enum!(ShapeBox);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue