From fd79e7a20fedb5362ea71f46cbe41ea43ba1413c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 2 Apr 2016 21:44:13 +0200 Subject: [PATCH] geckolib: Add correct repr() for enum declarations This fixes the layout of `StyleAnimation`, though we probably want to include AnimationEffectReadOnlyBinding.h. The problem with that is that namespacing should be polished, or a lot of types should be blacklisted, since the bindings define a few repetitive names. --- ports/geckolib/gecko_style_structs.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ports/geckolib/gecko_style_structs.rs b/ports/geckolib/gecko_style_structs.rs index ac0b6393a85..61de5756be9 100644 --- a/ports/geckolib/gecko_style_structs.rs +++ b/ports/geckolib/gecko_style_structs.rs @@ -2541,8 +2541,12 @@ fn bindgen_test_layout_nsRect() { #[repr(i8)] #[derive(Debug, Copy, Clone)] pub enum StyleBoxSizing { Content = 0, Padding = 1, Border = 2, } -pub enum PlaybackDirection { } -pub enum FillMode { } +#[repr(i32)] +#[derive(Debug, Copy, Clone)] +pub enum PlaybackDirection { _BindgenOpaqueEnum = 0, } +#[repr(i32)] +#[derive(Debug, Copy, Clone)] +pub enum FillMode { _BindgenOpaqueEnum = 0, } pub enum WritingMode { } #[repr(u32)] #[derive(Debug, Copy, Clone)]