aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/values/generics/easing.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-135/+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
* style: Implement ipdl reads without needing default ctorsEmilio Cobos Álvarez2023-11-061-1/+0
| | | | Differential Revision: https://phabricator.services.mozilla.com/D149743
* style: C++ `ComputedTimingFunction` uses Rust's timing function calculationDavid Shin2023-10-021-32/+5
| | | | | | | | This was made economical by having Rust's computed `easing::TimingFunction` use a fully resolved function for `linear(...)` easing, as per draft resolution from https://github.com/w3c/csswg-drafts/issues/7415 Differential Revision: https://phabricator.services.mozilla.com/D151295
* style: Update rust's step function basd on C++ `ComputedTimingFunction`David Shin2023-10-021-0/+10
| | | | Differential Revision: https://phabricator.services.mozilla.com/D150566
* style: `linear(...)` easing: Parsing should split a linear stop value into ↵David Shin2023-10-021-5/+2
| | | | | | | | two for entries with both `linear-stop-length` set This brings the behaviour inline with `linear-gradient(...)` Differential Revision: https://phabricator.services.mozilla.com/D149926
* Further changes required by ServoOriol Brufau2023-10-021-2/+0
|
* style: Use Rust's `ComputedTimingFunction` for IPDLDavid Shin2023-10-021-0/+9
| | | | Differential Revision: https://phabricator.services.mozilla.com/D149663
* style: Rust side plumbing work for linear easing functionDavid Shin2023-10-021-3/+33
| | | | | | | Add LinearFunction to TimingFunction. Because the linear function is a variable list of linear stops, the enum is no longer Copyable. Differential Revision: https://phabricator.services.mozilla.com/D146837
* animations: Don't convert linear easing to a bezierMartin Robinson2020-06-241-16/+0
| | | | | | This conversion can lead to floating point errors and extra work when computing animations. Avoiding it allows animation-iteration-count-009.html to pass.
* style: Use `static_prefs::pref!`.Nicholas Nethercote2019-08-151-2/+1
| | | | | | | | | | It's much nicer. One nice thing about this is that the new code is subject to the existing threadedness checking, which identified that several of these should be atomic because they're accessed off the main thread. Differential Revision: https://phabricator.services.mozilla.com/D40792
* style: Change `StaticPrefs` from a class to a namespace.Nicholas Nethercote2019-07-081-1/+1
| | | | | | | | | | This doesn't change the way C++ code uses static prefs. But it does slightly change how Rust code uses static prefs, specifically the name generated by bindgen is slightly different. The commit also improves some comments. Differential Revision: https://phabricator.services.mozilla.com/D35764
* style: Derive ToResolvedValue.Emilio Cobos Álvarez2019-04-121-1/+13
| | | | Differential Revision: https://phabricator.services.mozilla.com/D26783
* style: Add derived ToShmem implementations.Cameron McCormack2019-04-121-2/+13
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17197
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition --features gecko`Simon Sapin2018-11-101-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-101-2/+2
|
* Format remaining filesPyfisch2018-11-061-1/+3
|
* style: Fix servo build and tidy lints.Emilio Cobos Álvarez2018-10-281-1/+1
|
* style: Implement steps(jump-*) functions.Boris Chiou2018-10-281-2/+23
| | | | | | | | | | | | | | 1. Add a new preference, layout.css.step-position-jump.enabled, for step(_, jump-*) timing functions. 2. We still keep JumpEnd and End tags, even though there is no difference between them. Therefore, we could disable the preference if needed. 3. Update the calculation of StepTiming to match the algorithm in the spec. 4. For servo, we implement the correct step function algorithm except for the handling of before_flag. This could be fixed later. Depends on D9313 Differential Revision: https://phabricator.services.mozilla.com/D9314
* style: Generate StyleTimingFunction and drop ns_timing_function.rs.Boris Chiou2018-10-281-0/+3
| | | | | | | | | | | | | | First, we generate StyleComputedTimingFunction by cbindgen from Rust, and use it in nsTimingFunction, so we could copy it directly without handling the different memory layout. However, we have to rewrite the nsTimingFunction and mozilla::ComputedTimingFunction for this. Second, the rust-bindgen seems cannot generate the correct generic members from complex C++ templates, especially for the nested template struct, (https://github.com/rust-lang-nursery/rust-bindgen/issues/1429) So we have to hide StyleTimingFunction to avoid the compilation errors. Differential Revision: https://phabricator.services.mozilla.com/D9313
* style: Replace u32 with computed::Integer for computed::TimingFunction.Boris Chiou2018-10-281-1/+1
| | | | | | | | | We make sure the step number is always positive, so using computed::Integer is safe and can derive ToComputedValue. Depends on D9311 Differential Revision: https://phabricator.services.mozilla.com/D9845
* style: Split TimingFunction into a separate file to match spec.Boris Chiou2018-10-281-0/+87
TimingFunction is defined in a separate spec (i.e. css-easing), instead of transform, so we move it into a different file. Depends on D9310 Differential Revision: https://phabricator.services.mozilla.com/D9311