servo: Merge #16047 - Stylo: Update bindings for ServoType (from canaltinova:eventstate-bindings); r=emilio

This is needed for https://bugzilla.mozilla.org/show_bug.cgi?id=1348873

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1348873](https://bugzilla.mozilla.org/show_bug.cgi?id=1348873)

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 315e2dd1611928126e49ad610ccd5a447a4a65cc

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 65279e175fc32fceaefa121b774086bb8acacf0f
This commit is contained in:
Nazım Can Altınova 2017-03-20 15:17:48 -07:00
Родитель 1a61788cb8
Коммит 856c3763e6
3 изменённых файлов: 738 добавлений и 365 удалений

Просмотреть файл

@ -443,7 +443,7 @@ extern "C" {
-> RawGeckoNodeBorrowedOrNull;
}
extern "C" {
pub fn Gecko_ElementState(element: RawGeckoElementBorrowed) -> u16;
pub fn Gecko_ElementState(element: RawGeckoElementBorrowed) -> u64;
}
extern "C" {
pub fn Gecko_IsLink(element: RawGeckoElementBorrowed) -> bool;

Просмотреть файл

@ -2239,7 +2239,7 @@ pub mod root {
#[test]
fn bindgen_test_layout_FastElementCreationOptions() {
assert_eq!(::std::mem::size_of::<FastElementCreationOptions>()
, 32usize , concat ! (
, 56usize , concat ! (
"Size of: " , stringify ! (
FastElementCreationOptions ) ));
assert_eq! (::std::mem::align_of::<FastElementCreationOptions>()
@ -3034,6 +3034,9 @@ pub mod root {
OriginAttributesDictionary ) , "::" , stringify !
( mUserContextId ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Promise([u8; 0]);
pub mod workers {
#[allow(unused_imports)]
use self::super::super::super::super::root;
@ -3416,11 +3419,12 @@ pub mod root {
pub struct ElementCreationOptions {
pub _base: root::mozilla::dom::DictionaryBase,
pub mIs: [u64; 3usize],
pub mPseudo: [u64; 3usize],
}
#[test]
fn bindgen_test_layout_ElementCreationOptions() {
assert_eq!(::std::mem::size_of::<ElementCreationOptions>() ,
32usize , concat ! (
56usize , concat ! (
"Size of: " , stringify ! ( ElementCreationOptions
) ));
assert_eq! (::std::mem::align_of::<ElementCreationOptions>() ,
@ -3433,6 +3437,13 @@ pub mod root {
"Alignment of field: " , stringify ! (
ElementCreationOptions ) , "::" , stringify ! (
mIs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ElementCreationOptions ) ) .
mPseudo as * const _ as usize } , 32usize , concat
! (
"Alignment of field: " , stringify ! (
ElementCreationOptions ) , "::" , stringify ! (
mPseudo ) ));
}
#[repr(C)]
#[derive(Debug)]
@ -3706,9 +3717,6 @@ pub mod root {
pub struct ProcessingInstruction([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Promise([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct StyleSheetList([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -3800,9 +3808,6 @@ pub mod root {
pub struct ShadowRoot([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CustomElementData([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Selection([u8; 0]);
#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@ -3867,6 +3872,9 @@ pub mod root {
));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CustomElementData([u8; 0]);
#[repr(C)]
#[derive(Debug)]
pub struct FragmentOrElement {
pub _base: root::nsIContent,
@ -5026,7 +5034,7 @@ pub mod root {
pub mStates: root::mozilla::EventStates_InternalType,
}
pub type EventStates_InternalType = u64;
pub type EventStates_ServoType = u16;
pub type EventStates_ServoType = u64;
#[test]
fn bindgen_test_layout_EventStates() {
assert_eq!(::std::mem::size_of::<EventStates>() , 8usize , concat
@ -7540,7 +7548,7 @@ pub mod root {
as ServoElementSnapshot_Flags;
#[test]
fn bindgen_test_layout_ServoElementSnapshot() {
assert_eq!(::std::mem::size_of::<ServoElementSnapshot>() , 24usize
assert_eq!(::std::mem::size_of::<ServoElementSnapshot>() , 32usize
, concat ! (
"Size of: " , stringify ! ( ServoElementSnapshot ) ));
assert_eq! (::std::mem::align_of::<ServoElementSnapshot>() ,
@ -7569,13 +7577,13 @@ pub mod root {
assert_eq! (unsafe {
& ( * ( 0 as * const ServoElementSnapshot ) ) .
mIsHTMLElementInHTMLDocument as * const _ as usize } ,
18usize , concat ! (
24usize , concat ! (
"Alignment of field: " , stringify ! (
ServoElementSnapshot ) , "::" , stringify ! (
mIsHTMLElementInHTMLDocument ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoElementSnapshot ) ) .
mIsInChromeDocument as * const _ as usize } , 19usize
mIsInChromeDocument as * const _ as usize } , 25usize
, concat ! (
"Alignment of field: " , stringify ! (
ServoElementSnapshot ) , "::" , stringify ! (
@ -8350,6 +8358,12 @@ pub mod root {
pub type pair_first_type<_T1> = _T1;
pub type pair_second_type<_T2> = _T2;
#[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,
@ -8368,6 +8382,62 @@ pub mod root {
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,
@ -8377,250 +8447,209 @@ pub mod root {
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;
pub type iterator_iterator_category<_Category> = _Category;
#[repr(C)]
#[derive(Debug)]
pub struct atomic<_Tp> {
pub _M_i: _Tp,
}
pub mod chrono {
#[allow(unused_imports)]
use self::super::super::super::root;
#[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 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;
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 _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],
pub struct __sbuf {
pub _base: *mut ::std::os::raw::c_uchar,
pub _size: ::std::os::raw::c_int,
}
#[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 ) ));
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 _IO_FILE ) ) . _flags as * const _ as
& ( * ( 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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _file as * const _ as
usize } , 18usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _file ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _bf as * const _ as
usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _bf ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _lbfsize as * const _
as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _lbfsize ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _cookie as * const _ as
usize } , 48usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _cookie ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _close as * const _ as
usize } , 56usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _close ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _read as * const _ as
usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _read ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _seek as * const _ as
usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _seek ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _write as * const _ as
usize } , 80usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _write ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _ub as * const _ as
usize } , 88usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _ub ) ));
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 ) ) . _extra as * const _ as
usize } , 104usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _chain ) ));
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _extra ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _fileno as * const _
as usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _fileno ) ));
& ( * ( 0 as * const __sFILE ) ) . _ur as * const _ as
usize } , 112usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _ur ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const _IO_FILE ) ) . _flags2 as * const _
as usize } , 116usize , concat ! (
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" ,
stringify ! ( _flags2 ) ));
& ( * ( 0 as * const __sFILE ) ) . _ubuf as * const _ as
usize } , 116usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _ubuf ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _nbuf as * const _ as
usize } , 119usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _nbuf ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _lb as * const _ as
usize } , 120usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _lb ) ));
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 ) ));
& ( * ( 0 as * const __sFILE ) ) . _blksize as * const _
as usize } , 136usize , concat ! (
"Alignment of field: " , stringify ! ( __sFILE ) , "::" ,
stringify ! ( _blksize ) ));
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 ) , "::" ,
& ( * ( 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 {
impl Clone for __sFILE {
fn clone(&self) -> Self { *self }
}
pub type FILE = root::__sFILE;
/**
* MozRefCountType is Mozilla's reference count type.
*
@ -15635,63 +15664,63 @@ pub mod root {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsDOMMutationObserver([u8; 0]);
pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_LISTENERMANAGER;
pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_PROPERTIES;
pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_IS_ANONYMOUS_ROOT;
pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_IS_NATIVE_ANONYMOUS_ROOT;
pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_FORCE_XBL_BINDINGS;
pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_MAY_BE_IN_BINDING_MNGR;
pub const NODE_IS_EDITABLE: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_IS_EDITABLE;
pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_IS_NATIVE_ANONYMOUS;
pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_IS_IN_SHADOW_TREE;
pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_EMPTY_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_SLOW_SELECTOR;
pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_EDGE_CHILD_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_ALL_SELECTOR_FLAGS;
pub const NODE_NEEDS_FRAME: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_NEEDS_FRAME;
pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_DESCENDANTS_NEED_FRAMES;
pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_ACCESSKEY;
pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_DIRECTION_RTL;
pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_HAS_DIRECTION_LTR;
pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_ALL_DIRECTION_FLAGS;
pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_CHROME_ONLY_ACCESS;
pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_SHARED_RESTYLE_BIT_2;
pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_118 =
_bindgen_ty_118::NODE_TYPE_SPECIFIC_BITS_OFFSET;
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_118 {
pub enum _bindgen_ty_28 {
NODE_HAS_LISTENERMANAGER = 4,
NODE_HAS_PROPERTIES = 8,
NODE_IS_ANONYMOUS_ROOT = 16,
@ -15719,6 +15748,127 @@ pub mod root {
NODE_SHARED_RESTYLE_BIT_2 = 16777216,
NODE_TYPE_SPECIFIC_BITS_OFFSET = 23,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsScanner([u8; 0]);
/***************************************************************
Notes:
***************************************************************/
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsITokenizer {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsITokenizer_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsITokenizer() {
assert_eq!(::std::mem::size_of::<nsITokenizer>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsITokenizer ) ));
assert_eq! (::std::mem::align_of::<nsITokenizer>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsITokenizer ) ));
}
impl Clone for nsITokenizer {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsDTDMode {
eDTDMode_unknown = 0,
eDTDMode_quirks = 1,
eDTDMode_almost_standards = 2,
eDTDMode_full_standards = 3,
eDTDMode_autodetect = 4,
eDTDMode_fragment = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIContentSink([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CParserContext([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIDTD {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDTD_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsIDTD() {
assert_eq!(::std::mem::size_of::<nsIDTD>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsIDTD ) ));
assert_eq! (::std::mem::align_of::<nsIDTD>() , 8usize , concat ! (
"Alignment of " , stringify ! ( nsIDTD ) ));
}
impl Clone for nsIDTD {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsParserBase {
pub _base: root::nsISupports,
}
#[test]
fn bindgen_test_layout_nsParserBase() {
assert_eq!(::std::mem::size_of::<nsParserBase>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsParserBase ) ));
assert_eq! (::std::mem::align_of::<nsParserBase>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsParserBase ) ));
}
impl Clone for nsParserBase {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum eParserCommands {
eViewNormal = 0,
eViewSource = 1,
eViewFragment = 2,
eViewErrors = 3,
}
/**
* This GECKO-INTERNAL interface is on track to being REMOVED (or refactored
* to the point of being near-unrecognizable).
*
* Please DO NOT #include this file in comm-central code, in your XULRunner
* app or binary extensions.
*
* Please DO NOT #include this into new files even inside Gecko. It is more
* likely than not that #including this header is the wrong thing to do.
*/
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIParser {
pub _base: root::nsParserBase,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIParser_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsIParser() {
assert_eq!(::std::mem::size_of::<nsIParser>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsIParser ) ));
assert_eq! (::std::mem::align_of::<nsIParser>() , 8usize , concat ! (
"Alignment of " , stringify ! ( nsIParser ) ));
}
impl Clone for nsIParser {
fn clone(&self) -> Self { *self }
}
pub type nscoord = i32;
pub type nsIntPoint = root::mozilla::gfx::IntPoint;
/**
@ -16098,9 +16248,6 @@ pub mod root {
pub struct nsIBFCacheEntry([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIContentSink([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDocumentEncoder([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -17511,6 +17658,28 @@ pub mod root {
eStyleStruct_Effects = 23,
nsStyleStructID_Length = 24,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIProperties {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIProperties_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsIProperties() {
assert_eq!(::std::mem::size_of::<nsIProperties>() , 8usize , concat !
( "Size of: " , stringify ! ( nsIProperties ) ));
assert_eq! (::std::mem::align_of::<nsIProperties>() , 8usize , concat
! ( "Alignment of " , stringify ! ( nsIProperties ) ));
}
impl Clone for nsIProperties {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
/**
* Types of animatable values.
@ -22361,9 +22530,6 @@ pub mod root {
#[derive(Debug, Copy, Clone)]
pub struct nsIApplicationCache([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIProperties([u8; 0]);
#[repr(C)]
#[derive(Debug)]
pub struct imgRequest {
pub _base: root::nsIStreamListener,

Просмотреть файл

@ -2238,7 +2238,7 @@ pub mod root {
#[test]
fn bindgen_test_layout_FastElementCreationOptions() {
assert_eq!(::std::mem::size_of::<FastElementCreationOptions>()
, 32usize , concat ! (
, 56usize , concat ! (
"Size of: " , stringify ! (
FastElementCreationOptions ) ));
assert_eq! (::std::mem::align_of::<FastElementCreationOptions>()
@ -3025,6 +3025,9 @@ pub mod root {
OriginAttributesDictionary ) , "::" , stringify !
( mUserContextId ) ));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Promise([u8; 0]);
pub mod workers {
#[allow(unused_imports)]
use self::super::super::super::super::root;
@ -3399,11 +3402,12 @@ pub mod root {
pub struct ElementCreationOptions {
pub _base: root::mozilla::dom::DictionaryBase,
pub mIs: [u64; 3usize],
pub mPseudo: [u64; 3usize],
}
#[test]
fn bindgen_test_layout_ElementCreationOptions() {
assert_eq!(::std::mem::size_of::<ElementCreationOptions>() ,
32usize , concat ! (
56usize , concat ! (
"Size of: " , stringify ! ( ElementCreationOptions
) ));
assert_eq! (::std::mem::align_of::<ElementCreationOptions>() ,
@ -3416,6 +3420,13 @@ pub mod root {
"Alignment of field: " , stringify ! (
ElementCreationOptions ) , "::" , stringify ! (
mIs ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ElementCreationOptions ) ) .
mPseudo as * const _ as usize } , 32usize , concat
! (
"Alignment of field: " , stringify ! (
ElementCreationOptions ) , "::" , stringify ! (
mPseudo ) ));
}
#[repr(C)]
#[derive(Debug)]
@ -3687,9 +3698,6 @@ pub mod root {
pub struct ProcessingInstruction([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Promise([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct StyleSheetList([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -3781,9 +3789,6 @@ pub mod root {
pub struct ShadowRoot([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CustomElementData([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Selection([u8; 0]);
#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@ -3848,6 +3853,9 @@ pub mod root {
));
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CustomElementData([u8; 0]);
#[repr(C)]
#[derive(Debug)]
pub struct FragmentOrElement {
pub _base: root::nsIContent,
@ -4896,7 +4904,7 @@ pub mod root {
pub mStates: root::mozilla::EventStates_InternalType,
}
pub type EventStates_InternalType = u64;
pub type EventStates_ServoType = u16;
pub type EventStates_ServoType = u64;
#[test]
fn bindgen_test_layout_EventStates() {
assert_eq!(::std::mem::size_of::<EventStates>() , 8usize , concat
@ -7352,7 +7360,7 @@ pub mod root {
as ServoElementSnapshot_Flags;
#[test]
fn bindgen_test_layout_ServoElementSnapshot() {
assert_eq!(::std::mem::size_of::<ServoElementSnapshot>() , 24usize
assert_eq!(::std::mem::size_of::<ServoElementSnapshot>() , 32usize
, concat ! (
"Size of: " , stringify ! ( ServoElementSnapshot ) ));
assert_eq! (::std::mem::align_of::<ServoElementSnapshot>() ,
@ -7381,13 +7389,13 @@ pub mod root {
assert_eq! (unsafe {
& ( * ( 0 as * const ServoElementSnapshot ) ) .
mIsHTMLElementInHTMLDocument as * const _ as usize } ,
18usize , concat ! (
24usize , concat ! (
"Alignment of field: " , stringify ! (
ServoElementSnapshot ) , "::" , stringify ! (
mIsHTMLElementInHTMLDocument ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoElementSnapshot ) ) .
mIsInChromeDocument as * const _ as usize } , 19usize
mIsInChromeDocument as * const _ as usize } , 25usize
, concat ! (
"Alignment of field: " , stringify ! (
ServoElementSnapshot ) , "::" , stringify ! (
@ -8162,6 +8170,12 @@ pub mod root {
pub type pair_first_type<_T1> = _T1;
pub type pair_second_type<_T2> = _T2;
#[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,
@ -8180,6 +8194,62 @@ pub mod root {
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,
@ -8189,22 +8259,22 @@ pub mod root {
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;
pub type iterator_iterator_category<_Category> = _Category;
#[repr(C)]
#[derive(Debug)]
pub struct atomic<_Tp> {
pub _M_i: _Tp,
#[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 mod __gnu_cxx {
#[allow(unused_imports)]
use self::super::super::root;
}
pub type va_list = root::__builtin_va_list;
pub type __darwin_va_list = root::__builtin_va_list;
pub type va_list = root::__darwin_va_list;
/**
* MozRefCountType is Mozilla's reference count type.
*
@ -15062,63 +15132,63 @@ pub mod root {
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsDOMMutationObserver([u8; 0]);
pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_LISTENERMANAGER;
pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_PROPERTIES;
pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_IS_ANONYMOUS_ROOT;
pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE;
pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_IS_NATIVE_ANONYMOUS_ROOT;
pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_FORCE_XBL_BINDINGS;
pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_MAY_BE_IN_BINDING_MNGR;
pub const NODE_IS_EDITABLE: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_IS_EDITABLE;
pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_IS_NATIVE_ANONYMOUS;
pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_IS_IN_SHADOW_TREE;
pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_EMPTY_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_SLOW_SELECTOR;
pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_EDGE_CHILD_SELECTOR;
pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS;
pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_ALL_SELECTOR_FLAGS;
pub const NODE_NEEDS_FRAME: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_NEEDS_FRAME;
pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_DESCENDANTS_NEED_FRAMES;
pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_ACCESSKEY;
pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_DIRECTION_RTL;
pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_HAS_DIRECTION_LTR;
pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_ALL_DIRECTION_FLAGS;
pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_CHROME_ONLY_ACCESS;
pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS;
pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_SHARED_RESTYLE_BIT_2;
pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_SHARED_RESTYLE_BIT_1;
pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_105 =
_bindgen_ty_105::NODE_TYPE_SPECIFIC_BITS_OFFSET;
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_105 {
pub enum _bindgen_ty_28 {
NODE_HAS_LISTENERMANAGER = 4,
NODE_HAS_PROPERTIES = 8,
NODE_IS_ANONYMOUS_ROOT = 16,
@ -15146,6 +15216,127 @@ pub mod root {
NODE_SHARED_RESTYLE_BIT_2 = 16777216,
NODE_TYPE_SPECIFIC_BITS_OFFSET = 23,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsScanner([u8; 0]);
/***************************************************************
Notes:
***************************************************************/
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsITokenizer {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsITokenizer_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsITokenizer() {
assert_eq!(::std::mem::size_of::<nsITokenizer>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsITokenizer ) ));
assert_eq! (::std::mem::align_of::<nsITokenizer>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsITokenizer ) ));
}
impl Clone for nsITokenizer {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsDTDMode {
eDTDMode_unknown = 0,
eDTDMode_quirks = 1,
eDTDMode_almost_standards = 2,
eDTDMode_full_standards = 3,
eDTDMode_autodetect = 4,
eDTDMode_fragment = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIContentSink([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CParserContext([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIDTD {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDTD_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsIDTD() {
assert_eq!(::std::mem::size_of::<nsIDTD>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsIDTD ) ));
assert_eq! (::std::mem::align_of::<nsIDTD>() , 8usize , concat ! (
"Alignment of " , stringify ! ( nsIDTD ) ));
}
impl Clone for nsIDTD {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsParserBase {
pub _base: root::nsISupports,
}
#[test]
fn bindgen_test_layout_nsParserBase() {
assert_eq!(::std::mem::size_of::<nsParserBase>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsParserBase ) ));
assert_eq! (::std::mem::align_of::<nsParserBase>() , 8usize , concat !
( "Alignment of " , stringify ! ( nsParserBase ) ));
}
impl Clone for nsParserBase {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum eParserCommands {
eViewNormal = 0,
eViewSource = 1,
eViewFragment = 2,
eViewErrors = 3,
}
/**
* This GECKO-INTERNAL interface is on track to being REMOVED (or refactored
* to the point of being near-unrecognizable).
*
* Please DO NOT #include this file in comm-central code, in your XULRunner
* app or binary extensions.
*
* Please DO NOT #include this into new files even inside Gecko. It is more
* likely than not that #including this header is the wrong thing to do.
*/
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIParser {
pub _base: root::nsParserBase,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIParser_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsIParser() {
assert_eq!(::std::mem::size_of::<nsIParser>() , 8usize , concat ! (
"Size of: " , stringify ! ( nsIParser ) ));
assert_eq! (::std::mem::align_of::<nsIParser>() , 8usize , concat ! (
"Alignment of " , stringify ! ( nsIParser ) ));
}
impl Clone for nsIParser {
fn clone(&self) -> Self { *self }
}
pub type nscoord = i32;
pub type nsIntPoint = root::mozilla::gfx::IntPoint;
/**
@ -15525,9 +15716,6 @@ pub mod root {
pub struct nsIBFCacheEntry([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIContentSink([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIDocumentEncoder([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
@ -16938,6 +17126,28 @@ pub mod root {
eStyleStruct_Effects = 23,
nsStyleStructID_Length = 24,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIProperties {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIProperties_COMTypeInfo<T, U> {
pub _address: u8,
pub _phantom_0: ::std::marker::PhantomData<T>,
pub _phantom_1: ::std::marker::PhantomData<U>,
}
#[test]
fn bindgen_test_layout_nsIProperties() {
assert_eq!(::std::mem::size_of::<nsIProperties>() , 8usize , concat !
( "Size of: " , stringify ! ( nsIProperties ) ));
assert_eq! (::std::mem::align_of::<nsIProperties>() , 8usize , concat
! ( "Alignment of " , stringify ! ( nsIProperties ) ));
}
impl Clone for nsIProperties {
fn clone(&self) -> Self { *self }
}
#[repr(u32)]
/**
* Types of animatable values.
@ -21720,9 +21930,6 @@ pub mod root {
#[derive(Debug, Copy, Clone)]
pub struct nsIApplicationCache([u8; 0]);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nsIProperties([u8; 0]);
#[repr(C)]
#[derive(Debug)]
pub struct imgRequest {
pub _base: root::nsIStreamListener,