style: Use Serde for OffsetRotate and PositionOrAuto.

Differential Revision: https://phabricator.services.mozilla.com/D60088
This commit is contained in:
Boris Chiou 2020-01-22 20:18:38 +00:00 committed by Emilio Cobos Álvarez
parent 2b3ef3ff37
commit 83daa7484d
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
2 changed files with 7 additions and 0 deletions

View file

@ -23,8 +23,10 @@ fn is_auto_zero_angle(auto: &bool, angle: &Angle) -> bool {
ComputeSquaredDistance,
Copy,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
ToAnimatedZero,
ToCss,
ToResolvedValue,

View file

@ -12,8 +12,10 @@
ComputeSquaredDistance,
Copy,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
SpecifiedValueInfo,
ToAnimatedValue,
ToAnimatedZero,
@ -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,