mirror of
https://github.com/servo/servo.git
synced 2025-07-12 09:53:40 +01:00
style: Use cbindgen for a couple more CSS properties.
Differential Revision: https://phabricator.services.mozilla.com/D13886
This commit is contained in:
parent
499bfcb1dd
commit
626172d64c
5 changed files with 23 additions and 29 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue