diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-06-04 19:24:43 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-06-12 12:15:10 -0700 |
commit | 2c0a19e5171669d6c1162d00871f0d76ce7f6f66 (patch) | |
tree | bb7fc0a9386ab9bf4291166d77b22b080933ffe6 /components/style/parser.rs | |
parent | 8821ad72f4a95ea04fe8d73fa6e868410c2349f7 (diff) | |
download | servo-2c0a19e5171669d6c1162d00871f0d76ce7f6f66.tar.gz servo-2c0a19e5171669d6c1162d00871f0d76ce7f6f66.zip |
style: Move some parsing-only attributes to use #[parse(..)] instead of #[css(..)].
I need to admit I'm ambivalent about this one :).
Bug: 1466609
Reviewed-by: xidorn
MozReview-Commit-ID: F1jlfnQKXwo
Diffstat (limited to 'components/style/parser.rs')
-rw-r--r-- | components/style/parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/style/parser.rs b/components/style/parser.rs index 1b7c65e2559..6dbfe1cfa01 100644 --- a/components/style/parser.rs +++ b/components/style/parser.rs @@ -157,12 +157,12 @@ impl<'a> ParserContext<'a> { /// /// The derive code understands the following attributes on each of the variants: /// -/// * `#[css(aliases = "foo,bar")]` can be used to alias a value with another +/// * `#[parse(aliases = "foo,bar")]` can be used to alias a value with another /// at parse-time. /// -/// * `#[css(parse_condition = "function")]` can be used to make the parsing of -/// the value conditional on `function`, which will be invoked with a -/// `&ParserContext` reference. +/// * `#[parse(condition = "function")]` can be used to make the parsing of the +/// value conditional on `function`, which needs to fulfill +/// `fn(&ParserContext) -> bool`. pub trait Parse: Sized { /// Parse a value of this type. /// |