--- a/servo/components/style/gecko_bindings/structs_debug.rs
+++ b/servo/components/style/gecko_bindings/structs_debug.rs
@@ -1625,24 +1625,24 @@ pub mod root {
));
}
impl Clone for nsCStringRepr {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug)]
pub struct MutexImpl {
- pub platformData_: [*mut ::std::os::raw::c_void; 5usize],
+ pub platformData_: [*mut ::std::os::raw::c_void; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MutexImpl_PlatformData([u8; 0]);
#[test]
fn bindgen_test_layout_MutexImpl() {
- assert_eq!(::std::mem::size_of::<MutexImpl>() , 40usize ,
+ assert_eq!(::std::mem::size_of::<MutexImpl>() , 64usize ,
concat ! ( "Size of: " , stringify ! ( MutexImpl )
));
assert_eq! (::std::mem::align_of::<MutexImpl>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( MutexImpl ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const MutexImpl ) ) . platformData_
as * const _ as usize } , 0usize , concat ! (
@@ -4943,25 +4943,25 @@ pub mod root {
#[derive(Debug)]
pub struct OffTheBooksMutex {
pub _base: root::mozilla::detail::MutexImpl,
pub _base_1: root::mozilla::BlockingResourceBase,
pub mOwningThread: *mut root::PRThread,
}
#[test]
fn bindgen_test_layout_OffTheBooksMutex() {
- assert_eq!(::std::mem::size_of::<OffTheBooksMutex>() , 72usize ,
+ assert_eq!(::std::mem::size_of::<OffTheBooksMutex>() , 96usize ,
concat ! (
"Size of: " , stringify ! ( OffTheBooksMutex ) ));
assert_eq! (::std::mem::align_of::<OffTheBooksMutex>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( OffTheBooksMutex ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const OffTheBooksMutex ) ) .
- mOwningThread as * const _ as usize } , 64usize ,
+ mOwningThread as * const _ as usize } , 88usize ,
concat ! (
"Alignment of field: " , stringify ! (
OffTheBooksMutex ) , "::" , stringify ! (
mOwningThread ) ));
}
/**
* Mutex
* When possible, use MutexAutoLock/MutexAutoUnlock to lock/unlock this
@@ -4969,17 +4969,17 @@ pub mod root {
*/
#[repr(C)]
#[derive(Debug)]
pub struct Mutex {
pub _base: root::mozilla::OffTheBooksMutex,
}
#[test]
fn bindgen_test_layout_Mutex() {
- assert_eq!(::std::mem::size_of::<Mutex>() , 72usize , concat ! (
+ assert_eq!(::std::mem::size_of::<Mutex>() , 96usize , concat ! (
"Size of: " , stringify ! ( Mutex ) ));
assert_eq! (::std::mem::align_of::<Mutex>() , 8usize , concat ! (
"Alignment of " , stringify ! ( Mutex ) ));
}
pub mod net {
#[allow(unused_imports)]
use self::super::super::super::root;
#[repr(u32)]
@@ -5782,33 +5782,29 @@ pub mod root {
& ( * ( 0 as * const StyleSetHandle ) ) . mPtr as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( StyleSetHandle
) , "::" , stringify ! ( mPtr ) ));
}
impl Clone for StyleSetHandle {
fn clone(&self) -> Self { *self }
}
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct SVGAttrAnimationRuleProcessor([u8; 0]);
#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum SheetType {
Agent = 0,
User = 1,
PresHint = 2,
- SVGAttrAnimation = 3,
- Doc = 4,
- ScopedDoc = 5,
- StyleAttr = 6,
- Override = 7,
- Animation = 8,
- Transition = 9,
- Count = 10,
+ Doc = 3,
+ ScopedDoc = 4,
+ StyleAttr = 5,
+ Override = 6,
+ Animation = 7,
+ Transition = 8,
+ Count = 9,
Unknown = 255,
}
/**
* This struct represents a combined color from a numeric color and
* the current foreground color (currentcolor keyword).
* Conceptually, the formula is "color * (1 - p) + currentcolor * p"
* where p is mForegroundRatio. See mozilla::LinearBlendColors for
* the actual algorithm.
@@ -6664,17 +6660,17 @@ pub mod root {
pub mDefaultSansSerifFont: root::nsFont,
pub mDefaultMonospaceFont: root::nsFont,
pub mDefaultCursiveFont: root::nsFont,
pub mDefaultFantasyFont: root::nsFont,
pub mNext: root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>,
}
#[test]
fn bindgen_test_layout_LangGroupFontPrefs() {
- assert_eq!(::std::mem::size_of::<LangGroupFontPrefs>() , 696usize
+ assert_eq!(::std::mem::size_of::<LangGroupFontPrefs>() , 640usize
, concat ! (
"Size of: " , stringify ! ( LangGroupFontPrefs ) ));
assert_eq! (::std::mem::align_of::<LangGroupFontPrefs>() , 8usize
, concat ! (
"Alignment of " , stringify ! ( LangGroupFontPrefs )
));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
@@ -6694,59 +6690,59 @@ pub mod root {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
mDefaultVariableFont as * const _ as usize } , 16usize
, concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultVariableFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultFixedFont as * const _ as usize } , 112usize ,
+ mDefaultFixedFont as * const _ as usize } , 104usize ,
concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultFixedFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultSerifFont as * const _ as usize } , 208usize ,
+ mDefaultSerifFont as * const _ as usize } , 192usize ,
concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultSerifFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
mDefaultSansSerifFont as * const _ as usize } ,
- 304usize , concat ! (
+ 280usize , concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultSansSerifFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
mDefaultMonospaceFont as * const _ as usize } ,
- 400usize , concat ! (
+ 368usize , concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultMonospaceFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultCursiveFont as * const _ as usize } , 496usize
+ mDefaultCursiveFont as * const _ as usize } , 456usize
, concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultCursiveFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultFantasyFont as * const _ as usize } , 592usize
+ mDefaultFantasyFont as * const _ as usize } , 544usize
, concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultFantasyFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) . mNext as
- * const _ as usize } , 688usize , concat ! (
+ * const _ as usize } , 632usize , concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! ( mNext )
));
}
/**
* Some functionality that has historically lived on nsPresContext does not
* actually need to be per-document. This singleton class serves as a host
* for that functionality. We delegate to it from nsPresContext where
@@ -6756,17 +6752,17 @@ pub mod root {
#[derive(Debug)]
pub struct StaticPresData {
pub mLangService: root::nsCOMPtr<root::nsILanguageAtomService>,
pub mBorderWidthTable: [root::nscoord; 3usize],
pub mStaticLangGroupFontPrefs: root::mozilla::LangGroupFontPrefs,
}
#[test]
fn bindgen_test_layout_StaticPresData() {
- assert_eq!(::std::mem::size_of::<StaticPresData>() , 720usize ,
+ assert_eq!(::std::mem::size_of::<StaticPresData>() , 664usize ,
concat ! ( "Size of: " , stringify ! ( StaticPresData )
));
assert_eq! (::std::mem::align_of::<StaticPresData>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( StaticPresData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const StaticPresData ) ) . mLangService
as * const _ as usize } , 0usize , concat ! (
@@ -8377,17 +8373,22 @@ pub mod root {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct pair<_T1, _T2> {
pub first: _T1,
pub second: _T2,
}
pub type pair_first_type<_T1> = _T1;
pub type pair_second_type<_T2> = _T2;
- pub type pair__PCCP = [u8; 0usize];
+ #[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)]
pub struct input_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_input_iterator_tag() {
assert_eq!(::std::mem::size_of::<input_iterator_tag>() , 1usize ,
@@ -8397,269 +8398,284 @@ pub mod root {
, concat ! (
"Alignment of " , stringify ! ( input_iterator_tag )
));
}
impl Clone for input_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[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)]
pub struct iterator<_Category, _Tp, _Distance, _Pointer, _Reference> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<_Category>,
pub _phantom_1: ::std::marker::PhantomData<_Tp>,
pub _phantom_2: ::std::marker::PhantomData<_Distance>,
pub _phantom_3: ::std::marker::PhantomData<_Pointer>,
pub _phantom_4: ::std::marker::PhantomData<_Reference>,
}
- pub type iterator_iterator_category<_Category> = _Category;
pub type iterator_value_type<_Tp> = _Tp;
pub type iterator_difference_type<_Distance> = _Distance;
pub type iterator_pointer<_Pointer> = _Pointer;
pub type iterator_reference<_Reference> = _Reference;
- #[repr(C)]
- #[derive(Debug)]
- pub struct atomic<_Tp> {
- pub _M_i: _Tp,
- }
- pub mod chrono {
- #[allow(unused_imports)]
- use self::super::super::super::root;
- }
- }
- pub mod __gnu_cxx {
- #[allow(unused_imports)]
- use self::super::super::root;
- }
- pub type __off_t = ::std::os::raw::c_long;
- pub type __off64_t = ::std::os::raw::c_long;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct _IO_FILE {
- pub _flags: ::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]
- fn bindgen_test_layout__IO_FILE() {
- assert_eq!(::std::mem::size_of::<_IO_FILE>() , 216usize , concat ! (
- "Size of: " , stringify ! ( _IO_FILE ) ));
- assert_eq! (::std::mem::align_of::<_IO_FILE>() , 8usize , concat ! (
- "Alignment of " , stringify ! ( _IO_FILE ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _flags as * const _ as
+ pub type iterator_iterator_category<_Category> = _Category;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct __bit_const_reference<_Cp> {
+ pub __seg_: root::std::__bit_const_reference___storage_pointer<_Cp>,
+ 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 __int64_t = ::std::os::raw::c_longlong;
+ pub type __darwin_va_list = root::__builtin_va_list;
+ pub type __darwin_off_t = root::__int64_t;
+ pub type va_list = root::__darwin_va_list;
+ pub type fpos_t = root::__darwin_off_t;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct __sbuf {
+ pub _base: *mut ::std::os::raw::c_uchar,
+ pub _size: ::std::os::raw::c_int,
+ }
+ #[test]
+ fn bindgen_test_layout___sbuf() {
+ assert_eq!(::std::mem::size_of::<__sbuf>() , 16usize , concat ! (
+ "Size of: " , stringify ! ( __sbuf ) ));
+ assert_eq! (::std::mem::align_of::<__sbuf>() , 8usize , concat ! (
+ "Alignment of " , stringify ! ( __sbuf ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sbuf ) ) . _base as * const _ as
usize } , 0usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
+ "Alignment of field: " , stringify ! ( __sbuf ) , "::" ,
+ 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 ) ));
assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_ptr as *
- const _ as usize } , 8usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_read_ptr ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_end as *
- const _ as usize } , 16usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_read_end ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_base as *
- const _ as usize } , 24usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_read_base ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_base as *
- const _ as usize } , 32usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_write_base ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_ptr as *
- const _ as usize } , 40usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_write_ptr ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_end as *
- const _ as usize } , 48usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_write_end ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_base as *
- const _ as usize } , 56usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_buf_base ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_end as * const
- _ as usize } , 64usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_buf_end ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _IO_save_base as *
- const _ as usize } , 72usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _IO_save_base ) ));
- assert_eq! (unsafe {
- & ( * ( 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
+ & ( * ( 0 as * const __sFILE ) ) . _file as * const _ as
+ usize } , 18usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _file ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _bf as * const _ as
+ usize } , 24usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _bf ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _lbfsize as * const _
+ as usize } , 40usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _lbfsize ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _cookie as * const _ as
+ usize } , 48usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _cookie ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _close as * const _ as
+ usize } , 56usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _close ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _read as * const _ as
+ usize } , 64usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _read ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _seek as * const _ as
+ usize } , 72usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _seek ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _write as * const _ as
+ usize } , 80usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _write ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _ub as * const _ as
+ usize } , 88usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _ub ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _extra as * const _ as
usize } , 104usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _chain ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _fileno as * const _
- as usize } , 112usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _fileno ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _flags2 as * const _
- as usize } , 116usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _flags2 ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _old_offset as * const
- _ as usize } , 120usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _old_offset ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _cur_column as * const
- _ as usize } , 128usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _cur_column ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _vtable_offset as *
- const _ as usize } , 130usize , concat ! (
- "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
- stringify ! ( _vtable_offset ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const _IO_FILE ) ) . _shortbuf as * const _
- as usize } , 131usize , concat ! (
- "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 ) , "::" ,
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _extra ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _ur as * const _ as
+ usize } , 112usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _ur ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _ubuf as * const _ as
+ usize } , 116usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _ubuf ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _nbuf as * const _ as
+ usize } , 119usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _nbuf ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _lb as * const _ as
+ usize } , 120usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _lb ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _blksize as * const _
+ as usize } , 136usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
+ stringify ! ( _blksize ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const __sFILE ) ) . _offset as * const _ as
+ usize } , 144usize , concat ! (
+ "Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
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 _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 }
- }
+ }
+ impl Clone for __sFILE {
+ fn clone(&self) -> Self { *self }
+ }
+ pub type FILE = root::__sFILE;
/**
* MozRefCountType is Mozilla's reference count type.
*
* We use the same type to represent the refcount of RefCounted objects
* as well, in order to be able to use the leak detection facilities
* that are implemented by XPCOM.
*
* Note that this type is not in the mozilla namespace so that it is
@@ -11829,17 +11845,16 @@ pub mod root {
pub mCharacterSetSource: i32,
pub mParentDocument: *mut root::nsIDocument,
pub mCachedRootElement: *mut root::mozilla::dom::Element,
pub mNodeInfoManager: *mut root::nsNodeInfoManager,
pub mCSSLoader: root::RefPtr<root::mozilla::css::Loader>,
pub mStyleImageLoader: root::RefPtr<root::mozilla::css::ImageLoader>,
pub mAttrStyleSheet: root::RefPtr<root::nsHTMLStyleSheet>,
pub mStyleAttrStyleSheet: root::RefPtr<root::nsHTMLCSSStyleSheet>,
- pub mSVGAttrAnimationRuleProcessor: root::RefPtr<root::mozilla::SVGAttrAnimationRuleProcessor>,
pub mImageTracker: root::RefPtr<root::mozilla::dom::ImageTracker>,
pub mActivityObservers: root::nsAutoPtr<()>,
pub mLinksToUpdate: [u64; 6usize],
pub mAnimationController: root::RefPtr<root::nsSMILAnimationController>,
pub mPropertyTable: root::nsPropertyTable,
pub mExtraPropertyTables: root::nsTArray<root::nsAutoPtr<root::nsPropertyTable>>,
pub mChildrenCollection: root::nsCOMPtr<root::nsIHTMLCollection>,
pub mFontFaceSet: root::RefPtr<root::mozilla::dom::FontFaceSet>,
@@ -12183,17 +12198,17 @@ pub mod root {
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsIDocument_Tri { eTriUnset = 0, eTriFalse = 1, eTriTrue = 2, }
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDocument_FrameRequest([u8; 0]);
#[test]
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 ) ));
assert_eq! (::std::mem::align_of::<nsIDocument>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsIDocument ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDocShell([u8; 0]);
/**
@@ -12873,17 +12888,17 @@ pub mod root {
}
extern "C" {
#[link_name = "_ZN13nsPresContext21_cycleCollectorGlobalE"]
pub static mut nsPresContext__cycleCollectorGlobal:
root::nsPresContext_cycleCollection;
}
#[test]
fn bindgen_test_layout_nsPresContext() {
- assert_eq!(::std::mem::size_of::<nsPresContext>() , 1368usize , concat
+ assert_eq!(::std::mem::size_of::<nsPresContext>() , 1312usize , concat
! ( "Size of: " , stringify ! ( nsPresContext ) ));
assert_eq! (::std::mem::align_of::<nsPresContext>() , 8usize , concat
! ( "Alignment of " , stringify ! ( nsPresContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mRefCnt as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mRefCnt ) ));
@@ -13152,118 +13167,118 @@ pub mod root {
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mLangGroupFontPrefs as * const _ as usize } , 536usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mLangGroupFontPrefs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mBorderWidthTable
- as * const _ as usize } , 1232usize , concat ! (
+ as * const _ as usize } , 1176usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mBorderWidthTable ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mInterruptChecksToSkip as * const _ as usize } , 1244usize
+ mInterruptChecksToSkip as * const _ as usize } , 1188usize
, concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mInterruptChecksToSkip ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mElementsRestyled
- as * const _ as usize } , 1248usize , concat ! (
+ as * const _ as usize } , 1192usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mElementsRestyled ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mFramesConstructed as * const _ as usize } , 1256usize ,
+ mFramesConstructed as * const _ as usize } , 1200usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFramesConstructed ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFramesReflowed
- as * const _ as usize } , 1264usize , concat ! (
+ as * const _ as usize } , 1208usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFramesReflowed ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mReflowStartTime
- as * const _ as usize } , 1272usize , concat ! (
+ as * const _ as usize } , 1216usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mReflowStartTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mFirstNonBlankPaintTime as * const _ as usize } ,
- 1280usize , concat ! (
+ 1224usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstNonBlankPaintTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFirstClickTime
- as * const _ as usize } , 1288usize , concat ! (
+ as * const _ as usize } , 1232usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstClickTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFirstKeyTime as
- * const _ as usize } , 1296usize , concat ! (
+ * const _ as usize } , 1240usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstKeyTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mFirstMouseMoveTime as * const _ as usize } , 1304usize ,
+ mFirstMouseMoveTime as * const _ as usize } , 1248usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstMouseMoveTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFirstScrollTime
- as * const _ as usize } , 1312usize , concat ! (
+ as * const _ as usize } , 1256usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstScrollTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mInteractionTimeEnabled as * const _ as usize } ,
- 1320usize , concat ! (
+ 1264usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mInteractionTimeEnabled ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mLastStyleUpdateForAllAnimations as * const _ as usize } ,
- 1328usize , concat ! (
+ 1272usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mLastStyleUpdateForAllAnimations )
));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mTelemetryScrollLastY as * const _ as usize } , 1336usize
+ mTelemetryScrollLastY as * const _ as usize } , 1280usize
, concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mTelemetryScrollLastY ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mTelemetryScrollMaxY as * const _ as usize } , 1340usize ,
+ mTelemetryScrollMaxY as * const _ as usize } , 1284usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mTelemetryScrollMaxY ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mTelemetryScrollTotalY as * const _ as usize } , 1344usize
+ mTelemetryScrollTotalY as * const _ as usize } , 1288usize
, concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mTelemetryScrollTotalY ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mRestyleLoggingEnabled as * const _ as usize } , 1354usize
+ mRestyleLoggingEnabled as * const _ as usize } , 1298usize
, concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mRestyleLoggingEnabled ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mInitialized as *
- const _ as usize } , 1355usize , concat ! (
+ const _ as usize } , 1299usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mInitialized ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mLayoutPhaseCount
- as * const _ as usize } , 1356usize , concat ! (
+ as * const _ as usize } , 1300usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mLayoutPhaseCount ) ));
}
#[repr(C)]
#[derive(Debug)]
pub struct nsPIDOMWindowOuter {
pub _base: [u64; 29usize],
}
@@ -15670,73 +15685,73 @@ pub mod root {
& ( * ( 0 as * const nsNodeWeakReference ) ) . mNode as *
const _ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( nsNodeWeakReference
) , "::" , stringify ! ( mNode ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsDOMMutationObserver([u8; 0]);
- pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_LISTENERMANAGER;
- pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_PROPERTIES;
- pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_IS_ANONYMOUS_ROOT;
- pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
- pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_IS_NATIVE_ANONYMOUS_ROOT;
- pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_FORCE_XBL_BINDINGS;
- pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_MAY_BE_IN_BINDING_MNGR;
- pub const NODE_IS_EDITABLE: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_IS_EDITABLE;
- pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_IS_NATIVE_ANONYMOUS;
- pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_IS_IN_SHADOW_TREE;
- pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_EMPTY_SELECTOR;
- pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_SLOW_SELECTOR;
- pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_EDGE_CHILD_SELECTOR;
- pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
- pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_ALL_SELECTOR_FLAGS;
- pub const NODE_NEEDS_FRAME: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_NEEDS_FRAME;
- pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_DESCENDANTS_NEED_FRAMES;
- pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_ACCESSKEY;
- pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_DIRECTION_RTL;
- pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_HAS_DIRECTION_LTR;
- pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_ALL_DIRECTION_FLAGS;
- pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_CHROME_ONLY_ACCESS;
- pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
- pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_SHARED_RESTYLE_BIT_1;
- pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_SHARED_RESTYLE_BIT_2;
- pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_SHARED_RESTYLE_BIT_1;
- pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_104 =
- _bindgen_ty_104::NODE_TYPE_SPECIFIC_BITS_OFFSET;
- #[repr(u32)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum _bindgen_ty_104 {
+ pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_LISTENERMANAGER;
+ pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_PROPERTIES;
+ pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_ANONYMOUS_ROOT;
+ pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
+ pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS_ROOT;
+ pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_FORCE_XBL_BINDINGS;
+ pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_MAY_BE_IN_BINDING_MNGR;
+ pub const NODE_IS_EDITABLE: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_EDITABLE;
+ pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS;
+ pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_IN_SHADOW_TREE;
+ pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_EMPTY_SELECTOR;
+ pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_SLOW_SELECTOR;
+ pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_EDGE_CHILD_SELECTOR;
+ pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
+ pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_ALL_SELECTOR_FLAGS;
+ pub const NODE_NEEDS_FRAME: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_NEEDS_FRAME;
+ pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_DESCENDANTS_NEED_FRAMES;
+ pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_ACCESSKEY;
+ pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_DIRECTION_RTL;
+ pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_DIRECTION_LTR;
+ pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_ALL_DIRECTION_FLAGS;
+ pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_CHROME_ONLY_ACCESS;
+ pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
+ pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1;
+ pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_2;
+ pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1;
+ pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_TYPE_SPECIFIC_BITS_OFFSET;
+ #[repr(u32)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum _bindgen_ty_28 {
NODE_HAS_LISTENERMANAGER = 4,
NODE_HAS_PROPERTIES = 8,
NODE_IS_ANONYMOUS_ROOT = 16,
NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE = 32,
NODE_IS_NATIVE_ANONYMOUS_ROOT = 64,
NODE_FORCE_XBL_BINDINGS = 128,
NODE_MAY_BE_IN_BINDING_MNGR = 256,
NODE_IS_EDITABLE = 512,
@@ -19082,21 +19097,21 @@ pub mod root {
pub kerning: u8,
pub synthesis: u8,
pub size: root::nscoord,
pub sizeAdjust: f32,
pub alternateValues: root::nsTArray<root::gfxAlternateValue>,
pub featureValueLookup: root::RefPtr<root::gfxFontFeatureValueSet>,
pub fontFeatureSettings: root::nsTArray<root::gfxFontFeature>,
pub fontVariationSettings: root::nsTArray<root::gfxFontVariation>,
- pub languageOverride: ::nsstring::nsStringRepr,
+ pub languageOverride: u32,
}
#[test]
fn bindgen_test_layout_nsFont() {
- assert_eq!(::std::mem::size_of::<nsFont>() , 96usize , concat ! (
+ assert_eq!(::std::mem::size_of::<nsFont>() , 88usize , concat ! (
"Size of: " , stringify ! ( nsFont ) ));
assert_eq! (::std::mem::align_of::<nsFont>() , 8usize , concat ! (
"Alignment of " , stringify ! ( nsFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsFont ) ) . fontlist as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( nsFont ) , "::" ,
stringify ! ( fontlist ) ));
@@ -20849,30 +20864,28 @@ pub mod root {
pub const nsRestyleHint_eRestyle_Subtree: root::nsRestyleHint =
nsRestyleHint(4);
pub const nsRestyleHint_eRestyle_LaterSiblings: root::nsRestyleHint =
nsRestyleHint(8);
pub const nsRestyleHint_eRestyle_CSSTransitions: root::nsRestyleHint =
nsRestyleHint(16);
pub const nsRestyleHint_eRestyle_CSSAnimations: root::nsRestyleHint =
nsRestyleHint(32);
- pub const nsRestyleHint_eRestyle_SVGAttrAnimations: root::nsRestyleHint =
+ pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint =
nsRestyleHint(64);
- pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint =
- nsRestyleHint(128);
pub const nsRestyleHint_eRestyle_StyleAttribute_Animations:
root::nsRestyleHint =
+ nsRestyleHint(128);
+ pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint =
nsRestyleHint(256);
- pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint =
+ pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint =
nsRestyleHint(512);
- pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint =
- nsRestyleHint(1024);
pub const nsRestyleHint_eRestyle_AllHintsWithAnimations:
root::nsRestyleHint =
- nsRestyleHint(368);
+ nsRestyleHint(176);
impl ::std::ops::BitOr<root::nsRestyleHint> for root::nsRestyleHint {
type
Output
=
Self;
#[inline]
fn bitor(self, other: Self) -> Self {
nsRestyleHint(self.0 | other.0)
@@ -22360,55 +22373,55 @@ pub mod root {
* ( 0 as * const nsRootPresContext_NotifyDidPaintTimer ) )
. mTimer as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
nsRootPresContext_NotifyDidPaintTimer ) , "::" , stringify
! ( mTimer ) ));
}
#[test]
fn bindgen_test_layout_nsRootPresContext() {
- assert_eq!(::std::mem::size_of::<nsRootPresContext>() , 1528usize ,
+ assert_eq!(::std::mem::size_of::<nsRootPresContext>() , 1472usize ,
concat ! ( "Size of: " , stringify ! ( nsRootPresContext )
));
assert_eq! (::std::mem::align_of::<nsRootPresContext>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( nsRootPresContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mNotifyDidPaintTimers as * const _ as usize } , 1368usize
+ mNotifyDidPaintTimers as * const _ as usize } , 1312usize
, concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mNotifyDidPaintTimers ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
mApplyPluginGeometryTimer as * const _ as usize } ,
- 1448usize , concat ! (
+ 1392usize , concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mApplyPluginGeometryTimer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mRegisteredPlugins as * const _ as usize } , 1456usize ,
+ mRegisteredPlugins as * const _ as usize } , 1400usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mRegisteredPlugins ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mWillPaintObservers as * const _ as usize } , 1504usize ,
+ mWillPaintObservers as * const _ as usize } , 1448usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mWillPaintObservers ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
mWillPaintFallbackEvent as * const _ as usize } ,
- 1512usize , concat ! (
+ 1456usize , concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mWillPaintFallbackEvent ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mDOMGeneration as * const _ as usize } , 1520usize ,
+ mDOMGeneration as * const _ as usize } , 1464usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mDOMGeneration ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct imgIContainer([u8; 0]);
#[repr(C)]
@@ -22663,17 +22676,17 @@ pub mod root {
pub type imgRequest_ImageURL = root::mozilla::image::ImageURL;
pub type imgRequest_ProgressTracker =
root::mozilla::image::ProgressTracker;
pub use self::super::root::mozilla::net::ReferrerPolicy as
imgRequest_ReferrerPolicy;
pub type imgRequest_HasThreadSafeRefCnt = root::mozilla::TrueType;
#[test]
fn bindgen_test_layout_imgRequest() {
- assert_eq!(::std::mem::size_of::<imgRequest>() , 416usize , concat ! (
+ assert_eq!(::std::mem::size_of::<imgRequest>() , 440usize , concat ! (
"Size of: " , stringify ! ( imgRequest ) ));
assert_eq! (::std::mem::align_of::<imgRequest>() , 8usize , concat ! (
"Alignment of " , stringify ! ( imgRequest ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ProxyBehaviour([u8; 0]);
#[repr(C)]
@@ -22748,85 +22761,85 @@ pub mod root {
pub mAllowZoom: bool,
pub mScriptUnconstrainedSize: root::nscoord,
pub mScriptMinSize: root::nscoord,
pub mScriptSizeMultiplier: f32,
pub mLanguage: root::nsCOMPtr<root::nsIAtom>,
}
#[test]
fn bindgen_test_layout_nsStyleFont() {
- assert_eq!(::std::mem::size_of::<nsStyleFont>() , 128usize , concat !
+ assert_eq!(::std::mem::size_of::<nsStyleFont>() , 120usize , concat !
( "Size of: " , stringify ! ( nsStyleFont ) ));
assert_eq! (::std::mem::align_of::<nsStyleFont>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsStyleFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mFont as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mSize as * const _
- as usize } , 96usize , concat ! (
+ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mGenericID as *
- const _ as usize } , 100usize , concat ! (
+ const _ as usize } , 92usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mGenericID ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mScriptLevel as *
- const _ as usize } , 101usize , concat ! (
+ const _ as usize } , 93usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptLevel ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mMathVariant as *
- const _ as usize } , 102usize , concat ! (
+ const _ as usize } , 94usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mMathVariant ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mMathDisplay as *
- const _ as usize } , 103usize , concat ! (
+ const _ as usize } , 95usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mMathDisplay ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mMinFontSizeRatio
- as * const _ as usize } , 104usize , concat ! (
+ as * const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mMinFontSizeRatio ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mExplicitLanguage
- as * const _ as usize } , 105usize , concat ! (
+ as * const _ as usize } , 97usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mExplicitLanguage ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mAllowZoom as *
- const _ as usize } , 106usize , concat ! (
+ const _ as usize } , 98usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mAllowZoom ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) .
mScriptUnconstrainedSize as * const _ as usize } ,
- 108usize , concat ! (
+ 100usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptUnconstrainedSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mScriptMinSize as *
- const _ as usize } , 112usize , concat ! (
+ const _ as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptMinSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) .
- mScriptSizeMultiplier as * const _ as usize } , 116usize ,
+ mScriptSizeMultiplier as * const _ as usize } , 108usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptSizeMultiplier ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mLanguage as *
- const _ as usize } , 120usize , concat ! (
+ const _ as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mLanguage ) ));
}
#[repr(C)]
#[derive(Debug)]
pub struct nsStyleGradientStop {
pub mLocation: root::nsStyleCoord,
pub mColor: root::nscolor,
--- a/servo/components/style/gecko_bindings/structs_release.rs
+++ b/servo/components/style/gecko_bindings/structs_release.rs
@@ -1625,24 +1625,24 @@ pub mod root {
));
}
impl Clone for nsCStringRepr {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug)]
pub struct MutexImpl {
- pub platformData_: [*mut ::std::os::raw::c_void; 5usize],
+ pub platformData_: [*mut ::std::os::raw::c_void; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MutexImpl_PlatformData([u8; 0]);
#[test]
fn bindgen_test_layout_MutexImpl() {
- assert_eq!(::std::mem::size_of::<MutexImpl>() , 40usize ,
+ assert_eq!(::std::mem::size_of::<MutexImpl>() , 64usize ,
concat ! ( "Size of: " , stringify ! ( MutexImpl )
));
assert_eq! (::std::mem::align_of::<MutexImpl>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( MutexImpl ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const MutexImpl ) ) . platformData_
as * const _ as usize } , 0usize , concat ! (
@@ -4812,17 +4812,17 @@ pub mod root {
*/
#[repr(C)]
#[derive(Debug)]
pub struct OffTheBooksMutex {
pub _base: root::mozilla::detail::MutexImpl,
}
#[test]
fn bindgen_test_layout_OffTheBooksMutex() {
- assert_eq!(::std::mem::size_of::<OffTheBooksMutex>() , 40usize ,
+ assert_eq!(::std::mem::size_of::<OffTheBooksMutex>() , 64usize ,
concat ! (
"Size of: " , stringify ! ( OffTheBooksMutex ) ));
assert_eq! (::std::mem::align_of::<OffTheBooksMutex>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( OffTheBooksMutex ) ));
}
/**
* Mutex
@@ -4831,17 +4831,17 @@ pub mod root {
*/
#[repr(C)]
#[derive(Debug)]
pub struct Mutex {
pub _base: root::mozilla::OffTheBooksMutex,
}
#[test]
fn bindgen_test_layout_Mutex() {
- assert_eq!(::std::mem::size_of::<Mutex>() , 40usize , concat ! (
+ assert_eq!(::std::mem::size_of::<Mutex>() , 64usize , concat ! (
"Size of: " , stringify ! ( Mutex ) ));
assert_eq! (::std::mem::align_of::<Mutex>() , 8usize , concat ! (
"Alignment of " , stringify ! ( Mutex ) ));
}
pub mod net {
#[allow(unused_imports)]
use self::super::super::super::root;
#[repr(u32)]
@@ -5613,33 +5613,29 @@ pub mod root {
& ( * ( 0 as * const StyleSetHandle ) ) . mPtr as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( StyleSetHandle
) , "::" , stringify ! ( mPtr ) ));
}
impl Clone for StyleSetHandle {
fn clone(&self) -> Self { *self }
}
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct SVGAttrAnimationRuleProcessor([u8; 0]);
#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum SheetType {
Agent = 0,
User = 1,
PresHint = 2,
- SVGAttrAnimation = 3,
- Doc = 4,
- ScopedDoc = 5,
- StyleAttr = 6,
- Override = 7,
- Animation = 8,
- Transition = 9,
- Count = 10,
+ Doc = 3,
+ ScopedDoc = 4,
+ StyleAttr = 5,
+ Override = 6,
+ Animation = 7,
+ Transition = 8,
+ Count = 9,
Unknown = 255,
}
/**
* This struct represents a combined color from a numeric color and
* the current foreground color (currentcolor keyword).
* Conceptually, the formula is "color * (1 - p) + currentcolor * p"
* where p is mForegroundRatio. See mozilla::LinearBlendColors for
* the actual algorithm.
@@ -6495,17 +6491,17 @@ pub mod root {
pub mDefaultSansSerifFont: root::nsFont,
pub mDefaultMonospaceFont: root::nsFont,
pub mDefaultCursiveFont: root::nsFont,
pub mDefaultFantasyFont: root::nsFont,
pub mNext: root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>,
}
#[test]
fn bindgen_test_layout_LangGroupFontPrefs() {
- assert_eq!(::std::mem::size_of::<LangGroupFontPrefs>() , 696usize
+ assert_eq!(::std::mem::size_of::<LangGroupFontPrefs>() , 640usize
, concat ! (
"Size of: " , stringify ! ( LangGroupFontPrefs ) ));
assert_eq! (::std::mem::align_of::<LangGroupFontPrefs>() , 8usize
, concat ! (
"Alignment of " , stringify ! ( LangGroupFontPrefs )
));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
@@ -6525,59 +6521,59 @@ pub mod root {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
mDefaultVariableFont as * const _ as usize } , 16usize
, concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultVariableFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultFixedFont as * const _ as usize } , 112usize ,
+ mDefaultFixedFont as * const _ as usize } , 104usize ,
concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultFixedFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultSerifFont as * const _ as usize } , 208usize ,
+ mDefaultSerifFont as * const _ as usize } , 192usize ,
concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultSerifFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
mDefaultSansSerifFont as * const _ as usize } ,
- 304usize , concat ! (
+ 280usize , concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultSansSerifFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
mDefaultMonospaceFont as * const _ as usize } ,
- 400usize , concat ! (
+ 368usize , concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultMonospaceFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultCursiveFont as * const _ as usize } , 496usize
+ mDefaultCursiveFont as * const _ as usize } , 456usize
, concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultCursiveFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) .
- mDefaultFantasyFont as * const _ as usize } , 592usize
+ mDefaultFantasyFont as * const _ as usize } , 544usize
, concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! (
mDefaultFantasyFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const LangGroupFontPrefs ) ) . mNext as
- * const _ as usize } , 688usize , concat ! (
+ * const _ as usize } , 632usize , concat ! (
"Alignment of field: " , stringify ! (
LangGroupFontPrefs ) , "::" , stringify ! ( mNext )
));
}
/**
* Some functionality that has historically lived on nsPresContext does not
* actually need to be per-document. This singleton class serves as a host
* for that functionality. We delegate to it from nsPresContext where
@@ -6587,17 +6583,17 @@ pub mod root {
#[derive(Debug)]
pub struct StaticPresData {
pub mLangService: root::nsCOMPtr<root::nsILanguageAtomService>,
pub mBorderWidthTable: [root::nscoord; 3usize],
pub mStaticLangGroupFontPrefs: root::mozilla::LangGroupFontPrefs,
}
#[test]
fn bindgen_test_layout_StaticPresData() {
- assert_eq!(::std::mem::size_of::<StaticPresData>() , 720usize ,
+ assert_eq!(::std::mem::size_of::<StaticPresData>() , 664usize ,
concat ! ( "Size of: " , stringify ! ( StaticPresData )
));
assert_eq! (::std::mem::align_of::<StaticPresData>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( StaticPresData ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const StaticPresData ) ) . mLangService
as * const _ as usize } , 0usize , concat ! (
@@ -8181,17 +8177,22 @@ pub mod root {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct pair<_T1, _T2> {
pub first: _T1,
pub second: _T2,
}
pub type pair_first_type<_T1> = _T1;
pub type pair_second_type<_T2> = _T2;
- pub type pair__PCCP = [u8; 0usize];
+ #[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)]
pub struct input_iterator_tag {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_input_iterator_tag() {
assert_eq!(::std::mem::size_of::<input_iterator_tag>() , 1usize ,
@@ -8201,41 +8202,97 @@ pub mod root {
, concat ! (
"Alignment of " , stringify ! ( input_iterator_tag )
));
}
impl Clone for input_iterator_tag {
fn clone(&self) -> Self { *self }
}
#[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)]
pub struct iterator<_Category, _Tp, _Distance, _Pointer, _Reference> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<_Category>,
pub _phantom_1: ::std::marker::PhantomData<_Tp>,
pub _phantom_2: ::std::marker::PhantomData<_Distance>,
pub _phantom_3: ::std::marker::PhantomData<_Pointer>,
pub _phantom_4: ::std::marker::PhantomData<_Reference>,
}
- pub type iterator_iterator_category<_Category> = _Category;
pub type iterator_value_type<_Tp> = _Tp;
pub type iterator_difference_type<_Distance> = _Distance;
pub type iterator_pointer<_Pointer> = _Pointer;
pub type iterator_reference<_Reference> = _Reference;
- #[repr(C)]
- #[derive(Debug)]
- pub struct atomic<_Tp> {
- pub _M_i: _Tp,
- }
- }
- pub mod __gnu_cxx {
- #[allow(unused_imports)]
- use self::super::super::root;
- }
- pub type va_list = root::__builtin_va_list;
+ pub type iterator_iterator_category<_Category> = _Category;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct __bit_const_reference<_Cp> {
+ pub __seg_: root::std::__bit_const_reference___storage_pointer<_Cp>,
+ 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 type va_list = root::__darwin_va_list;
/**
* MozRefCountType is Mozilla's reference count type.
*
* We use the same type to represent the refcount of RefCounted objects
* as well, in order to be able to use the leak detection facilities
* that are implemented by XPCOM.
*
* Note that this type is not in the mozilla namespace so that it is
@@ -11370,17 +11427,16 @@ pub mod root {
pub mCharacterSetSource: i32,
pub mParentDocument: *mut root::nsIDocument,
pub mCachedRootElement: *mut root::mozilla::dom::Element,
pub mNodeInfoManager: *mut root::nsNodeInfoManager,
pub mCSSLoader: root::RefPtr<root::mozilla::css::Loader>,
pub mStyleImageLoader: root::RefPtr<root::mozilla::css::ImageLoader>,
pub mAttrStyleSheet: root::RefPtr<root::nsHTMLStyleSheet>,
pub mStyleAttrStyleSheet: root::RefPtr<root::nsHTMLCSSStyleSheet>,
- pub mSVGAttrAnimationRuleProcessor: root::RefPtr<root::mozilla::SVGAttrAnimationRuleProcessor>,
pub mImageTracker: root::RefPtr<root::mozilla::dom::ImageTracker>,
pub mActivityObservers: root::nsAutoPtr<()>,
pub mLinksToUpdate: [u64; 5usize],
pub mAnimationController: root::RefPtr<root::nsSMILAnimationController>,
pub mPropertyTable: root::nsPropertyTable,
pub mExtraPropertyTables: root::nsTArray<root::nsAutoPtr<root::nsPropertyTable>>,
pub mChildrenCollection: root::nsCOMPtr<root::nsIHTMLCollection>,
pub mFontFaceSet: root::RefPtr<root::mozilla::dom::FontFaceSet>,
@@ -11719,17 +11775,17 @@ pub mod root {
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsIDocument_Tri { eTriUnset = 0, eTriFalse = 1, eTriTrue = 2, }
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDocument_FrameRequest([u8; 0]);
#[test]
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 ) ));
assert_eq! (::std::mem::align_of::<nsIDocument>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsIDocument ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDocShell([u8; 0]);
/**
@@ -12406,17 +12462,17 @@ pub mod root {
}
extern "C" {
#[link_name = "_ZN13nsPresContext21_cycleCollectorGlobalE"]
pub static mut nsPresContext__cycleCollectorGlobal:
root::nsPresContext_cycleCollection;
}
#[test]
fn bindgen_test_layout_nsPresContext() {
- assert_eq!(::std::mem::size_of::<nsPresContext>() , 1344usize , concat
+ assert_eq!(::std::mem::size_of::<nsPresContext>() , 1288usize , concat
! ( "Size of: " , stringify ! ( nsPresContext ) ));
assert_eq! (::std::mem::align_of::<nsPresContext>() , 8usize , concat
! ( "Alignment of " , stringify ! ( nsPresContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mRefCnt as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mRefCnt ) ));
@@ -12680,101 +12736,101 @@ pub mod root {
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mLangGroupFontPrefs as * const _ as usize } , 520usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mLangGroupFontPrefs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mBorderWidthTable
- as * const _ as usize } , 1216usize , concat ! (
+ as * const _ as usize } , 1160usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mBorderWidthTable ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mInterruptChecksToSkip as * const _ as usize } , 1228usize
+ mInterruptChecksToSkip as * const _ as usize } , 1172usize
, concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mInterruptChecksToSkip ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mElementsRestyled
- as * const _ as usize } , 1232usize , concat ! (
+ as * const _ as usize } , 1176usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mElementsRestyled ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mFramesConstructed as * const _ as usize } , 1240usize ,
+ mFramesConstructed as * const _ as usize } , 1184usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFramesConstructed ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFramesReflowed
- as * const _ as usize } , 1248usize , concat ! (
+ as * const _ as usize } , 1192usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFramesReflowed ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mReflowStartTime
- as * const _ as usize } , 1256usize , concat ! (
+ as * const _ as usize } , 1200usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mReflowStartTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mFirstNonBlankPaintTime as * const _ as usize } ,
- 1264usize , concat ! (
+ 1208usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstNonBlankPaintTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFirstClickTime
- as * const _ as usize } , 1272usize , concat ! (
+ as * const _ as usize } , 1216usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstClickTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFirstKeyTime as
- * const _ as usize } , 1280usize , concat ! (
+ * const _ as usize } , 1224usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstKeyTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mFirstMouseMoveTime as * const _ as usize } , 1288usize ,
+ mFirstMouseMoveTime as * const _ as usize } , 1232usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstMouseMoveTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) . mFirstScrollTime
- as * const _ as usize } , 1296usize , concat ! (
+ as * const _ as usize } , 1240usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mFirstScrollTime ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mInteractionTimeEnabled as * const _ as usize } ,
- 1304usize , concat ! (
+ 1248usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mInteractionTimeEnabled ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
mLastStyleUpdateForAllAnimations as * const _ as usize } ,
- 1312usize , concat ! (
+ 1256usize , concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mLastStyleUpdateForAllAnimations )
));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mTelemetryScrollLastY as * const _ as usize } , 1320usize
+ mTelemetryScrollLastY as * const _ as usize } , 1264usize
, concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mTelemetryScrollLastY ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mTelemetryScrollMaxY as * const _ as usize } , 1324usize ,
+ mTelemetryScrollMaxY as * const _ as usize } , 1268usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mTelemetryScrollMaxY ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsPresContext ) ) .
- mTelemetryScrollTotalY as * const _ as usize } , 1328usize
+ mTelemetryScrollTotalY as * const _ as usize } , 1272usize
, concat ! (
"Alignment of field: " , stringify ! ( nsPresContext ) ,
"::" , stringify ! ( mTelemetryScrollTotalY ) ));
}
#[repr(C)]
#[derive(Debug)]
pub struct nsPIDOMWindowOuter {
pub _base: [u64; 28usize],
@@ -15086,73 +15142,73 @@ pub mod root {
& ( * ( 0 as * const nsNodeWeakReference ) ) . mNode as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( nsNodeWeakReference
) , "::" , stringify ! ( mNode ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsDOMMutationObserver([u8; 0]);
- pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_LISTENERMANAGER;
- pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_PROPERTIES;
- pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_IS_ANONYMOUS_ROOT;
- pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
- pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_IS_NATIVE_ANONYMOUS_ROOT;
- pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_FORCE_XBL_BINDINGS;
- pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_MAY_BE_IN_BINDING_MNGR;
- pub const NODE_IS_EDITABLE: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_IS_EDITABLE;
- pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_IS_NATIVE_ANONYMOUS;
- pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_IS_IN_SHADOW_TREE;
- pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_EMPTY_SELECTOR;
- pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_SLOW_SELECTOR;
- pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_EDGE_CHILD_SELECTOR;
- pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
- pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_ALL_SELECTOR_FLAGS;
- pub const NODE_NEEDS_FRAME: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_NEEDS_FRAME;
- pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_DESCENDANTS_NEED_FRAMES;
- pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_ACCESSKEY;
- pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_DIRECTION_RTL;
- pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_HAS_DIRECTION_LTR;
- pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_ALL_DIRECTION_FLAGS;
- pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_CHROME_ONLY_ACCESS;
- pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
- pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_SHARED_RESTYLE_BIT_1;
- pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_SHARED_RESTYLE_BIT_2;
- pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_SHARED_RESTYLE_BIT_1;
- pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_91 =
- _bindgen_ty_91::NODE_TYPE_SPECIFIC_BITS_OFFSET;
- #[repr(u32)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum _bindgen_ty_91 {
+ pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_LISTENERMANAGER;
+ pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_PROPERTIES;
+ pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_ANONYMOUS_ROOT;
+ pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
+ pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS_ROOT;
+ pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_FORCE_XBL_BINDINGS;
+ pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_MAY_BE_IN_BINDING_MNGR;
+ pub const NODE_IS_EDITABLE: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_EDITABLE;
+ pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_NATIVE_ANONYMOUS;
+ pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_IN_SHADOW_TREE;
+ pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_EMPTY_SELECTOR;
+ pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_SLOW_SELECTOR;
+ pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_EDGE_CHILD_SELECTOR;
+ pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
+ pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_ALL_SELECTOR_FLAGS;
+ pub const NODE_NEEDS_FRAME: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_NEEDS_FRAME;
+ pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_DESCENDANTS_NEED_FRAMES;
+ pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_ACCESSKEY;
+ pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_DIRECTION_RTL;
+ pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_HAS_DIRECTION_LTR;
+ pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_ALL_DIRECTION_FLAGS;
+ pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_CHROME_ONLY_ACCESS;
+ pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
+ pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1;
+ pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_2;
+ pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_SHARED_RESTYLE_BIT_1;
+ pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_28 =
+ _bindgen_ty_28::NODE_TYPE_SPECIFIC_BITS_OFFSET;
+ #[repr(u32)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum _bindgen_ty_28 {
NODE_HAS_LISTENERMANAGER = 4,
NODE_HAS_PROPERTIES = 8,
NODE_IS_ANONYMOUS_ROOT = 16,
NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE = 32,
NODE_IS_NATIVE_ANONYMOUS_ROOT = 64,
NODE_FORCE_XBL_BINDINGS = 128,
NODE_MAY_BE_IN_BINDING_MNGR = 256,
NODE_IS_EDITABLE = 512,
@@ -18490,21 +18546,21 @@ pub mod root {
pub kerning: u8,
pub synthesis: u8,
pub size: root::nscoord,
pub sizeAdjust: f32,
pub alternateValues: root::nsTArray<root::gfxAlternateValue>,
pub featureValueLookup: root::RefPtr<root::gfxFontFeatureValueSet>,
pub fontFeatureSettings: root::nsTArray<root::gfxFontFeature>,
pub fontVariationSettings: root::nsTArray<root::gfxFontVariation>,
- pub languageOverride: ::nsstring::nsStringRepr,
+ pub languageOverride: u32,
}
#[test]
fn bindgen_test_layout_nsFont() {
- assert_eq!(::std::mem::size_of::<nsFont>() , 96usize , concat ! (
+ assert_eq!(::std::mem::size_of::<nsFont>() , 88usize , concat ! (
"Size of: " , stringify ! ( nsFont ) ));
assert_eq! (::std::mem::align_of::<nsFont>() , 8usize , concat ! (
"Alignment of " , stringify ! ( nsFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsFont ) ) . fontlist as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( nsFont ) , "::" ,
stringify ! ( fontlist ) ));
@@ -20191,30 +20247,28 @@ pub mod root {
pub const nsRestyleHint_eRestyle_Subtree: root::nsRestyleHint =
nsRestyleHint(4);
pub const nsRestyleHint_eRestyle_LaterSiblings: root::nsRestyleHint =
nsRestyleHint(8);
pub const nsRestyleHint_eRestyle_CSSTransitions: root::nsRestyleHint =
nsRestyleHint(16);
pub const nsRestyleHint_eRestyle_CSSAnimations: root::nsRestyleHint =
nsRestyleHint(32);
- pub const nsRestyleHint_eRestyle_SVGAttrAnimations: root::nsRestyleHint =
+ pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint =
nsRestyleHint(64);
- pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint =
- nsRestyleHint(128);
pub const nsRestyleHint_eRestyle_StyleAttribute_Animations:
root::nsRestyleHint =
+ nsRestyleHint(128);
+ pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint =
nsRestyleHint(256);
- pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint =
+ pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint =
nsRestyleHint(512);
- pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint =
- nsRestyleHint(1024);
pub const nsRestyleHint_eRestyle_AllHintsWithAnimations:
root::nsRestyleHint =
- nsRestyleHint(368);
+ nsRestyleHint(176);
impl ::std::ops::BitOr<root::nsRestyleHint> for root::nsRestyleHint {
type
Output
=
Self;
#[inline]
fn bitor(self, other: Self) -> Self {
nsRestyleHint(self.0 | other.0)
@@ -21702,55 +21756,55 @@ pub mod root {
* ( 0 as * const nsRootPresContext_NotifyDidPaintTimer ) )
. mTimer as * const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! (
nsRootPresContext_NotifyDidPaintTimer ) , "::" , stringify
! ( mTimer ) ));
}
#[test]
fn bindgen_test_layout_nsRootPresContext() {
- assert_eq!(::std::mem::size_of::<nsRootPresContext>() , 1496usize ,
+ assert_eq!(::std::mem::size_of::<nsRootPresContext>() , 1440usize ,
concat ! ( "Size of: " , stringify ! ( nsRootPresContext )
));
assert_eq! (::std::mem::align_of::<nsRootPresContext>() , 8usize ,
concat ! (
"Alignment of " , stringify ! ( nsRootPresContext ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mNotifyDidPaintTimers as * const _ as usize } , 1344usize
+ mNotifyDidPaintTimers as * const _ as usize } , 1288usize
, concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mNotifyDidPaintTimers ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
mApplyPluginGeometryTimer as * const _ as usize } ,
- 1424usize , concat ! (
+ 1368usize , concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mApplyPluginGeometryTimer ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mRegisteredPlugins as * const _ as usize } , 1432usize ,
+ mRegisteredPlugins as * const _ as usize } , 1376usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mRegisteredPlugins ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mWillPaintObservers as * const _ as usize } , 1472usize ,
+ mWillPaintObservers as * const _ as usize } , 1416usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mWillPaintObservers ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
mWillPaintFallbackEvent as * const _ as usize } ,
- 1480usize , concat ! (
+ 1424usize , concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mWillPaintFallbackEvent ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsRootPresContext ) ) .
- mDOMGeneration as * const _ as usize } , 1488usize ,
+ mDOMGeneration as * const _ as usize } , 1432usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsRootPresContext )
, "::" , stringify ! ( mDOMGeneration ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct imgIContainer([u8; 0]);
#[repr(C)]
@@ -22004,17 +22058,17 @@ pub mod root {
pub type imgRequest_ImageURL = root::mozilla::image::ImageURL;
pub type imgRequest_ProgressTracker =
root::mozilla::image::ProgressTracker;
pub use self::super::root::mozilla::net::ReferrerPolicy as
imgRequest_ReferrerPolicy;
pub type imgRequest_HasThreadSafeRefCnt = root::mozilla::TrueType;
#[test]
fn bindgen_test_layout_imgRequest() {
- assert_eq!(::std::mem::size_of::<imgRequest>() , 376usize , concat ! (
+ assert_eq!(::std::mem::size_of::<imgRequest>() , 400usize , concat ! (
"Size of: " , stringify ! ( imgRequest ) ));
assert_eq! (::std::mem::align_of::<imgRequest>() , 8usize , concat ! (
"Alignment of " , stringify ! ( imgRequest ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ProxyBehaviour([u8; 0]);
#[repr(C)]
@@ -22089,85 +22143,85 @@ pub mod root {
pub mAllowZoom: bool,
pub mScriptUnconstrainedSize: root::nscoord,
pub mScriptMinSize: root::nscoord,
pub mScriptSizeMultiplier: f32,
pub mLanguage: root::nsCOMPtr<root::nsIAtom>,
}
#[test]
fn bindgen_test_layout_nsStyleFont() {
- assert_eq!(::std::mem::size_of::<nsStyleFont>() , 128usize , concat !
+ assert_eq!(::std::mem::size_of::<nsStyleFont>() , 120usize , concat !
( "Size of: " , stringify ! ( nsStyleFont ) ));
assert_eq! (::std::mem::align_of::<nsStyleFont>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsStyleFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mFont as * const _
as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mFont ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mSize as * const _
- as usize } , 96usize , concat ! (
+ as usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mGenericID as *
- const _ as usize } , 100usize , concat ! (
+ const _ as usize } , 92usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mGenericID ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mScriptLevel as *
- const _ as usize } , 101usize , concat ! (
+ const _ as usize } , 93usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptLevel ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mMathVariant as *
- const _ as usize } , 102usize , concat ! (
+ const _ as usize } , 94usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mMathVariant ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mMathDisplay as *
- const _ as usize } , 103usize , concat ! (
+ const _ as usize } , 95usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mMathDisplay ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mMinFontSizeRatio
- as * const _ as usize } , 104usize , concat ! (
+ as * const _ as usize } , 96usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mMinFontSizeRatio ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mExplicitLanguage
- as * const _ as usize } , 105usize , concat ! (
+ as * const _ as usize } , 97usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mExplicitLanguage ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mAllowZoom as *
- const _ as usize } , 106usize , concat ! (
+ const _ as usize } , 98usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mAllowZoom ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) .
mScriptUnconstrainedSize as * const _ as usize } ,
- 108usize , concat ! (
+ 100usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptUnconstrainedSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mScriptMinSize as *
- const _ as usize } , 112usize , concat ! (
+ const _ as usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptMinSize ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) .
- mScriptSizeMultiplier as * const _ as usize } , 116usize ,
+ mScriptSizeMultiplier as * const _ as usize } , 108usize ,
concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mScriptSizeMultiplier ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const nsStyleFont ) ) . mLanguage as *
- const _ as usize } , 120usize , concat ! (
+ const _ as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( nsStyleFont ) ,
"::" , stringify ! ( mLanguage ) ));
}
#[repr(C)]
#[derive(Debug)]
pub struct nsStyleGradientStop {
pub mLocation: root::nsStyleCoord,
pub mColor: root::nscolor,