aboutsummaryrefslogtreecommitdiffstats
path: root/components/style_derive/cg.rs
Commit message (Collapse)AuthorAgeFilesLines
* style: Factor out some of style_derive.Cameron McCormack2019-04-121-350/+0
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17188
* style: Reformat recent changes.Emilio Cobos Álvarez2019-03-131-3/+3
|
* style: When deriving something with an output type, map preconditions as well.Emilio Cobos Álvarez2019-03-131-0/+64
| | | | | | | Otherwise, deriving ToComputedValue and ToAnimatedValue in structs or enums with other where clauses just doesn't work. Differential Revision: https://phabricator.services.mozilla.com/D21859
* Fix some warningsSimon Sapin2018-12-281-1/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-3/+1
|
* Fix all clippy warnings in style_deriveBastien Orivel2018-12-121-3/+3
|
* Update syn and related dependenciesBastien Orivel2018-11-301-14/+18
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-101-3/+1
|
* Use 2018-style paths in code generated by style_deriveSimon Sapin2018-11-101-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* Format remaining filesPyfisch2018-11-061-3/+6
|
* Format component of style_derivechansuke2018-09-071-80/+92
|
* style: Add a ValueInfo trait for exposing types needed by devtools.Xidorn Quan2018-04-291-2/+9
| | | | | | | | | | | | 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
* Opt out of bounds on type params for #[derive(ToAnimatedZero)]Anthony Ramine2018-03-121-138/+3
|
* Kill fmap_output_typeAnthony Ramine2018-03-091-15/+2
|
* Opt into field bounds for #[derive(ToComputedValue)]Anthony Ramine2018-03-091-12/+1
|
* Simplify the derived bounds for ToAnimatedValueAnthony Ramine2018-03-091-2/+11
|
* Opt into field bounds when deriving ToCss, instead of opting outAnthony Ramine2018-03-081-17/+16
|
* Bump syn/quote in style_deriveBastien Orivel2018-02-121-192/+161
|
* style: Handle servo-prefixed stuff correctly.Emilio Cobos Álvarez2017-12-151-2/+2
|
* Allow deriving Parse for keywords.Emilio Cobos Álvarez2017-12-151-0/+38
|
* Implement #[animate(fallback)] for #[derive(Animate)]Anthony Ramine2017-08-281-1/+11
| | | | | This allows us to derive the Animate trait, providing a fallback function for when the 2 values aren't similar.
* Improve handling of trait bounds when deriving fmap-like traitsAnthony Ramine2017-08-281-23/+204
|
* Introduce #[animation(constant)] for the Animate traitAnthony Ramine2017-08-281-8/+18
| | | | This allows us to handle fields that should be the same during animations.
* Refactor how we handle trait bounds in style_deriveAnthony Ramine2017-08-271-20/+42
| | | | | | 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.
* Remove some garbage code from style_deriveAnthony Ramine2017-08-271-47/+2
|
* Use darling in style_deriveAnthony Ramine2017-08-241-0/+11
| | | | This allows use to handle #[css] in a way simpler fashion.
* Introduce style_derive::cgAnthony Ramine2017-08-231-0/+219