style: Use cbindgen for SVG lengths.

Depends on D63777

Differential Revision: https://phabricator.services.mozilla.com/D63778
This commit is contained in:
Emilio Cobos Álvarez 2020-02-23 15:43:03 +00:00
parent 18570bf077
commit 76e9cb44f0
4 changed files with 10 additions and 166 deletions

View file

@ -152,7 +152,8 @@ impl<C: Parse, U: Parse> Parse for SVGPaint<C, U> {
ToResolvedValue,
ToShmem,
)]
pub enum SVGLength<L> {
#[repr(C, u8)]
pub enum GenericSVGLength<L> {
/// `<length> | <percentage> | <number>`
LengthPercentage(L),
/// `context-value`
@ -160,6 +161,8 @@ pub enum SVGLength<L> {
ContextValue,
}
pub use self::GenericSVGLength as SVGLength;
/// Generic value for stroke-dasharray.
#[derive(
Clone,