diff --git a/ports/geckolib/gecko_style_structs.rs b/ports/geckolib/gecko_style_structs.rs index ac0b6393a85..4e94c216d1b 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)] @@ -4668,9 +4672,8 @@ pub struct nsStyleSVG { pub mStrokeLinejoin: u8, pub mTextAnchor: u8, pub mTextRendering: u8, - pub _bitfield_1: nsStyleSVGOpacitySource, - pub _bitfield_2: nsStyleSVGOpacitySource, - pub _bitfield_3: u8, + pub _bitfield_1: u8, + pub _bitfield_2: u8, } #[test] fn bindgen_test_layout_nsStyleSVG() { diff --git a/ports/geckolib/tools/regen_style_structs.sh b/ports/geckolib/tools/regen_style_structs.sh index 8470a305c79..d4f3b822415 100755 --- a/ports/geckolib/tools/regen_style_structs.sh +++ b/ports/geckolib/tools/regen_style_structs.sh @@ -65,6 +65,7 @@ fi -no-type-renaming \ -DMOZILLA_INTERNAL_API \ -DMOZ_STYLO_BINDINGS=1 \ + -DJS_DEBUG=1 \ -DDEBUG=1 -DTRACING=1 -DOS_POSIX=1 \ -DIMPL_LIBXUL \ -match "RefCountType.h" \ @@ -130,7 +131,7 @@ fi "$DIST_INCLUDE/nsStyleStruct.h" if [ $? -ne 0 ]; then - echo -e "\e[91warning:\e[0m bindgen exited with nonzero exit status" + echo -e "\e[91mwarning:\e[0m bindgen exited with nonzero exit status" else echo -e "\e[34minfo:\e[0m bindgen exited successfully, running tests" TESTS_FILE=$(mktemp)