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:
Boris Chiou 2018-10-26 18:03:31 +00:00 committed by Emilio Cobos Álvarez
parent a20b6a5166
commit 2bbcb5c633
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 9 additions and 54 deletions

View file

@ -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`