mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: cherry-pick some changes from m-c that had got lost.
This commit is contained in:
parent
07de715bb5
commit
64cceb328a
3 changed files with 10 additions and 6 deletions
|
@ -12,8 +12,9 @@ use values::generics::NonNegative;
|
|||
|
||||
/// A computed percentage.
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, Debug, Default, MallocSizeOf, PartialEq,
|
||||
PartialOrd, ToAnimatedZero, ToComputedValue)]
|
||||
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, Debug, Default,
|
||||
MallocSizeOf, PartialEq, PartialOrd, SpecifiedValueInfo,
|
||||
ToAnimatedZero, ToComputedValue)]
|
||||
pub struct Percentage(pub CSSFloat);
|
||||
|
||||
impl Percentage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue