aboutsummaryrefslogtreecommitdiffstats
path: root/components/style_derive/to_css.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-02-01 10:33:38 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2018-02-01 10:36:14 +0100
commit579cef6a69681e07b5d22ac54678d608549dd5d4 (patch)
tree059f437800ea14166e93255e9be9a5ab4901cea7 /components/style_derive/to_css.rs
parent3fba02a0d623750a92d32547c794871db5c97048 (diff)
downloadservo-579cef6a69681e07b5d22ac54678d608549dd5d4.tar.gz
servo-579cef6a69681e07b5d22ac54678d608549dd5d4.zip
Rename #[parse(aliases)] to #[css(aliases)]
Diffstat (limited to 'components/style_derive/to_css.rs')
-rw-r--r--components/style_derive/to_css.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/components/style_derive/to_css.rs b/components/style_derive/to_css.rs
index de48f4612e4..57d04f00547 100644
--- a/components/style_derive/to_css.rs
+++ b/components/style_derive/to_css.rs
@@ -123,11 +123,12 @@ struct CssInputAttrs {
#[darling(attributes(css), default)]
#[derive(Default, FromVariant)]
-struct CssVariantAttrs {
- function: Option<Function>,
- iterable: bool,
- comma: bool,
- dimension: bool,
+pub struct CssVariantAttrs {
+ pub function: Option<Function>,
+ pub iterable: bool,
+ pub comma: bool,
+ pub dimension: bool,
+ pub aliases: Option<String>,
}
#[darling(attributes(css), default)]
@@ -136,7 +137,7 @@ struct CssFieldAttrs {
ignore_bound: bool,
}
-struct Function {
+pub struct Function {
name: Option<Ident>,
}