mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Use cbindgen for border-image-width.
Differential Revision: https://phabricator.services.mozilla.com/D32032
This commit is contained in:
parent
af8e8e6a34
commit
44926adde7
5 changed files with 9 additions and 82 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue