Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | style: Factor out some of style_derive. | Cameron McCormack | 2019-04-12 | 1 | -1/+1 |
| | | | | Differential Revision: https://phabricator.services.mozilla.com/D17188 | ||||
* | style: Add two commas to appease tidy. | Emilio Cobos Álvarez | 2019-03-13 | 1 | -2/+2 |
| | |||||
* | style: Implement a version of #[css(skip_if)] that takes more context. | Emilio Cobos Álvarez | 2019-03-13 | 1 | -2/+20 |
| | | | | | | I called it contextual_skip_if, though better names welcome. Differential Revision: https://phabricator.services.mozilla.com/D21858 | ||||
* | Update syn and related dependencies | Bastien Orivel | 2018-11-30 | 1 | -7/+8 |
| | |||||
* | Update MPL license to https (part 4) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-10 | 1 | -5/+2 |
| | |||||
* | Use 2018-style paths in code generated by style_derive | Simon Sapin | 2018-11-10 | 1 | -18/+18 |
| | |||||
* | Format remaining files | Pyfisch | 2018-11-06 | 1 | -1/+2 |
| | |||||
* | Format component of style_derive | chansuke | 2018-09-07 | 1 | -17/+20 |
| | |||||
* | style: Better debugging for media-query related code and ua-cache. | Emilio Cobos Álvarez | 2018-06-23 | 1 | -0/+2 |
| | | | | | | Bug: 1470145 Reviewed-by: xidorn MozReview-Commit-ID: 3XHAxK2BOTS | ||||
* | style: Move some parsing-only attributes to use #[parse(..)] instead of ↵ | Emilio Cobos Álvarez | 2018-06-12 | 1 | -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 Álvarez | 2018-06-12 | 1 | -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 Álvarez | 2018-05-05 | 1 | -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 Álvarez | 2018-05-05 | 1 | -0/+10 |
| | | | | | | Bug: 1457635 Reviewed-by: xidorn MozReview-Commit-ID: 21yuU4h34AQ | ||||
* | style: Skip system font variant for ToCss in font subproperties. | Xidorn Quan | 2018-04-29 | 1 | -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 Quan | 2018-04-29 | 1 | -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 Ramine | 2018-03-09 | 1 | -6/+2 |
| | |||||
* | Opt into field bounds when deriving ToCss, instead of opting out | Anthony Ramine | 2018-03-08 | 1 | -21/+36 |
| | |||||
* | style: Switch css(skip_if) to use a Path for consistency. | Emilio Cobos Álvarez | 2018-03-08 | 1 | -4/+4 |
| | |||||
* | style: Introduce css(skip_if) to conditionally skip serialization of a field. | Emilio Cobos Álvarez | 2018-03-08 | 1 | -3/+22 |
| | |||||
* | style: Remove useless String::to_string call. | Emilio Cobos Álvarez | 2018-03-08 | 1 | -1/+0 |
| | |||||
* | Introduce #[css(if_empty = "…", iterable)] | Anthony Ramine | 2018-03-07 | 1 | -0/+15 |
| | |||||
* | Don't use SequenceWriter if there is a single field to serialise | Anthony Ramine | 2018-03-06 | 1 | -27/+57 |
| | |||||
* | Move #[css(iterable)] on fields rather than variants | Anthony Ramine | 2018-03-06 | 1 | -25/+16 |
| | |||||
* | Add some assertions for #[derive(ToCss)] on enums | Anthony Ramine | 2018-03-06 | 1 | -0/+5 |
| | |||||
* | Don't use Ident for #[css(function)] | Anthony Ramine | 2018-03-06 | 1 | -4/+4 |
| | | | | CSS identifiers aren't Rust identifiers. | ||||
* | Extract variant code to its own function in style_derive::to_css | Anthony Ramine | 2018-03-06 | 1 | -77/+84 |
| | |||||
* | Qualify path to ToCss in #[derive(ToCss)] | Anthony Ramine | 2018-03-06 | 1 | -1/+1 |
| | |||||
* | Introduce #[css(skip)] | Anthony Ramine | 2018-03-05 | 1 | -0/+4 |
| | |||||
* | Use darling::util::Override in #[derive(ToCss)] | Anthony Ramine | 2018-03-05 | 1 | -19/+6 |
| | |||||
* | Derive ToCss for Symbols | Anthony Ramine | 2018-03-03 | 1 | -0/+2 |
| | |||||
* | Bump syn/quote in style_derive | Bastien Orivel | 2018-02-12 | 1 | -13/+16 |
| | |||||
* | style: Derive ToCss for FontFamilyList. | Emilio Cobos Álvarez | 2018-02-07 | 1 | -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 files | Anthony Ramine | 2018-02-01 | 1 | -2/+12 |
| | |||||
* | Rename #[parse(aliases)] to #[css(aliases)] | Anthony Ramine | 2018-02-01 | 1 | -6/+7 |
| | |||||
* | Derive ToCss for TransformOperation | Anthony Ramine | 2018-01-23 | 1 | -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 Ramine | 2018-01-23 | 1 | -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 Álvarez | 2017-12-16 | 1 | -1/+1 |
| | | | | there's only one binding. | ||||
* | Allow deriving Parse for keywords. | Emilio Cobos Álvarez | 2017-12-15 | 1 | -36/+1 |
| | |||||
* | style: Use the ? operator for Option | Matt Brubeck | 2017-12-09 | 1 | -4/+1 |
| | |||||
* | style: Remove mozmm CSS unit. | Emilio Cobos Álvarez | 2017-11-14 | 1 | -5/+0 |
| | | | | | | Bug: 1416564 Reviewed-by: heycam MozReview-Commit-ID: AU4CUq09tw4 | ||||
* | style: Make css(dimension) apply to the variant. | Emilio Cobos Álvarez | 2017-11-12 | 1 | -3/+3 |
| | |||||
* | style: Implement css(dimension) and derive ToCss for a bunch of stuff. | Emilio Cobos Álvarez | 2017-11-12 | 1 | -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 Álvarez | 2017-11-12 | 1 | -3/+18 |
| | |||||
* | Implement #[css(derive_debug)] | Anthony Ramine | 2017-08-28 | 1 | -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 traits | Anthony Ramine | 2017-08-28 | 1 | -1/+1 |
| | |||||
* | Refactor how we handle trait bounds in style_derive | Anthony Ramine | 2017-08-27 | 1 | -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_derive | Anthony Ramine | 2017-08-24 | 1 | -42/+10 |
| | | | | This allows use to handle #[css] in a way simpler fashion. | ||||
* | Introduce style_derive::cg | Anthony Ramine | 2017-08-23 | 1 | -50/+8 |
| | |||||
* | Fix typo in comment. | Corey Farwell | 2017-07-26 | 1 | -1/+1 |
| |