mirror of
https://github.com/servo/servo.git
synced 2025-06-06 00:25:37 +00:00
stylo: Regen bindings with https://github.com/servo/rust-bindgen/pull/29
This commit is contained in:
parent
46afc56c41
commit
9a5ffb128a
3 changed files with 50 additions and 36 deletions
|
@ -106,8 +106,6 @@ COMPILATION_TARGETS = {
|
|||
"Maybe", # <- AlignedStorage, which means templated union, which
|
||||
# means impossible to represent in stable rust as of
|
||||
# right now.
|
||||
# Union handling falls over for templated types.
|
||||
"StyleShapeSource", "StyleClipPath", "StyleShapeOutside",
|
||||
],
|
||||
},
|
||||
# Generation of the ffi bindings.
|
||||
|
|
|
@ -6389,25 +6389,33 @@ fn bindgen_test_layout_StyleBasicShape() {
|
|||
assert_eq!(::std::mem::align_of::<StyleBasicShape>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct StyleShapeSource;
|
||||
#[repr(C)]
|
||||
pub struct StyleClipPath {
|
||||
pub _bindgen_opaque_blob: [u64; 2usize],
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleClipPath() {
|
||||
assert_eq!(::std::mem::size_of::<StyleClipPath>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleClipPath>() , 8usize);
|
||||
#[derive(Debug)]
|
||||
pub struct StyleShapeSource<ReferenceBox> {
|
||||
pub StyleShapeSource_nsStyleStruct_h_unnamed_26: StyleShapeSource_nsStyleStruct_h_unnamed_26<ReferenceBox>,
|
||||
pub mType: StyleShapeSourceType,
|
||||
pub mReferenceBox: ReferenceBox,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct StyleShapeOutside {
|
||||
pub _bindgen_opaque_blob: [u64; 2usize],
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct StyleShapeSource_nsStyleStruct_h_unnamed_26<ReferenceBox> {
|
||||
pub mBasicShape: __BindgenUnionField<*mut StyleBasicShape>,
|
||||
pub mURL: __BindgenUnionField<*mut FragmentOrURL>,
|
||||
pub _bindgen_data_: u64,
|
||||
pub _phantom0: ::std::marker::PhantomData<ReferenceBox>,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleShapeOutside() {
|
||||
assert_eq!(::std::mem::size_of::<StyleShapeOutside>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleShapeOutside>() , 8usize);
|
||||
impl <ReferenceBox> StyleShapeSource_nsStyleStruct_h_unnamed_26<ReferenceBox>
|
||||
{
|
||||
pub unsafe fn mBasicShape(&mut self) -> *mut *mut StyleBasicShape {
|
||||
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
|
||||
::std::mem::transmute(raw.offset(0))
|
||||
}
|
||||
pub unsafe fn mURL(&mut self) -> *mut *mut FragmentOrURL {
|
||||
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
|
||||
::std::mem::transmute(raw.offset(0))
|
||||
}
|
||||
}
|
||||
pub type StyleClipPath = StyleShapeSource<StyleClipPathGeometryBox>;
|
||||
pub type StyleShapeOutside = StyleShapeSource<StyleShapeOutsideShapeBox>;
|
||||
#[repr(C)]
|
||||
pub struct nsStyleDisplay {
|
||||
pub mBinding: RefPtr<URLValue>,
|
||||
|
@ -6461,7 +6469,7 @@ pub struct nsStyleDisplay {
|
|||
pub mAnimationFillModeCount: u32,
|
||||
pub mAnimationPlayStateCount: u32,
|
||||
pub mAnimationIterationCountCount: u32,
|
||||
pub mShapeOutside: [u64; 2usize],
|
||||
pub mShapeOutside: StyleShapeOutside,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsStyleDisplay() {
|
||||
|
@ -6794,7 +6802,7 @@ fn bindgen_test_layout_nsStyleFilter() {
|
|||
#[repr(C)]
|
||||
pub struct nsStyleSVGReset {
|
||||
pub mMask: nsStyleImageLayers,
|
||||
pub mClipPath: [u64; 2usize],
|
||||
pub mClipPath: StyleClipPath,
|
||||
pub mStopColor: nscolor,
|
||||
pub mFloodColor: nscolor,
|
||||
pub mLightingColor: nscolor,
|
||||
|
|
|
@ -6367,25 +6367,33 @@ fn bindgen_test_layout_StyleBasicShape() {
|
|||
assert_eq!(::std::mem::align_of::<StyleBasicShape>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct StyleShapeSource;
|
||||
#[repr(C)]
|
||||
pub struct StyleClipPath {
|
||||
pub _bindgen_opaque_blob: [u64; 2usize],
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleClipPath() {
|
||||
assert_eq!(::std::mem::size_of::<StyleClipPath>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleClipPath>() , 8usize);
|
||||
#[derive(Debug)]
|
||||
pub struct StyleShapeSource<ReferenceBox> {
|
||||
pub StyleShapeSource_nsStyleStruct_h_unnamed_26: StyleShapeSource_nsStyleStruct_h_unnamed_26<ReferenceBox>,
|
||||
pub mType: StyleShapeSourceType,
|
||||
pub mReferenceBox: ReferenceBox,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct StyleShapeOutside {
|
||||
pub _bindgen_opaque_blob: [u64; 2usize],
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct StyleShapeSource_nsStyleStruct_h_unnamed_26<ReferenceBox> {
|
||||
pub mBasicShape: __BindgenUnionField<*mut StyleBasicShape>,
|
||||
pub mURL: __BindgenUnionField<*mut FragmentOrURL>,
|
||||
pub _bindgen_data_: u64,
|
||||
pub _phantom0: ::std::marker::PhantomData<ReferenceBox>,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleShapeOutside() {
|
||||
assert_eq!(::std::mem::size_of::<StyleShapeOutside>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleShapeOutside>() , 8usize);
|
||||
impl <ReferenceBox> StyleShapeSource_nsStyleStruct_h_unnamed_26<ReferenceBox>
|
||||
{
|
||||
pub unsafe fn mBasicShape(&mut self) -> *mut *mut StyleBasicShape {
|
||||
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
|
||||
::std::mem::transmute(raw.offset(0))
|
||||
}
|
||||
pub unsafe fn mURL(&mut self) -> *mut *mut FragmentOrURL {
|
||||
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
|
||||
::std::mem::transmute(raw.offset(0))
|
||||
}
|
||||
}
|
||||
pub type StyleClipPath = StyleShapeSource<StyleClipPathGeometryBox>;
|
||||
pub type StyleShapeOutside = StyleShapeSource<StyleShapeOutsideShapeBox>;
|
||||
#[repr(C)]
|
||||
pub struct nsStyleDisplay {
|
||||
pub mBinding: RefPtr<URLValue>,
|
||||
|
@ -6439,7 +6447,7 @@ pub struct nsStyleDisplay {
|
|||
pub mAnimationFillModeCount: u32,
|
||||
pub mAnimationPlayStateCount: u32,
|
||||
pub mAnimationIterationCountCount: u32,
|
||||
pub mShapeOutside: [u64; 2usize],
|
||||
pub mShapeOutside: StyleShapeOutside,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsStyleDisplay() {
|
||||
|
@ -6771,7 +6779,7 @@ fn bindgen_test_layout_nsStyleFilter() {
|
|||
#[repr(C)]
|
||||
pub struct nsStyleSVGReset {
|
||||
pub mMask: nsStyleImageLayers,
|
||||
pub mClipPath: [u64; 2usize],
|
||||
pub mClipPath: StyleClipPath,
|
||||
pub mStopColor: nscolor,
|
||||
pub mFloodColor: nscolor,
|
||||
pub mLightingColor: nscolor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue