Skip to content

Commit

Permalink
style: Use Serde for OffsetRotate and PositionOrAuto.
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisChiou authored and emilio committed Feb 12, 2020
1 parent 2b3ef3f commit 83daa74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/style/values/computed/motion.rs
Expand Up @@ -23,8 +23,10 @@ fn is_auto_zero_angle(auto: &bool, angle: &Angle) -> bool {
ComputeSquaredDistance,
Copy,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
ToAnimatedZero,
ToCss,
ToResolvedValue,
Expand Down
5 changes: 5 additions & 0 deletions components/style/values/generics/position.rs
Expand Up @@ -12,8 +12,10 @@
ComputeSquaredDistance,
Copy,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
SpecifiedValueInfo,
ToAnimatedValue,
ToAnimatedZero,
Expand Down Expand Up @@ -44,15 +46,18 @@ impl<H, V> Position<H, V> {
/// A generic type for representing an `Auto | <position>`.
/// This is used by <offset-anchor> for now.
/// https://drafts.fxtf.org/motion-1/#offset-anchor-property
/// cbindgen:private-default-tagged-enum-constructor=false
#[derive(
Animate,
Clone,
ComputeSquaredDistance,
Copy,
Debug,
Deserialize,
MallocSizeOf,
Parse,
PartialEq,
Serialize,
SpecifiedValueInfo,
ToAnimatedZero,
ToComputedValue,
Expand Down

0 comments on commit 83daa74

Please sign in to comment.