mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue