From 7a642dc952c86ddb568af3fd2f533880f5868c87 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Wed, 2 Aug 2017 09:37:59 +1000 Subject: [PATCH] Update binding files. --- components/style/gecko/generated/bindings.rs | 3 ++ .../style/gecko/generated/structs_debug.rs | 46 ++++++------------- .../style/gecko/generated/structs_release.rs | 46 ++++++------------- 3 files changed, 31 insertions(+), 64 deletions(-) diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index f0078fa23c2..3cb2183f051 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -172,6 +172,9 @@ unsafe impl Sync for nsStyleQuoteValues {} use gecko_bindings::structs::nsStyleSVG; unsafe impl Send for nsStyleSVG {} unsafe impl Sync for nsStyleSVG {} +use gecko_bindings::structs::nsStyleSVGOpacitySource; +unsafe impl Send for nsStyleSVGOpacitySource {} +unsafe impl Sync for nsStyleSVGOpacitySource {} use gecko_bindings::structs::nsStyleSVGPaint; unsafe impl Send for nsStyleSVGPaint {} unsafe impl Sync for nsStyleSVGPaint {} diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index f617c388381..ac9ad2686ce 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -13741,39 +13741,14 @@ pub mod root { pub mContextPropsBits: u8, pub mContextFlags: u8, } - pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHARRAY_CONTEXT; - pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHOFFSET_CONTEXT; - pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: root::nsStyleSVG__bindgen_ty_1 - = - nsStyleSVG__bindgen_ty_1::STROKE_WIDTH_CONTEXT; - pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_SHIFT; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_SHIFT; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsStyleSVG__bindgen_ty_1 { - FILL_OPACITY_SOURCE_MASK = 3, - STROKE_OPACITY_SOURCE_MASK = 12, - STROKE_DASHARRAY_CONTEXT = 16, - STROKE_DASHOFFSET_CONTEXT = 32, - STROKE_WIDTH_CONTEXT = 64, - FILL_OPACITY_SOURCE_SHIFT = 0, - STROKE_OPACITY_SOURCE_SHIFT = 2, - } pub const nsStyleSVG_kHasFinishStyle: bool = false; + pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: u8 = 3; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: u8 = 12; + pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: u8 = 16; + pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: u8 = 32; + pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: u8 = 64; + pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: u8 = 0; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: u8 = 2; #[test] fn bindgen_test_layout_nsStyleSVG() { assert_eq!(::std::mem::size_of::() , 128usize , concat ! ( @@ -31553,6 +31528,13 @@ pub mod root { eStyleSVGFallbackType_None = 1, eStyleSVGFallbackType_Color = 2, } + #[repr(u8)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsStyleSVGOpacitySource { + eStyleSVGOpacitySource_Normal = 0, + eStyleSVGOpacitySource_ContextFillOpacity = 1, + eStyleSVGOpacitySource_ContextStrokeOpacity = 2, + } #[repr(C)] #[derive(Debug)] pub struct nsStyleSVGPaint { diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 5fbe19a5847..ad3b9843db6 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -13532,39 +13532,14 @@ pub mod root { pub mContextPropsBits: u8, pub mContextFlags: u8, } - pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHARRAY_CONTEXT; - pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHOFFSET_CONTEXT; - pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: root::nsStyleSVG__bindgen_ty_1 - = - nsStyleSVG__bindgen_ty_1::STROKE_WIDTH_CONTEXT; - pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_SHIFT; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_SHIFT; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsStyleSVG__bindgen_ty_1 { - FILL_OPACITY_SOURCE_MASK = 3, - STROKE_OPACITY_SOURCE_MASK = 12, - STROKE_DASHARRAY_CONTEXT = 16, - STROKE_DASHOFFSET_CONTEXT = 32, - STROKE_WIDTH_CONTEXT = 64, - FILL_OPACITY_SOURCE_SHIFT = 0, - STROKE_OPACITY_SOURCE_SHIFT = 2, - } pub const nsStyleSVG_kHasFinishStyle: bool = false; + pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: u8 = 3; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: u8 = 12; + pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: u8 = 16; + pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: u8 = 32; + pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: u8 = 64; + pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: u8 = 0; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: u8 = 2; #[test] fn bindgen_test_layout_nsStyleSVG() { assert_eq!(::std::mem::size_of::() , 128usize , concat ! ( @@ -31061,6 +31036,13 @@ pub mod root { eStyleSVGFallbackType_None = 1, eStyleSVGFallbackType_Color = 2, } + #[repr(u8)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsStyleSVGOpacitySource { + eStyleSVGOpacitySource_Normal = 0, + eStyleSVGOpacitySource_ContextFillOpacity = 1, + eStyleSVGOpacitySource_ContextStrokeOpacity = 2, + } #[repr(C)] #[derive(Debug)] pub struct nsStyleSVGPaint {