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

@ -4,8 +4,8 @@
//! Computed types for CSS Easing functions.
use values::computed::Number;
use values::computed::{Integer, Number};
use values::generics::easing::TimingFunction as GenericTimingFunction;
/// A computed timing function.
pub type TimingFunction = GenericTimingFunction<u32, Number>;
pub type TimingFunction = GenericTimingFunction<Integer, Number>;