style: Use cbindgen for border-image-width.

Differential Revision: https://phabricator.services.mozilla.com/D32032
This commit is contained in:
Emilio Cobos Álvarez 2019-05-21 21:07:55 +00:00
parent af8e8e6a34
commit 44926adde7
5 changed files with 9 additions and 82 deletions

View file

@ -23,15 +23,18 @@ use style_traits::{CssWriter, ToCss};
ToResolvedValue,
ToShmem,
)]
pub enum BorderImageSideWidth<LengthPercentage, Number> {
#[repr(C, u8)]
pub enum GenericBorderImageSideWidth<LP, N> {
/// `<length-or-percentage>`
Length(LengthPercentage),
LengthPercentage(LP),
/// `<number>`
Number(Number),
Number(N),
/// `auto`
Auto,
}
pub use self::GenericBorderImageSideWidth as BorderImageSideWidth;
/// A generic value for the `border-image-slice` property.
#[derive(
Clone,