Skip to content

Commit

Permalink
Update binding files.
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Aug 2, 2017
1 parent ef4352d commit 7a642dc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 64 deletions.
3 changes: 3 additions & 0 deletions components/style/gecko/generated/bindings.rs
Expand Up @@ -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 {}
Expand Down
46 changes: 14 additions & 32 deletions components/style/gecko/generated/structs_debug.rs
Expand Up @@ -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::<nsStyleSVG>() , 128usize , concat ! (
Expand Down Expand Up @@ -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 {
Expand Down
46 changes: 14 additions & 32 deletions components/style/gecko/generated/structs_release.rs
Expand Up @@ -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::<nsStyleSVG>() , 128usize , concat ! (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7a642dc

Please sign in to comment.