mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Replace u32 with computed::Integer for computed::TimingFunction.
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
This commit is contained in:
parent
a20b6a5166
commit
2bbcb5c633
4 changed files with 9 additions and 54 deletions
|
@ -8,7 +8,7 @@
|
|||
use values::CSSFloat;
|
||||
|
||||
/// A generic easing function.
|
||||
#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, SpecifiedValueInfo, ToCss)]
|
||||
#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, SpecifiedValueInfo, ToComputedValue, ToCss)]
|
||||
#[value_info(ty = "TIMING_FUNCTION")]
|
||||
pub enum TimingFunction<Integer, Number> {
|
||||
/// `linear | ease | ease-in | ease-out | ease-in-out`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue