style: Use Serde for Transform.

Though this may make us use more space when serializing
StyleTransform, but we don't have to do extra conversion on the compostior
side, and this makes us easier to maintain the Rust type.

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

View file

@ -23,8 +23,10 @@ use style_traits::{CssWriter, ToCss};
Clone,
Copy,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
SpecifiedValueInfo,
ToComputedValue,
ToCss,
@ -51,8 +53,10 @@ pub use self::GenericMatrix as Matrix;
Clone,
Copy,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
SpecifiedValueInfo,
ToComputedValue,
ToCss,
@ -141,8 +145,10 @@ fn is_same<N: PartialEq>(x: &N, y: &N) -> bool {
#[derive(
Clone,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
SpecifiedValueInfo,
ToComputedValue,
ToCss,
@ -267,8 +273,10 @@ pub use self::GenericTransformOperation as TransformOperation;
#[derive(
Clone,
Debug,
Deserialize,
MallocSizeOf,
PartialEq,
Serialize,
SpecifiedValueInfo,
ToComputedValue,
ToCss,