mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
parent
473934c989
commit
36ff89bd28
61 changed files with 73 additions and 437 deletions
|
@ -14,7 +14,7 @@ use values::distance::{ComputeSquaredDistance, SquaredDistance};
|
|||
/// A computed angle.
|
||||
#[animate(fallback = "Self::animate_fallback")]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf, Deserialize, Serialize))]
|
||||
#[derive(Animate, Clone, Copy, Debug, HasViewportPercentage, PartialEq)]
|
||||
#[derive(Animate, Clone, Copy, Debug, PartialEq)]
|
||||
#[derive(PartialOrd, ToAnimatedZero)]
|
||||
pub enum Angle {
|
||||
/// An angle with degree unit.
|
||||
|
|
|
@ -11,7 +11,7 @@ use values::{CSSFloat, serialize_percentage};
|
|||
/// A computed percentage.
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, HeapSizeOf, Serialize))]
|
||||
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, Debug, Default)]
|
||||
#[derive(HasViewportPercentage, PartialEq, PartialOrd, ToAnimatedZero)]
|
||||
#[derive(PartialEq, PartialOrd, ToAnimatedZero)]
|
||||
pub struct Percentage(pub CSSFloat);
|
||||
|
||||
impl Percentage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue