diff --git a/ports/geckolib/gecko_bindings/structs_debug.rs b/ports/geckolib/gecko_bindings/structs_debug.rs index a64cf3912bd..24f94a7b8d5 100644 --- a/ports/geckolib/gecko_bindings/structs_debug.rs +++ b/ports/geckolib/gecko_bindings/structs_debug.rs @@ -1437,10 +1437,12 @@ impl Clone for JSCompartment { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug)] +#[derive(Debug, Copy, Clone)] pub struct atomic<_Tp> { - pub _M_i: _Tp, + pub _base: (), + pub _phantom_0: ::std::marker::PhantomData<_Tp>, } +pub type atomic___base = [u8; 0usize]; #[repr(C)] #[derive(Debug, Copy)] pub struct FreePolicy { @@ -1494,8 +1496,8 @@ pub enum JSWhyMagic { #[derive(Debug, Copy)] pub struct jsval_layout { pub asBits: __BindgenUnionField, - pub debugView: __BindgenUnionField, - pub s: __BindgenUnionField, + pub debugView: __BindgenUnionField, + pub s: __BindgenUnionField, pub asDouble: __BindgenUnionField, pub asPtr: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub asWord: __BindgenUnionField, @@ -1504,20 +1506,20 @@ pub struct jsval_layout { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_62758 { +pub struct jsval_layout__bindgen_ty_bindgen_id_61261 { pub _bitfield_1: u64, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_62758() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_61261() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_62758 { +impl Clone for jsval_layout__bindgen_ty_bindgen_id_61261 { fn clone(&self) -> Self { *self } } -impl jsval_layout__bindgen_ty_bindgen_id_62758 { +impl jsval_layout__bindgen_ty_bindgen_id_61261 { #[inline] pub fn payload47(&self) -> u64 { unsafe { @@ -1550,36 +1552,36 @@ impl jsval_layout__bindgen_ty_bindgen_id_62758 { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_62765 { - pub payload: jsval_layout__bindgen_ty_bindgen_id_62765__bindgen_ty_bindgen_id_62766, +pub struct jsval_layout__bindgen_ty_bindgen_id_61268 { + pub payload: jsval_layout__bindgen_ty_bindgen_id_61268__bindgen_ty_bindgen_id_61269, } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_62765__bindgen_ty_bindgen_id_62766 { +pub struct jsval_layout__bindgen_ty_bindgen_id_61268__bindgen_ty_bindgen_id_61269 { pub i32: __BindgenUnionField, pub u32: __BindgenUnionField, pub why: __BindgenUnionField, pub bindgen_union_field: u32, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_62765__bindgen_ty_bindgen_id_62766() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_61268__bindgen_ty_bindgen_id_61269() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - jsval_layout__bindgen_ty_bindgen_id_62765__bindgen_ty_bindgen_id_62766 { + jsval_layout__bindgen_ty_bindgen_id_61268__bindgen_ty_bindgen_id_61269 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_62765() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_61268() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_62765 { +impl Clone for jsval_layout__bindgen_ty_bindgen_id_61268 { fn clone(&self) -> Self { *self } } impl Clone for jsval_layout { @@ -1613,7 +1615,7 @@ pub type nsAString_internal_size_type = u32; pub type nsAString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsAString_internal__bindgen_ty_bindgen_id_64603 { +pub enum nsAString_internal__bindgen_ty_bindgen_id_63106 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1675,12 +1677,12 @@ fn bindgen_test_layout_nsString() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_65213 { +pub struct bindgen_vtable__bindgen_id_63716 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_65213, + pub vtable_: *const bindgen_vtable__bindgen_id_63716, } pub type nsStringComparator_char_type = u16; #[test] @@ -1722,7 +1724,7 @@ pub type nsACString_internal_size_type = u32; pub type nsACString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsACString_internal__bindgen_ty_bindgen_id_66443 { +pub enum nsACString_internal__bindgen_ty_bindgen_id_64946 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1784,12 +1786,12 @@ fn bindgen_test_layout_nsCString() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_66995 { +pub struct bindgen_vtable__bindgen_id_65498 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsCStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_66995, + pub vtable_: *const bindgen_vtable__bindgen_id_65498, } pub type nsCStringComparator_char_type = ::std::os::raw::c_char; #[test] @@ -1801,7 +1803,7 @@ impl Clone for nsCStringComparator { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_67298 { +pub struct bindgen_vtable__bindgen_id_65542 { } /** * Basic component object model interface. Objects which implement @@ -1812,7 +1814,7 @@ pub struct bindgen_vtable__bindgen_id_67298 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsISupports { - pub vtable_: *const bindgen_vtable__bindgen_id_67298, + pub vtable_: *const bindgen_vtable__bindgen_id_65542, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1830,7 +1832,7 @@ impl Clone for nsISupports { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_67581 { +pub struct bindgen_vtable__bindgen_id_65825 { } /** * Participant implementation classes @@ -1838,7 +1840,7 @@ pub struct bindgen_vtable__bindgen_id_67581 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsCycleCollectionParticipant { - pub vtable_: *const bindgen_vtable__bindgen_id_67581, + pub vtable_: *const bindgen_vtable__bindgen_id_65825, pub mMightSkip: bool, } #[test] @@ -2147,7 +2149,7 @@ fn bindgen_test_layout_ErrorResult() { #[derive(Debug)] pub struct TErrorResult { pub mResult: nsresult, - pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_75451, + pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_73318, pub mMightHaveUnreportedJSException: bool, pub mUnionState: TErrorResult_UnionState, pub _mOwningThread: nsAutoOwningThread, @@ -2177,7 +2179,7 @@ pub struct TErrorResult_DOMExceptionInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TErrorResult__bindgen_ty_bindgen_id_75451 { +pub struct TErrorResult__bindgen_ty_bindgen_id_73318 { pub mMessage: __BindgenUnionField<*mut TErrorResult_Message>, pub mJSException: __BindgenUnionField, pub mDOMExceptionInfo: __BindgenUnionField<*mut TErrorResult_DOMExceptionInfo>, @@ -2324,7 +2326,7 @@ impl nsIAtom { } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_76438 { +pub struct bindgen_vtable__bindgen_id_74305 { } /** * Class to store the wrapper for an object. This can only be used with objects @@ -2366,7 +2368,7 @@ pub struct bindgen_vtable__bindgen_id_76438 { #[repr(C)] #[derive(Debug)] pub struct nsWrapperCache { - pub vtable_: *const bindgen_vtable__bindgen_id_76438, + pub vtable_: *const bindgen_vtable__bindgen_id_74305, pub mWrapper: *mut JSObject, pub mFlags: nsWrapperCache_FlagsType, } @@ -2391,9 +2393,23 @@ pub type nsWrapperCache_FlagsType = u32; * NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER). */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_76645 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_74512 { WRAPPER_BIT_PRESERVED = 1, } +#[repr(u32)] +/** + * If this bit is set then the wrapper for the native object is not a DOM + * binding. + */ +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsWrapperCache__bindgen_ty_bindgen_id_74515 { + WRAPPER_IS_NOT_DOM_BINDING = 2, +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsWrapperCache__bindgen_ty_bindgen_id_74518 { + kWrapperFlagsMask = 3, +} #[test] fn bindgen_test_layout_nsWrapperCache() { assert_eq!(::std::mem::size_of::() , 24usize); @@ -2425,6 +2441,78 @@ fn bindgen_test_layout_GlobalObject() { assert_eq!(::std::mem::align_of::() , 8usize); } #[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; +#[repr(C)] +#[derive(Debug, Copy)] +pub struct input_iterator_tag { + pub _address: u8, +} +impl Clone for input_iterator_tag { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct forward_iterator_tag { + pub _address: u8, +} +impl Clone for forward_iterator_tag { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct bidirectional_iterator_tag { + pub _address: u8, +} +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, +} +impl Clone for random_access_iterator_tag { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +pub struct bindgen_vtable__bindgen_id_93421 { +} +/** + * A class of objects that return source code on demand. + * + * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't + * retain the source code (and doesn't do lazy bytecode generation). If we ever + * need the source code, say, in response to a call to Function.prototype. + * toSource or Debugger.Source.prototype.text, then we call the 'load' member + * function of the instance of this class that has hopefully been registered + * with the runtime, passing the code's URL, and hope that it will be able to + * find the source. + */ +#[repr(C)] +#[derive(Debug)] +pub struct SourceHook { + pub vtable_: *const bindgen_vtable__bindgen_id_93421, +} +#[test] +fn bindgen_test_layout_SourceHook() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __bit_const_reference<_Cp> { + pub __seg_: __bit_const_reference___storage_pointer<_Cp>, + pub __mask_: __bit_const_reference___storage_type<_Cp>, +} +pub type __bit_const_reference___storage_type<_Cp> = _Cp; +pub type __bit_const_reference___storage_pointer<_Cp> = _Cp; +#[repr(C)] #[derive(Debug, Copy)] pub struct nsScriptObjectTracer { pub _base: nsCycleCollectionParticipant, @@ -2459,37 +2547,196 @@ fn bindgen_test_layout_nsXPCOMCycleCollectionParticipant() { impl Clone for nsXPCOMCycleCollectionParticipant { fn clone(&self) -> Self { *self } } +pub type PLDHashNumber = u32; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pair<_T1, _T2> { - pub first: _T1, - pub second: _T2, +#[derive(Debug)] +pub struct PLDHashTable { + pub mOps: *const PLDHashTableOps, + pub mHashShift: i16, + pub mEntrySize: u32, + pub mEntryCount: u32, + pub mRemovedCount: u32, + pub mEntryStore: PLDHashTable_EntryStore, + pub mChecker: Checker, } -pub type pair_first_type<_T1> = _T1; -pub type pair_second_type<_T2> = _T2; #[repr(C)] -pub struct bindgen_vtable__bindgen_id_93519 { +#[derive(Debug)] +pub struct PLDHashTable_EntryStore { + pub mEntryStore: *mut ::std::os::raw::c_char, + pub mGeneration: u32, } +#[test] +fn bindgen_test_layout_PLDHashTable_EntryStore() { + assert_eq!(::std::mem::size_of::() , 16usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug)] +pub struct PLDHashTable_Iterator { + pub mTable: *mut PLDHashTable, + pub mStart: *mut ::std::os::raw::c_char, + pub mLimit: *mut ::std::os::raw::c_char, + pub mCurrent: *mut ::std::os::raw::c_char, + pub mNexts: u32, + pub mNextsLimit: u32, + pub mHaveRemoved: bool, +} +#[test] +fn bindgen_test_layout_PLDHashTable_Iterator() { + assert_eq!(::std::mem::size_of::() , 48usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum PLDHashTable_SearchReason { ForSearchOrRemove = 0, ForAdd = 1, } +extern "C" { + #[link_name = "_ZN12PLDHashTable12kMaxCapacityE"] + pub static PLDHashTable_kMaxCapacity: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] + pub static PLDHashTable_kMinCapacity: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] + pub static PLDHashTable_kMaxInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] + pub static PLDHashTable_kDefaultInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable9kHashBitsE"] + pub static PLDHashTable_kHashBits: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] + pub static PLDHashTable_kGoldenRatio: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] + pub static PLDHashTable_kCollisionFlag: PLDHashNumber; +} +#[test] +fn bindgen_test_layout_PLDHashTable() { + assert_eq!(::std::mem::size_of::() , 48usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct PLDHashTableOps { + pub hashKey: PLDHashHashKey, + pub matchEntry: PLDHashMatchEntry, + pub moveEntry: PLDHashMoveEntry, + pub clearEntry: PLDHashClearEntry, + pub initEntry: PLDHashInitEntry, +} +#[test] +fn bindgen_test_layout_PLDHashTableOps() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for PLDHashTableOps { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct PLDHashEntryHdr { + pub mKeyHash: PLDHashNumber, +} +#[test] +fn bindgen_test_layout_PLDHashEntryHdr() { + assert_eq!(::std::mem::size_of::() , 4usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for PLDHashEntryHdr { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct Checker { + pub mState: u32, + pub mIsWritable: u32, +} +extern "C" { + #[link_name = "_ZN7Checker5kIdleE"] + pub static Checker_kIdle: u32; +} +extern "C" { + #[link_name = "_ZN7Checker6kRead1E"] + pub static Checker_kRead1: u32; +} +extern "C" { + #[link_name = "_ZN7Checker8kReadMaxE"] + pub static Checker_kReadMax: u32; +} +extern "C" { + #[link_name = "_ZN7Checker6kWriteE"] + pub static Checker_kWrite: u32; +} +#[test] +fn bindgen_test_layout_Checker() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for Checker { + fn clone(&self) -> Self { *self } +} +pub type PLDHashHashKey = + ::std::option::Option ::std::os::raw::c_uint>; +pub type PLDHashMatchEntry = + ::std::option::Option bool>; +pub type PLDHashMoveEntry = + ::std::option::Option; +pub type PLDHashClearEntry = + ::std::option::Option; +pub type PLDHashInitEntry = + ::std::option::Option; /** - * A class of objects that return source code on demand. + * hashkey wrapper using T* KeyType * - * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't - * retain the source code (and doesn't do lazy bytecode generation). If we ever - * need the source code, say, in response to a call to Function.prototype. - * toSource or Debugger.Source.prototype.text, then we call the 'load' member - * function of the instance of this class that has hopefully been registered - * with the runtime, passing the code's URL, and hope that it will be able to - * find the source. + * @see nsTHashtable::EntryType for specification */ #[repr(C)] #[derive(Debug)] -pub struct SourceHook { - pub vtable_: *const bindgen_vtable__bindgen_id_93519, +pub struct nsPtrHashKey { + pub _base: PLDHashEntryHdr, + pub mKey: *mut T, +} +pub type nsPtrHashKey_KeyType = *mut T; +pub type nsPtrHashKey_KeyTypePointer = *mut T; +#[repr(i32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsPtrHashKey__bindgen_ty_bindgen_id_104411 { ALLOW_MEMMOVE = 0, } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct nsIRunnable { + pub _base: nsISupports, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nsIRunnable_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, } #[test] -fn bindgen_test_layout_SourceHook() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); +fn bindgen_test_layout_nsIRunnable() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for nsIRunnable { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] @@ -2505,7 +2752,7 @@ pub struct nsIPrincipal_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPrincipal__bindgen_ty_bindgen_id_98969 { +pub enum nsIPrincipal__bindgen_ty_bindgen_id_106453 { APP_STATUS_NOT_INSTALLED = 0, APP_STATUS_INSTALLED = 1, APP_STATUS_PRIVILEGED = 2, @@ -2828,7 +3075,7 @@ pub type nsIDocument_FrameRequestCallbackList = nsTArray>; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDocument__bindgen_ty_bindgen_id_107679 { REQUEST_DISCARD = 1, } +pub enum nsIDocument__bindgen_ty_bindgen_id_115177 { REQUEST_DISCARD = 1, } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsIDocument_DeprecatedOperations { @@ -3519,7 +3766,7 @@ pub struct nsINode { pub mNextSibling: *mut nsIContent, pub mPreviousSibling: *mut nsIContent, pub mFirstChild: *mut nsIContent, - pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_104382, + pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_111865, pub mSlots: *mut nsINode_nsSlots, pub mServoNodeData: UniquePtr>, @@ -3545,7 +3792,7 @@ pub struct nsINode_COMTypeInfo { * Bit-flags to pass (or'ed together) to IsNodeOfType() */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsINode__bindgen_ty_bindgen_id_100513 { +pub enum nsINode__bindgen_ty_bindgen_id_107996 { eCONTENT = 1, eDOCUMENT = 2, eATTRIBUTE = 4, @@ -3560,12 +3807,12 @@ pub enum nsINode__bindgen_ty_bindgen_id_100513 { eFILTER = 2048, } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_101282 { +pub struct bindgen_vtable__bindgen_id_108765 { } #[repr(C)] #[derive(Debug)] pub struct nsINode_nsSlots { - pub vtable_: *const bindgen_vtable__bindgen_id_101282, + pub vtable_: *const bindgen_vtable__bindgen_id_108765, /** * A list of mutation observers */ @@ -3634,19 +3881,19 @@ pub enum nsINode_BooleanFlag { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsINode__bindgen_ty_bindgen_id_104382 { +pub struct nsINode__bindgen_ty_bindgen_id_111865 { pub mPrimaryFrame: __BindgenUnionField<*mut nsIFrame>, pub mSubtreeRoot: __BindgenUnionField<*mut nsINode>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_104382() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_111865() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsINode__bindgen_ty_bindgen_id_104382 { +impl Clone for nsINode__bindgen_ty_bindgen_id_111865 { fn clone(&self) -> Self { *self } } #[test] @@ -3930,26 +4177,6 @@ impl Clone for nsIVariant { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug, Copy)] -pub struct nsIRunnable { - pub _base: nsISupports, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nsIRunnable_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -#[test] -fn bindgen_test_layout_nsIRunnable() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for nsIRunnable { - fn clone(&self) -> Self { *self } -} -#[repr(C)] #[derive(Debug)] pub struct Runnable { pub _base: nsIRunnable, @@ -3996,7 +4223,7 @@ pub struct nsIDOMNode_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDOMNode__bindgen_ty_bindgen_id_112514 { +pub enum nsIDOMNode__bindgen_ty_bindgen_id_120015 { ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, @@ -4010,6 +4237,16 @@ pub enum nsIDOMNode__bindgen_ty_bindgen_id_112514 { DOCUMENT_FRAGMENT_NODE = 11, NOTATION_NODE = 12, } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIDOMNode__bindgen_ty_bindgen_id_120234 { + DOCUMENT_POSITION_DISCONNECTED = 1, + DOCUMENT_POSITION_PRECEDING = 2, + DOCUMENT_POSITION_FOLLOWING = 4, + DOCUMENT_POSITION_CONTAINS = 8, + DOCUMENT_POSITION_CONTAINED_BY = 16, + DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32, +} #[test] fn bindgen_test_layout_nsIDOMNode() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -4857,273 +5094,6 @@ pub enum Side { eSideBottom = 2, eSideLeft = 3, } -#[repr(C)] -#[derive(Debug)] -pub struct CallbackFunction { - pub _base: CallbackObject, -} -#[test] -fn bindgen_test_layout_CallbackFunction() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject { - pub _base: nsISupports, - pub mRefCnt: nsCycleCollectingAutoRefCnt, - pub _mOwningThread: nsAutoOwningThread, - pub mCallback: u64, - pub mCreationStack: u64, - pub mIncumbentGlobal: nsCOMPtr, - pub mIncumbentJSGlobal: u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CallbackObject_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -pub type CallbackObject_HasThreadSafeRefCnt = FalseType; -#[repr(C)] -#[derive(Debug, Copy)] -pub struct CallbackObject_cycleCollection { - pub _base: nsXPCOMCycleCollectionParticipant, -} -#[test] -fn bindgen_test_layout_CallbackObject_cycleCollection() { - assert_eq!(::std::mem::size_of::() , - 16usize); - assert_eq!(::std::mem::align_of::() , - 8usize); -} -impl Clone for CallbackObject_cycleCollection { - fn clone(&self) -> Self { *self } -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum CallbackObject_ExceptionHandling { - eReportExceptions = 0, - eRethrowContentExceptions = 1, - eRethrowExceptions = 2, -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct CallbackObject_FastCallbackConstructor { - pub _address: u8, -} -#[test] -fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { - assert_eq!(::std::mem::size_of::() - , 1usize); - assert_eq!(::std::mem::align_of::() - , 1usize); -} -impl Clone for CallbackObject_FastCallbackConstructor { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject_CallSetup { - pub mCx: *mut JSContext, - pub mCompartment: *mut JSCompartment, - pub mAutoEntryScript: [u64; 21usize], - pub mAutoIncumbentScript: [u64; 6usize], - pub mRootedCallable: [u64; 4usize], - pub mAsyncStack: [u64; 4usize], - pub mAsyncStackSetter: [u64; 7usize], - pub mAc: [u64; 4usize], - pub mErrorResult: *mut ErrorResult, - pub mExceptionHandling: CallbackObject_ExceptionHandling, - pub mIsMainThread: bool, -} -#[test] -fn bindgen_test_layout_CallbackObject_CallSetup() { - assert_eq!(::std::mem::size_of::() , 400usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -extern "C" { - #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] - pub static mut CallbackObject__cycleCollectorGlobal: - CallbackObject_cycleCollection; -} -#[test] -fn bindgen_test_layout_CallbackObject() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -pub type PLDHashNumber = u32; -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable { - pub mOps: *const PLDHashTableOps, - pub mHashShift: i16, - pub mEntrySize: u32, - pub mEntryCount: u32, - pub mRemovedCount: u32, - pub mEntryStore: PLDHashTable_EntryStore, - pub mChecker: Checker, -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_EntryStore { - pub mEntryStore: *mut ::std::os::raw::c_char, - pub mGeneration: u32, -} -#[test] -fn bindgen_test_layout_PLDHashTable_EntryStore() { - assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_Iterator { - pub mTable: *mut PLDHashTable, - pub mStart: *mut ::std::os::raw::c_char, - pub mLimit: *mut ::std::os::raw::c_char, - pub mCurrent: *mut ::std::os::raw::c_char, - pub mNexts: u32, - pub mNextsLimit: u32, - pub mHaveRemoved: bool, -} -#[test] -fn bindgen_test_layout_PLDHashTable_Iterator() { - assert_eq!(::std::mem::size_of::() , 48usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum PLDHashTable_SearchReason { ForSearchOrRemove = 0, ForAdd = 1, } -extern "C" { - #[link_name = "_ZN12PLDHashTable12kMaxCapacityE"] - pub static PLDHashTable_kMaxCapacity: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] - pub static PLDHashTable_kMinCapacity: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] - pub static PLDHashTable_kMaxInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] - pub static PLDHashTable_kDefaultInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable9kHashBitsE"] - pub static PLDHashTable_kHashBits: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] - pub static PLDHashTable_kGoldenRatio: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] - pub static PLDHashTable_kCollisionFlag: PLDHashNumber; -} -#[test] -fn bindgen_test_layout_PLDHashTable() { - assert_eq!(::std::mem::size_of::() , 48usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashTableOps { - pub hashKey: PLDHashHashKey, - pub matchEntry: PLDHashMatchEntry, - pub moveEntry: PLDHashMoveEntry, - pub clearEntry: PLDHashClearEntry, - pub initEntry: PLDHashInitEntry, -} -#[test] -fn bindgen_test_layout_PLDHashTableOps() { - assert_eq!(::std::mem::size_of::() , 40usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for PLDHashTableOps { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashEntryHdr { - pub mKeyHash: PLDHashNumber, -} -#[test] -fn bindgen_test_layout_PLDHashEntryHdr() { - assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for PLDHashEntryHdr { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct Checker { - pub mState: u32, - pub mIsWritable: u32, -} -extern "C" { - #[link_name = "_ZN7Checker5kIdleE"] - pub static Checker_kIdle: u32; -} -extern "C" { - #[link_name = "_ZN7Checker6kRead1E"] - pub static Checker_kRead1: u32; -} -extern "C" { - #[link_name = "_ZN7Checker8kReadMaxE"] - pub static Checker_kReadMax: u32; -} -extern "C" { - #[link_name = "_ZN7Checker6kWriteE"] - pub static Checker_kWrite: u32; -} -#[test] -fn bindgen_test_layout_Checker() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for Checker { - fn clone(&self) -> Self { *self } -} -pub type PLDHashHashKey = - ::std::option::Option ::std::os::raw::c_uint>; -pub type PLDHashMatchEntry = - ::std::option::Option bool>; -pub type PLDHashMoveEntry = - ::std::option::Option; -pub type PLDHashClearEntry = - ::std::option::Option; -pub type PLDHashInitEntry = - ::std::option::Option; -/** - * hashkey wrapper using T* KeyType - * - * @see nsTHashtable::EntryType for specification - */ -#[repr(C)] -#[derive(Debug)] -pub struct nsPtrHashKey { - pub _base: PLDHashEntryHdr, - pub mKey: *mut T, -} -pub type nsPtrHashKey_KeyType = *mut T; -pub type nsPtrHashKey_KeyTypePointer = *mut T; -#[repr(i32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPtrHashKey__bindgen_ty_bindgen_id_117256 { ALLOW_MEMMOVE = 0, } /** * A node of content in a document's content model. This interface * is supported by all content objects. @@ -5143,11 +5113,17 @@ pub struct nsIContent_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIContent__bindgen_ty_bindgen_id_118596 { +pub enum nsIContent__bindgen_ty_bindgen_id_124169 { eAllChildren = 0, eAllButXBL = 1, eSkipPlaceholderContent = 2, } +#[repr(i32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIContent__bindgen_ty_bindgen_id_124405 { + ATTR_MISSING = -1, + ATTR_VALUE_NO_MATCH = -2, +} /** * Check whether this content node's given attribute has one of a given * list of values. If there is a match, we return the index in the list @@ -5350,7 +5326,7 @@ pub struct FragmentOrElement_nsDOMSlots { * @see FragmentOrElement::GetAttributes */ pub mAttributeMap: RefPtr, - pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119962, + pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_125536, /** * An object implementing the .children property for this element. */ @@ -5387,7 +5363,7 @@ pub struct FragmentOrElement_nsDOMSlots { } #[repr(C)] #[derive(Debug, Copy)] -pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119962 { +pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_125536 { /** * The nearest enclosing content node with a binding that created us. * @see FragmentOrElement::GetBindingParent @@ -5400,13 +5376,13 @@ pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119962 { pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119962() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_125536() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119962 { +impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_125536 { fn clone(&self) -> Self { *self } } #[test] @@ -5457,6 +5433,92 @@ impl Clone for PrefSetting { fn clone(&self) -> Self { *self } } #[repr(C)] +#[derive(Debug)] +pub struct CallbackObject { + pub _base: nsISupports, + pub mRefCnt: nsCycleCollectingAutoRefCnt, + pub _mOwningThread: nsAutoOwningThread, + pub mCallback: u64, + pub mCreationStack: u64, + pub mIncumbentGlobal: nsCOMPtr, + pub mIncumbentJSGlobal: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CallbackObject_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, +} +pub type CallbackObject_HasThreadSafeRefCnt = FalseType; +#[repr(C)] +#[derive(Debug, Copy)] +pub struct CallbackObject_cycleCollection { + pub _base: nsXPCOMCycleCollectionParticipant, +} +#[test] +fn bindgen_test_layout_CallbackObject_cycleCollection() { + assert_eq!(::std::mem::size_of::() , + 16usize); + assert_eq!(::std::mem::align_of::() , + 8usize); +} +impl Clone for CallbackObject_cycleCollection { + fn clone(&self) -> Self { *self } +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum CallbackObject_ExceptionHandling { + eReportExceptions = 0, + eRethrowContentExceptions = 1, + eRethrowExceptions = 2, +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct CallbackObject_FastCallbackConstructor { + pub _address: u8, +} +#[test] +fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { + assert_eq!(::std::mem::size_of::() + , 1usize); + assert_eq!(::std::mem::align_of::() + , 1usize); +} +impl Clone for CallbackObject_FastCallbackConstructor { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct CallbackObject_CallSetup { + pub mCx: *mut JSContext, + pub mCompartment: *mut JSCompartment, + pub mAutoEntryScript: [u64; 21usize], + pub mAutoIncumbentScript: [u64; 6usize], + pub mRootedCallable: [u64; 4usize], + pub mAsyncStack: [u64; 4usize], + pub mAsyncStackSetter: [u64; 7usize], + pub mAc: [u64; 4usize], + pub mErrorResult: *mut ErrorResult, + pub mExceptionHandling: CallbackObject_ExceptionHandling, + pub mIsMainThread: bool, +} +#[test] +fn bindgen_test_layout_CallbackObject_CallSetup() { + assert_eq!(::std::mem::size_of::() , 400usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +extern "C" { + #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] + pub static mut CallbackObject__cycleCollectorGlobal: + CallbackObject_cycleCollection; +} +#[test] +fn bindgen_test_layout_CallbackObject() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct nsIChannel { pub _base: nsIRequest, @@ -5470,7 +5532,7 @@ pub struct nsIChannel_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIChannel__bindgen_ty_bindgen_id_135707 { +pub enum nsIChannel__bindgen_ty_bindgen_id_137642 { LOAD_DOCUMENT_URI = 65536, LOAD_RETARGETED_DOCUMENT_URI = 131072, LOAD_REPLACE = 262144, @@ -5482,6 +5544,12 @@ pub enum nsIChannel__bindgen_ty_bindgen_id_135707 { LOAD_EXPLICIT_CREDENTIALS = 16777216, LOAD_BYPASS_SERVICE_WORKER = 33554432, } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIChannel__bindgen_ty_bindgen_id_137662 { + DISPOSITION_INLINE = 0, + DISPOSITION_ATTACHMENT = 1, +} #[test] fn bindgen_test_layout_nsIChannel() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -5504,7 +5572,7 @@ pub struct nsIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIRequest__bindgen_ty_bindgen_id_135545 { +pub enum nsIRequest__bindgen_ty_bindgen_id_137480 { LOAD_REQUESTMASK = 65535, LOAD_NORMAL = 0, LOAD_BACKGROUND = 1, @@ -6059,13 +6127,13 @@ pub enum nsIPresShell_ReflowRootHandling { eNoPositionOrSizeChange = 1, eInferFromBitToAdd = 2, } -pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_154828 = - nsIPresShell__bindgen_ty_bindgen_id_154828::SCROLL_TOP; -pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_154828 = - nsIPresShell__bindgen_ty_bindgen_id_154828::SCROLL_BOTTOM; +pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_155483 = + nsIPresShell__bindgen_ty_bindgen_id_155483::SCROLL_TOP; +pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_155483 = + nsIPresShell__bindgen_ty_bindgen_id_155483::SCROLL_BOTTOM; #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_154828 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_155483 { SCROLL_TOP = 0, SCROLL_BOTTOM = 100, SCROLL_CENTER = 50, @@ -6091,6 +6159,80 @@ fn bindgen_test_layout_nsIPresShell_ScrollAxis() { impl Clone for nsIPresShell_ScrollAxis { fn clone(&self) -> Self { *self } } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_155514 { + SCROLL_FIRST_ANCESTOR_ONLY = 1, + SCROLL_OVERFLOW_HIDDEN = 2, + SCROLL_NO_PARENT_FRAMES = 4, + SCROLL_SMOOTH = 8, + SCROLL_SMOOTH_AUTO = 16, +} +#[repr(u32)] +/** + * Render the document into an arbitrary gfxContext + * Designed for getting a picture of a document or a piece of a document + * Note that callers will generally want to call FlushPendingNotifications + * to get an up-to-date view of the document + * @param aRect is the region to capture into the offscreen buffer, in the + * root frame's coordinate system (if aIgnoreViewportScrolling is false) + * or in the root scrolled frame's coordinate system + * (if aIgnoreViewportScrolling is true). The coordinates are in appunits. + * @param aFlags see below; + * set RENDER_IS_UNTRUSTED if the contents may be passed to malicious + * agents. E.g. we might choose not to paint the contents of sensitive widgets + * such as the file name in a file upload widget, and we might choose not + * to paint themes. + * set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore + * clipping and scrollbar painting due to scrolling in the viewport + * set RENDER_CARET to draw the caret if one would be visible + * (by default the caret is never drawn) + * set RENDER_USE_LAYER_MANAGER to force rendering to go through + * the layer manager for the window. This may be unexpectedly slow + * (if the layer manager must read back data from the GPU) or low-quality + * (if the layer manager reads back pixel data and scales it + * instead of rendering using the appropriate scaling). It may also + * slow everything down if the area rendered does not correspond to the + * normal visible area of the window. + * set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously + * decoded during rendering. + * (by default images decode synchronously with RenderDocument) + * set RENDER_DOCUMENT_RELATIVE to render the document as if there has been + * no scrolling and interpret |aRect| relative to the document instead of the + * CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set + * or the document is in ignore viewport scrolling mode + * (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling). + * @param aBackgroundColor a background color to render onto + * @param aRenderedContext the gfxContext to render to. We render so that + * one CSS pixel in the source document is rendered to one unit in the current + * transform. + */ +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_155913 { + RENDER_IS_UNTRUSTED = 1, + RENDER_IGNORE_VIEWPORT_SCROLLING = 2, + RENDER_CARET = 4, + RENDER_USE_WIDGET_LAYERS = 8, + RENDER_ASYNC_DECODE_IMAGES = 16, + RENDER_DOCUMENT_RELATIVE = 32, + RENDER_DRAWWINDOW_NOT_FLUSHING = 64, +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_155931 { + RENDER_IS_IMAGE = 256, + RENDER_AUTO_SCALE = 128, +} +#[repr(u32)] +/** + * Add a solid color item to the bottom of aList with frame aFrame and bounds + * aBounds. Checks first if this needs to be done by checking if aFrame is a + * canvas frame (if the FORCE_DRAW flag is passed then this check is skipped). + * aBackstopColor is composed behind the background color of the canvas, it is + * transparent by default. + */ +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_156054 { FORCE_DRAW = 1, } #[repr(C)] #[derive(Debug)] pub struct nsIPresShell_PointerCaptureInfo { @@ -6485,67 +6627,67 @@ pub struct DOMPointInit { impl Clone for DOMPointInit { fn clone(&self) -> Self { *self } } -pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_LISTENERMANAGER; -pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_PROPERTIES; -pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_IS_ANONYMOUS_ROOT; -pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; -pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_IS_NATIVE_ANONYMOUS_ROOT; -pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_FORCE_XBL_BINDINGS; -pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_MAY_BE_IN_BINDING_MNGR; -pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_IS_EDITABLE; -pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_MAY_HAVE_CLASS; -pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_IS_IN_SHADOW_TREE; -pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_EMPTY_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_SLOW_SELECTOR; -pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_EDGE_CHILD_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_156879 +pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_LISTENERMANAGER; +pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_PROPERTIES; +pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_IS_ANONYMOUS_ROOT; +pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; +pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_IS_NATIVE_ANONYMOUS_ROOT; +pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_FORCE_XBL_BINDINGS; +pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_MAY_BE_IN_BINDING_MNGR; +pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_IS_EDITABLE; +pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_MAY_HAVE_CLASS; +pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_IS_IN_SHADOW_TREE; +pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_EMPTY_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_SLOW_SELECTOR; +pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_EDGE_CHILD_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_157482 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; -pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_ALL_SELECTOR_FLAGS; -pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_NEEDS_FRAME; -pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_DESCENDANTS_NEED_FRAMES; -pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_ACCESSKEY; -pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_DIRECTION_RTL; -pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_HAS_DIRECTION_LTR; -pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_ALL_DIRECTION_FLAGS; -pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_CHROME_ONLY_ACCESS; -pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; -pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_156879 + _bindgen_ty_bindgen_id_157482::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; +pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_ALL_SELECTOR_FLAGS; +pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_NEEDS_FRAME; +pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_DESCENDANTS_NEED_FRAMES; +pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_ACCESSKEY; +pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_DIRECTION_RTL; +pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_HAS_DIRECTION_LTR; +pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_ALL_DIRECTION_FLAGS; +pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_CHROME_ONLY_ACCESS; +pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; +pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_157482 = - _bindgen_ty_bindgen_id_156879::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_156879 = - _bindgen_ty_bindgen_id_156879::NODE_TYPE_SPECIFIC_BITS_OFFSET; + _bindgen_ty_bindgen_id_157482::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_157482 = + _bindgen_ty_bindgen_id_157482::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum _bindgen_ty_bindgen_id_156879 { +pub enum _bindgen_ty_bindgen_id_157482 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -6603,7 +6745,7 @@ pub struct nsITimer_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsITimer__bindgen_ty_bindgen_id_173287 { +pub enum nsITimer__bindgen_ty_bindgen_id_174050 { TYPE_ONE_SHOT = 0, TYPE_REPEATING_SLACK = 1, TYPE_REPEATING_PRECISE = 2, @@ -6629,7 +6771,7 @@ pub struct nsExpirationState { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsExpirationState__bindgen_ty_bindgen_id_173763 { +pub enum nsExpirationState__bindgen_ty_bindgen_id_174526 { NOT_TRACKED = 15, MAX_INDEX_IN_GENERATION = 268435455, } @@ -6703,7 +6845,7 @@ pub struct imgIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgIRequest__bindgen_ty_bindgen_id_175185 { +pub enum imgIRequest__bindgen_ty_bindgen_id_175118 { STATUS_NONE = 0, STATUS_SIZE_AVAILABLE = 1, STATUS_LOAD_COMPLETE = 2, @@ -6713,6 +6855,13 @@ pub enum imgIRequest__bindgen_ty_bindgen_id_175185 { STATUS_IS_ANIMATED = 32, STATUS_HAS_TRANSPARENCY = 64, } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum imgIRequest__bindgen_ty_bindgen_id_175198 { + CORS_NONE = 1, + CORS_ANONYMOUS = 2, + CORS_USE_CREDENTIALS = 3, +} #[test] fn bindgen_test_layout_imgIRequest() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -6921,6 +7070,16 @@ fn bindgen_test_layout_FrameRequestCallback() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] +#[derive(Debug)] +pub struct CallbackFunction { + pub _base: CallbackObject, +} +#[test] +fn bindgen_test_layout_CallbackFunction() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct FullscreenRequest { pub _address: u8, @@ -7207,7 +7366,7 @@ pub type nsPresArena_FreeList_KeyType = u32; pub type nsPresArena_FreeList_KeyTypePointer = *const ::std::os::raw::c_void; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_195712 { +pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_187754 { ALLOW_MEMMOVE = 0, } #[test] @@ -7234,7 +7393,7 @@ pub struct imgINotificationObserver_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgINotificationObserver__bindgen_ty_bindgen_id_195859 { +pub enum imgINotificationObserver__bindgen_ty_bindgen_id_187901 { SIZE_AVAILABLE = 1, FRAME_UPDATE = 2, FRAME_COMPLETE = 3, @@ -7483,7 +7642,7 @@ pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyTypePointer = *const gfxFontFeatureValueSet_FeatureValueHashKey; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_197113 +pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_189155 { ALLOW_MEMMOVE = 1, } @@ -7879,23 +8038,23 @@ pub enum nsStyleUnit { } #[repr(C)] #[derive(Debug, Copy)] -pub struct _bindgen_ty_bindgen_id_197858 { +pub struct _bindgen_ty_bindgen_id_189908 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mPointer: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout__bindgen_ty_bindgen_id_197858() { - assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_197858>() , +fn bindgen_test_layout__bindgen_ty_bindgen_id_189908() { + assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_189908>() , 8usize); - assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_197858>() , + assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_189908>() , 8usize); } -impl Clone for _bindgen_ty_bindgen_id_197858 { +impl Clone for _bindgen_ty_bindgen_id_189908 { fn clone(&self) -> Self { *self } } -pub type nsStyleUnion = _bindgen_ty_bindgen_id_197858; +pub type nsStyleUnion = _bindgen_ty_bindgen_id_189908; /** * Class that hold a single size specification used by the style * system. The size specification consists of two parts -- a number @@ -8340,6 +8499,27 @@ fn bindgen_test_layout_CSSVariableValues() { assert_eq!(::std::mem::size_of::() , 56usize); assert_eq!(::std::mem::align_of::() , 8usize); } +/** + * 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. + */ +#[repr(C)] +#[derive(Debug, Copy)] +pub struct StyleComplexColor { + pub mColor: nscolor, + pub mForegroundRatio: u8, +} +#[test] +fn bindgen_test_layout_StyleComplexColor() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for StyleComplexColor { + fn clone(&self) -> Self { *self } +} pub const nsCSSPropertyID_eCSSProperty_COUNT_DUMMY: nsCSSPropertyID = nsCSSPropertyID::eCSSProperty_z_index; pub const nsCSSPropertyID_eCSSProperty_all: nsCSSPropertyID = @@ -8920,7 +9100,7 @@ fn bindgen_test_layout_imgRequestProxy() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_206771 { +pub struct bindgen_vtable__bindgen_id_199319 { } /** * An interface for observing changes to image state, as reported by @@ -8937,7 +9117,7 @@ pub struct bindgen_vtable__bindgen_id_206771 { #[repr(C)] #[derive(Debug)] pub struct IProgressObserver { - pub vtable_: *const bindgen_vtable__bindgen_id_206771, + pub vtable_: *const bindgen_vtable__bindgen_id_199319, pub _base: u64, } #[test] @@ -8959,7 +9139,7 @@ pub struct nsISupportsPriority_COMTypeInfo { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsISupportsPriority__bindgen_ty_bindgen_id_206852 { +pub enum nsISupportsPriority__bindgen_ty_bindgen_id_199400 { PRIORITY_HIGHEST = -20, PRIORITY_HIGH = -10, PRIORITY_NORMAL = 0, @@ -9056,6 +9236,49 @@ fn bindgen_test_layout_FontFamilyListRefCnt() { assert_eq!(::std::mem::size_of::() , 32usize); assert_eq!(::std::mem::align_of::() , 8usize); } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct RGBAColorData { + pub mR: f32, + pub mG: f32, + pub mB: f32, + pub mA: f32, +} +#[test] +fn bindgen_test_layout_RGBAColorData() { + assert_eq!(::std::mem::size_of::() , 16usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for RGBAColorData { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct ComplexColorData { + pub mColor: RGBAColorData, + pub mForegroundRatio: f32, +} +#[test] +fn bindgen_test_layout_ComplexColorData() { + assert_eq!(::std::mem::size_of::() , 20usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for ComplexColorData { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct ComplexColorValue { + pub _base: ComplexColorData, + pub mRefCnt: nsAutoRefCnt, + pub _mOwningThread: nsAutoOwningThread, +} +pub type ComplexColorValue_HasThreadSafeRefCnt = FalseType; +#[test] +fn bindgen_test_layout_ComplexColorValue() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSUnit { @@ -9116,6 +9339,7 @@ pub enum nsCSSUnit { eCSSUnit_PercentageRGBAColor = 88, eCSSUnit_HSLColor = 89, eCSSUnit_HSLAColor = 90, + eCSSUnit_ComplexColor = 91, eCSSUnit_Percent = 100, eCSSUnit_Number = 101, eCSSUnit_PhysicalMillimeter = 200, @@ -9350,7 +9574,7 @@ fn bindgen_test_layout_nsCSSValueFloatColor() { #[derive(Debug)] pub struct nsCSSValue { pub mUnit: nsCSSUnit, - pub mValue: nsCSSValue__bindgen_ty_bindgen_id_209746, + pub mValue: nsCSSValue__bindgen_ty_bindgen_id_202395, } #[repr(C)] #[derive(Debug)] @@ -9366,7 +9590,7 @@ fn bindgen_test_layout_nsCSSValue_Array() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsCSSValue__bindgen_ty_bindgen_id_209746 { +pub struct nsCSSValue__bindgen_ty_bindgen_id_202395 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mString: __BindgenUnionField<*mut nsStringBuffer>, @@ -9387,16 +9611,17 @@ pub struct nsCSSValue__bindgen_ty_bindgen_id_209746 { pub mPairListDependent: __BindgenUnionField<*mut nsCSSValuePairList>, pub mFloatColor: __BindgenUnionField<*mut nsCSSValueFloatColor>, pub mFontFamilyList: __BindgenUnionField<*mut FontFamilyListRefCnt>, + pub mComplexColor: __BindgenUnionField<*mut ComplexColorValue>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_209746() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_202395() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsCSSValue__bindgen_ty_bindgen_id_209746 { +impl Clone for nsCSSValue__bindgen_ty_bindgen_id_202395 { fn clone(&self) -> Self { *self } } #[test] @@ -9417,12 +9642,12 @@ fn bindgen_test_layout_nsCSSValueGradientStop() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_209953 { +pub struct bindgen_vtable__bindgen_id_202603 { } #[repr(C)] #[derive(Debug, Copy)] pub struct CounterStyle { - pub vtable_: *const bindgen_vtable__bindgen_id_209953, + pub vtable_: *const bindgen_vtable__bindgen_id_202603, pub mStyle: i32, } #[test] @@ -9619,26 +9844,26 @@ pub struct nsStyleImage { pub mCachedBIData: UniquePtr>, pub mType: nsStyleImageType, - pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_211908, + pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_204560, pub mCropRect: UniquePtr>, pub mImageTracked: bool, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleImage__bindgen_ty_bindgen_id_211908 { +pub struct nsStyleImage__bindgen_ty_bindgen_id_204560 { pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mGradient: __BindgenUnionField<*mut nsStyleGradient>, pub mElementId: __BindgenUnionField<*mut u16>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_211908() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_204560() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleImage__bindgen_ty_bindgen_id_211908 { +impl Clone for nsStyleImage__bindgen_ty_bindgen_id_204560 { fn clone(&self) -> Self { *self } } #[test] @@ -9689,7 +9914,7 @@ pub struct nsStyleImageLayers { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_211954 { +pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_204615 { shorthand = 0, color = 1, image = 2, @@ -10115,9 +10340,9 @@ pub struct nsStyleText { pub mTextEmphasisStyle: u8, pub mTextRendering: u8, pub mTabSize: i32, - pub mTextEmphasisColor: nscolor, - pub mWebkitTextFillColor: nscolor, - pub mWebkitTextStrokeColor: nscolor, + pub mTextEmphasisColor: StyleComplexColor, + pub mWebkitTextFillColor: StyleComplexColor, + pub mWebkitTextStrokeColor: StyleComplexColor, pub mWordSpacing: nsStyleCoord, pub mLetterSpacing: nsStyleCoord, pub mLineHeight: nsStyleCoord, @@ -10128,7 +10353,7 @@ pub struct nsStyleText { } #[test] fn bindgen_test_layout_nsStyleText() { - assert_eq!(::std::mem::size_of::() , 136usize); + assert_eq!(::std::mem::size_of::() , 152usize); assert_eq!(::std::mem::align_of::() , 8usize); } impl nsStyleText { @@ -10156,42 +10381,6 @@ impl nsStyleText { self._bitfield_1 &= !(2usize as u8); self._bitfield_1 |= ((val as u8 as u8) << 1u32) & (2usize as u8); } - #[inline] - pub fn mTextEmphasisColorForeground(&self) -> bool { - unsafe { - ::std::mem::transmute(((self._bitfield_1 & (4usize as u8)) >> - 2u32) as u8) - } - } - #[inline] - pub fn set_mTextEmphasisColorForeground(&mut self, val: bool) { - self._bitfield_1 &= !(4usize as u8); - self._bitfield_1 |= ((val as u8 as u8) << 2u32) & (4usize as u8); - } - #[inline] - pub fn mWebkitTextFillColorForeground(&self) -> bool { - unsafe { - ::std::mem::transmute(((self._bitfield_1 & (8usize as u8)) >> - 3u32) as u8) - } - } - #[inline] - pub fn set_mWebkitTextFillColorForeground(&mut self, val: bool) { - self._bitfield_1 &= !(8usize as u8); - self._bitfield_1 |= ((val as u8 as u8) << 3u32) & (8usize as u8); - } - #[inline] - pub fn mWebkitTextStrokeColorForeground(&self) -> bool { - unsafe { - ::std::mem::transmute(((self._bitfield_1 & (16usize as u8)) >> - 4u32) as u8) - } - } - #[inline] - pub fn set_mWebkitTextStrokeColorForeground(&mut self, val: bool) { - self._bitfield_1 &= !(16usize as u8); - self._bitfield_1 |= ((val as u8 as u8) << 4u32) & (16usize as u8); - } } #[repr(C)] #[derive(Debug, Copy)] @@ -10225,7 +10414,7 @@ impl Clone for nsStyleImageOrientation { #[derive(Debug, Copy)] pub struct nsTimingFunction { pub mType: nsTimingFunction_Type, - pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_213713, + pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_206368, } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -10244,56 +10433,56 @@ pub enum nsTimingFunction_Type { pub enum nsTimingFunction_Keyword { Implicit = 0, Explicit = 1, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_213713 { - pub mFunc: __BindgenUnionField, - pub __bindgen_anon_1: __BindgenUnionField, +pub struct nsTimingFunction__bindgen_ty_bindgen_id_206368 { + pub mFunc: __BindgenUnionField, + pub __bindgen_anon_1: __BindgenUnionField, pub bindgen_union_field: [u32; 4usize], } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_213713__bindgen_ty_bindgen_id_213714 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_206368__bindgen_ty_bindgen_id_206369 { pub mX1: f32, pub mY1: f32, pub mX2: f32, pub mY2: f32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_213713__bindgen_ty_bindgen_id_213714() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_206368__bindgen_ty_bindgen_id_206369() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_213713__bindgen_ty_bindgen_id_213714 + nsTimingFunction__bindgen_ty_bindgen_id_206368__bindgen_ty_bindgen_id_206369 { fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_213713__bindgen_ty_bindgen_id_213725 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_206368__bindgen_ty_bindgen_id_206380 { pub mSteps: u32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_213713__bindgen_ty_bindgen_id_213725() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_206368__bindgen_ty_bindgen_id_206380() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_213713__bindgen_ty_bindgen_id_213725 + nsTimingFunction__bindgen_ty_bindgen_id_206368__bindgen_ty_bindgen_id_206380 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_213713() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_206368() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_213713 { +impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_206368 { fn clone(&self) -> Self { *self } } #[test] @@ -10354,13 +10543,13 @@ fn bindgen_test_layout_StyleBasicShape() { #[repr(C)] #[derive(Debug)] pub struct StyleShapeSource { - pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_214096, + pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_206751, pub mType: StyleShapeSourceType, pub mReferenceBox: ReferenceBox, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct StyleShapeSource__bindgen_ty_bindgen_id_214096 { +pub struct StyleShapeSource__bindgen_ty_bindgen_id_206751 { pub mBasicShape: __BindgenUnionField<*mut StyleBasicShape>, pub mURL: __BindgenUnionField<*mut FragmentOrURL>, pub bindgen_union_field: u64, @@ -10412,25 +10601,25 @@ pub enum nsStyleContentType { #[derive(Debug)] pub struct nsStyleContentData { pub mType: nsStyleContentType, - pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_214180, + pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_206835, pub mImageTracked: bool, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleContentData__bindgen_ty_bindgen_id_214180 { +pub struct nsStyleContentData__bindgen_ty_bindgen_id_206835 { pub mString: __BindgenUnionField<*mut u16>, pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mCounters: __BindgenUnionField<*mut nsCSSValue_Array>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_214180() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_206835() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_214180 { +impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_206835 { fn clone(&self) -> Self { *self } } #[test] @@ -10555,25 +10744,25 @@ pub enum nsStyleSVGPaintType { #[repr(C)] #[derive(Debug)] pub struct nsStyleSVGPaint { - pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_214579, + pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_207234, pub mType: nsStyleSVGPaintType, pub mFallbackColor: nscolor, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_214579 { +pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_207234 { pub mColor: __BindgenUnionField, pub mPaintServer: __BindgenUnionField<*mut FragmentOrURL>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_214579() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_207234() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_214579 { +impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_207234 { fn clone(&self) -> Self { *self } } #[test] @@ -10608,7 +10797,7 @@ pub struct nsStyleSVG { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleSVG__bindgen_ty_bindgen_id_214756 { +pub enum nsStyleSVG__bindgen_ty_bindgen_id_207411 { FILL_OPACITY_SOURCE_MASK = 3, STROKE_OPACITY_SOURCE_MASK = 12, STROKE_DASHARRAY_CONTEXT = 16, @@ -10627,23 +10816,23 @@ fn bindgen_test_layout_nsStyleSVG() { pub struct nsStyleFilter { pub mType: i32, pub mFilterParameter: nsStyleCoord, - pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_214822, + pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_207477, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleFilter__bindgen_ty_bindgen_id_214822 { +pub struct nsStyleFilter__bindgen_ty_bindgen_id_207477 { pub mURL: __BindgenUnionField<*mut FragmentOrURL>, pub mDropShadow: __BindgenUnionField<*mut nsCSSShadowArray>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_214822() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_207477() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_214822 { +impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_207477 { fn clone(&self) -> Self { *self } } #[test] diff --git a/ports/geckolib/gecko_bindings/structs_release.rs b/ports/geckolib/gecko_bindings/structs_release.rs index 933032081be..6546bd48da6 100644 --- a/ports/geckolib/gecko_bindings/structs_release.rs +++ b/ports/geckolib/gecko_bindings/structs_release.rs @@ -1437,10 +1437,12 @@ impl Clone for JSCompartment { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug)] +#[derive(Debug, Copy, Clone)] pub struct atomic<_Tp> { - pub _M_i: _Tp, + pub _base: (), + pub _phantom_0: ::std::marker::PhantomData<_Tp>, } +pub type atomic___base = [u8; 0usize]; #[repr(C)] #[derive(Debug, Copy)] pub struct FreePolicy { @@ -1494,8 +1496,8 @@ pub enum JSWhyMagic { #[derive(Debug, Copy)] pub struct jsval_layout { pub asBits: __BindgenUnionField, - pub debugView: __BindgenUnionField, - pub s: __BindgenUnionField, + pub debugView: __BindgenUnionField, + pub s: __BindgenUnionField, pub asDouble: __BindgenUnionField, pub asPtr: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub asWord: __BindgenUnionField, @@ -1504,20 +1506,20 @@ pub struct jsval_layout { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_60705 { +pub struct jsval_layout__bindgen_ty_bindgen_id_58982 { pub _bitfield_1: u64, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_60705() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_58982() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_60705 { +impl Clone for jsval_layout__bindgen_ty_bindgen_id_58982 { fn clone(&self) -> Self { *self } } -impl jsval_layout__bindgen_ty_bindgen_id_60705 { +impl jsval_layout__bindgen_ty_bindgen_id_58982 { #[inline] pub fn payload47(&self) -> u64 { unsafe { @@ -1550,36 +1552,36 @@ impl jsval_layout__bindgen_ty_bindgen_id_60705 { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_60712 { - pub payload: jsval_layout__bindgen_ty_bindgen_id_60712__bindgen_ty_bindgen_id_60713, +pub struct jsval_layout__bindgen_ty_bindgen_id_58989 { + pub payload: jsval_layout__bindgen_ty_bindgen_id_58989__bindgen_ty_bindgen_id_58990, } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_60712__bindgen_ty_bindgen_id_60713 { +pub struct jsval_layout__bindgen_ty_bindgen_id_58989__bindgen_ty_bindgen_id_58990 { pub i32: __BindgenUnionField, pub u32: __BindgenUnionField, pub why: __BindgenUnionField, pub bindgen_union_field: u32, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_60712__bindgen_ty_bindgen_id_60713() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_58989__bindgen_ty_bindgen_id_58990() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - jsval_layout__bindgen_ty_bindgen_id_60712__bindgen_ty_bindgen_id_60713 { + jsval_layout__bindgen_ty_bindgen_id_58989__bindgen_ty_bindgen_id_58990 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_60712() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_58989() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_60712 { +impl Clone for jsval_layout__bindgen_ty_bindgen_id_58989 { fn clone(&self) -> Self { *self } } impl Clone for jsval_layout { @@ -1613,7 +1615,7 @@ pub type nsAString_internal_size_type = u32; pub type nsAString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsAString_internal__bindgen_ty_bindgen_id_62550 { +pub enum nsAString_internal__bindgen_ty_bindgen_id_60814 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1675,12 +1677,12 @@ fn bindgen_test_layout_nsString() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_63160 { +pub struct bindgen_vtable__bindgen_id_61424 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_63160, + pub vtable_: *const bindgen_vtable__bindgen_id_61424, } pub type nsStringComparator_char_type = u16; #[test] @@ -1722,7 +1724,7 @@ pub type nsACString_internal_size_type = u32; pub type nsACString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsACString_internal__bindgen_ty_bindgen_id_64390 { +pub enum nsACString_internal__bindgen_ty_bindgen_id_62654 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1784,12 +1786,12 @@ fn bindgen_test_layout_nsCString() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_64942 { +pub struct bindgen_vtable__bindgen_id_63206 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsCStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_64942, + pub vtable_: *const bindgen_vtable__bindgen_id_63206, } pub type nsCStringComparator_char_type = ::std::os::raw::c_char; #[test] @@ -1801,7 +1803,7 @@ impl Clone for nsCStringComparator { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_65245 { +pub struct bindgen_vtable__bindgen_id_63250 { } /** * Basic component object model interface. Objects which implement @@ -1812,7 +1814,7 @@ pub struct bindgen_vtable__bindgen_id_65245 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsISupports { - pub vtable_: *const bindgen_vtable__bindgen_id_65245, + pub vtable_: *const bindgen_vtable__bindgen_id_63250, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1830,7 +1832,7 @@ impl Clone for nsISupports { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_65528 { +pub struct bindgen_vtable__bindgen_id_63533 { } /** * Participant implementation classes @@ -1838,7 +1840,7 @@ pub struct bindgen_vtable__bindgen_id_65528 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsCycleCollectionParticipant { - pub vtable_: *const bindgen_vtable__bindgen_id_65528, + pub vtable_: *const bindgen_vtable__bindgen_id_63533, pub mMightSkip: bool, } #[test] @@ -2161,7 +2163,7 @@ fn bindgen_test_layout_ErrorResult() { #[derive(Debug)] pub struct TErrorResult { pub mResult: nsresult, - pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_70167, + pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_68153, pub _phantom_0: ::std::marker::PhantomData, } #[repr(C)] @@ -2178,7 +2180,7 @@ pub struct TErrorResult_DOMExceptionInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TErrorResult__bindgen_ty_bindgen_id_70167 { +pub struct TErrorResult__bindgen_ty_bindgen_id_68153 { pub mMessage: __BindgenUnionField<*mut TErrorResult_Message>, pub mJSException: __BindgenUnionField, pub mDOMExceptionInfo: __BindgenUnionField<*mut TErrorResult_DOMExceptionInfo>, @@ -2311,7 +2313,7 @@ impl nsIAtom { } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_70938 { +pub struct bindgen_vtable__bindgen_id_68924 { } /** * Class to store the wrapper for an object. This can only be used with objects @@ -2353,7 +2355,7 @@ pub struct bindgen_vtable__bindgen_id_70938 { #[repr(C)] #[derive(Debug)] pub struct nsWrapperCache { - pub vtable_: *const bindgen_vtable__bindgen_id_70938, + pub vtable_: *const bindgen_vtable__bindgen_id_68924, pub mWrapper: *mut JSObject, pub mFlags: nsWrapperCache_FlagsType, } @@ -2378,9 +2380,23 @@ pub type nsWrapperCache_FlagsType = u32; * NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER). */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_71134 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_69120 { WRAPPER_BIT_PRESERVED = 1, } +#[repr(u32)] +/** + * If this bit is set then the wrapper for the native object is not a DOM + * binding. + */ +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsWrapperCache__bindgen_ty_bindgen_id_69123 { + WRAPPER_IS_NOT_DOM_BINDING = 2, +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsWrapperCache__bindgen_ty_bindgen_id_69126 { + kWrapperFlagsMask = 3, +} #[test] fn bindgen_test_layout_nsWrapperCache() { assert_eq!(::std::mem::size_of::() , 24usize); @@ -2412,6 +2428,78 @@ fn bindgen_test_layout_GlobalObject() { assert_eq!(::std::mem::align_of::() , 8usize); } #[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; +#[repr(C)] +#[derive(Debug, Copy)] +pub struct input_iterator_tag { + pub _address: u8, +} +impl Clone for input_iterator_tag { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct forward_iterator_tag { + pub _address: u8, +} +impl Clone for forward_iterator_tag { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct bidirectional_iterator_tag { + pub _address: u8, +} +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, +} +impl Clone for random_access_iterator_tag { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +pub struct bindgen_vtable__bindgen_id_87797 { +} +/** + * A class of objects that return source code on demand. + * + * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't + * retain the source code (and doesn't do lazy bytecode generation). If we ever + * need the source code, say, in response to a call to Function.prototype. + * toSource or Debugger.Source.prototype.text, then we call the 'load' member + * function of the instance of this class that has hopefully been registered + * with the runtime, passing the code's URL, and hope that it will be able to + * find the source. + */ +#[repr(C)] +#[derive(Debug)] +pub struct SourceHook { + pub vtable_: *const bindgen_vtable__bindgen_id_87797, +} +#[test] +fn bindgen_test_layout_SourceHook() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __bit_const_reference<_Cp> { + pub __seg_: __bit_const_reference___storage_pointer<_Cp>, + pub __mask_: __bit_const_reference___storage_type<_Cp>, +} +pub type __bit_const_reference___storage_type<_Cp> = _Cp; +pub type __bit_const_reference___storage_pointer<_Cp> = _Cp; +#[repr(C)] #[derive(Debug, Copy)] pub struct nsScriptObjectTracer { pub _base: nsCycleCollectionParticipant, @@ -2446,37 +2534,165 @@ fn bindgen_test_layout_nsXPCOMCycleCollectionParticipant() { impl Clone for nsXPCOMCycleCollectionParticipant { fn clone(&self) -> Self { *self } } +pub type PLDHashNumber = u32; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pair<_T1, _T2> { - pub first: _T1, - pub second: _T2, +#[derive(Debug)] +pub struct PLDHashTable { + pub mOps: *const PLDHashTableOps, + pub mHashShift: i16, + pub mEntrySize: u32, + pub mEntryCount: u32, + pub mRemovedCount: u32, + pub mEntryStore: PLDHashTable_EntryStore, } -pub type pair_first_type<_T1> = _T1; -pub type pair_second_type<_T2> = _T2; #[repr(C)] -pub struct bindgen_vtable__bindgen_id_87955 { +#[derive(Debug)] +pub struct PLDHashTable_EntryStore { + pub mEntryStore: *mut ::std::os::raw::c_char, + pub mGeneration: u32, } +#[test] +fn bindgen_test_layout_PLDHashTable_EntryStore() { + assert_eq!(::std::mem::size_of::() , 16usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug)] +pub struct PLDHashTable_Iterator { + pub mTable: *mut PLDHashTable, + pub mStart: *mut ::std::os::raw::c_char, + pub mLimit: *mut ::std::os::raw::c_char, + pub mCurrent: *mut ::std::os::raw::c_char, + pub mNexts: u32, + pub mNextsLimit: u32, + pub mHaveRemoved: bool, +} +#[test] +fn bindgen_test_layout_PLDHashTable_Iterator() { + assert_eq!(::std::mem::size_of::() , 48usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum PLDHashTable_SearchReason { ForSearchOrRemove = 0, ForAdd = 1, } +extern "C" { + #[link_name = "_ZN12PLDHashTable12kMaxCapacityE"] + pub static PLDHashTable_kMaxCapacity: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] + pub static PLDHashTable_kMinCapacity: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] + pub static PLDHashTable_kMaxInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] + pub static PLDHashTable_kDefaultInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable9kHashBitsE"] + pub static PLDHashTable_kHashBits: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] + pub static PLDHashTable_kGoldenRatio: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] + pub static PLDHashTable_kCollisionFlag: PLDHashNumber; +} +#[test] +fn bindgen_test_layout_PLDHashTable() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct PLDHashTableOps { + pub hashKey: PLDHashHashKey, + pub matchEntry: PLDHashMatchEntry, + pub moveEntry: PLDHashMoveEntry, + pub clearEntry: PLDHashClearEntry, + pub initEntry: PLDHashInitEntry, +} +#[test] +fn bindgen_test_layout_PLDHashTableOps() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for PLDHashTableOps { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct PLDHashEntryHdr { + pub mKeyHash: PLDHashNumber, +} +#[test] +fn bindgen_test_layout_PLDHashEntryHdr() { + assert_eq!(::std::mem::size_of::() , 4usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for PLDHashEntryHdr { + fn clone(&self) -> Self { *self } +} +pub type PLDHashHashKey = + ::std::option::Option ::std::os::raw::c_uint>; +pub type PLDHashMatchEntry = + ::std::option::Option bool>; +pub type PLDHashMoveEntry = + ::std::option::Option; +pub type PLDHashClearEntry = + ::std::option::Option; +pub type PLDHashInitEntry = + ::std::option::Option; /** - * A class of objects that return source code on demand. + * hashkey wrapper using T* KeyType * - * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't - * retain the source code (and doesn't do lazy bytecode generation). If we ever - * need the source code, say, in response to a call to Function.prototype. - * toSource or Debugger.Source.prototype.text, then we call the 'load' member - * function of the instance of this class that has hopefully been registered - * with the runtime, passing the code's URL, and hope that it will be able to - * find the source. + * @see nsTHashtable::EntryType for specification */ #[repr(C)] #[derive(Debug)] -pub struct SourceHook { - pub vtable_: *const bindgen_vtable__bindgen_id_87955, +pub struct nsPtrHashKey { + pub _base: PLDHashEntryHdr, + pub mKey: *mut T, +} +pub type nsPtrHashKey_KeyType = *mut T; +pub type nsPtrHashKey_KeyTypePointer = *mut T; +#[repr(i32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsPtrHashKey__bindgen_ty_bindgen_id_98659 { ALLOW_MEMMOVE = 0, } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct nsIRunnable { + pub _base: nsISupports, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nsIRunnable_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, } #[test] -fn bindgen_test_layout_SourceHook() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); +fn bindgen_test_layout_nsIRunnable() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for nsIRunnable { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] @@ -2492,7 +2708,7 @@ pub struct nsIPrincipal_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPrincipal__bindgen_ty_bindgen_id_93396 { +pub enum nsIPrincipal__bindgen_ty_bindgen_id_100676 { APP_STATUS_NOT_INSTALLED = 0, APP_STATUS_INSTALLED = 1, APP_STATUS_PRIVILEGED = 2, @@ -2810,7 +3026,7 @@ pub type nsIDocument_FrameRequestCallbackList = nsTArray>; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDocument__bindgen_ty_bindgen_id_102082 { REQUEST_DISCARD = 1, } +pub enum nsIDocument__bindgen_ty_bindgen_id_109376 { REQUEST_DISCARD = 1, } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsIDocument_DeprecatedOperations { @@ -3501,7 +3717,7 @@ pub struct nsINode { pub mNextSibling: *mut nsIContent, pub mPreviousSibling: *mut nsIContent, pub mFirstChild: *mut nsIContent, - pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_98796, + pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_106075, pub mSlots: *mut nsINode_nsSlots, pub mServoNodeData: UniquePtr>, @@ -3527,7 +3743,7 @@ pub struct nsINode_COMTypeInfo { * Bit-flags to pass (or'ed together) to IsNodeOfType() */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsINode__bindgen_ty_bindgen_id_94940 { +pub enum nsINode__bindgen_ty_bindgen_id_102219 { eCONTENT = 1, eDOCUMENT = 2, eATTRIBUTE = 4, @@ -3542,12 +3758,12 @@ pub enum nsINode__bindgen_ty_bindgen_id_94940 { eFILTER = 2048, } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_95709 { +pub struct bindgen_vtable__bindgen_id_102988 { } #[repr(C)] #[derive(Debug)] pub struct nsINode_nsSlots { - pub vtable_: *const bindgen_vtable__bindgen_id_95709, + pub vtable_: *const bindgen_vtable__bindgen_id_102988, /** * A list of mutation observers */ @@ -3616,19 +3832,19 @@ pub enum nsINode_BooleanFlag { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsINode__bindgen_ty_bindgen_id_98796 { +pub struct nsINode__bindgen_ty_bindgen_id_106075 { pub mPrimaryFrame: __BindgenUnionField<*mut nsIFrame>, pub mSubtreeRoot: __BindgenUnionField<*mut nsINode>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_98796() { - assert_eq!(::std::mem::size_of::() , - 8usize); - assert_eq!(::std::mem::align_of::() +fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_106075() { + assert_eq!(::std::mem::size_of::() + , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsINode__bindgen_ty_bindgen_id_98796 { +impl Clone for nsINode__bindgen_ty_bindgen_id_106075 { fn clone(&self) -> Self { *self } } #[test] @@ -3912,26 +4128,6 @@ impl Clone for nsIVariant { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug, Copy)] -pub struct nsIRunnable { - pub _base: nsISupports, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nsIRunnable_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -#[test] -fn bindgen_test_layout_nsIRunnable() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for nsIRunnable { - fn clone(&self) -> Self { *self } -} -#[repr(C)] #[derive(Debug)] pub struct Runnable { pub _base: nsIRunnable, @@ -3978,7 +4174,7 @@ pub struct nsIDOMNode_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDOMNode__bindgen_ty_bindgen_id_107063 { +pub enum nsIDOMNode__bindgen_ty_bindgen_id_114360 { ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, @@ -3992,6 +4188,16 @@ pub enum nsIDOMNode__bindgen_ty_bindgen_id_107063 { DOCUMENT_FRAGMENT_NODE = 11, NOTATION_NODE = 12, } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIDOMNode__bindgen_ty_bindgen_id_114579 { + DOCUMENT_POSITION_DISCONNECTED = 1, + DOCUMENT_POSITION_PRECEDING = 2, + DOCUMENT_POSITION_FOLLOWING = 4, + DOCUMENT_POSITION_CONTAINS = 8, + DOCUMENT_POSITION_CONTAINED_BY = 16, + DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32, +} #[test] fn bindgen_test_layout_nsIDOMNode() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -4836,242 +5042,6 @@ pub enum Side { eSideBottom = 2, eSideLeft = 3, } -#[repr(C)] -#[derive(Debug)] -pub struct CallbackFunction { - pub _base: CallbackObject, -} -#[test] -fn bindgen_test_layout_CallbackFunction() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject { - pub _base: nsISupports, - pub mRefCnt: nsCycleCollectingAutoRefCnt, - pub _mOwningThread: nsAutoOwningThread, - pub mCallback: u64, - pub mCreationStack: u64, - pub mIncumbentGlobal: nsCOMPtr, - pub mIncumbentJSGlobal: u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CallbackObject_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -pub type CallbackObject_HasThreadSafeRefCnt = FalseType; -#[repr(C)] -#[derive(Debug, Copy)] -pub struct CallbackObject_cycleCollection { - pub _base: nsXPCOMCycleCollectionParticipant, -} -#[test] -fn bindgen_test_layout_CallbackObject_cycleCollection() { - assert_eq!(::std::mem::size_of::() , - 16usize); - assert_eq!(::std::mem::align_of::() , - 8usize); -} -impl Clone for CallbackObject_cycleCollection { - fn clone(&self) -> Self { *self } -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum CallbackObject_ExceptionHandling { - eReportExceptions = 0, - eRethrowContentExceptions = 1, - eRethrowExceptions = 2, -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct CallbackObject_FastCallbackConstructor { - pub _address: u8, -} -#[test] -fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { - assert_eq!(::std::mem::size_of::() - , 1usize); - assert_eq!(::std::mem::align_of::() - , 1usize); -} -impl Clone for CallbackObject_FastCallbackConstructor { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject_CallSetup { - pub mCx: *mut JSContext, - pub mCompartment: *mut JSCompartment, - pub mAutoEntryScript: [u64; 19usize], - pub mAutoIncumbentScript: [u64; 5usize], - pub mRootedCallable: [u64; 4usize], - pub mAsyncStack: [u64; 4usize], - pub mAsyncStackSetter: [u64; 7usize], - pub mAc: [u64; 3usize], - pub mErrorResult: *mut ErrorResult, - pub mExceptionHandling: CallbackObject_ExceptionHandling, - pub mIsMainThread: bool, -} -#[test] -fn bindgen_test_layout_CallbackObject_CallSetup() { - assert_eq!(::std::mem::size_of::() , 368usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -extern "C" { - #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] - pub static mut CallbackObject__cycleCollectorGlobal: - CallbackObject_cycleCollection; -} -#[test] -fn bindgen_test_layout_CallbackObject() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -pub type PLDHashNumber = u32; -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable { - pub mOps: *const PLDHashTableOps, - pub mHashShift: i16, - pub mEntrySize: u32, - pub mEntryCount: u32, - pub mRemovedCount: u32, - pub mEntryStore: PLDHashTable_EntryStore, -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_EntryStore { - pub mEntryStore: *mut ::std::os::raw::c_char, - pub mGeneration: u32, -} -#[test] -fn bindgen_test_layout_PLDHashTable_EntryStore() { - assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_Iterator { - pub mTable: *mut PLDHashTable, - pub mStart: *mut ::std::os::raw::c_char, - pub mLimit: *mut ::std::os::raw::c_char, - pub mCurrent: *mut ::std::os::raw::c_char, - pub mNexts: u32, - pub mNextsLimit: u32, - pub mHaveRemoved: bool, -} -#[test] -fn bindgen_test_layout_PLDHashTable_Iterator() { - assert_eq!(::std::mem::size_of::() , 48usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum PLDHashTable_SearchReason { ForSearchOrRemove = 0, ForAdd = 1, } -extern "C" { - #[link_name = "_ZN12PLDHashTable12kMaxCapacityE"] - pub static PLDHashTable_kMaxCapacity: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] - pub static PLDHashTable_kMinCapacity: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] - pub static PLDHashTable_kMaxInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] - pub static PLDHashTable_kDefaultInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable9kHashBitsE"] - pub static PLDHashTable_kHashBits: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] - pub static PLDHashTable_kGoldenRatio: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] - pub static PLDHashTable_kCollisionFlag: PLDHashNumber; -} -#[test] -fn bindgen_test_layout_PLDHashTable() { - assert_eq!(::std::mem::size_of::() , 40usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashTableOps { - pub hashKey: PLDHashHashKey, - pub matchEntry: PLDHashMatchEntry, - pub moveEntry: PLDHashMoveEntry, - pub clearEntry: PLDHashClearEntry, - pub initEntry: PLDHashInitEntry, -} -#[test] -fn bindgen_test_layout_PLDHashTableOps() { - assert_eq!(::std::mem::size_of::() , 40usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for PLDHashTableOps { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashEntryHdr { - pub mKeyHash: PLDHashNumber, -} -#[test] -fn bindgen_test_layout_PLDHashEntryHdr() { - assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for PLDHashEntryHdr { - fn clone(&self) -> Self { *self } -} -pub type PLDHashHashKey = - ::std::option::Option ::std::os::raw::c_uint>; -pub type PLDHashMatchEntry = - ::std::option::Option bool>; -pub type PLDHashMoveEntry = - ::std::option::Option; -pub type PLDHashClearEntry = - ::std::option::Option; -pub type PLDHashInitEntry = - ::std::option::Option; -/** - * hashkey wrapper using T* KeyType - * - * @see nsTHashtable::EntryType for specification - */ -#[repr(C)] -#[derive(Debug)] -pub struct nsPtrHashKey { - pub _base: PLDHashEntryHdr, - pub mKey: *mut T, -} -pub type nsPtrHashKey_KeyType = *mut T; -pub type nsPtrHashKey_KeyTypePointer = *mut T; -#[repr(i32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPtrHashKey__bindgen_ty_bindgen_id_111637 { ALLOW_MEMMOVE = 0, } /** * A node of content in a document's content model. This interface * is supported by all content objects. @@ -5091,11 +5061,17 @@ pub struct nsIContent_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIContent__bindgen_ty_bindgen_id_112977 { +pub enum nsIContent__bindgen_ty_bindgen_id_118470 { eAllChildren = 0, eAllButXBL = 1, eSkipPlaceholderContent = 2, } +#[repr(i32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIContent__bindgen_ty_bindgen_id_118706 { + ATTR_MISSING = -1, + ATTR_VALUE_NO_MATCH = -2, +} /** * Check whether this content node's given attribute has one of a given * list of values. If there is a match, we return the index in the list @@ -5298,7 +5274,7 @@ pub struct FragmentOrElement_nsDOMSlots { * @see FragmentOrElement::GetAttributes */ pub mAttributeMap: RefPtr, - pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_114307, + pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119801, /** * An object implementing the .children property for this element. */ @@ -5335,7 +5311,7 @@ pub struct FragmentOrElement_nsDOMSlots { } #[repr(C)] #[derive(Debug, Copy)] -pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_114307 { +pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119801 { /** * The nearest enclosing content node with a binding that created us. * @see FragmentOrElement::GetBindingParent @@ -5348,13 +5324,13 @@ pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_114307 { pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_114307() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119801() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_114307 { +impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_119801 { fn clone(&self) -> Self { *self } } #[test] @@ -5405,6 +5381,92 @@ impl Clone for PrefSetting { fn clone(&self) -> Self { *self } } #[repr(C)] +#[derive(Debug)] +pub struct CallbackObject { + pub _base: nsISupports, + pub mRefCnt: nsCycleCollectingAutoRefCnt, + pub _mOwningThread: nsAutoOwningThread, + pub mCallback: u64, + pub mCreationStack: u64, + pub mIncumbentGlobal: nsCOMPtr, + pub mIncumbentJSGlobal: u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CallbackObject_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, +} +pub type CallbackObject_HasThreadSafeRefCnt = FalseType; +#[repr(C)] +#[derive(Debug, Copy)] +pub struct CallbackObject_cycleCollection { + pub _base: nsXPCOMCycleCollectionParticipant, +} +#[test] +fn bindgen_test_layout_CallbackObject_cycleCollection() { + assert_eq!(::std::mem::size_of::() , + 16usize); + assert_eq!(::std::mem::align_of::() , + 8usize); +} +impl Clone for CallbackObject_cycleCollection { + fn clone(&self) -> Self { *self } +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum CallbackObject_ExceptionHandling { + eReportExceptions = 0, + eRethrowContentExceptions = 1, + eRethrowExceptions = 2, +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct CallbackObject_FastCallbackConstructor { + pub _address: u8, +} +#[test] +fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { + assert_eq!(::std::mem::size_of::() + , 1usize); + assert_eq!(::std::mem::align_of::() + , 1usize); +} +impl Clone for CallbackObject_FastCallbackConstructor { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct CallbackObject_CallSetup { + pub mCx: *mut JSContext, + pub mCompartment: *mut JSCompartment, + pub mAutoEntryScript: [u64; 19usize], + pub mAutoIncumbentScript: [u64; 5usize], + pub mRootedCallable: [u64; 4usize], + pub mAsyncStack: [u64; 4usize], + pub mAsyncStackSetter: [u64; 7usize], + pub mAc: [u64; 3usize], + pub mErrorResult: *mut ErrorResult, + pub mExceptionHandling: CallbackObject_ExceptionHandling, + pub mIsMainThread: bool, +} +#[test] +fn bindgen_test_layout_CallbackObject_CallSetup() { + assert_eq!(::std::mem::size_of::() , 368usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +extern "C" { + #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] + pub static mut CallbackObject__cycleCollectorGlobal: + CallbackObject_cycleCollection; +} +#[test] +fn bindgen_test_layout_CallbackObject() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct nsIChannel { pub _base: nsIRequest, @@ -5418,7 +5480,7 @@ pub struct nsIChannel_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIChannel__bindgen_ty_bindgen_id_129733 { +pub enum nsIChannel__bindgen_ty_bindgen_id_131594 { LOAD_DOCUMENT_URI = 65536, LOAD_RETARGETED_DOCUMENT_URI = 131072, LOAD_REPLACE = 262144, @@ -5430,6 +5492,12 @@ pub enum nsIChannel__bindgen_ty_bindgen_id_129733 { LOAD_EXPLICIT_CREDENTIALS = 16777216, LOAD_BYPASS_SERVICE_WORKER = 33554432, } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIChannel__bindgen_ty_bindgen_id_131614 { + DISPOSITION_INLINE = 0, + DISPOSITION_ATTACHMENT = 1, +} #[test] fn bindgen_test_layout_nsIChannel() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -5452,7 +5520,7 @@ pub struct nsIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIRequest__bindgen_ty_bindgen_id_129571 { +pub enum nsIRequest__bindgen_ty_bindgen_id_131432 { LOAD_REQUESTMASK = 65535, LOAD_NORMAL = 0, LOAD_BACKGROUND = 1, @@ -6005,13 +6073,13 @@ pub enum nsIPresShell_ReflowRootHandling { eNoPositionOrSizeChange = 1, eInferFromBitToAdd = 2, } -pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_148842 = - nsIPresShell__bindgen_ty_bindgen_id_148842::SCROLL_TOP; -pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_148842 = - nsIPresShell__bindgen_ty_bindgen_id_148842::SCROLL_BOTTOM; +pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_149423 = + nsIPresShell__bindgen_ty_bindgen_id_149423::SCROLL_TOP; +pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_149423 = + nsIPresShell__bindgen_ty_bindgen_id_149423::SCROLL_BOTTOM; #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_148842 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_149423 { SCROLL_TOP = 0, SCROLL_BOTTOM = 100, SCROLL_CENTER = 50, @@ -6037,6 +6105,80 @@ fn bindgen_test_layout_nsIPresShell_ScrollAxis() { impl Clone for nsIPresShell_ScrollAxis { fn clone(&self) -> Self { *self } } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_149454 { + SCROLL_FIRST_ANCESTOR_ONLY = 1, + SCROLL_OVERFLOW_HIDDEN = 2, + SCROLL_NO_PARENT_FRAMES = 4, + SCROLL_SMOOTH = 8, + SCROLL_SMOOTH_AUTO = 16, +} +#[repr(u32)] +/** + * Render the document into an arbitrary gfxContext + * Designed for getting a picture of a document or a piece of a document + * Note that callers will generally want to call FlushPendingNotifications + * to get an up-to-date view of the document + * @param aRect is the region to capture into the offscreen buffer, in the + * root frame's coordinate system (if aIgnoreViewportScrolling is false) + * or in the root scrolled frame's coordinate system + * (if aIgnoreViewportScrolling is true). The coordinates are in appunits. + * @param aFlags see below; + * set RENDER_IS_UNTRUSTED if the contents may be passed to malicious + * agents. E.g. we might choose not to paint the contents of sensitive widgets + * such as the file name in a file upload widget, and we might choose not + * to paint themes. + * set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore + * clipping and scrollbar painting due to scrolling in the viewport + * set RENDER_CARET to draw the caret if one would be visible + * (by default the caret is never drawn) + * set RENDER_USE_LAYER_MANAGER to force rendering to go through + * the layer manager for the window. This may be unexpectedly slow + * (if the layer manager must read back data from the GPU) or low-quality + * (if the layer manager reads back pixel data and scales it + * instead of rendering using the appropriate scaling). It may also + * slow everything down if the area rendered does not correspond to the + * normal visible area of the window. + * set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously + * decoded during rendering. + * (by default images decode synchronously with RenderDocument) + * set RENDER_DOCUMENT_RELATIVE to render the document as if there has been + * no scrolling and interpret |aRect| relative to the document instead of the + * CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set + * or the document is in ignore viewport scrolling mode + * (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling). + * @param aBackgroundColor a background color to render onto + * @param aRenderedContext the gfxContext to render to. We render so that + * one CSS pixel in the source document is rendered to one unit in the current + * transform. + */ +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_149822 { + RENDER_IS_UNTRUSTED = 1, + RENDER_IGNORE_VIEWPORT_SCROLLING = 2, + RENDER_CARET = 4, + RENDER_USE_WIDGET_LAYERS = 8, + RENDER_ASYNC_DECODE_IMAGES = 16, + RENDER_DOCUMENT_RELATIVE = 32, + RENDER_DRAWWINDOW_NOT_FLUSHING = 64, +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_149840 { + RENDER_IS_IMAGE = 256, + RENDER_AUTO_SCALE = 128, +} +#[repr(u32)] +/** + * Add a solid color item to the bottom of aList with frame aFrame and bounds + * aBounds. Checks first if this needs to be done by checking if aFrame is a + * canvas frame (if the FORCE_DRAW flag is passed then this check is skipped). + * aBackstopColor is composed behind the background color of the canvas, it is + * transparent by default. + */ +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsIPresShell__bindgen_ty_bindgen_id_149956 { FORCE_DRAW = 1, } #[repr(C)] #[derive(Debug)] pub struct nsIPresShell_PointerCaptureInfo { @@ -6431,67 +6573,67 @@ pub struct DOMPointInit { impl Clone for DOMPointInit { fn clone(&self) -> Self { *self } } -pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_LISTENERMANAGER; -pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_PROPERTIES; -pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_IS_ANONYMOUS_ROOT; -pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; -pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_IS_NATIVE_ANONYMOUS_ROOT; -pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_FORCE_XBL_BINDINGS; -pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_MAY_BE_IN_BINDING_MNGR; -pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_IS_EDITABLE; -pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_MAY_HAVE_CLASS; -pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_IS_IN_SHADOW_TREE; -pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_EMPTY_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_SLOW_SELECTOR; -pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_EDGE_CHILD_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_150829 +pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_LISTENERMANAGER; +pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_PROPERTIES; +pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_IS_ANONYMOUS_ROOT; +pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; +pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_IS_NATIVE_ANONYMOUS_ROOT; +pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_FORCE_XBL_BINDINGS; +pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_MAY_BE_IN_BINDING_MNGR; +pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_IS_EDITABLE; +pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_MAY_HAVE_CLASS; +pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_IS_IN_SHADOW_TREE; +pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_EMPTY_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_SLOW_SELECTOR; +pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_EDGE_CHILD_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_151358 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; -pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_ALL_SELECTOR_FLAGS; -pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_NEEDS_FRAME; -pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_DESCENDANTS_NEED_FRAMES; -pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_ACCESSKEY; -pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_DIRECTION_RTL; -pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_HAS_DIRECTION_LTR; -pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_ALL_DIRECTION_FLAGS; -pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_CHROME_ONLY_ACCESS; -pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; -pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_150829 + _bindgen_ty_bindgen_id_151358::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; +pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_ALL_SELECTOR_FLAGS; +pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_NEEDS_FRAME; +pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_DESCENDANTS_NEED_FRAMES; +pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_ACCESSKEY; +pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_DIRECTION_RTL; +pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_HAS_DIRECTION_LTR; +pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_ALL_DIRECTION_FLAGS; +pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_CHROME_ONLY_ACCESS; +pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; +pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_151358 = - _bindgen_ty_bindgen_id_150829::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_150829 = - _bindgen_ty_bindgen_id_150829::NODE_TYPE_SPECIFIC_BITS_OFFSET; + _bindgen_ty_bindgen_id_151358::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_151358 = + _bindgen_ty_bindgen_id_151358::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum _bindgen_ty_bindgen_id_150829 { +pub enum _bindgen_ty_bindgen_id_151358 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -6549,7 +6691,7 @@ pub struct nsITimer_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsITimer__bindgen_ty_bindgen_id_167235 { +pub enum nsITimer__bindgen_ty_bindgen_id_168071 { TYPE_ONE_SHOT = 0, TYPE_REPEATING_SLACK = 1, TYPE_REPEATING_PRECISE = 2, @@ -6575,7 +6717,7 @@ pub struct nsExpirationState { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsExpirationState__bindgen_ty_bindgen_id_167711 { +pub enum nsExpirationState__bindgen_ty_bindgen_id_168547 { NOT_TRACKED = 15, MAX_INDEX_IN_GENERATION = 268435455, } @@ -6649,7 +6791,7 @@ pub struct imgIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgIRequest__bindgen_ty_bindgen_id_169133 { +pub enum imgIRequest__bindgen_ty_bindgen_id_169139 { STATUS_NONE = 0, STATUS_SIZE_AVAILABLE = 1, STATUS_LOAD_COMPLETE = 2, @@ -6659,6 +6801,13 @@ pub enum imgIRequest__bindgen_ty_bindgen_id_169133 { STATUS_IS_ANIMATED = 32, STATUS_HAS_TRANSPARENCY = 64, } +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum imgIRequest__bindgen_ty_bindgen_id_169219 { + CORS_NONE = 1, + CORS_ANONYMOUS = 2, + CORS_USE_CREDENTIALS = 3, +} #[test] fn bindgen_test_layout_imgIRequest() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -6867,6 +7016,16 @@ fn bindgen_test_layout_FrameRequestCallback() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] +#[derive(Debug)] +pub struct CallbackFunction { + pub _base: CallbackObject, +} +#[test] +fn bindgen_test_layout_CallbackFunction() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct FullscreenRequest { pub _address: u8, @@ -7153,7 +7312,7 @@ pub type nsPresArena_FreeList_KeyType = u32; pub type nsPresArena_FreeList_KeyTypePointer = *const ::std::os::raw::c_void; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_189570 { +pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_181697 { ALLOW_MEMMOVE = 0, } #[test] @@ -7180,7 +7339,7 @@ pub struct imgINotificationObserver_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgINotificationObserver__bindgen_ty_bindgen_id_189717 { +pub enum imgINotificationObserver__bindgen_ty_bindgen_id_181844 { SIZE_AVAILABLE = 1, FRAME_UPDATE = 2, FRAME_COMPLETE = 3, @@ -7429,7 +7588,7 @@ pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyTypePointer = *const gfxFontFeatureValueSet_FeatureValueHashKey; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_190955 +pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_183082 { ALLOW_MEMMOVE = 1, } @@ -7825,23 +7984,23 @@ pub enum nsStyleUnit { } #[repr(C)] #[derive(Debug, Copy)] -pub struct _bindgen_ty_bindgen_id_191700 { +pub struct _bindgen_ty_bindgen_id_183835 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mPointer: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout__bindgen_ty_bindgen_id_191700() { - assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_191700>() , +fn bindgen_test_layout__bindgen_ty_bindgen_id_183835() { + assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_183835>() , 8usize); - assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_191700>() , + assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_183835>() , 8usize); } -impl Clone for _bindgen_ty_bindgen_id_191700 { +impl Clone for _bindgen_ty_bindgen_id_183835 { fn clone(&self) -> Self { *self } } -pub type nsStyleUnion = _bindgen_ty_bindgen_id_191700; +pub type nsStyleUnion = _bindgen_ty_bindgen_id_183835; /** * Class that hold a single size specification used by the style * system. The size specification consists of two parts -- a number @@ -8286,6 +8445,27 @@ fn bindgen_test_layout_CSSVariableValues() { assert_eq!(::std::mem::size_of::() , 48usize); assert_eq!(::std::mem::align_of::() , 8usize); } +/** + * 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. + */ +#[repr(C)] +#[derive(Debug, Copy)] +pub struct StyleComplexColor { + pub mColor: nscolor, + pub mForegroundRatio: u8, +} +#[test] +fn bindgen_test_layout_StyleComplexColor() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for StyleComplexColor { + fn clone(&self) -> Self { *self } +} pub const nsCSSPropertyID_eCSSProperty_COUNT_DUMMY: nsCSSPropertyID = nsCSSPropertyID::eCSSProperty_z_index; pub const nsCSSPropertyID_eCSSProperty_all: nsCSSPropertyID = @@ -8866,7 +9046,7 @@ fn bindgen_test_layout_imgRequestProxy() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_200558 { +pub struct bindgen_vtable__bindgen_id_193191 { } /** * An interface for observing changes to image state, as reported by @@ -8883,7 +9063,7 @@ pub struct bindgen_vtable__bindgen_id_200558 { #[repr(C)] #[derive(Debug)] pub struct IProgressObserver { - pub vtable_: *const bindgen_vtable__bindgen_id_200558, + pub vtable_: *const bindgen_vtable__bindgen_id_193191, pub _base: u64, } #[test] @@ -8905,7 +9085,7 @@ pub struct nsISupportsPriority_COMTypeInfo { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsISupportsPriority__bindgen_ty_bindgen_id_200634 { +pub enum nsISupportsPriority__bindgen_ty_bindgen_id_193267 { PRIORITY_HIGHEST = -20, PRIORITY_HIGH = -10, PRIORITY_NORMAL = 0, @@ -9002,6 +9182,49 @@ fn bindgen_test_layout_FontFamilyListRefCnt() { assert_eq!(::std::mem::size_of::() , 32usize); assert_eq!(::std::mem::align_of::() , 8usize); } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct RGBAColorData { + pub mR: f32, + pub mG: f32, + pub mB: f32, + pub mA: f32, +} +#[test] +fn bindgen_test_layout_RGBAColorData() { + assert_eq!(::std::mem::size_of::() , 16usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for RGBAColorData { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct ComplexColorData { + pub mColor: RGBAColorData, + pub mForegroundRatio: f32, +} +#[test] +fn bindgen_test_layout_ComplexColorData() { + assert_eq!(::std::mem::size_of::() , 20usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for ComplexColorData { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct ComplexColorValue { + pub _base: ComplexColorData, + pub mRefCnt: nsAutoRefCnt, + pub _mOwningThread: nsAutoOwningThread, +} +pub type ComplexColorValue_HasThreadSafeRefCnt = FalseType; +#[test] +fn bindgen_test_layout_ComplexColorValue() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSUnit { @@ -9062,6 +9285,7 @@ pub enum nsCSSUnit { eCSSUnit_PercentageRGBAColor = 88, eCSSUnit_HSLColor = 89, eCSSUnit_HSLAColor = 90, + eCSSUnit_ComplexColor = 91, eCSSUnit_Percent = 100, eCSSUnit_Number = 101, eCSSUnit_PhysicalMillimeter = 200, @@ -9296,7 +9520,7 @@ fn bindgen_test_layout_nsCSSValueFloatColor() { #[derive(Debug)] pub struct nsCSSValue { pub mUnit: nsCSSUnit, - pub mValue: nsCSSValue__bindgen_ty_bindgen_id_203528, + pub mValue: nsCSSValue__bindgen_ty_bindgen_id_196262, } #[repr(C)] #[derive(Debug)] @@ -9312,7 +9536,7 @@ fn bindgen_test_layout_nsCSSValue_Array() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsCSSValue__bindgen_ty_bindgen_id_203528 { +pub struct nsCSSValue__bindgen_ty_bindgen_id_196262 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mString: __BindgenUnionField<*mut nsStringBuffer>, @@ -9333,16 +9557,17 @@ pub struct nsCSSValue__bindgen_ty_bindgen_id_203528 { pub mPairListDependent: __BindgenUnionField<*mut nsCSSValuePairList>, pub mFloatColor: __BindgenUnionField<*mut nsCSSValueFloatColor>, pub mFontFamilyList: __BindgenUnionField<*mut FontFamilyListRefCnt>, + pub mComplexColor: __BindgenUnionField<*mut ComplexColorValue>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_203528() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_196262() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsCSSValue__bindgen_ty_bindgen_id_203528 { +impl Clone for nsCSSValue__bindgen_ty_bindgen_id_196262 { fn clone(&self) -> Self { *self } } #[test] @@ -9363,12 +9588,12 @@ fn bindgen_test_layout_nsCSSValueGradientStop() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_203735 { +pub struct bindgen_vtable__bindgen_id_196470 { } #[repr(C)] #[derive(Debug, Copy)] pub struct CounterStyle { - pub vtable_: *const bindgen_vtable__bindgen_id_203735, + pub vtable_: *const bindgen_vtable__bindgen_id_196470, pub mStyle: i32, } #[test] @@ -9565,25 +9790,25 @@ pub struct nsStyleImage { pub mCachedBIData: UniquePtr>, pub mType: nsStyleImageType, - pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_205690, + pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_198427, pub mCropRect: UniquePtr>, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleImage__bindgen_ty_bindgen_id_205690 { +pub struct nsStyleImage__bindgen_ty_bindgen_id_198427 { pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mGradient: __BindgenUnionField<*mut nsStyleGradient>, pub mElementId: __BindgenUnionField<*mut u16>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_205690() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_198427() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleImage__bindgen_ty_bindgen_id_205690 { +impl Clone for nsStyleImage__bindgen_ty_bindgen_id_198427 { fn clone(&self) -> Self { *self } } #[test] @@ -9634,7 +9859,7 @@ pub struct nsStyleImageLayers { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_205734 { +pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_198480 { shorthand = 0, color = 1, image = 2, @@ -10060,9 +10285,9 @@ pub struct nsStyleText { pub mTextEmphasisStyle: u8, pub mTextRendering: u8, pub mTabSize: i32, - pub mTextEmphasisColor: nscolor, - pub mWebkitTextFillColor: nscolor, - pub mWebkitTextStrokeColor: nscolor, + pub mTextEmphasisColor: StyleComplexColor, + pub mWebkitTextFillColor: StyleComplexColor, + pub mWebkitTextStrokeColor: StyleComplexColor, pub mWordSpacing: nsStyleCoord, pub mLetterSpacing: nsStyleCoord, pub mLineHeight: nsStyleCoord, @@ -10073,7 +10298,7 @@ pub struct nsStyleText { } #[test] fn bindgen_test_layout_nsStyleText() { - assert_eq!(::std::mem::size_of::() , 136usize); + assert_eq!(::std::mem::size_of::() , 152usize); assert_eq!(::std::mem::align_of::() , 8usize); } impl nsStyleText { @@ -10101,42 +10326,6 @@ impl nsStyleText { self._bitfield_1 &= !(2usize as u8); self._bitfield_1 |= ((val as u8 as u8) << 1u32) & (2usize as u8); } - #[inline] - pub fn mTextEmphasisColorForeground(&self) -> bool { - unsafe { - ::std::mem::transmute(((self._bitfield_1 & (4usize as u8)) >> - 2u32) as u8) - } - } - #[inline] - pub fn set_mTextEmphasisColorForeground(&mut self, val: bool) { - self._bitfield_1 &= !(4usize as u8); - self._bitfield_1 |= ((val as u8 as u8) << 2u32) & (4usize as u8); - } - #[inline] - pub fn mWebkitTextFillColorForeground(&self) -> bool { - unsafe { - ::std::mem::transmute(((self._bitfield_1 & (8usize as u8)) >> - 3u32) as u8) - } - } - #[inline] - pub fn set_mWebkitTextFillColorForeground(&mut self, val: bool) { - self._bitfield_1 &= !(8usize as u8); - self._bitfield_1 |= ((val as u8 as u8) << 3u32) & (8usize as u8); - } - #[inline] - pub fn mWebkitTextStrokeColorForeground(&self) -> bool { - unsafe { - ::std::mem::transmute(((self._bitfield_1 & (16usize as u8)) >> - 4u32) as u8) - } - } - #[inline] - pub fn set_mWebkitTextStrokeColorForeground(&mut self, val: bool) { - self._bitfield_1 &= !(16usize as u8); - self._bitfield_1 |= ((val as u8 as u8) << 4u32) & (16usize as u8); - } } #[repr(C)] #[derive(Debug, Copy)] @@ -10170,7 +10359,7 @@ impl Clone for nsStyleImageOrientation { #[derive(Debug, Copy)] pub struct nsTimingFunction { pub mType: nsTimingFunction_Type, - pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_207493, + pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_200233, } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -10189,56 +10378,56 @@ pub enum nsTimingFunction_Type { pub enum nsTimingFunction_Keyword { Implicit = 0, Explicit = 1, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_207493 { - pub mFunc: __BindgenUnionField, - pub __bindgen_anon_1: __BindgenUnionField, +pub struct nsTimingFunction__bindgen_ty_bindgen_id_200233 { + pub mFunc: __BindgenUnionField, + pub __bindgen_anon_1: __BindgenUnionField, pub bindgen_union_field: [u32; 4usize], } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_207493__bindgen_ty_bindgen_id_207494 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_200233__bindgen_ty_bindgen_id_200234 { pub mX1: f32, pub mY1: f32, pub mX2: f32, pub mY2: f32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_207493__bindgen_ty_bindgen_id_207494() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_200233__bindgen_ty_bindgen_id_200234() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_207493__bindgen_ty_bindgen_id_207494 + nsTimingFunction__bindgen_ty_bindgen_id_200233__bindgen_ty_bindgen_id_200234 { fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_207493__bindgen_ty_bindgen_id_207505 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_200233__bindgen_ty_bindgen_id_200245 { pub mSteps: u32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_207493__bindgen_ty_bindgen_id_207505() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_200233__bindgen_ty_bindgen_id_200245() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_207493__bindgen_ty_bindgen_id_207505 + nsTimingFunction__bindgen_ty_bindgen_id_200233__bindgen_ty_bindgen_id_200245 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_207493() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_200233() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_207493 { +impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_200233 { fn clone(&self) -> Self { *self } } #[test] @@ -10299,13 +10488,13 @@ fn bindgen_test_layout_StyleBasicShape() { #[repr(C)] #[derive(Debug)] pub struct StyleShapeSource { - pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_207876, + pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_200616, pub mType: StyleShapeSourceType, pub mReferenceBox: ReferenceBox, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct StyleShapeSource__bindgen_ty_bindgen_id_207876 { +pub struct StyleShapeSource__bindgen_ty_bindgen_id_200616 { pub mBasicShape: __BindgenUnionField<*mut StyleBasicShape>, pub mURL: __BindgenUnionField<*mut FragmentOrURL>, pub bindgen_union_field: u64, @@ -10357,24 +10546,24 @@ pub enum nsStyleContentType { #[derive(Debug)] pub struct nsStyleContentData { pub mType: nsStyleContentType, - pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_207960, + pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_200700, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleContentData__bindgen_ty_bindgen_id_207960 { +pub struct nsStyleContentData__bindgen_ty_bindgen_id_200700 { pub mString: __BindgenUnionField<*mut u16>, pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mCounters: __BindgenUnionField<*mut nsCSSValue_Array>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_207960() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_200700() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_207960 { +impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_200700 { fn clone(&self) -> Self { *self } } #[test] @@ -10499,25 +10688,25 @@ pub enum nsStyleSVGPaintType { #[repr(C)] #[derive(Debug)] pub struct nsStyleSVGPaint { - pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_208357, + pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_201097, pub mType: nsStyleSVGPaintType, pub mFallbackColor: nscolor, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_208357 { +pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_201097 { pub mColor: __BindgenUnionField, pub mPaintServer: __BindgenUnionField<*mut FragmentOrURL>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_208357() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_201097() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_208357 { +impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_201097 { fn clone(&self) -> Self { *self } } #[test] @@ -10552,7 +10741,7 @@ pub struct nsStyleSVG { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleSVG__bindgen_ty_bindgen_id_208534 { +pub enum nsStyleSVG__bindgen_ty_bindgen_id_201274 { FILL_OPACITY_SOURCE_MASK = 3, STROKE_OPACITY_SOURCE_MASK = 12, STROKE_DASHARRAY_CONTEXT = 16, @@ -10571,23 +10760,23 @@ fn bindgen_test_layout_nsStyleSVG() { pub struct nsStyleFilter { pub mType: i32, pub mFilterParameter: nsStyleCoord, - pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_208600, + pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_201340, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleFilter__bindgen_ty_bindgen_id_208600 { +pub struct nsStyleFilter__bindgen_ty_bindgen_id_201340 { pub mURL: __BindgenUnionField<*mut FragmentOrURL>, pub mDropShadow: __BindgenUnionField<*mut nsCSSShadowArray>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_208600() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_201340() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_208600 { +impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_201340 { fn clone(&self) -> Self { *self } } #[test] diff --git a/ports/geckolib/string_cache/atom_macro.rs b/ports/geckolib/string_cache/atom_macro.rs index 9792eec6f7d..9ecbdc68bf2 100644 --- a/ports/geckolib/string_cache/atom_macro.rs +++ b/ports/geckolib/string_cache/atom_macro.rs @@ -486,6 +486,8 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_curpos: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms7currentE"] pub static nsGkAtoms_current: *mut nsIAtom; + #[link_name = "_ZN9nsGkAtoms12cutoutregionE"] + pub static nsGkAtoms_cutoutregion: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms6cyclerE"] pub static nsGkAtoms_cycler: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms4dataE"] @@ -4100,6 +4102,10 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_onencrypted: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms9encryptedE"] pub static nsGkAtoms_encrypted: *mut nsIAtom; + #[link_name = "_ZN9nsGkAtoms15onwaitingforkeyE"] + pub static nsGkAtoms_onwaitingforkey: *mut nsIAtom; + #[link_name = "_ZN9nsGkAtoms19onkeystatuseschangeE"] + pub static nsGkAtoms_onkeystatuseschange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms13onremovetrackE"] pub static nsGkAtoms_onremovetrack: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms9loadstartE"] @@ -4320,8 +4326,6 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_windows_default_theme: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms18mac_graphite_themeE"] pub static nsGkAtoms_mac_graphite_theme: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms14mac_lion_themeE"] - pub static nsGkAtoms_mac_lion_theme: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms18mac_yosemite_themeE"] pub static nsGkAtoms_mac_yosemite_theme: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms18windows_compositorE"] @@ -4376,8 +4380,6 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms__moz_windows_default_theme: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms23_moz_mac_graphite_themeE"] pub static nsGkAtoms__moz_mac_graphite_theme: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms19_moz_mac_lion_themeE"] - pub static nsGkAtoms__moz_mac_lion_theme: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms23_moz_mac_yosemite_themeE"] pub static nsGkAtoms__moz_mac_yosemite_theme: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms23_moz_windows_compositorE"] @@ -5405,6 +5407,8 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_curpos: *mut nsIAtom; #[link_name = "?current@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_current: *mut nsIAtom; + #[link_name = "?cutoutregion@nsGkAtoms@@2PEAVnsIAtom@@EA"] + pub static nsGkAtoms_cutoutregion: *mut nsIAtom; #[link_name = "?cycler@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_cycler: *mut nsIAtom; #[link_name = "?data@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -9019,6 +9023,10 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_onencrypted: *mut nsIAtom; #[link_name = "?encrypted@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_encrypted: *mut nsIAtom; + #[link_name = "?onwaitingforkey@nsGkAtoms@@2PEAVnsIAtom@@EA"] + pub static nsGkAtoms_onwaitingforkey: *mut nsIAtom; + #[link_name = "?onkeystatuseschange@nsGkAtoms@@2PEAVnsIAtom@@EA"] + pub static nsGkAtoms_onkeystatuseschange: *mut nsIAtom; #[link_name = "?onremovetrack@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onremovetrack: *mut nsIAtom; #[link_name = "?loadstart@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -9239,8 +9247,6 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_windows_default_theme: *mut nsIAtom; #[link_name = "?mac_graphite_theme@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_mac_graphite_theme: *mut nsIAtom; - #[link_name = "?mac_lion_theme@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_mac_lion_theme: *mut nsIAtom; #[link_name = "?mac_yosemite_theme@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_mac_yosemite_theme: *mut nsIAtom; #[link_name = "?windows_compositor@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -9295,8 +9301,6 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms__moz_windows_default_theme: *mut nsIAtom; #[link_name = "?_moz_mac_graphite_theme@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms__moz_mac_graphite_theme: *mut nsIAtom; - #[link_name = "?_moz_mac_lion_theme@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms__moz_mac_lion_theme: *mut nsIAtom; #[link_name = "?_moz_mac_yosemite_theme@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms__moz_mac_yosemite_theme: *mut nsIAtom; #[link_name = "?_moz_windows_compositor@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -10324,6 +10328,8 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_curpos: *mut nsIAtom; #[link_name = "\x01?current@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_current: *mut nsIAtom; + #[link_name = "\x01?cutoutregion@nsGkAtoms@@2PAVnsIAtom@@A"] + pub static nsGkAtoms_cutoutregion: *mut nsIAtom; #[link_name = "\x01?cycler@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_cycler: *mut nsIAtom; #[link_name = "\x01?data@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -13938,6 +13944,10 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_onencrypted: *mut nsIAtom; #[link_name = "\x01?encrypted@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_encrypted: *mut nsIAtom; + #[link_name = "\x01?onwaitingforkey@nsGkAtoms@@2PAVnsIAtom@@A"] + pub static nsGkAtoms_onwaitingforkey: *mut nsIAtom; + #[link_name = "\x01?onkeystatuseschange@nsGkAtoms@@2PAVnsIAtom@@A"] + pub static nsGkAtoms_onkeystatuseschange: *mut nsIAtom; #[link_name = "\x01?onremovetrack@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onremovetrack: *mut nsIAtom; #[link_name = "\x01?loadstart@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -14158,8 +14168,6 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms_windows_default_theme: *mut nsIAtom; #[link_name = "\x01?mac_graphite_theme@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_mac_graphite_theme: *mut nsIAtom; - #[link_name = "\x01?mac_lion_theme@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_mac_lion_theme: *mut nsIAtom; #[link_name = "\x01?mac_yosemite_theme@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_mac_yosemite_theme: *mut nsIAtom; #[link_name = "\x01?windows_compositor@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -14214,8 +14222,6 @@ pub enum nsICSSAnonBoxPseudo {} pub static nsGkAtoms__moz_windows_default_theme: *mut nsIAtom; #[link_name = "\x01?_moz_mac_graphite_theme@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms__moz_mac_graphite_theme: *mut nsIAtom; - #[link_name = "\x01?_moz_mac_lion_theme@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms__moz_mac_lion_theme: *mut nsIAtom; #[link_name = "\x01?_moz_mac_yosemite_theme@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms__moz_mac_yosemite_theme: *mut nsIAtom; #[link_name = "\x01?_moz_windows_compositor@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -15013,6 +15019,7 @@ macro_rules! atom { ("crossorigin") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_crossorigin as *mut _) }; ("curpos") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_curpos as *mut _) }; ("current") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_current as *mut _) }; +("cutoutregion") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_cutoutregion as *mut _) }; ("cycler") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_cycler as *mut _) }; ("data") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_data as *mut _) }; ("datalist") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_datalist as *mut _) }; @@ -16820,6 +16827,8 @@ macro_rules! atom { ("onexit") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_onexit as *mut _) }; ("onencrypted") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_onencrypted as *mut _) }; ("encrypted") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_encrypted as *mut _) }; +("onwaitingforkey") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_onwaitingforkey as *mut _) }; +("onkeystatuseschange") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_onkeystatuseschange as *mut _) }; ("onremovetrack") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_onremovetrack as *mut _) }; ("loadstart") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_loadstart as *mut _) }; ("suspend") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_suspend as *mut _) }; @@ -16930,7 +16939,6 @@ macro_rules! atom { ("overlay-scrollbars") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_overlay_scrollbars as *mut _) }; ("windows-default-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_windows_default_theme as *mut _) }; ("mac-graphite-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_mac_graphite_theme as *mut _) }; -("mac-lion-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_mac_lion_theme as *mut _) }; ("mac-yosemite-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_mac_yosemite_theme as *mut _) }; ("windows-compositor") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_windows_compositor as *mut _) }; ("windows-glass") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms_windows_glass as *mut _) }; @@ -16958,7 +16966,6 @@ macro_rules! atom { ("-moz-overlay-scrollbars") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms__moz_overlay_scrollbars as *mut _) }; ("-moz-windows-default-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms__moz_windows_default_theme as *mut _) }; ("-moz-mac-graphite-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms__moz_mac_graphite_theme as *mut _) }; -("-moz-mac-lion-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms__moz_mac_lion_theme as *mut _) }; ("-moz-mac-yosemite-theme") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms__moz_mac_yosemite_theme as *mut _) }; ("-moz-windows-compositor") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms__moz_windows_compositor as *mut _) }; ("-moz-windows-classic") => { $crate::atom_macro::unsafe_atom_from_static($crate::atom_macro::nsGkAtoms__moz_windows_classic as *mut _) };