aboutsummaryrefslogtreecommitdiffstats
path: root/components/style_derive/to_css.rs
Commit message (Collapse)AuthorAgeFilesLines
* style: Factor out some of style_derive.Cameron McCormack2019-04-121-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17188
* style: Add two commas to appease tidy.Emilio Cobos Álvarez2019-03-131-2/+2
|
* style: Implement a version of #[css(skip_if)] that takes more context.Emilio Cobos Álvarez2019-03-131-2/+20
| | | | | | I called it contextual_skip_if, though better names welcome. Differential Revision: https://phabricator.services.mozilla.com/D21858
* Update syn and related dependenciesBastien Orivel2018-11-301-7/+8
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-101-5/+2
|
* Use 2018-style paths in code generated by style_deriveSimon Sapin2018-11-101-18/+18
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Format component of style_derivechansuke2018-09-071-17/+20
|
* style: Better debugging for media-query related code and ua-cache.Emilio Cobos Álvarez2018-06-231-0/+2
| | | | | | Bug: 1470145 Reviewed-by: xidorn MozReview-Commit-ID: 3XHAxK2BOTS
* style: Move some parsing-only attributes to use #[parse(..)] instead of ↵Emilio Cobos Álvarez2018-06-121-2/+0
| | | | | | | | | | #[css(..)]. I need to admit I'm ambivalent about this one :). Bug: 1466609 Reviewed-by: xidorn MozReview-Commit-ID: F1jlfnQKXwo
* style: Introduce css(parse_condition).Emilio Cobos Álvarez2018-06-121-0/+1
| | | | | | | | This will allow us to add a pref for this, and to parse it only on chrome easily. Bug: 1288572 Reviewed-by: xidorn MozReview-Commit-ID: L1rsyc2A2hu
* style: Remove values::Verbatim.Emilio Cobos Álvarez2018-05-051-1/+1
| | | | | | | | No point of having two things that do the same. Bug: 1457635 Reviewed-by: xidorn MozReview-Commit-ID: Do1L4bvOeVQ
* style: Move represents_keyword to the css attributes.Emilio Cobos Álvarez2018-05-051-0/+10
| | | | | | Bug: 1457635 Reviewed-by: xidorn MozReview-Commit-ID: 21yuU4h34AQ
* style: Skip system font variant for ToCss in font subproperties.Xidorn Quan2018-04-291-0/+4
| | | | | | | | | | | System font keywords are not a valid value for those properties. The newly-added #[css(skip)] would be reused by deriving algorithm of SpecifiedValueInfo to skip them as well. Bug: 1434130 Reviewed-by: emilio MozReview-Commit-ID: EmnhkaA9RR5
* style: Add a ValueInfo trait for exposing types needed by devtools.Xidorn Quan2018-04-291-11/+11
| | | | | | | | | | | | Most of types just derive it using proc_macro directly. Some of value types need manual impl. In my current plan, this new trait will be used in bug 1434130 to expose values as well. Bug: 1455576 Reviewed-by: emilio MozReview-Commit-ID: LI7fy45VkRw
* Simplify some code in #[derive(ToCss)]Anthony Ramine2018-03-091-6/+2
|
* Opt into field bounds when deriving ToCss, instead of opting outAnthony Ramine2018-03-081-21/+36
|
* style: Switch css(skip_if) to use a Path for consistency.Emilio Cobos Álvarez2018-03-081-4/+4
|
* style: Introduce css(skip_if) to conditionally skip serialization of a field.Emilio Cobos Álvarez2018-03-081-3/+22
|
* style: Remove useless String::to_string call.Emilio Cobos Álvarez2018-03-081-1/+0
|
* Introduce #[css(if_empty = "…", iterable)]Anthony Ramine2018-03-071-0/+15
|
* Don't use SequenceWriter if there is a single field to serialiseAnthony Ramine2018-03-061-27/+57
|
* Move #[css(iterable)] on fields rather than variantsAnthony Ramine2018-03-061-25/+16
|
* Add some assertions for #[derive(ToCss)] on enumsAnthony Ramine2018-03-061-0/+5
|
* Don't use Ident for #[css(function)]Anthony Ramine2018-03-061-4/+4
| | | | CSS identifiers aren't Rust identifiers.
* Extract variant code to its own function in style_derive::to_cssAnthony Ramine2018-03-061-77/+84
|
* Qualify path to ToCss in #[derive(ToCss)]Anthony Ramine2018-03-061-1/+1
|
* Introduce #[css(skip)]Anthony Ramine2018-03-051-0/+4
|
* Use darling::util::Override in #[derive(ToCss)]Anthony Ramine2018-03-051-19/+6
|
* Derive ToCss for SymbolsAnthony Ramine2018-03-031-0/+2
|
* Bump syn/quote in style_deriveBastien Orivel2018-02-121-13/+16
|
* style: Derive ToCss for FontFamilyList.Emilio Cobos Álvarez2018-02-071-1/+1
| | | | | The extra reference in to_css is needed because the family list iterator returns by value in Gecko.
* Move TransformStyle out of Mako filesAnthony Ramine2018-02-011-2/+12
|
* Rename #[parse(aliases)] to #[css(aliases)]Anthony Ramine2018-02-011-6/+7
|
* Derive ToCss for TransformOperationAnthony Ramine2018-01-231-7/+33
| | | | | Now that SequenceWriter<W> does not monomorphise excessively, we can actually type check a derived ToCss without too much type recursion.
* Change ToCss to take a CssWriter<W>Anthony Ramine2018-01-231-3/+9
| | | | | | This more concrete wrapper type can write a prefix the very first time something is written to it. This allows removing plenty of useless monomorphisations caused by the former W/SequenceWriter<W> pair of types.
* style_derive: Allow css(iterable) to work on non-functions too, as long as ↵Emilio Cobos Álvarez2017-12-161-1/+1
| | | | there's only one binding.
* Allow deriving Parse for keywords.Emilio Cobos Álvarez2017-12-151-36/+1
|
* style: Use the ? operator for OptionMatt Brubeck2017-12-091-4/+1
|
* style: Remove mozmm CSS unit.Emilio Cobos Álvarez2017-11-141-5/+0
| | | | | | Bug: 1416564 Reviewed-by: heycam MozReview-Commit-ID: AU4CUq09tw4
* style: Make css(dimension) apply to the variant.Emilio Cobos Álvarez2017-11-121-3/+3
|
* style: Implement css(dimension) and derive ToCss for a bunch of stuff.Emilio Cobos Álvarez2017-11-121-2/+19
| | | | For css(dimension), it'd be nice to derive(Parse) too, I think...
* style: add css(function, iterable), and derive ToCss for VariantAlternates.Emilio Cobos Álvarez2017-11-121-3/+18
|
* Implement #[css(derive_debug)]Anthony Ramine2017-08-281-9/+30
| | | | This makes #[derive(ToCss)] derive Debug with a simple call to the to_css method.
* Improve handling of trait bounds when deriving fmap-like traitsAnthony Ramine2017-08-281-1/+1
|
* Refactor how we handle trait bounds in style_deriveAnthony Ramine2017-08-271-5/+1
| | | | | | For the traits we derive which methods don't depend on associated types (i.e. all of them but ToAnimatedValue and ToComputedValue), we now add trait bounds for the actual field types directly, instead of bounding the type parameters.
* Use darling in style_deriveAnthony Ramine2017-08-241-42/+10
| | | | This allows use to handle #[css] in a way simpler fashion.
* Introduce style_derive::cgAnthony Ramine2017-08-231-50/+8
|
* Fix typo in comment.Corey Farwell2017-07-261-1/+1
|