style: Use cbindgen for a couple more CSS properties.

Differential Revision: https://phabricator.services.mozilla.com/D13886
This commit is contained in:
Emilio Cobos Álvarez 2018-12-05 18:04:51 -05:00
parent 499bfcb1dd
commit 626172d64c
5 changed files with 23 additions and 29 deletions

View file

@ -39,6 +39,7 @@ pub type Perspective = GenericPerspective<NonNegativeLength>;
#[derive(
Clone, Copy, Debug, Eq, Hash, MallocSizeOf, Parse, PartialEq, SpecifiedValueInfo, ToCss,
)]
#[repr(u8)]
/// A computed value for the `float` property.
pub enum Float {
Left,
@ -157,6 +158,7 @@ impl ToComputedValue for SpecifiedClear {
#[allow(missing_docs)]
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
#[derive(Clone, Copy, Debug, Eq, Hash, MallocSizeOf, Parse, PartialEq, ToCss)]
#[repr(u8)]
pub enum Resize {
None,
Both,