Update bindings.

This commit is contained in:
Hiroyuki Ikezoe 2017-02-23 10:28:16 +09:00
parent 0e33756e8d
commit be29e8db00
3 changed files with 450 additions and 504 deletions

View file

@ -167,11 +167,6 @@ use gecko_bindings::structs::ServoStyleSheet;
use gecko_bindings::structs::EffectCompositor_CascadeLevel; use gecko_bindings::structs::EffectCompositor_CascadeLevel;
use gecko_bindings::structs::RawServoAnimationValueBorrowedListBorrowed; use gecko_bindings::structs::RawServoAnimationValueBorrowedListBorrowed;
pub type nsTArrayBorrowed_uintptr_t<'a> = &'a mut ::gecko_bindings::structs::nsTArray<usize>; pub type nsTArrayBorrowed_uintptr_t<'a> = &'a mut ::gecko_bindings::structs::nsTArray<usize>;
pub type ServoComputedValuesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoComputedValues>;
pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues;
pub type ServoComputedValuesBorrowedOrNull<'a> = Option<&'a ServoComputedValues>;
enum ServoComputedValuesVoid { }
pub struct ServoComputedValues(ServoComputedValuesVoid);
pub type ServoCssRulesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoCssRules>; pub type ServoCssRulesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoCssRules>;
pub type ServoCssRulesBorrowed<'a> = &'a ServoCssRules; pub type ServoCssRulesBorrowed<'a> = &'a ServoCssRules;
pub type ServoCssRulesBorrowedOrNull<'a> = Option<&'a ServoCssRules>; pub type ServoCssRulesBorrowedOrNull<'a> = Option<&'a ServoCssRules>;
@ -182,6 +177,11 @@ pub type RawServoStyleSheetBorrowed<'a> = &'a RawServoStyleSheet;
pub type RawServoStyleSheetBorrowedOrNull<'a> = Option<&'a RawServoStyleSheet>; pub type RawServoStyleSheetBorrowedOrNull<'a> = Option<&'a RawServoStyleSheet>;
enum RawServoStyleSheetVoid { } enum RawServoStyleSheetVoid { }
pub struct RawServoStyleSheet(RawServoStyleSheetVoid); pub struct RawServoStyleSheet(RawServoStyleSheetVoid);
pub type ServoComputedValuesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoComputedValues>;
pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues;
pub type ServoComputedValuesBorrowedOrNull<'a> = Option<&'a ServoComputedValues>;
enum ServoComputedValuesVoid { }
pub struct ServoComputedValues(ServoComputedValuesVoid);
pub type RawServoDeclarationBlockStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoDeclarationBlock>; pub type RawServoDeclarationBlockStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoDeclarationBlock>;
pub type RawServoDeclarationBlockBorrowed<'a> = &'a RawServoDeclarationBlock; pub type RawServoDeclarationBlockBorrowed<'a> = &'a RawServoDeclarationBlock;
pub type RawServoDeclarationBlockBorrowedOrNull<'a> = Option<&'a RawServoDeclarationBlock>; pub type RawServoDeclarationBlockBorrowedOrNull<'a> = Option<&'a RawServoDeclarationBlock>;
@ -1375,6 +1375,13 @@ extern "C" {
list: list:
*mut RefPtr<nsCSSValueSharedList>); *mut RefPtr<nsCSSValueSharedList>);
} }
extern "C" {
pub fn Servo_AnimationValue_DeepEqual(arg1:
RawServoAnimationValueBorrowed,
arg2:
RawServoAnimationValueBorrowed)
-> bool;
}
extern "C" { extern "C" {
pub fn Servo_ParseStyleAttribute(data: *const nsACString_internal) pub fn Servo_ParseStyleAttribute(data: *const nsACString_internal)
-> RawServoDeclarationBlockStrong; -> RawServoDeclarationBlockStrong;

View file

@ -1902,14 +1902,14 @@ pub mod root {
pub struct ScrollSnapInfo { pub struct ScrollSnapInfo {
pub mScrollSnapTypeX: u8, pub mScrollSnapTypeX: u8,
pub mScrollSnapTypeY: u8, pub mScrollSnapTypeY: u8,
pub mScrollSnapIntervalX: [u64; 2usize], pub mScrollSnapIntervalX: [u32; 2usize],
pub mScrollSnapIntervalY: [u64; 2usize], pub mScrollSnapIntervalY: [u32; 2usize],
pub mScrollSnapDestination: root::nsPoint, pub mScrollSnapDestination: root::nsPoint,
pub mScrollSnapCoordinates: root::nsTArray<root::nsPoint>, pub mScrollSnapCoordinates: root::nsTArray<root::nsPoint>,
} }
#[test] #[test]
fn bindgen_test_layout_ScrollSnapInfo() { fn bindgen_test_layout_ScrollSnapInfo() {
assert_eq!(::std::mem::size_of::<ScrollSnapInfo>() , 56usize , assert_eq!(::std::mem::size_of::<ScrollSnapInfo>() , 40usize ,
concat ! ( concat ! (
"Size of: " , stringify ! ( ScrollSnapInfo ) )); "Size of: " , stringify ! ( ScrollSnapInfo ) ));
assert_eq! (::std::mem::align_of::<ScrollSnapInfo>() , 8usize assert_eq! (::std::mem::align_of::<ScrollSnapInfo>() , 8usize
@ -1933,28 +1933,28 @@ pub mod root {
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapIntervalX as * const _ as usize } , mScrollSnapIntervalX as * const _ as usize } ,
8usize , concat ! ( 4usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapIntervalX ) )); mScrollSnapIntervalX ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapIntervalY as * const _ as usize } , mScrollSnapIntervalY as * const _ as usize } ,
24usize , concat ! ( 12usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapIntervalY ) )); mScrollSnapIntervalY ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapDestination as * const _ as usize } , mScrollSnapDestination as * const _ as usize } ,
40usize , concat ! ( 20usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapDestination ) )); mScrollSnapDestination ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapCoordinates as * const _ as usize } , mScrollSnapCoordinates as * const _ as usize } ,
48usize , concat ! ( 32usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapCoordinates ) )); mScrollSnapCoordinates ) ));
@ -3167,7 +3167,7 @@ pub mod root {
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct GetRootNodeOptions([u8; 0]); pub struct GetRootNodeOptions([u8; 0]);
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug)]
pub struct UnionMember<T> { pub struct UnionMember<T> {
pub mStorage: root::mozilla::AlignedStorage2<T>, pub mStorage: root::mozilla::AlignedStorage2<T>,
} }
@ -3370,6 +3370,7 @@ pub mod root {
pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
pub _mOwningThread: root::nsAutoOwningThread, pub _mOwningThread: root::nsAutoOwningThread,
pub mOwner: root::nsCOMPtr<root::nsPIDOMWindowInner>, pub mOwner: root::nsCOMPtr<root::nsPIDOMWindowInner>,
pub mDocument: root::RefPtr<root::nsIDocument>,
pub mCallback: root::RefPtr<root::mozilla::dom::IntersectionCallback>, pub mCallback: root::RefPtr<root::mozilla::dom::IntersectionCallback>,
pub mRoot: root::RefPtr<root::mozilla::dom::Element>, pub mRoot: root::RefPtr<root::mozilla::dom::Element>,
pub mRootMargin: root::nsCSSRect, pub mRootMargin: root::nsCSSRect,
@ -3415,7 +3416,7 @@ pub mod root {
#[test] #[test]
fn bindgen_test_layout_DOMIntersectionObserver() { fn bindgen_test_layout_DOMIntersectionObserver() {
assert_eq!(::std::mem::size_of::<DOMIntersectionObserver>() , assert_eq!(::std::mem::size_of::<DOMIntersectionObserver>() ,
208usize , concat ! ( 216usize , concat ! (
"Size of: " , stringify ! ( DOMIntersectionObserver "Size of: " , stringify ! ( DOMIntersectionObserver
) )); ) ));
assert_eq! (::std::mem::align_of::<DOMIntersectionObserver>() assert_eq! (::std::mem::align_of::<DOMIntersectionObserver>()
@ -4852,6 +4853,9 @@ pub mod root {
} }
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct ImportRule([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Rule([u8; 0]); pub struct Rule([u8; 0]);
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
@ -5247,6 +5251,7 @@ pub mod root {
pub mType: root::mozilla::StyleBackendType, pub mType: root::mozilla::StyleBackendType,
pub mDisabled: bool, pub mDisabled: bool,
pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode, pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode,
pub mInner: *mut root::mozilla::StyleSheetInfo,
} }
pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType; pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType;
#[repr(C)] #[repr(C)]
@ -5281,7 +5286,7 @@ pub mod root {
} }
#[test] #[test]
fn bindgen_test_layout_StyleSheet() { fn bindgen_test_layout_StyleSheet() {
assert_eq!(::std::mem::size_of::<StyleSheet>() , 120usize , concat assert_eq!(::std::mem::size_of::<StyleSheet>() , 128usize , concat
! ( "Size of: " , stringify ! ( StyleSheet ) )); ! ( "Size of: " , stringify ! ( StyleSheet ) ));
assert_eq! (::std::mem::align_of::<StyleSheet>() , 8usize , concat assert_eq! (::std::mem::align_of::<StyleSheet>() , 8usize , concat
! ( "Alignment of " , stringify ! ( StyleSheet ) )); ! ( "Alignment of " , stringify ! ( StyleSheet ) ));
@ -5302,6 +5307,9 @@ pub mod root {
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct ServoStyleSheet([u8; 0]); pub struct ServoStyleSheet([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct StyleSheetInfo([u8; 0]);
#[repr(i16)] #[repr(i16)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum UseCounter { pub enum UseCounter {
@ -5390,7 +5398,8 @@ pub mod root {
eUseCounter_FileLastModifiedDate = 81, eUseCounter_FileLastModifiedDate = 81,
eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap = 82, eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap = 82,
eUseCounter_URLCreateObjectURL_MediaStream = 83, eUseCounter_URLCreateObjectURL_MediaStream = 83,
eUseCounter_Count = 84, eUseCounter_XMLBaseAttribute = 84,
eUseCounter_Count = 85,
} }
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@ -7128,13 +7137,13 @@ pub mod root {
pub mOffset: [u64; 2usize], pub mOffset: [u64; 2usize],
pub mComputedOffset: f64, pub mComputedOffset: f64,
pub mTimingFunction: [u64; 18usize], pub mTimingFunction: [u64; 18usize],
pub mComposite: [u64; 2usize], pub mComposite: [u8; 2usize],
pub mPropertyValues: root::nsTArray<root::mozilla::PropertyValuePair>, pub mPropertyValues: root::nsTArray<root::mozilla::PropertyValuePair>,
} }
pub const Keyframe_kComputedOffsetNotSet: f64 = -1.; pub const Keyframe_kComputedOffsetNotSet: f64 = -1.;
#[test] #[test]
fn bindgen_test_layout_Keyframe() { fn bindgen_test_layout_Keyframe() {
assert_eq!(::std::mem::size_of::<Keyframe>() , 192usize , concat ! assert_eq!(::std::mem::size_of::<Keyframe>() , 184usize , concat !
( "Size of: " , stringify ! ( Keyframe ) )); ( "Size of: " , stringify ! ( Keyframe ) ));
assert_eq! (::std::mem::align_of::<Keyframe>() , 8usize , concat ! assert_eq! (::std::mem::align_of::<Keyframe>() , 8usize , concat !
( "Alignment of " , stringify ! ( Keyframe ) )); ( "Alignment of " , stringify ! ( Keyframe ) ));
@ -7160,7 +7169,7 @@ pub mod root {
"::" , stringify ! ( mComposite ) )); "::" , stringify ! ( mComposite ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const Keyframe ) ) . mPropertyValues as & ( * ( 0 as * const Keyframe ) ) . mPropertyValues as
* const _ as usize } , 184usize , concat ! ( * const _ as usize } , 176usize , concat ! (
"Alignment of field: " , stringify ! ( Keyframe ) , "Alignment of field: " , stringify ! ( Keyframe ) ,
"::" , stringify ! ( mPropertyValues ) )); "::" , stringify ! ( mPropertyValues ) ));
} }
@ -7787,12 +7796,6 @@ pub mod root {
pub type pair_first_type<_T1> = _T1; pub type pair_first_type<_T1> = _T1;
pub type pair_second_type<_T2> = _T2; pub type pair_second_type<_T2> = _T2;
#[repr(C)] #[repr(C)]
pub struct atomic<_Tp> {
pub _base: (),
pub _phantom_0: ::std::marker::PhantomData<_Tp>,
}
pub type atomic___base = [u8; 0usize];
#[repr(C)]
#[derive(Debug, Copy)] #[derive(Debug, Copy)]
pub struct input_iterator_tag { pub struct input_iterator_tag {
pub _address: u8, pub _address: u8,
@ -7811,62 +7814,6 @@ pub mod root {
fn clone(&self) -> Self { *self } fn clone(&self) -> Self { *self }
} }
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy)]
pub struct forward_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_forward_iterator_tag() {
assert_eq!(::std::mem::size_of::<forward_iterator_tag>() , 1usize
, concat ! (
"Size of: " , stringify ! ( forward_iterator_tag ) ));
assert_eq! (::std::mem::align_of::<forward_iterator_tag>() ,
1usize , concat ! (
"Alignment of " , stringify ! ( forward_iterator_tag )
));
}
impl Clone for forward_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct bidirectional_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_bidirectional_iterator_tag() {
assert_eq!(::std::mem::size_of::<bidirectional_iterator_tag>() ,
1usize , concat ! (
"Size of: " , stringify ! ( bidirectional_iterator_tag
) ));
assert_eq! (::std::mem::align_of::<bidirectional_iterator_tag>() ,
1usize , concat ! (
"Alignment of " , stringify ! (
bidirectional_iterator_tag ) ));
}
impl Clone for bidirectional_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct random_access_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_random_access_iterator_tag() {
assert_eq!(::std::mem::size_of::<random_access_iterator_tag>() ,
1usize , concat ! (
"Size of: " , stringify ! ( random_access_iterator_tag
) ));
assert_eq! (::std::mem::align_of::<random_access_iterator_tag>() ,
1usize , concat ! (
"Alignment of " , stringify ! (
random_access_iterator_tag ) ));
}
impl Clone for random_access_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct iterator<_Category, _Tp, _Distance, _Pointer, _Reference> { pub struct iterator<_Category, _Tp, _Distance, _Pointer, _Reference> {
pub _address: u8, pub _address: u8,
@ -7876,209 +7823,250 @@ pub mod root {
pub _phantom_3: ::std::marker::PhantomData<_Pointer>, pub _phantom_3: ::std::marker::PhantomData<_Pointer>,
pub _phantom_4: ::std::marker::PhantomData<_Reference>, pub _phantom_4: ::std::marker::PhantomData<_Reference>,
} }
pub type iterator_iterator_category<_Category> = _Category;
pub type iterator_value_type<_Tp> = _Tp; pub type iterator_value_type<_Tp> = _Tp;
pub type iterator_difference_type<_Distance> = _Distance; pub type iterator_difference_type<_Distance> = _Distance;
pub type iterator_pointer<_Pointer> = _Pointer; pub type iterator_pointer<_Pointer> = _Pointer;
pub type iterator_reference<_Reference> = _Reference; pub type iterator_reference<_Reference> = _Reference;
pub type iterator_iterator_category<_Category> = _Category;
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug)]
pub struct __bit_const_reference<_Cp> { pub struct atomic<_Tp> {
pub __seg_: root::std::__bit_const_reference___storage_pointer<_Cp>, pub _M_i: _Tp,
pub __mask_: root::std::__bit_const_reference___storage_type<_Cp>, }
pub mod chrono {
#[allow(unused_imports)]
use self::super::super::super::root;
} }
pub type __bit_const_reference___storage_type<_Cp> = _Cp;
pub type __bit_const_reference___storage_pointer<_Cp> = _Cp;
} }
pub type __int64_t = ::std::os::raw::c_longlong; pub mod __gnu_cxx {
pub type __darwin_va_list = root::__builtin_va_list; #[allow(unused_imports)]
pub type __darwin_off_t = root::__int64_t; use self::super::super::root;
pub type va_list = root::__darwin_va_list; }
pub type fpos_t = root::__darwin_off_t; pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy)] #[derive(Debug, Copy)]
pub struct __sbuf { pub struct _IO_FILE {
pub _base: *mut ::std::os::raw::c_uchar, pub _flags: ::std::os::raw::c_int,
pub _size: ::std::os::raw::c_int, pub _IO_read_ptr: *mut ::std::os::raw::c_char,
pub _IO_read_end: *mut ::std::os::raw::c_char,
pub _IO_read_base: *mut ::std::os::raw::c_char,
pub _IO_write_base: *mut ::std::os::raw::c_char,
pub _IO_write_ptr: *mut ::std::os::raw::c_char,
pub _IO_write_end: *mut ::std::os::raw::c_char,
pub _IO_buf_base: *mut ::std::os::raw::c_char,
pub _IO_buf_end: *mut ::std::os::raw::c_char,
pub _IO_save_base: *mut ::std::os::raw::c_char,
pub _IO_backup_base: *mut ::std::os::raw::c_char,
pub _IO_save_end: *mut ::std::os::raw::c_char,
pub _markers: *mut root::_IO_marker,
pub _chain: *mut root::_IO_FILE,
pub _fileno: ::std::os::raw::c_int,
pub _flags2: ::std::os::raw::c_int,
pub _old_offset: root::__off_t,
pub _cur_column: ::std::os::raw::c_ushort,
pub _vtable_offset: ::std::os::raw::c_char,
pub _shortbuf: [::std::os::raw::c_char; 1usize],
pub _lock: *mut root::_IO_lock_t,
pub _offset: root::__off64_t,
pub __pad1: *mut ::std::os::raw::c_void,
pub __pad2: *mut ::std::os::raw::c_void,
pub __pad3: *mut ::std::os::raw::c_void,
pub __pad4: *mut ::std::os::raw::c_void,
pub __pad5: usize,
pub _mode: ::std::os::raw::c_int,
pub _unused2: [::std::os::raw::c_char; 20usize],
} }
#[test] #[test]
fn bindgen_test_layout___sbuf() { fn bindgen_test_layout__IO_FILE() {
assert_eq!(::std::mem::size_of::<__sbuf>() , 16usize , concat ! ( assert_eq!(::std::mem::size_of::<_IO_FILE>() , 216usize , concat ! (
"Size of: " , stringify ! ( __sbuf ) )); "Size of: " , stringify ! ( _IO_FILE ) ));
assert_eq! (::std::mem::align_of::<__sbuf>() , 8usize , concat ! ( assert_eq! (::std::mem::align_of::<_IO_FILE>() , 8usize , concat ! (
"Alignment of " , stringify ! ( __sbuf ) )); "Alignment of " , stringify ! ( _IO_FILE ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sbuf ) ) . _base as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _flags as * const _ as
usize } , 0usize , concat ! ( usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( __sbuf ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __sbuf ) ) . _size as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( __sbuf ) , "::" ,
stringify ! ( _size ) ));
}
impl Clone for __sbuf {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILEX([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy)]
pub struct __sFILE {
pub _p: *mut ::std::os::raw::c_uchar,
pub _r: ::std::os::raw::c_int,
pub _w: ::std::os::raw::c_int,
pub _flags: ::std::os::raw::c_short,
pub _file: ::std::os::raw::c_short,
pub _bf: root::__sbuf,
pub _lbfsize: ::std::os::raw::c_int,
pub _cookie: *mut ::std::os::raw::c_void,
pub _close: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>,
pub _read: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
*mut ::std::os::raw::c_char,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub _seek: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
root::fpos_t,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_longlong>,
pub _write: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
*const ::std::os::raw::c_char,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub _ub: root::__sbuf,
pub _extra: *mut root::__sFILEX,
pub _ur: ::std::os::raw::c_int,
pub _ubuf: [::std::os::raw::c_uchar; 3usize],
pub _nbuf: [::std::os::raw::c_uchar; 1usize],
pub _lb: root::__sbuf,
pub _blksize: ::std::os::raw::c_int,
pub _offset: root::fpos_t,
}
#[test]
fn bindgen_test_layout___sFILE() {
assert_eq!(::std::mem::size_of::<__sFILE>() , 152usize , concat ! (
"Size of: " , stringify ! ( __sFILE ) ));
assert_eq! (::std::mem::align_of::<__sFILE>() , 8usize , concat ! (
"Alignment of " , stringify ! ( __sFILE ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _p as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _p ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _r as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _r ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _w as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _w ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _flags as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _flags ) )); stringify ! ( _flags ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _file as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_ptr as *
usize } , 18usize , concat ! ( const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _file ) )); stringify ! ( _IO_read_ptr ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _bf as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_end as *
usize } , 24usize , concat ! ( const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _bf ) )); stringify ! ( _IO_read_end ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _lbfsize as * const _ & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_base as *
as usize } , 40usize , concat ! ( const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _lbfsize ) )); stringify ! ( _IO_read_base ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _cookie as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_base as *
usize } , 48usize , concat ! ( const _ as usize } , 32usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _cookie ) )); stringify ! ( _IO_write_base ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _close as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_ptr as *
usize } , 56usize , concat ! ( const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _close ) )); stringify ! ( _IO_write_ptr ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _read as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_end as *
usize } , 64usize , concat ! ( const _ as usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _read ) )); stringify ! ( _IO_write_end ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _seek as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_base as *
usize } , 72usize , concat ! ( const _ as usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _seek ) )); stringify ! ( _IO_buf_base ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _write as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_end as * const
usize } , 80usize , concat ! ( _ as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _write ) )); stringify ! ( _IO_buf_end ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _ub as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_save_base as *
usize } , 88usize , concat ! ( const _ as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _ub ) )); stringify ! ( _IO_save_base ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _extra as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _IO_backup_base as *
const _ as usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _IO_backup_base ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _IO_save_end as *
const _ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _IO_save_end ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _markers as * const _
as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _markers ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _chain as * const _ as
usize } , 104usize , concat ! ( usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _extra ) )); stringify ! ( _chain ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _ur as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _fileno as * const _
usize } , 112usize , concat ! ( as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _ur ) )); stringify ! ( _fileno ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _ubuf as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _flags2 as * const _
usize } , 116usize , concat ! ( as usize } , 116usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _ubuf ) )); stringify ! ( _flags2 ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _nbuf as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _old_offset as * const
usize } , 119usize , concat ! ( _ as usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _nbuf ) )); stringify ! ( _old_offset ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _lb as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _cur_column as * const
usize } , 120usize , concat ! ( _ as usize } , 128usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _lb ) )); stringify ! ( _cur_column ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _blksize as * const _ & ( * ( 0 as * const _IO_FILE ) ) . _vtable_offset as *
as usize } , 136usize , concat ! ( const _ as usize } , 130usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _blksize ) )); stringify ! ( _vtable_offset ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const __sFILE ) ) . _offset as * const _ as & ( * ( 0 as * const _IO_FILE ) ) . _shortbuf as * const _
usize } , 144usize , concat ! ( as usize } , 131usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" , "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _shortbuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _lock as * const _ as
usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _lock ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _offset as * const _
as usize } , 144usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _offset ) )); stringify ! ( _offset ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . __pad1 as * const _ as
usize } , 152usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( __pad1 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . __pad2 as * const _ as
usize } , 160usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( __pad2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . __pad3 as * const _ as
usize } , 168usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( __pad3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . __pad4 as * const _ as
usize } , 176usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( __pad4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . __pad5 as * const _ as
usize } , 184usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( __pad5 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _mode as * const _ as
usize } , 192usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _mode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _unused2 as * const _
as usize } , 196usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _unused2 ) ));
} }
impl Clone for __sFILE { impl Clone for _IO_FILE {
fn clone(&self) -> Self { *self }
}
pub type FILE = root::_IO_FILE;
pub type va_list = root::__builtin_va_list;
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _IO_marker {
pub _next: *mut root::_IO_marker,
pub _sbuf: *mut root::_IO_FILE,
pub _pos: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__IO_marker() {
assert_eq!(::std::mem::size_of::<_IO_marker>() , 24usize , concat ! (
"Size of: " , stringify ! ( _IO_marker ) ));
assert_eq! (::std::mem::align_of::<_IO_marker>() , 8usize , concat ! (
"Alignment of " , stringify ! ( _IO_marker ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_marker ) ) . _next as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_marker ) , "::"
, stringify ! ( _next ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_marker ) ) . _sbuf as * const _
as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_marker ) , "::"
, stringify ! ( _sbuf ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_marker ) ) . _pos as * const _ as
usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_marker ) , "::"
, stringify ! ( _pos ) ));
}
impl Clone for _IO_marker {
fn clone(&self) -> Self { *self } fn clone(&self) -> Self { *self }
} }
pub type FILE = root::__sFILE;
/** /**
* MozRefCountType is Mozilla's reference count type. * MozRefCountType is Mozilla's reference count type.
* *
@ -8589,6 +8577,11 @@ pub mod root {
NS_ERROR_UC_UPDATE_WRONG_REMOVAL_INDICES = 2154758148, NS_ERROR_UC_UPDATE_WRONG_REMOVAL_INDICES = 2154758148,
NS_ERROR_UC_UPDATE_CHECKSUM_MISMATCH = 2154758149, NS_ERROR_UC_UPDATE_CHECKSUM_MISMATCH = 2154758149,
NS_ERROR_UC_UPDATE_MISSING_CHECKSUM = 2154758150, NS_ERROR_UC_UPDATE_MISSING_CHECKSUM = 2154758150,
NS_ERROR_UC_UPDATE_SHUTDOWNING = 2154758151,
NS_ERROR_UC_UPDATE_TABLE_NOT_FOUND = 2154758152,
NS_ERROR_UC_UPDATE_BUILD_PREFIX_FAILURE = 2154758153,
NS_ERROR_UC_UPDATE_FAIL_TO_WRITE_DISK = 2154758154,
NS_ERROR_UC_UPDATE_PROTOCOL_PARSER_ERROR = 2154758155,
NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION = 2154823681, NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION = 2154823681,
NS_ERROR_INTERNAL_ERRORRESULT_DOMEXCEPTION = 2154823682, NS_ERROR_INTERNAL_ERRORRESULT_DOMEXCEPTION = 2154823682,
NS_ERROR_INTERNAL_ERRORRESULT_EXCEPTION_ON_JSCONTEXT = 2154823683, NS_ERROR_INTERNAL_ERRORRESULT_EXCEPTION_ON_JSCONTEXT = 2154823683,
@ -9011,7 +9004,7 @@ pub mod root {
pub majorGCNumber_: u64, pub majorGCNumber_: u64,
pub reason: *const ::std::os::raw::c_char, pub reason: *const ::std::os::raw::c_char,
pub nonincrementalReason: *const ::std::os::raw::c_char, pub nonincrementalReason: *const ::std::os::raw::c_char,
pub collections: [u64; 6usize], pub collections: [u64; 5usize],
} }
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy)] #[derive(Debug, Copy)]
@ -9055,7 +9048,7 @@ pub mod root {
#[test] #[test]
fn bindgen_test_layout_GarbageCollectionEvent() { fn bindgen_test_layout_GarbageCollectionEvent() {
assert_eq!(::std::mem::size_of::<GarbageCollectionEvent>() , assert_eq!(::std::mem::size_of::<GarbageCollectionEvent>() ,
72usize , concat ! ( 64usize , concat ! (
"Size of: " , stringify ! ( GarbageCollectionEvent "Size of: " , stringify ! ( GarbageCollectionEvent
) )); ) ));
assert_eq! (::std::mem::align_of::<GarbageCollectionEvent>() , assert_eq! (::std::mem::align_of::<GarbageCollectionEvent>() ,
@ -11433,7 +11426,6 @@ pub mod root {
pub mSubtreeModifiedDepth: u32, pub mSubtreeModifiedDepth: u32,
pub mDisplayDocument: root::nsCOMPtr<root::nsIDocument>, pub mDisplayDocument: root::nsCOMPtr<root::nsIDocument>,
pub mEventsSuppressed: u32, pub mEventsSuppressed: u32,
pub mAnimationsPaused: u32,
/** /**
* The number number of external scripts (ones with the src attribute) that * The number number of external scripts (ones with the src attribute) that
* have this document as their owner and that are being evaluated right now. * have this document as their owner and that are being evaluated right now.
@ -11651,9 +11643,6 @@ pub mod root {
*mut ::std::os::raw::c_void)>; *mut ::std::os::raw::c_void)>;
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsIDocument_SuppressionType { eAnimationsOnly = 1, eEvents = 3, }
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsIDocument_DocumentTheme { pub enum nsIDocument_DocumentTheme {
Doc_Theme_Uninitialized = 0, Doc_Theme_Uninitialized = 0,
Doc_Theme_None = 1, Doc_Theme_None = 1,
@ -11707,7 +11696,8 @@ pub mod root {
eFileLastModifiedDate = 38, eFileLastModifiedDate = 38,
eImageBitmapRenderingContext_TransferImageBitmap = 39, eImageBitmapRenderingContext_TransferImageBitmap = 39,
eURLCreateObjectURL_MediaStream = 40, eURLCreateObjectURL_MediaStream = 40,
eDeprecatedOperationCount = 41, eXMLBaseAttribute = 41,
eDeprecatedOperationCount = 42,
} }
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@ -11742,7 +11732,7 @@ pub mod root {
pub struct nsIDocument_FrameRequest([u8; 0]); pub struct nsIDocument_FrameRequest([u8; 0]);
#[test] #[test]
fn bindgen_test_layout_nsIDocument() { fn bindgen_test_layout_nsIDocument() {
assert_eq!(::std::mem::size_of::<nsIDocument>() , 1032usize , concat ! assert_eq!(::std::mem::size_of::<nsIDocument>() , 1024usize , concat !
( "Size of: " , stringify ! ( nsIDocument ) )); ( "Size of: " , stringify ! ( nsIDocument ) ));
assert_eq! (::std::mem::align_of::<nsIDocument>() , 8usize , concat ! assert_eq! (::std::mem::align_of::<nsIDocument>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsIDocument ) )); ( "Alignment of " , stringify ! ( nsIDocument ) ));
@ -14777,7 +14767,7 @@ pub mod root {
pub mScrollPositionClampingScrollPortSize: root::nsSize, pub mScrollPositionClampingScrollPortSize: root::nsSize,
pub mWeakFrames: *mut root::nsWeakFrame, pub mWeakFrames: *mut root::nsWeakFrame,
pub mCanvasBackgroundColor: root::nscolor, pub mCanvasBackgroundColor: root::nscolor,
pub mResolution: [u64; 2usize], pub mResolution: [u32; 2usize],
pub mSelectionFlags: i16, pub mSelectionFlags: i16,
pub mRenderFlags: root::nsIPresShell_RenderFlags, pub mRenderFlags: root::nsIPresShell_RenderFlags,
pub _bitfield_1: u8, pub _bitfield_1: u8,
@ -15111,7 +15101,7 @@ pub mod root {
} }
#[test] #[test]
fn bindgen_test_layout_nsIPresShell() { fn bindgen_test_layout_nsIPresShell() {
assert_eq!(::std::mem::size_of::<nsIPresShell>() , 408usize , concat ! assert_eq!(::std::mem::size_of::<nsIPresShell>() , 392usize , concat !
( "Size of: " , stringify ! ( nsIPresShell ) )); ( "Size of: " , stringify ! ( nsIPresShell ) ));
assert_eq! (::std::mem::align_of::<nsIPresShell>() , 8usize , concat ! assert_eq! (::std::mem::align_of::<nsIPresShell>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsIPresShell ) )); ( "Alignment of " , stringify ! ( nsIPresShell ) ));
@ -15208,87 +15198,87 @@ pub mod root {
"::" , stringify ! ( mCanvasBackgroundColor ) )); "::" , stringify ! ( mCanvasBackgroundColor ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mResolution as * & ( * ( 0 as * const nsIPresShell ) ) . mResolution as *
const _ as usize } , 328usize , concat ! ( const _ as usize } , 324usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mResolution ) )); "::" , stringify ! ( mResolution ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as & ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as
* const _ as usize } , 344usize , concat ! ( * const _ as usize } , 332usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mSelectionFlags ) )); "::" , stringify ! ( mSelectionFlags ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as * & ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as *
const _ as usize } , 346usize , concat ! ( const _ as usize } , 334usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mRenderFlags ) )); "::" , stringify ! ( mRenderFlags ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as * & ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as *
const _ as usize } , 352usize , concat ! ( const _ as usize } , 340usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mPresShellId ) )); "::" , stringify ! ( mPresShellId ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mChangedScopeStyleRoots as * const _ as usize } , 360usize mChangedScopeStyleRoots as * const _ as usize } , 344usize
, concat ! ( , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mChangedScopeStyleRoots ) )); "::" , stringify ! ( mChangedScopeStyleRoots ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationEmPerLine as * const _ as usize } , mFontSizeInflationEmPerLine as * const _ as usize } ,
384usize , concat ! ( 368usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationEmPerLine ) )); "::" , stringify ! ( mFontSizeInflationEmPerLine ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationMinTwips as * const _ as usize } , mFontSizeInflationMinTwips as * const _ as usize } ,
388usize , concat ! ( 372usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationMinTwips ) )); "::" , stringify ! ( mFontSizeInflationMinTwips ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationLineThreshold as * const _ as usize } , mFontSizeInflationLineThreshold as * const _ as usize } ,
392usize , concat ! ( 376usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationLineThreshold ) )); "::" , stringify ! ( mFontSizeInflationLineThreshold ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationForceEnabled as * const _ as usize } , mFontSizeInflationForceEnabled as * const _ as usize } ,
396usize , concat ! ( 380usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationForceEnabled ) )); "::" , stringify ! ( mFontSizeInflationForceEnabled ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationDisabledInMasterProcess as * const _ as mFontSizeInflationDisabledInMasterProcess as * const _ as
usize } , 397usize , concat ! ( usize } , 381usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( "::" , stringify ! (
mFontSizeInflationDisabledInMasterProcess ) )); mFontSizeInflationDisabledInMasterProcess ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationEnabled as * const _ as usize } , mFontSizeInflationEnabled as * const _ as usize } ,
398usize , concat ! ( 382usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationEnabled ) )); "::" , stringify ! ( mFontSizeInflationEnabled ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen & ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen
as * const _ as usize } , 399usize , concat ! ( as * const _ as usize } , 383usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mPaintingIsFrozen ) )); "::" , stringify ! ( mPaintingIsFrozen ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationEnabledIsDirty as * const _ as usize } , mFontSizeInflationEnabledIsDirty as * const _ as usize } ,
400usize , concat ! ( 384usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationEnabledIsDirty ) "::" , stringify ! ( mFontSizeInflationEnabledIsDirty )
)); ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting & ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting
as * const _ as usize } , 401usize , concat ! ( as * const _ as usize } , 385usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mIsNeverPainting ) )); "::" , stringify ! ( mIsNeverPainting ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mInFlush as * & ( * ( 0 as * const nsIPresShell ) ) . mInFlush as *
const _ as usize } , 402usize , concat ! ( const _ as usize } , 386usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mInFlush ) )); "::" , stringify ! ( mInFlush ) ));
} }
@ -15333,63 +15323,63 @@ pub mod root {
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct nsDOMMutationObserver([u8; 0]); pub struct nsDOMMutationObserver([u8; 0]);
pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_28 = pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_LISTENERMANAGER; _bindgen_ty_118::NODE_HAS_LISTENERMANAGER;
pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_28 = pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_PROPERTIES; _bindgen_ty_118::NODE_HAS_PROPERTIES;
pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_28 = pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_IS_ANONYMOUS_ROOT; _bindgen_ty_118::NODE_IS_ANONYMOUS_ROOT;
pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_28 = pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; _bindgen_ty_118::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_28 = pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS_ROOT; _bindgen_ty_118::NODE_IS_NATIVE_ANONYMOUS_ROOT;
pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_28 = pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_FORCE_XBL_BINDINGS; _bindgen_ty_118::NODE_FORCE_XBL_BINDINGS;
pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_28 = pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_MAY_BE_IN_BINDING_MNGR; _bindgen_ty_118::NODE_MAY_BE_IN_BINDING_MNGR;
pub const NODE_IS_EDITABLE: root::_bindgen_ty_28 = pub const NODE_IS_EDITABLE: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_IS_EDITABLE; _bindgen_ty_118::NODE_IS_EDITABLE;
pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_28 = pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS; _bindgen_ty_118::NODE_IS_NATIVE_ANONYMOUS;
pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_28 = pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_IS_IN_SHADOW_TREE; _bindgen_ty_118::NODE_IS_IN_SHADOW_TREE;
pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_28 = pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_EMPTY_SELECTOR; _bindgen_ty_118::NODE_HAS_EMPTY_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_28 = pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_SLOW_SELECTOR; _bindgen_ty_118::NODE_HAS_SLOW_SELECTOR;
pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_28 = pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_EDGE_CHILD_SELECTOR; _bindgen_ty_118::NODE_HAS_EDGE_CHILD_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_28 = pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; _bindgen_ty_118::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_28 = pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_ALL_SELECTOR_FLAGS; _bindgen_ty_118::NODE_ALL_SELECTOR_FLAGS;
pub const NODE_NEEDS_FRAME: root::_bindgen_ty_28 = pub const NODE_NEEDS_FRAME: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_NEEDS_FRAME; _bindgen_ty_118::NODE_NEEDS_FRAME;
pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_28 = pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_DESCENDANTS_NEED_FRAMES; _bindgen_ty_118::NODE_DESCENDANTS_NEED_FRAMES;
pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_28 = pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_ACCESSKEY; _bindgen_ty_118::NODE_HAS_ACCESSKEY;
pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_28 = pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_DIRECTION_RTL; _bindgen_ty_118::NODE_HAS_DIRECTION_RTL;
pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_28 = pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_HAS_DIRECTION_LTR; _bindgen_ty_118::NODE_HAS_DIRECTION_LTR;
pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_28 = pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_ALL_DIRECTION_FLAGS; _bindgen_ty_118::NODE_ALL_DIRECTION_FLAGS;
pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 = pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_CHROME_ONLY_ACCESS; _bindgen_ty_118::NODE_CHROME_ONLY_ACCESS;
pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 = pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; _bindgen_ty_118::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_28 = pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1; _bindgen_ty_118::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_28 = pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_2; _bindgen_ty_118::NODE_SHARED_RESTYLE_BIT_2;
pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_28 = pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1; _bindgen_ty_118::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_28 = pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_118 =
_bindgen_ty_28::NODE_TYPE_SPECIFIC_BITS_OFFSET; _bindgen_ty_118::NODE_TYPE_SPECIFIC_BITS_OFFSET;
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_28 { pub enum _bindgen_ty_118 {
NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_LISTENERMANAGER = 4,
NODE_HAS_PROPERTIES = 8, NODE_HAS_PROPERTIES = 8,
NODE_IS_ANONYMOUS_ROOT = 16, NODE_IS_ANONYMOUS_ROOT = 16,
@ -22426,7 +22416,7 @@ pub mod root {
#[repr(C)] #[repr(C)]
#[derive(Debug)] #[derive(Debug)]
pub struct CachedBorderImageData { pub struct CachedBorderImageData {
pub mCachedSVGViewportSize: [u64; 2usize], pub mCachedSVGViewportSize: [u32; 3usize],
pub mSubImages: root::nsCOMArray<root::imgIContainer>, pub mSubImages: root::nsCOMArray<root::imgIContainer>,
} }
#[test] #[test]
@ -26969,14 +26959,14 @@ pub mod root {
} }
#[test] #[test]
fn __bindgen_test_layout_template_91() { fn __bindgen_test_layout_template_91() {
assert_eq!(::std::mem::size_of::<[u64; 2usize]>() , 16usize , concat ! assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat !
( (
"Size of template specialization: " , stringify ! ( "Size of template specialization: " , stringify ! (
[u64; 2usize] ) )); [u32; 3usize] ) ));
assert_eq!(::std::mem::align_of::<[u64; 2usize]>() , 8usize , concat ! assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat !
( (
"Alignment of template specialization: " , stringify ! ( "Alignment of template specialization: " , stringify ! (
[u64; 2usize] ) )); [u32; 3usize] ) ));
} }
#[test] #[test]
fn __bindgen_test_layout_template_92() { fn __bindgen_test_layout_template_92() {

View file

@ -1901,14 +1901,14 @@ pub mod root {
pub struct ScrollSnapInfo { pub struct ScrollSnapInfo {
pub mScrollSnapTypeX: u8, pub mScrollSnapTypeX: u8,
pub mScrollSnapTypeY: u8, pub mScrollSnapTypeY: u8,
pub mScrollSnapIntervalX: [u64; 2usize], pub mScrollSnapIntervalX: [u32; 2usize],
pub mScrollSnapIntervalY: [u64; 2usize], pub mScrollSnapIntervalY: [u32; 2usize],
pub mScrollSnapDestination: root::nsPoint, pub mScrollSnapDestination: root::nsPoint,
pub mScrollSnapCoordinates: root::nsTArray<root::nsPoint>, pub mScrollSnapCoordinates: root::nsTArray<root::nsPoint>,
} }
#[test] #[test]
fn bindgen_test_layout_ScrollSnapInfo() { fn bindgen_test_layout_ScrollSnapInfo() {
assert_eq!(::std::mem::size_of::<ScrollSnapInfo>() , 56usize , assert_eq!(::std::mem::size_of::<ScrollSnapInfo>() , 40usize ,
concat ! ( concat ! (
"Size of: " , stringify ! ( ScrollSnapInfo ) )); "Size of: " , stringify ! ( ScrollSnapInfo ) ));
assert_eq! (::std::mem::align_of::<ScrollSnapInfo>() , 8usize assert_eq! (::std::mem::align_of::<ScrollSnapInfo>() , 8usize
@ -1932,28 +1932,28 @@ pub mod root {
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapIntervalX as * const _ as usize } , mScrollSnapIntervalX as * const _ as usize } ,
8usize , concat ! ( 4usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapIntervalX ) )); mScrollSnapIntervalX ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapIntervalY as * const _ as usize } , mScrollSnapIntervalY as * const _ as usize } ,
24usize , concat ! ( 12usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapIntervalY ) )); mScrollSnapIntervalY ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapDestination as * const _ as usize } , mScrollSnapDestination as * const _ as usize } ,
40usize , concat ! ( 20usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapDestination ) )); mScrollSnapDestination ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const ScrollSnapInfo ) ) . & ( * ( 0 as * const ScrollSnapInfo ) ) .
mScrollSnapCoordinates as * const _ as usize } , mScrollSnapCoordinates as * const _ as usize } ,
48usize , concat ! ( 32usize , concat ! (
"Alignment of field: " , stringify ! ( "Alignment of field: " , stringify ! (
ScrollSnapInfo ) , "::" , stringify ! ( ScrollSnapInfo ) , "::" , stringify ! (
mScrollSnapCoordinates ) )); mScrollSnapCoordinates ) ));
@ -3151,7 +3151,7 @@ pub mod root {
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct GetRootNodeOptions([u8; 0]); pub struct GetRootNodeOptions([u8; 0]);
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug)]
pub struct UnionMember<T> { pub struct UnionMember<T> {
pub mStorage: root::mozilla::AlignedStorage2<T>, pub mStorage: root::mozilla::AlignedStorage2<T>,
} }
@ -3352,6 +3352,7 @@ pub mod root {
pub _base_1: root::nsWrapperCache, pub _base_1: root::nsWrapperCache,
pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
pub mOwner: root::nsCOMPtr<root::nsPIDOMWindowInner>, pub mOwner: root::nsCOMPtr<root::nsPIDOMWindowInner>,
pub mDocument: root::RefPtr<root::nsIDocument>,
pub mCallback: root::RefPtr<root::mozilla::dom::IntersectionCallback>, pub mCallback: root::RefPtr<root::mozilla::dom::IntersectionCallback>,
pub mRoot: root::RefPtr<root::mozilla::dom::Element>, pub mRoot: root::RefPtr<root::mozilla::dom::Element>,
pub mRootMargin: root::nsCSSRect, pub mRootMargin: root::nsCSSRect,
@ -3397,7 +3398,7 @@ pub mod root {
#[test] #[test]
fn bindgen_test_layout_DOMIntersectionObserver() { fn bindgen_test_layout_DOMIntersectionObserver() {
assert_eq!(::std::mem::size_of::<DOMIntersectionObserver>() , assert_eq!(::std::mem::size_of::<DOMIntersectionObserver>() ,
192usize , concat ! ( 200usize , concat ! (
"Size of: " , stringify ! ( DOMIntersectionObserver "Size of: " , stringify ! ( DOMIntersectionObserver
) )); ) ));
assert_eq! (::std::mem::align_of::<DOMIntersectionObserver>() assert_eq! (::std::mem::align_of::<DOMIntersectionObserver>()
@ -4723,6 +4724,9 @@ pub mod root {
} }
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct ImportRule([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Rule([u8; 0]); pub struct Rule([u8; 0]);
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
@ -5087,6 +5091,7 @@ pub mod root {
pub mType: root::mozilla::StyleBackendType, pub mType: root::mozilla::StyleBackendType,
pub mDisabled: bool, pub mDisabled: bool,
pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode, pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode,
pub mInner: *mut root::mozilla::StyleSheetInfo,
} }
pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType; pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType;
#[repr(C)] #[repr(C)]
@ -5121,7 +5126,7 @@ pub mod root {
} }
#[test] #[test]
fn bindgen_test_layout_StyleSheet() { fn bindgen_test_layout_StyleSheet() {
assert_eq!(::std::mem::size_of::<StyleSheet>() , 112usize , concat assert_eq!(::std::mem::size_of::<StyleSheet>() , 120usize , concat
! ( "Size of: " , stringify ! ( StyleSheet ) )); ! ( "Size of: " , stringify ! ( StyleSheet ) ));
assert_eq! (::std::mem::align_of::<StyleSheet>() , 8usize , concat assert_eq! (::std::mem::align_of::<StyleSheet>() , 8usize , concat
! ( "Alignment of " , stringify ! ( StyleSheet ) )); ! ( "Alignment of " , stringify ! ( StyleSheet ) ));
@ -5142,6 +5147,9 @@ pub mod root {
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct ServoStyleSheet([u8; 0]); pub struct ServoStyleSheet([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct StyleSheetInfo([u8; 0]);
#[repr(i16)] #[repr(i16)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum UseCounter { pub enum UseCounter {
@ -5230,7 +5238,8 @@ pub mod root {
eUseCounter_FileLastModifiedDate = 81, eUseCounter_FileLastModifiedDate = 81,
eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap = 82, eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap = 82,
eUseCounter_URLCreateObjectURL_MediaStream = 83, eUseCounter_URLCreateObjectURL_MediaStream = 83,
eUseCounter_Count = 84, eUseCounter_XMLBaseAttribute = 84,
eUseCounter_Count = 85,
} }
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@ -6941,13 +6950,13 @@ pub mod root {
pub mOffset: [u64; 2usize], pub mOffset: [u64; 2usize],
pub mComputedOffset: f64, pub mComputedOffset: f64,
pub mTimingFunction: [u64; 18usize], pub mTimingFunction: [u64; 18usize],
pub mComposite: [u64; 2usize], pub mComposite: [u8; 2usize],
pub mPropertyValues: root::nsTArray<root::mozilla::PropertyValuePair>, pub mPropertyValues: root::nsTArray<root::mozilla::PropertyValuePair>,
} }
pub const Keyframe_kComputedOffsetNotSet: f64 = -1.; pub const Keyframe_kComputedOffsetNotSet: f64 = -1.;
#[test] #[test]
fn bindgen_test_layout_Keyframe() { fn bindgen_test_layout_Keyframe() {
assert_eq!(::std::mem::size_of::<Keyframe>() , 192usize , concat ! assert_eq!(::std::mem::size_of::<Keyframe>() , 184usize , concat !
( "Size of: " , stringify ! ( Keyframe ) )); ( "Size of: " , stringify ! ( Keyframe ) ));
assert_eq! (::std::mem::align_of::<Keyframe>() , 8usize , concat ! assert_eq! (::std::mem::align_of::<Keyframe>() , 8usize , concat !
( "Alignment of " , stringify ! ( Keyframe ) )); ( "Alignment of " , stringify ! ( Keyframe ) ));
@ -6973,7 +6982,7 @@ pub mod root {
"::" , stringify ! ( mComposite ) )); "::" , stringify ! ( mComposite ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const Keyframe ) ) . mPropertyValues as & ( * ( 0 as * const Keyframe ) ) . mPropertyValues as
* const _ as usize } , 184usize , concat ! ( * const _ as usize } , 176usize , concat ! (
"Alignment of field: " , stringify ! ( Keyframe ) , "Alignment of field: " , stringify ! ( Keyframe ) ,
"::" , stringify ! ( mPropertyValues ) )); "::" , stringify ! ( mPropertyValues ) ));
} }
@ -7600,12 +7609,6 @@ pub mod root {
pub type pair_first_type<_T1> = _T1; pub type pair_first_type<_T1> = _T1;
pub type pair_second_type<_T2> = _T2; pub type pair_second_type<_T2> = _T2;
#[repr(C)] #[repr(C)]
pub struct atomic<_Tp> {
pub _base: (),
pub _phantom_0: ::std::marker::PhantomData<_Tp>,
}
pub type atomic___base = [u8; 0usize];
#[repr(C)]
#[derive(Debug, Copy)] #[derive(Debug, Copy)]
pub struct input_iterator_tag { pub struct input_iterator_tag {
pub _address: u8, pub _address: u8,
@ -7624,62 +7627,6 @@ pub mod root {
fn clone(&self) -> Self { *self } fn clone(&self) -> Self { *self }
} }
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy)]
pub struct forward_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_forward_iterator_tag() {
assert_eq!(::std::mem::size_of::<forward_iterator_tag>() , 1usize
, concat ! (
"Size of: " , stringify ! ( forward_iterator_tag ) ));
assert_eq! (::std::mem::align_of::<forward_iterator_tag>() ,
1usize , concat ! (
"Alignment of " , stringify ! ( forward_iterator_tag )
));
}
impl Clone for forward_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct bidirectional_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_bidirectional_iterator_tag() {
assert_eq!(::std::mem::size_of::<bidirectional_iterator_tag>() ,
1usize , concat ! (
"Size of: " , stringify ! ( bidirectional_iterator_tag
) ));
assert_eq! (::std::mem::align_of::<bidirectional_iterator_tag>() ,
1usize , concat ! (
"Alignment of " , stringify ! (
bidirectional_iterator_tag ) ));
}
impl Clone for bidirectional_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct random_access_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_random_access_iterator_tag() {
assert_eq!(::std::mem::size_of::<random_access_iterator_tag>() ,
1usize , concat ! (
"Size of: " , stringify ! ( random_access_iterator_tag
) ));
assert_eq! (::std::mem::align_of::<random_access_iterator_tag>() ,
1usize , concat ! (
"Alignment of " , stringify ! (
random_access_iterator_tag ) ));
}
impl Clone for random_access_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct iterator<_Category, _Tp, _Distance, _Pointer, _Reference> { pub struct iterator<_Category, _Tp, _Distance, _Pointer, _Reference> {
pub _address: u8, pub _address: u8,
@ -7689,22 +7636,22 @@ pub mod root {
pub _phantom_3: ::std::marker::PhantomData<_Pointer>, pub _phantom_3: ::std::marker::PhantomData<_Pointer>,
pub _phantom_4: ::std::marker::PhantomData<_Reference>, pub _phantom_4: ::std::marker::PhantomData<_Reference>,
} }
pub type iterator_iterator_category<_Category> = _Category;
pub type iterator_value_type<_Tp> = _Tp; pub type iterator_value_type<_Tp> = _Tp;
pub type iterator_difference_type<_Distance> = _Distance; pub type iterator_difference_type<_Distance> = _Distance;
pub type iterator_pointer<_Pointer> = _Pointer; pub type iterator_pointer<_Pointer> = _Pointer;
pub type iterator_reference<_Reference> = _Reference; pub type iterator_reference<_Reference> = _Reference;
pub type iterator_iterator_category<_Category> = _Category;
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug)]
pub struct __bit_const_reference<_Cp> { pub struct atomic<_Tp> {
pub __seg_: root::std::__bit_const_reference___storage_pointer<_Cp>, pub _M_i: _Tp,
pub __mask_: root::std::__bit_const_reference___storage_type<_Cp>,
} }
pub type __bit_const_reference___storage_type<_Cp> = _Cp;
pub type __bit_const_reference___storage_pointer<_Cp> = _Cp;
} }
pub type __darwin_va_list = root::__builtin_va_list; pub mod __gnu_cxx {
pub type va_list = root::__darwin_va_list; #[allow(unused_imports)]
use self::super::super::root;
}
pub type va_list = root::__builtin_va_list;
/** /**
* MozRefCountType is Mozilla's reference count type. * MozRefCountType is Mozilla's reference count type.
* *
@ -8215,6 +8162,11 @@ pub mod root {
NS_ERROR_UC_UPDATE_WRONG_REMOVAL_INDICES = 2154758148, NS_ERROR_UC_UPDATE_WRONG_REMOVAL_INDICES = 2154758148,
NS_ERROR_UC_UPDATE_CHECKSUM_MISMATCH = 2154758149, NS_ERROR_UC_UPDATE_CHECKSUM_MISMATCH = 2154758149,
NS_ERROR_UC_UPDATE_MISSING_CHECKSUM = 2154758150, NS_ERROR_UC_UPDATE_MISSING_CHECKSUM = 2154758150,
NS_ERROR_UC_UPDATE_SHUTDOWNING = 2154758151,
NS_ERROR_UC_UPDATE_TABLE_NOT_FOUND = 2154758152,
NS_ERROR_UC_UPDATE_BUILD_PREFIX_FAILURE = 2154758153,
NS_ERROR_UC_UPDATE_FAIL_TO_WRITE_DISK = 2154758154,
NS_ERROR_UC_UPDATE_PROTOCOL_PARSER_ERROR = 2154758155,
NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION = 2154823681, NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION = 2154823681,
NS_ERROR_INTERNAL_ERRORRESULT_DOMEXCEPTION = 2154823682, NS_ERROR_INTERNAL_ERRORRESULT_DOMEXCEPTION = 2154823682,
NS_ERROR_INTERNAL_ERRORRESULT_EXCEPTION_ON_JSCONTEXT = 2154823683, NS_ERROR_INTERNAL_ERRORRESULT_EXCEPTION_ON_JSCONTEXT = 2154823683,
@ -8637,7 +8589,7 @@ pub mod root {
pub majorGCNumber_: u64, pub majorGCNumber_: u64,
pub reason: *const ::std::os::raw::c_char, pub reason: *const ::std::os::raw::c_char,
pub nonincrementalReason: *const ::std::os::raw::c_char, pub nonincrementalReason: *const ::std::os::raw::c_char,
pub collections: [u64; 4usize], pub collections: [u64; 3usize],
} }
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy)] #[derive(Debug, Copy)]
@ -8681,7 +8633,7 @@ pub mod root {
#[test] #[test]
fn bindgen_test_layout_GarbageCollectionEvent() { fn bindgen_test_layout_GarbageCollectionEvent() {
assert_eq!(::std::mem::size_of::<GarbageCollectionEvent>() , assert_eq!(::std::mem::size_of::<GarbageCollectionEvent>() ,
56usize , concat ! ( 48usize , concat ! (
"Size of: " , stringify ! ( GarbageCollectionEvent "Size of: " , stringify ! ( GarbageCollectionEvent
) )); ) ));
assert_eq! (::std::mem::align_of::<GarbageCollectionEvent>() , assert_eq! (::std::mem::align_of::<GarbageCollectionEvent>() ,
@ -11022,7 +10974,6 @@ pub mod root {
pub mSubtreeModifiedDepth: u32, pub mSubtreeModifiedDepth: u32,
pub mDisplayDocument: root::nsCOMPtr<root::nsIDocument>, pub mDisplayDocument: root::nsCOMPtr<root::nsIDocument>,
pub mEventsSuppressed: u32, pub mEventsSuppressed: u32,
pub mAnimationsPaused: u32,
/** /**
* The number number of external scripts (ones with the src attribute) that * The number number of external scripts (ones with the src attribute) that
* have this document as their owner and that are being evaluated right now. * have this document as their owner and that are being evaluated right now.
@ -11240,9 +11191,6 @@ pub mod root {
*mut ::std::os::raw::c_void)>; *mut ::std::os::raw::c_void)>;
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsIDocument_SuppressionType { eAnimationsOnly = 1, eEvents = 3, }
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsIDocument_DocumentTheme { pub enum nsIDocument_DocumentTheme {
Doc_Theme_Uninitialized = 0, Doc_Theme_Uninitialized = 0,
Doc_Theme_None = 1, Doc_Theme_None = 1,
@ -11296,7 +11244,8 @@ pub mod root {
eFileLastModifiedDate = 38, eFileLastModifiedDate = 38,
eImageBitmapRenderingContext_TransferImageBitmap = 39, eImageBitmapRenderingContext_TransferImageBitmap = 39,
eURLCreateObjectURL_MediaStream = 40, eURLCreateObjectURL_MediaStream = 40,
eDeprecatedOperationCount = 41, eXMLBaseAttribute = 41,
eDeprecatedOperationCount = 42,
} }
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@ -11331,7 +11280,7 @@ pub mod root {
pub struct nsIDocument_FrameRequest([u8; 0]); pub struct nsIDocument_FrameRequest([u8; 0]);
#[test] #[test]
fn bindgen_test_layout_nsIDocument() { fn bindgen_test_layout_nsIDocument() {
assert_eq!(::std::mem::size_of::<nsIDocument>() , 992usize , concat ! assert_eq!(::std::mem::size_of::<nsIDocument>() , 984usize , concat !
( "Size of: " , stringify ! ( nsIDocument ) )); ( "Size of: " , stringify ! ( nsIDocument ) ));
assert_eq! (::std::mem::align_of::<nsIDocument>() , 8usize , concat ! assert_eq! (::std::mem::align_of::<nsIDocument>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsIDocument ) )); ( "Alignment of " , stringify ! ( nsIDocument ) ));
@ -14262,7 +14211,7 @@ pub mod root {
pub mScrollPositionClampingScrollPortSize: root::nsSize, pub mScrollPositionClampingScrollPortSize: root::nsSize,
pub mWeakFrames: *mut root::nsWeakFrame, pub mWeakFrames: *mut root::nsWeakFrame,
pub mCanvasBackgroundColor: root::nscolor, pub mCanvasBackgroundColor: root::nscolor,
pub mResolution: [u64; 2usize], pub mResolution: [u32; 2usize],
pub mSelectionFlags: i16, pub mSelectionFlags: i16,
pub mRenderFlags: root::nsIPresShell_RenderFlags, pub mRenderFlags: root::nsIPresShell_RenderFlags,
pub _bitfield_1: u8, pub _bitfield_1: u8,
@ -14596,7 +14545,7 @@ pub mod root {
} }
#[test] #[test]
fn bindgen_test_layout_nsIPresShell() { fn bindgen_test_layout_nsIPresShell() {
assert_eq!(::std::mem::size_of::<nsIPresShell>() , 336usize , concat ! assert_eq!(::std::mem::size_of::<nsIPresShell>() , 320usize , concat !
( "Size of: " , stringify ! ( nsIPresShell ) )); ( "Size of: " , stringify ! ( nsIPresShell ) ));
assert_eq! (::std::mem::align_of::<nsIPresShell>() , 8usize , concat ! assert_eq! (::std::mem::align_of::<nsIPresShell>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsIPresShell ) )); ( "Alignment of " , stringify ! ( nsIPresShell ) ));
@ -14682,87 +14631,87 @@ pub mod root {
"::" , stringify ! ( mCanvasBackgroundColor ) )); "::" , stringify ! ( mCanvasBackgroundColor ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mResolution as * & ( * ( 0 as * const nsIPresShell ) ) . mResolution as *
const _ as usize } , 256usize , concat ! ( const _ as usize } , 252usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mResolution ) )); "::" , stringify ! ( mResolution ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as & ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as
* const _ as usize } , 272usize , concat ! ( * const _ as usize } , 260usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mSelectionFlags ) )); "::" , stringify ! ( mSelectionFlags ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as * & ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as *
const _ as usize } , 274usize , concat ! ( const _ as usize } , 262usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mRenderFlags ) )); "::" , stringify ! ( mRenderFlags ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as * & ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as *
const _ as usize } , 280usize , concat ! ( const _ as usize } , 268usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mPresShellId ) )); "::" , stringify ! ( mPresShellId ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mChangedScopeStyleRoots as * const _ as usize } , 288usize mChangedScopeStyleRoots as * const _ as usize } , 272usize
, concat ! ( , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mChangedScopeStyleRoots ) )); "::" , stringify ! ( mChangedScopeStyleRoots ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationEmPerLine as * const _ as usize } , mFontSizeInflationEmPerLine as * const _ as usize } ,
312usize , concat ! ( 296usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationEmPerLine ) )); "::" , stringify ! ( mFontSizeInflationEmPerLine ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationMinTwips as * const _ as usize } , mFontSizeInflationMinTwips as * const _ as usize } ,
316usize , concat ! ( 300usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationMinTwips ) )); "::" , stringify ! ( mFontSizeInflationMinTwips ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationLineThreshold as * const _ as usize } , mFontSizeInflationLineThreshold as * const _ as usize } ,
320usize , concat ! ( 304usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationLineThreshold ) )); "::" , stringify ! ( mFontSizeInflationLineThreshold ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationForceEnabled as * const _ as usize } , mFontSizeInflationForceEnabled as * const _ as usize } ,
324usize , concat ! ( 308usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationForceEnabled ) )); "::" , stringify ! ( mFontSizeInflationForceEnabled ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationDisabledInMasterProcess as * const _ as mFontSizeInflationDisabledInMasterProcess as * const _ as
usize } , 325usize , concat ! ( usize } , 309usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( "::" , stringify ! (
mFontSizeInflationDisabledInMasterProcess ) )); mFontSizeInflationDisabledInMasterProcess ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationEnabled as * const _ as usize } , mFontSizeInflationEnabled as * const _ as usize } ,
326usize , concat ! ( 310usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationEnabled ) )); "::" , stringify ! ( mFontSizeInflationEnabled ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen & ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen
as * const _ as usize } , 327usize , concat ! ( as * const _ as usize } , 311usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mPaintingIsFrozen ) )); "::" , stringify ! ( mPaintingIsFrozen ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . & ( * ( 0 as * const nsIPresShell ) ) .
mFontSizeInflationEnabledIsDirty as * const _ as usize } , mFontSizeInflationEnabledIsDirty as * const _ as usize } ,
328usize , concat ! ( 312usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mFontSizeInflationEnabledIsDirty ) "::" , stringify ! ( mFontSizeInflationEnabledIsDirty )
)); ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting & ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting
as * const _ as usize } , 329usize , concat ! ( as * const _ as usize } , 313usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mIsNeverPainting ) )); "::" , stringify ! ( mIsNeverPainting ) ));
assert_eq! (unsafe { assert_eq! (unsafe {
& ( * ( 0 as * const nsIPresShell ) ) . mInFlush as * & ( * ( 0 as * const nsIPresShell ) ) . mInFlush as *
const _ as usize } , 330usize , concat ! ( const _ as usize } , 314usize , concat ! (
"Alignment of field: " , stringify ! ( nsIPresShell ) , "Alignment of field: " , stringify ! ( nsIPresShell ) ,
"::" , stringify ! ( mInFlush ) )); "::" , stringify ! ( mInFlush ) ));
} }
@ -14800,63 +14749,63 @@ pub mod root {
#[repr(C)] #[repr(C)]
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub struct nsDOMMutationObserver([u8; 0]); pub struct nsDOMMutationObserver([u8; 0]);
pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_28 = pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_LISTENERMANAGER; _bindgen_ty_105::NODE_HAS_LISTENERMANAGER;
pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_28 = pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_PROPERTIES; _bindgen_ty_105::NODE_HAS_PROPERTIES;
pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_28 = pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_IS_ANONYMOUS_ROOT; _bindgen_ty_105::NODE_IS_ANONYMOUS_ROOT;
pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_28 = pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; _bindgen_ty_105::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_28 = pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS_ROOT; _bindgen_ty_105::NODE_IS_NATIVE_ANONYMOUS_ROOT;
pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_28 = pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_FORCE_XBL_BINDINGS; _bindgen_ty_105::NODE_FORCE_XBL_BINDINGS;
pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_28 = pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_MAY_BE_IN_BINDING_MNGR; _bindgen_ty_105::NODE_MAY_BE_IN_BINDING_MNGR;
pub const NODE_IS_EDITABLE: root::_bindgen_ty_28 = pub const NODE_IS_EDITABLE: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_IS_EDITABLE; _bindgen_ty_105::NODE_IS_EDITABLE;
pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_28 = pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS; _bindgen_ty_105::NODE_IS_NATIVE_ANONYMOUS;
pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_28 = pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_IS_IN_SHADOW_TREE; _bindgen_ty_105::NODE_IS_IN_SHADOW_TREE;
pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_28 = pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_EMPTY_SELECTOR; _bindgen_ty_105::NODE_HAS_EMPTY_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_28 = pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_SLOW_SELECTOR; _bindgen_ty_105::NODE_HAS_SLOW_SELECTOR;
pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_28 = pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_EDGE_CHILD_SELECTOR; _bindgen_ty_105::NODE_HAS_EDGE_CHILD_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_28 = pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; _bindgen_ty_105::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_28 = pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_ALL_SELECTOR_FLAGS; _bindgen_ty_105::NODE_ALL_SELECTOR_FLAGS;
pub const NODE_NEEDS_FRAME: root::_bindgen_ty_28 = pub const NODE_NEEDS_FRAME: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_NEEDS_FRAME; _bindgen_ty_105::NODE_NEEDS_FRAME;
pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_28 = pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_DESCENDANTS_NEED_FRAMES; _bindgen_ty_105::NODE_DESCENDANTS_NEED_FRAMES;
pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_28 = pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_ACCESSKEY; _bindgen_ty_105::NODE_HAS_ACCESSKEY;
pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_28 = pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_DIRECTION_RTL; _bindgen_ty_105::NODE_HAS_DIRECTION_RTL;
pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_28 = pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_HAS_DIRECTION_LTR; _bindgen_ty_105::NODE_HAS_DIRECTION_LTR;
pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_28 = pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_ALL_DIRECTION_FLAGS; _bindgen_ty_105::NODE_ALL_DIRECTION_FLAGS;
pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 = pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_CHROME_ONLY_ACCESS; _bindgen_ty_105::NODE_CHROME_ONLY_ACCESS;
pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 = pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; _bindgen_ty_105::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_28 = pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1; _bindgen_ty_105::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_28 = pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_2; _bindgen_ty_105::NODE_SHARED_RESTYLE_BIT_2;
pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_28 = pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1; _bindgen_ty_105::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_28 = pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_105 =
_bindgen_ty_28::NODE_TYPE_SPECIFIC_BITS_OFFSET; _bindgen_ty_105::NODE_TYPE_SPECIFIC_BITS_OFFSET;
#[repr(u32)] #[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_28 { pub enum _bindgen_ty_105 {
NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_LISTENERMANAGER = 4,
NODE_HAS_PROPERTIES = 8, NODE_HAS_PROPERTIES = 8,
NODE_IS_ANONYMOUS_ROOT = 16, NODE_IS_ANONYMOUS_ROOT = 16,
@ -21824,7 +21773,7 @@ pub mod root {
#[repr(C)] #[repr(C)]
#[derive(Debug)] #[derive(Debug)]
pub struct CachedBorderImageData { pub struct CachedBorderImageData {
pub mCachedSVGViewportSize: [u64; 2usize], pub mCachedSVGViewportSize: [u32; 3usize],
pub mSubImages: root::nsCOMArray<root::imgIContainer>, pub mSubImages: root::nsCOMArray<root::imgIContainer>,
} }
#[test] #[test]
@ -26367,14 +26316,14 @@ pub mod root {
} }
#[test] #[test]
fn __bindgen_test_layout_template_91() { fn __bindgen_test_layout_template_91() {
assert_eq!(::std::mem::size_of::<[u64; 2usize]>() , 16usize , concat ! assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat !
( (
"Size of template specialization: " , stringify ! ( "Size of template specialization: " , stringify ! (
[u64; 2usize] ) )); [u32; 3usize] ) ));
assert_eq!(::std::mem::align_of::<[u64; 2usize]>() , 8usize , concat ! assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat !
( (
"Alignment of template specialization: " , stringify ! ( "Alignment of template specialization: " , stringify ! (
[u64; 2usize] ) )); [u32; 3usize] ) ));
} }
#[test] #[test]
fn __bindgen_test_layout_template_92() { fn __bindgen_test_layout_template_92() {