aboutsummaryrefslogtreecommitdiffstats
path: root/components/style_derive/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-82/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove packages that were moved to external repo * Add workspace dependencies pointing to 2023-06-14 branch * Fix servo-tidy.toml errors * Update commit to include #31346 * Update commit to include servo/stylo#2 * Move css-properties.json lookup to target/doc/stylo * Remove dependency on vendored mako in favour of pypi dependency This also removes etc/ci/generate_workflow.py, which has been unused since at least 9e71bd6a7010d6e5723831696ae0ebe26b47682f. * Add temporary code to debug Windows test failures * Fix failures on Windows due to custom target dir * Update commit to include servo/stylo#3 * Fix license in tests/unit/style/build.rs * Document how to build with local Stylo in Cargo.toml
* Revert changes to servo_arc, style_derive, and style_traits (#31387)Martin Robinson2024-02-221-0/+11
| | | | | | | This reverts the Rust edition updates to these three traits as well as incorporates https://phabricator.services.mozilla.com/D117887. The purpose of this change is to reduce the diff with upstream stylo. Finally, formatting is disabled for these crates as well.
* Upgrade remaining components to edition 2018sagudev2023-02-181-11/+0
|
* style: Derive ToResolvedValue.Emilio Cobos Álvarez2019-04-121-0/+7
| | | | Differential Revision: https://phabricator.services.mozilla.com/D26783
* style: Factor out some of style_derive.Cameron McCormack2019-04-121-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17188
* Update syn and related dependenciesBastien Orivel2018-11-301-0/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Format component of style_derivechansuke2018-09-071-3/+6
|
* style: Move some parsing-only attributes to use #[parse(..)] instead of ↵Emilio Cobos Álvarez2018-06-121-2/+2
| | | | | | | | | | #[css(..)]. I need to admit I'm ambivalent about this one :). Bug: 1466609 Reviewed-by: xidorn MozReview-Commit-ID: F1jlfnQKXwo
* style: Add some attributes for SpecifiedValueInfo to help deriving more from ↵Xidorn Quan2018-04-291-1/+1
| | | | | | | | types. Bug: 1434130 Reviewed-by: emilio MozReview-Commit-ID: IyohSTbUO31
* style: Add a ValueInfo trait for exposing types needed by devtools.Xidorn Quan2018-04-291-0/+7
| | | | | | | | | | | | 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-1/+1
|
* Bump syn/quote in style_deriveBastien Orivel2018-02-121-15/+15
|
* Rename #[parse(aliases)] to #[css(aliases)]Anthony Ramine2018-02-011-1/+1
|
* style_derive: Support parse-time aliases.Emilio Cobos Álvarez2017-12-311-1/+1
| | | | | | | | | | | This will allow #19659 to use derive on display using: #[parse(aliases = "-webkit-flex")] Flex, #[parse(aliases = "-webkit-inline-flex")] InlineFlex, And such.
* Allow deriving Parse for keywords.Emilio Cobos Álvarez2017-12-151-0/+9
|
* style: Remove HasViewportPercentage.Emilio Cobos Álvarez2017-08-291-7/+0
| | | | It's not needed since #18268
* Implement #[distance(fallback)] for #[derive(ComputeSquaredDistance)]Anthony Ramine2017-08-281-1/+1
|
* Implement #[animate(fallback)] for #[derive(Animate)]Anthony Ramine2017-08-281-1/+1
| | | | | This allows us to derive the Animate trait, providing a fallback function for when the 2 values aren't similar.
* Implement #[compute(clone)] for #[derive(ToComputedValue)]Anthony Ramine2017-08-281-1/+1
|
* Support #[animation(error)] in more casesAnthony Ramine2017-08-271-1/+1
| | | | | The trait ToAnimatedZero now supports it, and it now applies to things with generics, avoiding the trait bounds for field types of the variant on which it applies.
* Introduce #[animation]Anthony Ramine2017-08-241-2/+2
| | | | | | For now, only #[animation(error)] is supported on variants and it makes both #[derive(Animate)] and #[derive(ComputeSquaredDistance)] ignore this particular variant.
* Use darling in style_deriveAnthony Ramine2017-08-241-0/+1
| | | | This allows use to handle #[css] in a way simpler fashion.
* Introduce style_derive::cgAnthony Ramine2017-08-231-0/+1
|
* Derive the most trivial Animate implsAnthony Ramine2017-08-221-0/+7
|
* Derive the most trivial ToAnimatedZero implsAnthony Ramine2017-08-221-0/+7
|
* Derive ComputeSquaredDistanceAnthony Ramine2017-08-131-0/+7
|
* Introduce ToAnimatedValue 🎥Anthony Ramine2017-06-291-0/+7
|
* Introduce #[css(function)] for #[derive(ToCss)]Anthony Ramine2017-06-131-1/+1
| | | | | Any variant with this attribute gets serialised as a CSS function, using the variant name as the function name.
* Derive the most trivial ToCss implementations 🌋Anthony Ramine2017-06-041-0/+7
| | | | | For now, all variants get serialised as the space-separated serialisations of their fields. Unit variants are not supported.
* Derive ToComputedValueAnthony Ramine2017-05-211-0/+7
| | | | | | | | For now, only impls for types like in style::values::generics can be derived. This also needed a few ToComputedValueAsSpecified impls that I would like to replace by some #[to_computed_value(clone)] attribute, but I think it is ok to keep it like this for now.
* Derive HasViewportPercentage 🍷Anthony Ramine2017-05-201-0/+18