diff options
Diffstat (limited to 'components/style/gecko/generated/structs.rs')
-rw-r--r-- | components/style/gecko/generated/structs.rs | 6996 |
1 files changed, 2892 insertions, 4104 deletions
diff --git a/components/style/gecko/generated/structs.rs b/components/style/gecko/generated/structs.rs index 38155578238..ddb76282f1e 100644 --- a/components/style/gecko/generated/structs.rs +++ b/components/style/gecko/generated/structs.rs @@ -15,7 +15,7 @@ pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; pub type ServoVisitedStyle = Option<::servo_arc::RawOffsetArc<::properties::ComputedValues>>; pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc<T> = ::servo_arc::RawOffsetArc<T>; -pub type ServoStyleContextStrong = ::gecko_bindings::sugar::ownership::Strong<::properties::ComputedValues>; +pub type ComputedStyleStrong = ::gecko_bindings::sugar::ownership::Strong<::properties::ComputedValues>; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -903,6 +903,8 @@ pub mod root { } pub type pair_first_type<_T1> = _T1; pub type pair_second_type<_T2> = _T2; + pub type pair__PCCP = u8; + pub type pair__PCCFP = u8; #[repr(C)] #[derive(Debug, Copy)] pub struct input_iterator_tag { @@ -941,11 +943,6 @@ pub mod root { pub struct atomic { pub _address: u8, } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct function { - pub _address: u8, - } pub type _Base_bitset__WordT = ::std::os::raw::c_ulong; pub type bitset__Base = u8; pub type bitset__WordT = ::std::os::raw::c_ulong; @@ -960,6 +957,14 @@ pub mod root { #[allow(unused_imports)] use self::super::super::root; } + pub type __int8_t = ::std::os::raw::c_schar; + pub type __uint8_t = ::std::os::raw::c_uchar; + pub type __int16_t = ::std::os::raw::c_short; + pub type __uint16_t = ::std::os::raw::c_ushort; + pub type __int32_t = ::std::os::raw::c_int; + pub type __uint32_t = ::std::os::raw::c_uint; + pub type __int64_t = ::std::os::raw::c_long; + pub type __uint64_t = ::std::os::raw::c_ulong; pub mod mozilla { #[allow(unused_imports)] use self::super::super::root; @@ -1129,8 +1134,9 @@ pub mod root { } } pub type Conditional_Type<A> = A; - pub const ArenaObjectID_eArenaObjectID_DummyBeforeFirstObjectID : root :: mozilla :: ArenaObjectID = 171 ; - pub const ArenaObjectID_eArenaObjectID_GeckoStyleContext: root::mozilla::ArenaObjectID = + pub const ArenaObjectID_eArenaObjectID_DummyBeforeFirstObjectID: + root::mozilla::ArenaObjectID = 171; + pub const ArenaObjectID_eArenaObjectID_GeckoComputedStyle: root::mozilla::ArenaObjectID = 172; pub const ArenaObjectID_eArenaObjectID_nsLineBox: root::mozilla::ArenaObjectID = 173; pub const ArenaObjectID_eArenaObjectID_nsRuleNode: root::mozilla::ArenaObjectID = 174; @@ -1138,14 +1144,19 @@ pub mod root { pub const ArenaObjectID_eArenaObjectID_nsInheritedStyleData: root::mozilla::ArenaObjectID = 176; pub const ArenaObjectID_eArenaObjectID_nsResetStyleData: root::mozilla::ArenaObjectID = 177; - pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleData : root :: mozilla :: ArenaObjectID = 178 ; - pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleDataEntry : root :: mozilla :: ArenaObjectID = 179 ; + pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleData: + root::mozilla::ArenaObjectID = 178; + pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleDataEntry: + root::mozilla::ArenaObjectID = 179; pub const ArenaObjectID_eArenaObjectID_nsFrameList: root::mozilla::ArenaObjectID = 180; pub const ArenaObjectID_eArenaObjectID_CustomCounterStyle: root::mozilla::ArenaObjectID = 181; - pub const ArenaObjectID_eArenaObjectID_DependentBuiltinCounterStyle : root :: mozilla :: ArenaObjectID = 182 ; - pub const ArenaObjectID_eArenaObjectID_nsCallbackEventRequest : root :: mozilla :: ArenaObjectID = 183 ; - pub const ArenaObjectID_eArenaObjectID_nsIntervalSet_Interval : root :: mozilla :: ArenaObjectID = 184 ; + pub const ArenaObjectID_eArenaObjectID_DependentBuiltinCounterStyle: + root::mozilla::ArenaObjectID = 182; + pub const ArenaObjectID_eArenaObjectID_nsCallbackEventRequest: + root::mozilla::ArenaObjectID = 183; + pub const ArenaObjectID_eArenaObjectID_nsIntervalSet_Interval: + root::mozilla::ArenaObjectID = 184; pub const ArenaObjectID_eArenaObjectID_CellData: root::mozilla::ArenaObjectID = 185; pub const ArenaObjectID_eArenaObjectID_BCCellData: root::mozilla::ArenaObjectID = 186; pub const ArenaObjectID_eArenaObjectID_nsStyleFont: root::mozilla::ArenaObjectID = 187; @@ -1178,6 +1189,142 @@ pub mod root { pub const ArenaObjectID_eArenaObjectID_nsStyleEffects: root::mozilla::ArenaObjectID = 210; pub const ArenaObjectID_eArenaObjectID_COUNT: root::mozilla::ArenaObjectID = 211; pub type ArenaObjectID = u32; + /// This class is designed to cause crashes when various kinds of memory + /// corruption are observed. For instance, let's say we have a class C where we + /// suspect out-of-bounds writes to some members. We can insert a member of type + /// Poison near the members we suspect are being corrupted by out-of-bounds + /// writes. Or perhaps we have a class K we suspect is subject to use-after-free + /// violations, in which case it doesn't particularly matter where in the class + /// we add the member of type Poison. + /// + /// In either case, we then insert calls to Check() throughout the code. Doing + /// so enables us to narrow down the location where the corruption is occurring. + /// A pleasant side-effect of these additional Check() calls is that crash + /// signatures may become more regular, as crashes will ideally occur + /// consolidated at the point of a Check(), rather than scattered about at + /// various uses of the corrupted memory. + #[repr(C)] + #[derive(Debug)] + pub struct CorruptionCanary { + pub mValue: usize, + } + pub const CorruptionCanary_kCanarySet: usize = 252382987; + #[test] + fn bindgen_test_layout_CorruptionCanary() { + assert_eq!( + ::std::mem::size_of::<CorruptionCanary>(), + 8usize, + concat!("Size of: ", stringify!(CorruptionCanary)) + ); + assert_eq!( + ::std::mem::align_of::<CorruptionCanary>(), + 8usize, + concat!("Alignment of ", stringify!(CorruptionCanary)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<CorruptionCanary>())).mValue as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(CorruptionCanary), + "::", + stringify!(mValue) + ) + ); + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct Maybe { + pub _address: u8, + } + pub type Maybe_ValueType<T> = T; + #[repr(u8)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum SheetType { + Agent = 0, + User = 1, + PresHint = 2, + Doc = 3, + StyleAttr = 4, + Override = 5, + Animation = 6, + Transition = 7, + Count = 8, + Unknown = 255, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct StaticRefPtr<T> { + pub mRawPtr: *mut T, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, + } + /// 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: root::nscolor, + pub mForegroundRatio: u8, + pub mIsAuto: bool, + } + #[test] + fn bindgen_test_layout_StyleComplexColor() { + assert_eq!( + ::std::mem::size_of::<StyleComplexColor>(), + 8usize, + concat!("Size of: ", stringify!(StyleComplexColor)) + ); + assert_eq!( + ::std::mem::align_of::<StyleComplexColor>(), + 4usize, + concat!("Alignment of ", stringify!(StyleComplexColor)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<StyleComplexColor>())).mColor as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(StyleComplexColor), + "::", + stringify!(mColor) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<StyleComplexColor>())).mForegroundRatio as *const _ + as usize + }, + 4usize, + concat!( + "Offset of field: ", + stringify!(StyleComplexColor), + "::", + stringify!(mForegroundRatio) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<StyleComplexColor>())).mIsAuto as *const _ as usize + }, + 5usize, + concat!( + "Offset of field: ", + stringify!(StyleComplexColor), + "::", + stringify!(mIsAuto) + ) + ); + } + impl Clone for StyleComplexColor { + fn clone(&self) -> Self { + *self + } + } /// A default deletion policy using plain old operator delete. /// /// Note that this type can be specialized, but authors should beware of the risk @@ -1194,1378 +1341,187 @@ pub mod root { pub struct DefaultDelete { pub _address: u8, } - pub type MallocSizeOf = - ::std::option::Option<unsafe extern "C" fn(p: *const ::std::os::raw::c_void) -> usize>; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct ReverseIterator<IteratorT> { - pub mCurrent: IteratorT, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<IteratorT>>, - } - pub type Array_iterator<T> = *mut T; - pub type Array_const_iterator<T> = *mut T; - pub type Array_reverse_iterator<T> = root::mozilla::ReverseIterator<T>; - pub type Array_const_reverse_iterator<T> = root::mozilla::ReverseIterator<T>; - pub mod css { + pub mod gfx { #[allow(unused_imports)] use self::super::super::super::root; - #[repr(u8)] - /// Enum defining the mode in which a sheet is to be parsed. This is - /// usually, but not always, the same as the cascade level at which the - /// sheet will apply (see nsStyleSet.h). Most of the Loader APIs only - /// support loading of author sheets. - /// - /// Author sheets are the normal case: styles embedded in or linked - /// from HTML pages. They are also the most restricted. - /// - /// User sheets can do anything author sheets can do, and also get - /// access to a few CSS extensions that are not yet suitable for - /// exposure on the public Web, but are very useful for expressing - /// user style overrides, such as @-moz-document rules. - /// - /// XXX: eUserSheetFeatures was added in bug 1035091, but some patches in - /// that bug never landed to use this enum value. Currently, all the features - /// in user sheet are also available in author sheet. - /// - /// Agent sheets have access to all author- and user-sheet features - /// plus more extensions that are necessary for internal use but, - /// again, not yet suitable for exposure on the public Web. Some of - /// these are outright unsafe to expose; in particular, incorrect - /// styling of anonymous box pseudo-elements can violate layout - /// invariants. - /// - /// Agent sheets that do not use any unsafe rules could use - /// eSafeAgentSheetFeatures when creating the sheet. This enum value allows - /// Servo backend to recognize the sheets as the agent level, but Gecko - /// backend will parse it under _author_ level. - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum SheetParsingMode { - eAuthorSheetFeatures = 0, - eUserSheetFeatures = 1, - eAgentSheetFeatures = 2, - eSafeAgentSheetFeatures = 3, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct GroupRule { - _unused: [u8; 0], - } - impl Clone for GroupRule { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct ImageLoader { - _unused: [u8; 0], - } - impl Clone for ImageLoader { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - pub struct URLValueData__bindgen_vtable(::std::os::raw::c_void); - #[repr(C)] - #[derive(Debug)] - pub struct URLValueData { - pub vtable_: *const URLValueData__bindgen_vtable, - pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, - pub mURI: root::nsMainThreadPtrHandle<root::nsIURI>, - pub mExtraData: root::RefPtr<root::mozilla::URLExtraData>, - pub mURIResolved: bool, - pub mIsLocalRef: [u8; 2usize], - pub mMightHaveRef: [u8; 2usize], - pub mStrings: root::mozilla::css::URLValueData_RustOrGeckoString, - pub mUsingRustString: bool, - pub mLoadedImage: bool, - pub mCORSMode: root::mozilla::CORSMode, - } - pub type URLValueData_HasThreadSafeRefCnt = root::mozilla::TrueType; - #[repr(C)] - #[derive(Debug)] - pub struct URLValueData_RustOrGeckoString { - pub mString: root::__BindgenUnionField<::nsstring::nsStringRepr>, - pub mRustString: - root::__BindgenUnionField<::gecko_bindings::structs::ServoRawOffsetArc<root::RustString>>, - pub bindgen_union_field: [u64; 2usize], - } - #[test] - fn bindgen_test_layout_URLValueData_RustOrGeckoString() { - assert_eq!( - ::std::mem::size_of::<URLValueData_RustOrGeckoString>(), - 16usize, - concat!("Size of: ", stringify!(URLValueData_RustOrGeckoString)) - ); - assert_eq!( - ::std::mem::align_of::<URLValueData_RustOrGeckoString>(), - 8usize, - concat!("Alignment of ", stringify!(URLValueData_RustOrGeckoString)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData_RustOrGeckoString>())).mString - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(URLValueData_RustOrGeckoString), - "::", - stringify!(mString) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData_RustOrGeckoString>())).mRustString - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(URLValueData_RustOrGeckoString), - "::", - stringify!(mRustString) - ) - ); - } - #[test] - fn bindgen_test_layout_URLValueData() { - assert_eq!( - ::std::mem::size_of::<URLValueData>(), - 64usize, - concat!("Size of: ", stringify!(URLValueData)) - ); - assert_eq!( - ::std::mem::align_of::<URLValueData>(), - 8usize, - concat!("Alignment of ", stringify!(URLValueData)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mRefCnt as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mRefCnt) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<URLValueData>())).mURI as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mURI) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mExtraData as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mExtraData) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mURIResolved as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mURIResolved) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mIsLocalRef as *const _ as usize - }, - 33usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mIsLocalRef) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mMightHaveRef as *const _ as usize - }, - 35usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mMightHaveRef) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mStrings as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mStrings) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mUsingRustString as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mUsingRustString) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mLoadedImage as *const _ as usize - }, - 57usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mLoadedImage) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<URLValueData>())).mCORSMode as *const _ as usize - }, - 58usize, - concat!( - "Offset of field: ", - stringify!(URLValueData), - "::", - stringify!(mCORSMode) - ) - ); - } - #[repr(C)] - #[derive(Debug)] - pub struct URLValue { - pub _base: root::mozilla::css::URLValueData, - } - #[test] - fn bindgen_test_layout_URLValue() { - assert_eq!( - ::std::mem::size_of::<URLValue>(), - 64usize, - concat!("Size of: ", stringify!(URLValue)) - ); - assert_eq!( - ::std::mem::align_of::<URLValue>(), - 8usize, - concat!("Alignment of ", stringify!(URLValue)) - ); - } - #[repr(C)] - #[derive(Debug)] - pub struct ImageValue { - pub _base: root::mozilla::css::URLValueData, - pub mRequests: [u64; 4usize], - } - #[test] - fn bindgen_test_layout_ImageValue() { - assert_eq!( - ::std::mem::size_of::<ImageValue>(), - 96usize, - concat!("Size of: ", stringify!(ImageValue)) - ); - assert_eq!( - ::std::mem::align_of::<ImageValue>(), - 8usize, - concat!("Alignment of ", stringify!(ImageValue)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ImageValue>())).mRequests as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(ImageValue), - "::", - stringify!(mRequests) - ) - ); - } + pub type Float = f32; #[repr(C)] - pub struct GridNamedArea { - pub mName: ::nsstring::nsStringRepr, - pub mColumnStart: u32, - pub mColumnEnd: u32, - pub mRowStart: u32, - pub mRowEnd: u32, - } - #[test] - fn bindgen_test_layout_GridNamedArea() { - assert_eq!( - ::std::mem::size_of::<GridNamedArea>(), - 32usize, - concat!("Size of: ", stringify!(GridNamedArea)) - ); - assert_eq!( - ::std::mem::align_of::<GridNamedArea>(), - 8usize, - concat!("Alignment of ", stringify!(GridNamedArea)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<GridNamedArea>())).mName as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GridNamedArea), - "::", - stringify!(mName) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridNamedArea>())).mColumnStart as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(GridNamedArea), - "::", - stringify!(mColumnStart) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridNamedArea>())).mColumnEnd as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(GridNamedArea), - "::", - stringify!(mColumnEnd) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridNamedArea>())).mRowStart as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(GridNamedArea), - "::", - stringify!(mRowStart) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridNamedArea>())).mRowEnd as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(GridNamedArea), - "::", - stringify!(mRowEnd) - ) - ); + #[derive(Debug, Copy, Clone)] + pub struct IntPointTyped { + pub _address: u8, } + pub type IntPointTyped_ToInt = u32; + pub type IntPointTyped_Coord = u8; + pub type IntPointTyped_Super = u8; #[repr(C)] - pub struct GridTemplateAreasValue { - pub mNamedAreas: root::nsTArray<root::mozilla::css::GridNamedArea>, - pub mTemplates: root::nsTArray<::nsstring::nsStringRepr>, - pub mNColumns: u32, - pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, - } - pub type GridTemplateAreasValue_HasThreadSafeRefCnt = root::mozilla::TrueType; - #[test] - fn bindgen_test_layout_GridTemplateAreasValue() { - assert_eq!( - ::std::mem::size_of::<GridTemplateAreasValue>(), - 32usize, - concat!("Size of: ", stringify!(GridTemplateAreasValue)) - ); - assert_eq!( - ::std::mem::align_of::<GridTemplateAreasValue>(), - 8usize, - concat!("Alignment of ", stringify!(GridTemplateAreasValue)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridTemplateAreasValue>())).mNamedAreas as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GridTemplateAreasValue), - "::", - stringify!(mNamedAreas) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridTemplateAreasValue>())).mTemplates as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(GridTemplateAreasValue), - "::", - stringify!(mTemplates) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridTemplateAreasValue>())).mNColumns as *const _ - as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(GridTemplateAreasValue), - "::", - stringify!(mNColumns) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<GridTemplateAreasValue>())).mRefCnt as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(GridTemplateAreasValue), - "::", - stringify!(mRefCnt) - ) - ); + #[derive(Debug, Copy, Clone)] + pub struct SizeTyped { + pub _address: u8, } + pub type SizeTyped_Super = u8; #[repr(C)] #[derive(Debug, Copy)] - pub struct RGBAColorData { - pub mR: f32, - pub mG: f32, - pub mB: f32, - pub mA: f32, + pub struct FontVariation { + pub mTag: u32, + pub mValue: f32, } #[test] - fn bindgen_test_layout_RGBAColorData() { - assert_eq!( - ::std::mem::size_of::<RGBAColorData>(), - 16usize, - concat!("Size of: ", stringify!(RGBAColorData)) - ); - assert_eq!( - ::std::mem::align_of::<RGBAColorData>(), - 4usize, - concat!("Alignment of ", stringify!(RGBAColorData)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mR as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(RGBAColorData), - "::", - stringify!(mR) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mG as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(RGBAColorData), - "::", - stringify!(mG) - ) - ); + fn bindgen_test_layout_FontVariation() { assert_eq!( - unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mB as *const _ as usize }, + ::std::mem::size_of::<FontVariation>(), 8usize, - concat!( - "Offset of field: ", - stringify!(RGBAColorData), - "::", - stringify!(mB) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mA as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(RGBAColorData), - "::", - stringify!(mA) - ) - ); - } - impl Clone for RGBAColorData { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct ComplexColorData { - pub mColor: root::mozilla::css::RGBAColorData, - pub mForegroundRatio: f32, - } - #[test] - fn bindgen_test_layout_ComplexColorData() { - assert_eq!( - ::std::mem::size_of::<ComplexColorData>(), - 20usize, - concat!("Size of: ", stringify!(ComplexColorData)) + concat!("Size of: ", stringify!(FontVariation)) ); assert_eq!( - ::std::mem::align_of::<ComplexColorData>(), + ::std::mem::align_of::<FontVariation>(), 4usize, - concat!("Alignment of ", stringify!(ComplexColorData)) + concat!("Alignment of ", stringify!(FontVariation)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<ComplexColorData>())).mColor as *const _ as usize - }, + unsafe { &(*(::std::ptr::null::<FontVariation>())).mTag as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ComplexColorData), + stringify!(FontVariation), "::", - stringify!(mColor) + stringify!(mTag) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<ComplexColorData>())).mForegroundRatio as *const _ - as usize + &(*(::std::ptr::null::<FontVariation>())).mValue as *const _ as usize }, - 16usize, + 4usize, concat!( "Offset of field: ", - stringify!(ComplexColorData), + stringify!(FontVariation), "::", - stringify!(mForegroundRatio) + stringify!(mValue) ) ); } - impl Clone for ComplexColorData { + impl Clone for FontVariation { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] - pub struct ComplexColorValue { - pub _base: root::mozilla::css::ComplexColorData, - pub mRefCnt: root::nsAutoRefCnt, - } - pub type ComplexColorValue_HasThreadSafeRefCnt = root::mozilla::FalseType; - #[test] - fn bindgen_test_layout_ComplexColorValue() { - assert_eq!( - ::std::mem::size_of::<ComplexColorValue>(), - 32usize, - concat!("Size of: ", stringify!(ComplexColorValue)) - ); - assert_eq!( - ::std::mem::align_of::<ComplexColorValue>(), - 8usize, - concat!("Alignment of ", stringify!(ComplexColorValue)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ComplexColorValue>())).mRefCnt as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ComplexColorValue), - "::", - stringify!(mRefCnt) - ) - ); - } - /// Style sheet reuse * - #[repr(C)] - pub struct LoaderReusableStyleSheets { - pub mReusableSheets: root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>, - } - #[test] - fn bindgen_test_layout_LoaderReusableStyleSheets() { - assert_eq!( - ::std::mem::size_of::<LoaderReusableStyleSheets>(), - 8usize, - concat!("Size of: ", stringify!(LoaderReusableStyleSheets)) - ); - assert_eq!( - ::std::mem::align_of::<LoaderReusableStyleSheets>(), - 8usize, - concat!("Alignment of ", stringify!(LoaderReusableStyleSheets)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<LoaderReusableStyleSheets>())).mReusableSheets - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(LoaderReusableStyleSheets), - "::", - stringify!(mReusableSheets) - ) - ); + #[derive(Debug, Copy, Clone)] + pub struct ScaleFactor { + pub _address: u8, } #[repr(C)] - pub struct Loader { - pub mRefCnt: root::nsCycleCollectingAutoRefCnt, - pub mSheets: root::nsAutoPtr<root::mozilla::css::Loader_Sheets>, - pub mPostedEvents: root::mozilla::css::Loader_LoadDataArray, - pub mObservers: [u64; 2usize], - pub mDocument: *mut root::nsIDocument, - pub mDocGroup: root::RefPtr<root::mozilla::dom::DocGroup>, - pub mDatasToNotifyOn: u32, - pub mCompatMode: root::nsCompatibility, - pub mPreferredSheet: ::nsstring::nsStringRepr, - pub mStyleBackendType: [u8; 2usize], - pub mEnabled: bool, - pub mReporter: root::nsCOMPtr, + #[derive(Debug, Copy)] + pub struct UserData { + pub _bindgen_opaque_blob: [u64; 2usize], } - pub use self :: super :: super :: super :: root :: mozilla :: net :: ReferrerPolicy as Loader_ReferrerPolicy; - pub type Loader_HasThreadSafeRefCnt = root::mozilla::FalseType; + pub type UserData_destroyFunc = u64; #[repr(C)] #[derive(Debug, Copy)] - pub struct Loader_cycleCollection { - pub _base: root::nsCycleCollectionParticipant, + pub struct UserData_Entry { + pub _bindgen_opaque_blob: [u64; 3usize], } #[test] - fn bindgen_test_layout_Loader_cycleCollection() { + fn bindgen_test_layout_UserData_Entry() { assert_eq!( - ::std::mem::size_of::<Loader_cycleCollection>(), - 16usize, - concat!("Size of: ", stringify!(Loader_cycleCollection)) + ::std::mem::size_of::<UserData_Entry>(), + 24usize, + concat!("Size of: ", stringify!(UserData_Entry)) ); assert_eq!( - ::std::mem::align_of::<Loader_cycleCollection>(), + ::std::mem::align_of::<UserData_Entry>(), 8usize, - concat!("Alignment of ", stringify!(Loader_cycleCollection)) + concat!("Alignment of ", stringify!(UserData_Entry)) ); } - impl Clone for Loader_cycleCollection { + impl Clone for UserData_Entry { fn clone(&self) -> Self { *self } } - pub type Loader_LoadDataArray = - root::nsTArray<root::RefPtr<root::mozilla::css::SheetLoadData>>; - #[repr(C)] - #[derive(Debug)] - pub struct Loader_Sheets { - pub mCompleteSheets: [u64; 4usize], - pub mLoadingDatas: [u64; 4usize], - pub mPendingDatas: [u64; 4usize], - } - #[test] - fn bindgen_test_layout_Loader_Sheets() { - assert_eq!( - ::std::mem::size_of::<Loader_Sheets>(), - 96usize, - concat!("Size of: ", stringify!(Loader_Sheets)) - ); - assert_eq!( - ::std::mem::align_of::<Loader_Sheets>(), - 8usize, - concat!("Alignment of ", stringify!(Loader_Sheets)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<Loader_Sheets>())).mCompleteSheets as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Loader_Sheets), - "::", - stringify!(mCompleteSheets) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<Loader_Sheets>())).mLoadingDatas as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Loader_Sheets), - "::", - stringify!(mLoadingDatas) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<Loader_Sheets>())).mPendingDatas as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(Loader_Sheets), - "::", - stringify!(mPendingDatas) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN7mozilla3css6Loader21_cycleCollectorGlobalE"] - pub static mut Loader__cycleCollectorGlobal: - root::mozilla::css::Loader_cycleCollection; - } #[test] - fn bindgen_test_layout_Loader() { - assert_eq!( - ::std::mem::size_of::<Loader>(), - 96usize, - concat!("Size of: ", stringify!(Loader)) - ); - assert_eq!( - ::std::mem::align_of::<Loader>(), - 8usize, - concat!("Alignment of ", stringify!(Loader)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mRefCnt as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mRefCnt) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mSheets as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mSheets) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<Loader>())).mPostedEvents as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mPostedEvents) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mObservers as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mObservers) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mDocument as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mDocument) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mDocGroup as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mDocGroup) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<Loader>())).mDatasToNotifyOn as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mDatasToNotifyOn) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mCompatMode as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mCompatMode) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<Loader>())).mPreferredSheet as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mPreferredSheet) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<Loader>())).mStyleBackendType as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mStyleBackendType) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mEnabled as *const _ as usize }, - 82usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mEnabled) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<Loader>())).mReporter as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(Loader), - "::", - stringify!(mReporter) - ) - ); - } - #[repr(C)] - pub struct SheetLoadData { - pub _base: root::nsIRunnable, - pub _base_1: root::nsIUnicharStreamLoaderObserver, - pub _base_2: root::nsIThreadObserver, - pub mRefCnt: root::nsAutoRefCnt, - pub mLoader: root::RefPtr<root::mozilla::css::Loader>, - pub mTitle: ::nsstring::nsStringRepr, - pub mEncoding: *const root::mozilla::Encoding, - pub mURI: root::nsCOMPtr, - pub mLineNumber: u32, - pub mSheet: root::RefPtr<root::mozilla::StyleSheet>, - pub mNext: *mut root::mozilla::css::SheetLoadData, - pub mParentData: root::RefPtr<root::mozilla::css::SheetLoadData>, - pub mPendingChildren: u32, - pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 2usize], u8>, - pub mOwningElement: root::nsCOMPtr, - pub mObserver: root::nsCOMPtr, - pub mLoaderPrincipal: root::nsCOMPtr, - pub mRequestingNode: root::nsCOMPtr, - pub mPreloadEncoding: *const root::mozilla::Encoding, - } - pub type SheetLoadData_HasThreadSafeRefCnt = root::mozilla::FalseType; - #[test] - fn bindgen_test_layout_SheetLoadData() { - assert_eq!( - ::std::mem::size_of::<SheetLoadData>(), - 152usize, - concat!("Size of: ", stringify!(SheetLoadData)) - ); - assert_eq!( - ::std::mem::align_of::<SheetLoadData>(), - 8usize, - concat!("Alignment of ", stringify!(SheetLoadData)) - ); - } - impl SheetLoadData { - #[inline] - pub fn mSyncLoad(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_mSyncLoad(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn mIsNonDocumentSheet(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } - } - #[inline] - pub fn set_mIsNonDocumentSheet(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn mIsLoading(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) } - } - #[inline] - pub fn set_mIsLoading(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn mIsBeingParsed(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) } - } - #[inline] - pub fn set_mIsBeingParsed(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn mIsCancelled(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) } - } - #[inline] - pub fn set_mIsCancelled(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn mMustNotify(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) } - } - #[inline] - pub fn set_mMustNotify(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn mWasAlternate(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) } - } - #[inline] - pub fn set_mWasAlternate(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn mUseSystemPrincipal(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) } - } - #[inline] - pub fn set_mUseSystemPrincipal(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn mSheetAlreadyComplete(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } - } - #[inline] - pub fn set_mSheetAlreadyComplete(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 1u8, val as u64) - } - } - #[inline] - pub fn mIsCrossOriginNoCORS(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } - } - #[inline] - pub fn set_mIsCrossOriginNoCORS(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) - } - } - #[inline] - pub fn mBlockResourceTiming(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } - } - #[inline] - pub fn set_mBlockResourceTiming(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(10usize, 1u8, val as u64) - } - } - #[inline] - pub fn mLoadFailed(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } - } - #[inline] - pub fn set_mLoadFailed(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(11usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - mSyncLoad: bool, - mIsNonDocumentSheet: bool, - mIsLoading: bool, - mIsBeingParsed: bool, - mIsCancelled: bool, - mMustNotify: bool, - mWasAlternate: bool, - mUseSystemPrincipal: bool, - mSheetAlreadyComplete: bool, - mIsCrossOriginNoCORS: bool, - mBlockResourceTiming: bool, - mLoadFailed: bool, - ) -> root::__BindgenBitfieldUnit<[u8; 2usize], u8> { - let mut __bindgen_bitfield_unit : root :: __BindgenBitfieldUnit < [ u8 ; 2usize ] , u8 > = Default :: default ( ) ; - __bindgen_bitfield_unit.set(0usize, 1u8, { - let mSyncLoad: u8 = unsafe { ::std::mem::transmute(mSyncLoad) }; - mSyncLoad as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let mIsNonDocumentSheet: u8 = - unsafe { ::std::mem::transmute(mIsNonDocumentSheet) }; - mIsNonDocumentSheet as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let mIsLoading: u8 = unsafe { ::std::mem::transmute(mIsLoading) }; - mIsLoading as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let mIsBeingParsed: u8 = unsafe { ::std::mem::transmute(mIsBeingParsed) }; - mIsBeingParsed as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let mIsCancelled: u8 = unsafe { ::std::mem::transmute(mIsCancelled) }; - mIsCancelled as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let mMustNotify: u8 = unsafe { ::std::mem::transmute(mMustNotify) }; - mMustNotify as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let mWasAlternate: u8 = unsafe { ::std::mem::transmute(mWasAlternate) }; - mWasAlternate as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let mUseSystemPrincipal: u8 = - unsafe { ::std::mem::transmute(mUseSystemPrincipal) }; - mUseSystemPrincipal as u64 - }); - __bindgen_bitfield_unit.set(8usize, 1u8, { - let mSheetAlreadyComplete: u8 = - unsafe { ::std::mem::transmute(mSheetAlreadyComplete) }; - mSheetAlreadyComplete as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let mIsCrossOriginNoCORS: u8 = - unsafe { ::std::mem::transmute(mIsCrossOriginNoCORS) }; - mIsCrossOriginNoCORS as u64 - }); - __bindgen_bitfield_unit.set(10usize, 1u8, { - let mBlockResourceTiming: u8 = - unsafe { ::std::mem::transmute(mBlockResourceTiming) }; - mBlockResourceTiming as u64 - }); - __bindgen_bitfield_unit.set(11usize, 1u8, { - let mLoadFailed: u8 = unsafe { ::std::mem::transmute(mLoadFailed) }; - mLoadFailed as u64 - }); - __bindgen_bitfield_unit - } - } - #[repr(C)] - #[derive(Debug)] - pub struct Rule { - pub _base: root::nsISupports, - pub _base_1: root::nsWrapperCache, - pub mRefCnt: root::nsCycleCollectingAutoRefCnt, - pub mSheet: *mut root::mozilla::StyleSheet, - pub mParentRule: *mut root::mozilla::css::GroupRule, - pub mLineNumber: u32, - pub mColumnNumber: u32, - } - pub type Rule_HasThreadSafeRefCnt = root::mozilla::FalseType; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct Rule_cycleCollection { - pub _base: root::nsXPCOMCycleCollectionParticipant, - } - #[test] - fn bindgen_test_layout_Rule_cycleCollection() { + fn bindgen_test_layout_UserData() { assert_eq!( - ::std::mem::size_of::<Rule_cycleCollection>(), + ::std::mem::size_of::<UserData>(), 16usize, - concat!("Size of: ", stringify!(Rule_cycleCollection)) + concat!("Size of: ", stringify!(UserData)) ); assert_eq!( - ::std::mem::align_of::<Rule_cycleCollection>(), + ::std::mem::align_of::<UserData>(), 8usize, - concat!("Alignment of ", stringify!(Rule_cycleCollection)) + concat!("Alignment of ", stringify!(UserData)) ); } - impl Clone for Rule_cycleCollection { + impl Clone for UserData { fn clone(&self) -> Self { *self } } - pub const Rule_UNKNOWN_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 0; - pub const Rule_CHARSET_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 1; - pub const Rule_IMPORT_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 2; - pub const Rule_NAMESPACE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 3; - pub const Rule_STYLE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 4; - pub const Rule_MEDIA_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 5; - pub const Rule_FONT_FACE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 6; - pub const Rule_PAGE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 7; - pub const Rule_KEYFRAME_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 8; - pub const Rule_KEYFRAMES_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 9; - pub const Rule_DOCUMENT_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 10; - pub const Rule_SUPPORTS_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 11; - pub const Rule_FONT_FEATURE_VALUES_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 12; - pub const Rule_COUNTER_STYLE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 13; - pub type Rule__bindgen_ty_1 = u32; - extern "C" { - #[link_name = "\u{1}_ZN7mozilla3css4Rule21_cycleCollectorGlobalE"] - pub static mut Rule__cycleCollectorGlobal: root::mozilla::css::Rule_cycleCollection; - } - #[test] - fn bindgen_test_layout_Rule() { - assert_eq!( - ::std::mem::size_of::<Rule>(), - 64usize, - concat!("Size of: ", stringify!(Rule)) - ); - assert_eq!( - ::std::mem::align_of::<Rule>(), - 8usize, - concat!("Alignment of ", stringify!(Rule)) - ); - } #[repr(C)] - pub struct ErrorReporter { - pub mError: root::nsAutoString, - pub mErrorLine: ::nsstring::nsStringRepr, - pub mFileName: ::nsstring::nsStringRepr, - pub mScanner: *const root::nsCSSScanner, - pub mSheet: *const root::mozilla::StyleSheet, - pub mLoader: *const root::mozilla::css::Loader, - pub mURI: *mut root::nsIURI, - pub mInnerWindowID: u64, - pub mErrorLineNumber: u32, - pub mPrevErrorLineNumber: u32, - pub mErrorColNumber: u32, + pub struct SourceSurface__bindgen_vtable(::std::os::raw::c_void); + /// This is the base class for source surfaces. These objects are surfaces + /// which may be used as a source in a SurfacePattern or a DrawSurface call. + /// They cannot be drawn to directly. + /// + /// Although SourceSurface has thread-safe refcount, some SourceSurface cannot + /// be used on random threads at the same time. Only DataSourceSurface can be + /// used on random threads now. This will be fixed in the future. Eventually + /// all SourceSurface should be thread-safe. + #[repr(C)] + #[derive(Debug)] + pub struct SourceSurface { + pub vtable_: *const SourceSurface__bindgen_vtable, + pub _base: u64, + pub mUserData: root::mozilla::gfx::UserData, } #[test] - fn bindgen_test_layout_ErrorReporter() { + fn bindgen_test_layout_SourceSurface() { assert_eq!( - ::std::mem::size_of::<ErrorReporter>(), - 240usize, - concat!("Size of: ", stringify!(ErrorReporter)) + ::std::mem::size_of::<SourceSurface>(), + 32usize, + concat!("Size of: ", stringify!(SourceSurface)) ); assert_eq!( - ::std::mem::align_of::<ErrorReporter>(), + ::std::mem::align_of::<SourceSurface>(), 8usize, - concat!("Alignment of ", stringify!(ErrorReporter)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mError as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mError) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mErrorLine as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mErrorLine) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mFileName as *const _ as usize - }, - 168usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mFileName) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mScanner as *const _ as usize - }, - 184usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mScanner) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mSheet as *const _ as usize - }, - 192usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mSheet) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mLoader as *const _ as usize - }, - 200usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mLoader) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<ErrorReporter>())).mURI as *const _ as usize }, - 208usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mURI) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mInnerWindowID as *const _ - as usize - }, - 216usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mInnerWindowID) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mErrorLineNumber as *const _ - as usize - }, - 224usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mErrorLineNumber) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mPrevErrorLineNumber as *const _ - as usize - }, - 228usize, - concat!( - "Offset of field: ", - stringify!(ErrorReporter), - "::", - stringify!(mPrevErrorLineNumber) - ) + concat!("Alignment of ", stringify!(SourceSurface)) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<ErrorReporter>())).mErrorColNumber as *const _ - as usize + &(*(::std::ptr::null::<SourceSurface>())).mUserData as *const _ as usize }, - 232usize, + 16usize, concat!( "Offset of field: ", - stringify!(ErrorReporter), + stringify!(SourceSurface), "::", - stringify!(mErrorColNumber) + stringify!(mUserData) ) ); } - #[repr(i32)] - /// Enum defining the type of URL matching function for a @-moz-document rule - /// condition. - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum URLMatchingFunction { - eURL = 0, - eURLPrefix = 1, - eDomain = 2, - eRegExp = 3, - } } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum Side { + eSideTop = 0, + eSideRight = 1, + eSideBottom = 2, + eSideLeft = 3, + } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum HalfCorner { + eCornerTopLeftX = 0, + eCornerTopLeftY = 1, + eCornerTopRightX = 2, + eCornerTopRightY = 3, + eCornerBottomRightX = 4, + eCornerBottomRightY = 5, + eCornerBottomLeftX = 6, + eCornerBottomLeftY = 7, + } + pub type MallocSizeOf = + ::std::option::Option<unsafe extern "C" fn(p: *const ::std::os::raw::c_void) -> usize>; #[repr(C)] #[derive(Debug)] pub struct ThreadSafeAutoRefCnt { @@ -2597,6 +1553,16 @@ pub mod root { ) ); } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct ReverseIterator<IteratorT> { + pub mCurrent: IteratorT, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<IteratorT>>, + } + pub type Array_iterator<T> = *mut T; + pub type Array_const_iterator<T> = *mut T; + pub type Array_reverse_iterator<T> = root::mozilla::ReverseIterator<T>; + pub type Array_const_reverse_iterator<T> = root::mozilla::ReverseIterator<T>; pub type EnumeratedArray_ArrayType = u8; pub type EnumeratedArray_iterator = root::mozilla::EnumeratedArray_ArrayType; pub type EnumeratedArray_const_iterator = root::mozilla::EnumeratedArray_ArrayType; @@ -2819,214 +1785,6 @@ pub mod root { } pub type Variant_Tag = root::mozilla::detail::VariantTag; pub type Variant_Impl = u8; - /// This class is designed to cause crashes when various kinds of memory - /// corruption are observed. For instance, let's say we have a class C where we - /// suspect out-of-bounds writes to some members. We can insert a member of type - /// Poison near the members we suspect are being corrupted by out-of-bounds - /// writes. Or perhaps we have a class K we suspect is subject to use-after-free - /// violations, in which case it doesn't particularly matter where in the class - /// we add the member of type Poison. - /// - /// In either case, we then insert calls to Check() throughout the code. Doing - /// so enables us to narrow down the location where the corruption is occurring. - /// A pleasant side-effect of these additional Check() calls is that crash - /// signatures may become more regular, as crashes will ideally occur - /// consolidated at the point of a Check(), rather than scattered about at - /// various uses of the corrupted memory. - #[repr(C)] - #[derive(Debug)] - pub struct CorruptionCanary { - pub mValue: usize, - } - pub const CorruptionCanary_kCanarySet: usize = 252382987; - #[test] - fn bindgen_test_layout_CorruptionCanary() { - assert_eq!( - ::std::mem::size_of::<CorruptionCanary>(), - 8usize, - concat!("Size of: ", stringify!(CorruptionCanary)) - ); - assert_eq!( - ::std::mem::align_of::<CorruptionCanary>(), - 8usize, - concat!("Alignment of ", stringify!(CorruptionCanary)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<CorruptionCanary>())).mValue as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CorruptionCanary), - "::", - stringify!(mValue) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Maybe { - pub _address: u8, - } - pub type Maybe_ValueType<T> = T; - pub mod gfx { - #[allow(unused_imports)] - use self::super::super::super::root; - pub type Float = f32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct IntPointTyped { - pub _address: u8, - } - pub type IntPointTyped_ToInt = u32; - pub type IntPointTyped_Coord = u8; - pub type IntPointTyped_Super = u8; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct SizeTyped { - pub _address: u8, - } - pub type SizeTyped_Super = u8; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FontVariation { - pub mTag: u32, - pub mValue: f32, - } - #[test] - fn bindgen_test_layout_FontVariation() { - assert_eq!( - ::std::mem::size_of::<FontVariation>(), - 8usize, - concat!("Size of: ", stringify!(FontVariation)) - ); - assert_eq!( - ::std::mem::align_of::<FontVariation>(), - 4usize, - concat!("Alignment of ", stringify!(FontVariation)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<FontVariation>())).mTag as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(FontVariation), - "::", - stringify!(mTag) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<FontVariation>())).mValue as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(FontVariation), - "::", - stringify!(mValue) - ) - ); - } - impl Clone for FontVariation { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct ScaleFactor { - pub _address: u8, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct UserData { - pub _bindgen_opaque_blob: [u64; 2usize], - } - pub type UserData_destroyFunc = u64; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct UserData_Entry { - pub _bindgen_opaque_blob: [u64; 3usize], - } - #[test] - fn bindgen_test_layout_UserData_Entry() { - assert_eq!( - ::std::mem::size_of::<UserData_Entry>(), - 24usize, - concat!("Size of: ", stringify!(UserData_Entry)) - ); - assert_eq!( - ::std::mem::align_of::<UserData_Entry>(), - 8usize, - concat!("Alignment of ", stringify!(UserData_Entry)) - ); - } - impl Clone for UserData_Entry { - fn clone(&self) -> Self { - *self - } - } - #[test] - fn bindgen_test_layout_UserData() { - assert_eq!( - ::std::mem::size_of::<UserData>(), - 16usize, - concat!("Size of: ", stringify!(UserData)) - ); - assert_eq!( - ::std::mem::align_of::<UserData>(), - 8usize, - concat!("Alignment of ", stringify!(UserData)) - ); - } - impl Clone for UserData { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - pub struct SourceSurface__bindgen_vtable(::std::os::raw::c_void); - /// This is the base class for source surfaces. These objects are surfaces - /// which may be used as a source in a SurfacePattern or a DrawSurface call. - /// They cannot be drawn to directly. - /// - /// Although SourceSurface has thread-safe refcount, some SourceSurface cannot - /// be used on random threads at the same time. Only DataSourceSurface can be - /// used on random threads now. This will be fixed in the future. Eventually - /// all SourceSurface should be thread-safe. - #[repr(C)] - #[derive(Debug)] - pub struct SourceSurface { - pub vtable_: *const SourceSurface__bindgen_vtable, - pub _base: u64, - pub mUserData: root::mozilla::gfx::UserData, - } - #[test] - fn bindgen_test_layout_SourceSurface() { - assert_eq!( - ::std::mem::size_of::<SourceSurface>(), - 32usize, - concat!("Size of: ", stringify!(SourceSurface)) - ); - assert_eq!( - ::std::mem::align_of::<SourceSurface>(), - 8usize, - concat!("Alignment of ", stringify!(SourceSurface)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<SourceSurface>())).mUserData as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(SourceSurface), - "::", - stringify!(mUserData) - ) - ); - } - } pub mod layers { #[allow(unused_imports)] use self::super::super::super::root; @@ -3678,7 +2436,8 @@ pub mod root { pub const LargeAllocStatus_SUCCESS: root::mozilla::dom::LargeAllocStatus = 1; pub const LargeAllocStatus_NON_GET: root::mozilla::dom::LargeAllocStatus = 2; pub const LargeAllocStatus_NON_E10S: root::mozilla::dom::LargeAllocStatus = 3; - pub const LargeAllocStatus_NOT_ONLY_TOPLEVEL_IN_TABGROUP : root :: mozilla :: dom :: LargeAllocStatus = 4 ; + pub const LargeAllocStatus_NOT_ONLY_TOPLEVEL_IN_TABGROUP: + root::mozilla::dom::LargeAllocStatus = 4; pub const LargeAllocStatus_NON_WIN32: root::mozilla::dom::LargeAllocStatus = 5; pub type LargeAllocStatus = u8; #[repr(C)] @@ -3704,12 +2463,17 @@ pub mod root { pub mAsNode: *mut root::nsINode, pub mKind: root::mozilla::dom::DocumentOrShadowRoot_Kind, } - pub const DocumentOrShadowRoot_Kind_Document : root :: mozilla :: dom :: DocumentOrShadowRoot_Kind = 0 ; - pub const DocumentOrShadowRoot_Kind_ShadowRoot : root :: mozilla :: dom :: DocumentOrShadowRoot_Kind = 1 ; + pub const DocumentOrShadowRoot_Kind_Document: + root::mozilla::dom::DocumentOrShadowRoot_Kind = 0; + pub const DocumentOrShadowRoot_Kind_ShadowRoot: + root::mozilla::dom::DocumentOrShadowRoot_Kind = 1; pub type DocumentOrShadowRoot_Kind = i32; - pub const DocumentOrShadowRoot_ElementsFromPointFlags_IGNORE_ROOT_SCROLL_FRAME : root :: mozilla :: dom :: DocumentOrShadowRoot_ElementsFromPointFlags = 1 ; - pub const DocumentOrShadowRoot_ElementsFromPointFlags_FLUSH_LAYOUT : root :: mozilla :: dom :: DocumentOrShadowRoot_ElementsFromPointFlags = 2 ; - pub const DocumentOrShadowRoot_ElementsFromPointFlags_IS_ELEMENT_FROM_POINT : root :: mozilla :: dom :: DocumentOrShadowRoot_ElementsFromPointFlags = 4 ; + pub const DocumentOrShadowRoot_ElementsFromPointFlags_IGNORE_ROOT_SCROLL_FRAME: + root::mozilla::dom::DocumentOrShadowRoot_ElementsFromPointFlags = 1; + pub const DocumentOrShadowRoot_ElementsFromPointFlags_FLUSH_LAYOUT: + root::mozilla::dom::DocumentOrShadowRoot_ElementsFromPointFlags = 2; + pub const DocumentOrShadowRoot_ElementsFromPointFlags_IS_ELEMENT_FROM_POINT: + root::mozilla::dom::DocumentOrShadowRoot_ElementsFromPointFlags = 4; pub type DocumentOrShadowRoot_ElementsFromPointFlags = u32; #[test] fn bindgen_test_layout_DocumentOrShadowRoot() { @@ -4122,7 +2886,8 @@ pub mod root { pub mType: root::mozilla::dom::OwningNodeOrString_Type, pub mValue: root::mozilla::dom::OwningNodeOrString_Value, } - pub const OwningNodeOrString_Type_eUninitialized : root :: mozilla :: dom :: OwningNodeOrString_Type = 0 ; + pub const OwningNodeOrString_Type_eUninitialized: + root::mozilla::dom::OwningNodeOrString_Type = 0; pub const OwningNodeOrString_Type_eNode: root::mozilla::dom::OwningNodeOrString_Type = 1; pub const OwningNodeOrString_Type_eString: root::mozilla::dom::OwningNodeOrString_Type = @@ -4656,7 +3421,6 @@ pub mod root { #[derive(Debug)] pub struct DOMRect { pub _base: root::mozilla::dom::DOMRectReadOnly, - pub _base_1: root::nsIDOMClientRect, pub mX: f64, pub mY: f64, pub mWidth: f64, @@ -4666,7 +3430,7 @@ pub mod root { fn bindgen_test_layout_DOMRect() { assert_eq!( ::std::mem::size_of::<DOMRect>(), - 88usize, + 80usize, concat!("Size of: ", stringify!(DOMRect)) ); assert_eq!( @@ -4674,6 +3438,46 @@ pub mod root { 8usize, concat!("Alignment of ", stringify!(DOMRect)) ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<DOMRect>())).mX as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(DOMRect), + "::", + stringify!(mX) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<DOMRect>())).mY as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(DOMRect), + "::", + stringify!(mY) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<DOMRect>())).mWidth as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(DOMRect), + "::", + stringify!(mWidth) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<DOMRect>())).mHeight as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(DOMRect), + "::", + stringify!(mHeight) + ) + ); } pub const ShadowRootMode_Open: root::mozilla::dom::ShadowRootMode = 0; pub const ShadowRootMode_Closed: root::mozilla::dom::ShadowRootMode = 1; @@ -5383,12 +4187,18 @@ pub mod root { pub mFlags: u32, pub mPhase: root::mozilla::dom::AllChildrenIterator_IteratorPhase, } - pub const AllChildrenIterator_IteratorPhase_eAtBegin : root :: mozilla :: dom :: AllChildrenIterator_IteratorPhase = 0 ; - pub const AllChildrenIterator_IteratorPhase_eAtBeforeKid : root :: mozilla :: dom :: AllChildrenIterator_IteratorPhase = 1 ; - pub const AllChildrenIterator_IteratorPhase_eAtExplicitKids : root :: mozilla :: dom :: AllChildrenIterator_IteratorPhase = 2 ; - pub const AllChildrenIterator_IteratorPhase_eAtAnonKids : root :: mozilla :: dom :: AllChildrenIterator_IteratorPhase = 3 ; - pub const AllChildrenIterator_IteratorPhase_eAtAfterKid : root :: mozilla :: dom :: AllChildrenIterator_IteratorPhase = 4 ; - pub const AllChildrenIterator_IteratorPhase_eAtEnd : root :: mozilla :: dom :: AllChildrenIterator_IteratorPhase = 5 ; + pub const AllChildrenIterator_IteratorPhase_eAtBegin: + root::mozilla::dom::AllChildrenIterator_IteratorPhase = 0; + pub const AllChildrenIterator_IteratorPhase_eAtBeforeKid: + root::mozilla::dom::AllChildrenIterator_IteratorPhase = 1; + pub const AllChildrenIterator_IteratorPhase_eAtExplicitKids: + root::mozilla::dom::AllChildrenIterator_IteratorPhase = 2; + pub const AllChildrenIterator_IteratorPhase_eAtAnonKids: + root::mozilla::dom::AllChildrenIterator_IteratorPhase = 3; + pub const AllChildrenIterator_IteratorPhase_eAtAfterKid: + root::mozilla::dom::AllChildrenIterator_IteratorPhase = 4; + pub const AllChildrenIterator_IteratorPhase_eAtEnd: + root::mozilla::dom::AllChildrenIterator_IteratorPhase = 5; pub type AllChildrenIterator_IteratorPhase = u32; #[test] fn bindgen_test_layout_AllChildrenIterator() { @@ -5538,230 +4348,6 @@ pub mod root { } } #[repr(C)] - pub struct CSSVariableValues { - /// Map of variable names to IDs. Variable IDs are indexes into - /// mVariables. - pub mVariableIDs: [u64; 4usize], - /// Array of variables, indexed by variable ID. - pub mVariables: root::nsTArray<root::mozilla::CSSVariableValues_Variable>, - } - #[repr(C)] - pub struct CSSVariableValues_Variable { - pub mVariableName: ::nsstring::nsStringRepr, - pub mValue: ::nsstring::nsStringRepr, - pub mFirstToken: root::nsCSSTokenSerializationType, - pub mLastToken: root::nsCSSTokenSerializationType, - } - #[test] - fn bindgen_test_layout_CSSVariableValues_Variable() { - assert_eq!( - ::std::mem::size_of::<CSSVariableValues_Variable>(), - 40usize, - concat!("Size of: ", stringify!(CSSVariableValues_Variable)) - ); - assert_eq!( - ::std::mem::align_of::<CSSVariableValues_Variable>(), - 8usize, - concat!("Alignment of ", stringify!(CSSVariableValues_Variable)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<CSSVariableValues_Variable>())).mVariableName as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CSSVariableValues_Variable), - "::", - stringify!(mVariableName) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<CSSVariableValues_Variable>())).mValue as *const _ - as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(CSSVariableValues_Variable), - "::", - stringify!(mValue) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<CSSVariableValues_Variable>())).mFirstToken as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(CSSVariableValues_Variable), - "::", - stringify!(mFirstToken) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<CSSVariableValues_Variable>())).mLastToken as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(CSSVariableValues_Variable), - "::", - stringify!(mLastToken) - ) - ); - } - #[test] - fn bindgen_test_layout_CSSVariableValues() { - assert_eq!( - ::std::mem::size_of::<CSSVariableValues>(), - 40usize, - concat!("Size of: ", stringify!(CSSVariableValues)) - ); - assert_eq!( - ::std::mem::align_of::<CSSVariableValues>(), - 8usize, - concat!("Alignment of ", stringify!(CSSVariableValues)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<CSSVariableValues>())).mVariableIDs as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CSSVariableValues), - "::", - stringify!(mVariableIDs) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<CSSVariableValues>())).mVariables as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(CSSVariableValues), - "::", - stringify!(mVariables) - ) - ); - } - #[repr(u8)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum SheetType { - Agent = 0, - User = 1, - PresHint = 2, - Doc = 3, - StyleAttr = 4, - Override = 5, - Animation = 6, - Transition = 7, - Count = 8, - Unknown = 255, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct StaticRefPtr<T> { - pub mRawPtr: *mut T, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, - } - /// 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: root::nscolor, - pub mForegroundRatio: u8, - pub mIsAuto: bool, - } - #[test] - fn bindgen_test_layout_StyleComplexColor() { - assert_eq!( - ::std::mem::size_of::<StyleComplexColor>(), - 8usize, - concat!("Size of: ", stringify!(StyleComplexColor)) - ); - assert_eq!( - ::std::mem::align_of::<StyleComplexColor>(), - 4usize, - concat!("Alignment of ", stringify!(StyleComplexColor)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleComplexColor>())).mColor as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleComplexColor), - "::", - stringify!(mColor) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleComplexColor>())).mForegroundRatio as *const _ - as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(StyleComplexColor), - "::", - stringify!(mForegroundRatio) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleComplexColor>())).mIsAuto as *const _ as usize - }, - 5usize, - concat!( - "Offset of field: ", - stringify!(StyleComplexColor), - "::", - stringify!(mIsAuto) - ) - ); - } - impl Clone for StyleComplexColor { - fn clone(&self) -> Self { - *self - } - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum Side { - eSideTop = 0, - eSideRight = 1, - eSideBottom = 2, - eSideLeft = 3, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum HalfCorner { - eCornerTopLeftX = 0, - eCornerTopLeftY = 1, - eCornerTopRightX = 2, - eCornerTopRightY = 3, - eCornerBottomRightX = 4, - eCornerBottomRightY = 5, - eCornerBottomLeftX = 6, - eCornerBottomLeftY = 7, - } - #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct NotNull<T> { pub mBasePtr: T, @@ -6211,15 +4797,20 @@ pub mod root { pub const MediaFeatureChangeReason_ViewportChange: root::mozilla::MediaFeatureChangeReason = 1; pub const MediaFeatureChangeReason_ZoomChange: root::mozilla::MediaFeatureChangeReason = 2; - pub const MediaFeatureChangeReason_MinFontSizeChange : root :: mozilla :: MediaFeatureChangeReason = 4 ; - pub const MediaFeatureChangeReason_ResolutionChange : root :: mozilla :: MediaFeatureChangeReason = 8 ; + pub const MediaFeatureChangeReason_MinFontSizeChange: + root::mozilla::MediaFeatureChangeReason = 4; + pub const MediaFeatureChangeReason_ResolutionChange: + root::mozilla::MediaFeatureChangeReason = 8; pub const MediaFeatureChangeReason_MediumChange: root::mozilla::MediaFeatureChangeReason = 16; pub const MediaFeatureChangeReason_SizeModeChange: root::mozilla::MediaFeatureChangeReason = 32; - pub const MediaFeatureChangeReason_SystemMetricsChange : root :: mozilla :: MediaFeatureChangeReason = 64 ; - pub const MediaFeatureChangeReason_DeviceSizeIsPageSizeChange : root :: mozilla :: MediaFeatureChangeReason = 128 ; - pub const MediaFeatureChangeReason_DisplayModeChange : root :: mozilla :: MediaFeatureChangeReason = 256 ; + pub const MediaFeatureChangeReason_SystemMetricsChange: + root::mozilla::MediaFeatureChangeReason = 64; + pub const MediaFeatureChangeReason_DeviceSizeIsPageSizeChange: + root::mozilla::MediaFeatureChangeReason = 128; + pub const MediaFeatureChangeReason_DisplayModeChange: + root::mozilla::MediaFeatureChangeReason = 256; pub type MediaFeatureChangeReason = i32; #[repr(C)] #[derive(Debug, Copy)] @@ -6644,7 +5235,8 @@ pub mod root { pub const ServoTraversalFlags_ForCSSRuleChanges: root::mozilla::ServoTraversalFlags = 2; pub const ServoTraversalFlags_Forgetful: root::mozilla::ServoTraversalFlags = 8; pub const ServoTraversalFlags_ClearDirtyBits: root::mozilla::ServoTraversalFlags = 32; - pub const ServoTraversalFlags_ClearAnimationOnlyDirtyDescendants : root :: mozilla :: ServoTraversalFlags = 64 ; + pub const ServoTraversalFlags_ClearAnimationOnlyDirtyDescendants: + root::mozilla::ServoTraversalFlags = 64; pub const ServoTraversalFlags_ParallelTraversal: root::mozilla::ServoTraversalFlags = 128; pub const ServoTraversalFlags_FlushThrottledAnimations: root::mozilla::ServoTraversalFlags = 256; @@ -6659,7 +5251,8 @@ pub mod root { pub const UpdateAnimationsTasks_CSSTransitions: root::mozilla::UpdateAnimationsTasks = 2; pub const UpdateAnimationsTasks_EffectProperties: root::mozilla::UpdateAnimationsTasks = 4; pub const UpdateAnimationsTasks_CascadeResults: root::mozilla::UpdateAnimationsTasks = 8; - pub const UpdateAnimationsTasks_DisplayChangedFromNone : root :: mozilla :: UpdateAnimationsTasks = 16 ; + pub const UpdateAnimationsTasks_DisplayChangedFromNone: + root::mozilla::UpdateAnimationsTasks = 16; pub type UpdateAnimationsTasks = u8; pub const ParsingMode_Default: root::mozilla::ParsingMode = 0; pub const ParsingMode_AllowUnitlessLength: root::mozilla::ParsingMode = 1; @@ -6781,6 +5374,1366 @@ pub mod root { pub const StyleBackendType_Servo: root::mozilla::StyleBackendType = 2; /// Enumeration that represents one of the two supported style system backends. pub type StyleBackendType = u8; + pub mod css { + #[allow(unused_imports)] + use self::super::super::super::root; + #[repr(u8)] + /// Enum defining the mode in which a sheet is to be parsed. This is + /// usually, but not always, the same as the cascade level at which the + /// sheet will apply (see nsStyleSet.h). Most of the Loader APIs only + /// support loading of author sheets. + /// + /// Author sheets are the normal case: styles embedded in or linked + /// from HTML pages. They are also the most restricted. + /// + /// User sheets can do anything author sheets can do, and also get + /// access to a few CSS extensions that are not yet suitable for + /// exposure on the public Web, but are very useful for expressing + /// user style overrides, such as @-moz-document rules. + /// + /// XXX: eUserSheetFeatures was added in bug 1035091, but some patches in + /// that bug never landed to use this enum value. Currently, all the features + /// in user sheet are also available in author sheet. + /// + /// Agent sheets have access to all author- and user-sheet features + /// plus more extensions that are necessary for internal use but, + /// again, not yet suitable for exposure on the public Web. Some of + /// these are outright unsafe to expose; in particular, incorrect + /// styling of anonymous box pseudo-elements can violate layout + /// invariants. + /// + /// Agent sheets that do not use any unsafe rules could use + /// eSafeAgentSheetFeatures when creating the sheet. This enum value allows + /// Servo backend to recognize the sheets as the agent level, but Gecko + /// backend will parse it under _author_ level. + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum SheetParsingMode { + eAuthorSheetFeatures = 0, + eUserSheetFeatures = 1, + eAgentSheetFeatures = 2, + eSafeAgentSheetFeatures = 3, + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct GroupRule { + _unused: [u8; 0], + } + impl Clone for GroupRule { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ImageLoader { + _unused: [u8; 0], + } + impl Clone for ImageLoader { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + pub struct URLValueData__bindgen_vtable(::std::os::raw::c_void); + #[repr(C)] + #[derive(Debug)] + pub struct URLValueData { + pub vtable_: *const URLValueData__bindgen_vtable, + pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, + pub mURI: root::nsMainThreadPtrHandle<root::nsIURI>, + pub mExtraData: root::RefPtr<root::mozilla::URLExtraData>, + pub mURIResolved: bool, + pub mIsLocalRef: [u8; 2usize], + pub mMightHaveRef: [u8; 2usize], + pub mStrings: root::mozilla::css::URLValueData_RustOrGeckoString, + pub mUsingRustString: bool, + pub mLoadedImage: bool, + pub mCORSMode: root::mozilla::CORSMode, + } + pub type URLValueData_HasThreadSafeRefCnt = root::mozilla::TrueType; + #[repr(C)] + #[derive(Debug)] + pub struct URLValueData_RustOrGeckoString { + pub mString: root::__BindgenUnionField<::nsstring::nsStringRepr>, + pub mRustString: + root::__BindgenUnionField<::gecko_bindings::structs::ServoRawOffsetArc<root::RustString>>, + pub bindgen_union_field: [u64; 2usize], + } + #[test] + fn bindgen_test_layout_URLValueData_RustOrGeckoString() { + assert_eq!( + ::std::mem::size_of::<URLValueData_RustOrGeckoString>(), + 16usize, + concat!("Size of: ", stringify!(URLValueData_RustOrGeckoString)) + ); + assert_eq!( + ::std::mem::align_of::<URLValueData_RustOrGeckoString>(), + 8usize, + concat!("Alignment of ", stringify!(URLValueData_RustOrGeckoString)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData_RustOrGeckoString>())).mString + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(URLValueData_RustOrGeckoString), + "::", + stringify!(mString) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData_RustOrGeckoString>())).mRustString + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(URLValueData_RustOrGeckoString), + "::", + stringify!(mRustString) + ) + ); + } + #[test] + fn bindgen_test_layout_URLValueData() { + assert_eq!( + ::std::mem::size_of::<URLValueData>(), + 64usize, + concat!("Size of: ", stringify!(URLValueData)) + ); + assert_eq!( + ::std::mem::align_of::<URLValueData>(), + 8usize, + concat!("Alignment of ", stringify!(URLValueData)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mRefCnt as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mRefCnt) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<URLValueData>())).mURI as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mURI) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mExtraData as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mExtraData) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mURIResolved as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mURIResolved) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mIsLocalRef as *const _ as usize + }, + 33usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mIsLocalRef) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mMightHaveRef as *const _ as usize + }, + 35usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mMightHaveRef) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mStrings as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mStrings) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mUsingRustString as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mUsingRustString) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mLoadedImage as *const _ as usize + }, + 57usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mLoadedImage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<URLValueData>())).mCORSMode as *const _ as usize + }, + 58usize, + concat!( + "Offset of field: ", + stringify!(URLValueData), + "::", + stringify!(mCORSMode) + ) + ); + } + #[repr(C)] + #[derive(Debug)] + pub struct URLValue { + pub _base: root::mozilla::css::URLValueData, + } + #[test] + fn bindgen_test_layout_URLValue() { + assert_eq!( + ::std::mem::size_of::<URLValue>(), + 64usize, + concat!("Size of: ", stringify!(URLValue)) + ); + assert_eq!( + ::std::mem::align_of::<URLValue>(), + 8usize, + concat!("Alignment of ", stringify!(URLValue)) + ); + } + #[repr(C)] + #[derive(Debug)] + pub struct ImageValue { + pub _base: root::mozilla::css::URLValueData, + pub mRequests: [u64; 4usize], + } + #[test] + fn bindgen_test_layout_ImageValue() { + assert_eq!( + ::std::mem::size_of::<ImageValue>(), + 96usize, + concat!("Size of: ", stringify!(ImageValue)) + ); + assert_eq!( + ::std::mem::align_of::<ImageValue>(), + 8usize, + concat!("Alignment of ", stringify!(ImageValue)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ImageValue>())).mRequests as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(ImageValue), + "::", + stringify!(mRequests) + ) + ); + } + #[repr(C)] + pub struct GridNamedArea { + pub mName: ::nsstring::nsStringRepr, + pub mColumnStart: u32, + pub mColumnEnd: u32, + pub mRowStart: u32, + pub mRowEnd: u32, + } + #[test] + fn bindgen_test_layout_GridNamedArea() { + assert_eq!( + ::std::mem::size_of::<GridNamedArea>(), + 32usize, + concat!("Size of: ", stringify!(GridNamedArea)) + ); + assert_eq!( + ::std::mem::align_of::<GridNamedArea>(), + 8usize, + concat!("Alignment of ", stringify!(GridNamedArea)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<GridNamedArea>())).mName as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GridNamedArea), + "::", + stringify!(mName) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridNamedArea>())).mColumnStart as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GridNamedArea), + "::", + stringify!(mColumnStart) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridNamedArea>())).mColumnEnd as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(GridNamedArea), + "::", + stringify!(mColumnEnd) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridNamedArea>())).mRowStart as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(GridNamedArea), + "::", + stringify!(mRowStart) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridNamedArea>())).mRowEnd as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(GridNamedArea), + "::", + stringify!(mRowEnd) + ) + ); + } + #[repr(C)] + pub struct GridTemplateAreasValue { + pub mNamedAreas: root::nsTArray<root::mozilla::css::GridNamedArea>, + pub mTemplates: root::nsTArray<::nsstring::nsStringRepr>, + pub mNColumns: u32, + pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, + } + pub type GridTemplateAreasValue_HasThreadSafeRefCnt = root::mozilla::TrueType; + #[test] + fn bindgen_test_layout_GridTemplateAreasValue() { + assert_eq!( + ::std::mem::size_of::<GridTemplateAreasValue>(), + 32usize, + concat!("Size of: ", stringify!(GridTemplateAreasValue)) + ); + assert_eq!( + ::std::mem::align_of::<GridTemplateAreasValue>(), + 8usize, + concat!("Alignment of ", stringify!(GridTemplateAreasValue)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridTemplateAreasValue>())).mNamedAreas as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GridTemplateAreasValue), + "::", + stringify!(mNamedAreas) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridTemplateAreasValue>())).mTemplates as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GridTemplateAreasValue), + "::", + stringify!(mTemplates) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridTemplateAreasValue>())).mNColumns as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GridTemplateAreasValue), + "::", + stringify!(mNColumns) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<GridTemplateAreasValue>())).mRefCnt as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(GridTemplateAreasValue), + "::", + stringify!(mRefCnt) + ) + ); + } + #[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::<RGBAColorData>(), + 16usize, + concat!("Size of: ", stringify!(RGBAColorData)) + ); + assert_eq!( + ::std::mem::align_of::<RGBAColorData>(), + 4usize, + concat!("Alignment of ", stringify!(RGBAColorData)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mR as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(RGBAColorData), + "::", + stringify!(mR) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mG as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(RGBAColorData), + "::", + stringify!(mG) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mB as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(RGBAColorData), + "::", + stringify!(mB) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<RGBAColorData>())).mA as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(RGBAColorData), + "::", + stringify!(mA) + ) + ); + } + impl Clone for RGBAColorData { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ComplexColorData { + pub mColor: root::mozilla::css::RGBAColorData, + pub mForegroundRatio: f32, + } + #[test] + fn bindgen_test_layout_ComplexColorData() { + assert_eq!( + ::std::mem::size_of::<ComplexColorData>(), + 20usize, + concat!("Size of: ", stringify!(ComplexColorData)) + ); + assert_eq!( + ::std::mem::align_of::<ComplexColorData>(), + 4usize, + concat!("Alignment of ", stringify!(ComplexColorData)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ComplexColorData>())).mColor as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ComplexColorData), + "::", + stringify!(mColor) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ComplexColorData>())).mForegroundRatio as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ComplexColorData), + "::", + stringify!(mForegroundRatio) + ) + ); + } + impl Clone for ComplexColorData { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + #[derive(Debug)] + pub struct ComplexColorValue { + pub _base: root::mozilla::css::ComplexColorData, + pub mRefCnt: root::nsAutoRefCnt, + } + pub type ComplexColorValue_HasThreadSafeRefCnt = root::mozilla::FalseType; + #[test] + fn bindgen_test_layout_ComplexColorValue() { + assert_eq!( + ::std::mem::size_of::<ComplexColorValue>(), + 32usize, + concat!("Size of: ", stringify!(ComplexColorValue)) + ); + assert_eq!( + ::std::mem::align_of::<ComplexColorValue>(), + 8usize, + concat!("Alignment of ", stringify!(ComplexColorValue)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ComplexColorValue>())).mRefCnt as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ComplexColorValue), + "::", + stringify!(mRefCnt) + ) + ); + } + /// Style sheet reuse * + #[repr(C)] + pub struct LoaderReusableStyleSheets { + pub mReusableSheets: root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>, + } + #[test] + fn bindgen_test_layout_LoaderReusableStyleSheets() { + assert_eq!( + ::std::mem::size_of::<LoaderReusableStyleSheets>(), + 8usize, + concat!("Size of: ", stringify!(LoaderReusableStyleSheets)) + ); + assert_eq!( + ::std::mem::align_of::<LoaderReusableStyleSheets>(), + 8usize, + concat!("Alignment of ", stringify!(LoaderReusableStyleSheets)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<LoaderReusableStyleSheets>())).mReusableSheets + as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(LoaderReusableStyleSheets), + "::", + stringify!(mReusableSheets) + ) + ); + } + #[repr(C)] + pub struct Loader { + pub mRefCnt: root::nsCycleCollectingAutoRefCnt, + pub mSheets: root::nsAutoPtr<root::mozilla::css::Loader_Sheets>, + pub mPostedEvents: root::mozilla::css::Loader_LoadDataArray, + pub mObservers: [u64; 2usize], + pub mDocument: *mut root::nsIDocument, + pub mDocGroup: root::RefPtr<root::mozilla::dom::DocGroup>, + pub mDatasToNotifyOn: u32, + pub mCompatMode: root::nsCompatibility, + pub mPreferredSheet: ::nsstring::nsStringRepr, + pub mStyleBackendType: [u8; 2usize], + pub mEnabled: bool, + pub mReporter: root::nsCOMPtr, + } + pub use self :: super :: super :: super :: root :: mozilla :: net :: ReferrerPolicy as Loader_ReferrerPolicy; + pub type Loader_HasThreadSafeRefCnt = root::mozilla::FalseType; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct Loader_cycleCollection { + pub _base: root::nsCycleCollectionParticipant, + } + #[test] + fn bindgen_test_layout_Loader_cycleCollection() { + assert_eq!( + ::std::mem::size_of::<Loader_cycleCollection>(), + 16usize, + concat!("Size of: ", stringify!(Loader_cycleCollection)) + ); + assert_eq!( + ::std::mem::align_of::<Loader_cycleCollection>(), + 8usize, + concat!("Alignment of ", stringify!(Loader_cycleCollection)) + ); + } + impl Clone for Loader_cycleCollection { + fn clone(&self) -> Self { + *self + } + } + pub type Loader_LoadDataArray = + root::nsTArray<root::RefPtr<root::mozilla::css::SheetLoadData>>; + #[repr(C)] + #[derive(Debug)] + pub struct Loader_Sheets { + pub mCompleteSheets: [u64; 4usize], + pub mLoadingDatas: [u64; 4usize], + pub mPendingDatas: [u64; 4usize], + } + #[test] + fn bindgen_test_layout_Loader_Sheets() { + assert_eq!( + ::std::mem::size_of::<Loader_Sheets>(), + 96usize, + concat!("Size of: ", stringify!(Loader_Sheets)) + ); + assert_eq!( + ::std::mem::align_of::<Loader_Sheets>(), + 8usize, + concat!("Alignment of ", stringify!(Loader_Sheets)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<Loader_Sheets>())).mCompleteSheets as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Loader_Sheets), + "::", + stringify!(mCompleteSheets) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<Loader_Sheets>())).mLoadingDatas as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(Loader_Sheets), + "::", + stringify!(mLoadingDatas) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<Loader_Sheets>())).mPendingDatas as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(Loader_Sheets), + "::", + stringify!(mPendingDatas) + ) + ); + } + extern "C" { + #[link_name = "\u{1}_ZN7mozilla3css6Loader21_cycleCollectorGlobalE"] + pub static mut Loader__cycleCollectorGlobal: + root::mozilla::css::Loader_cycleCollection; + } + #[test] + fn bindgen_test_layout_Loader() { + assert_eq!( + ::std::mem::size_of::<Loader>(), + 96usize, + concat!("Size of: ", stringify!(Loader)) + ); + assert_eq!( + ::std::mem::align_of::<Loader>(), + 8usize, + concat!("Alignment of ", stringify!(Loader)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mRefCnt as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mRefCnt) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mSheets as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mSheets) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<Loader>())).mPostedEvents as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mPostedEvents) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mObservers as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mObservers) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mDocument as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mDocument) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mDocGroup as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mDocGroup) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<Loader>())).mDatasToNotifyOn as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mDatasToNotifyOn) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mCompatMode as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mCompatMode) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<Loader>())).mPreferredSheet as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mPreferredSheet) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<Loader>())).mStyleBackendType as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mStyleBackendType) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mEnabled as *const _ as usize }, + 82usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mEnabled) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<Loader>())).mReporter as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(Loader), + "::", + stringify!(mReporter) + ) + ); + } + #[repr(C)] + pub struct SheetLoadData { + pub _base: root::nsIRunnable, + pub _base_1: root::nsIUnicharStreamLoaderObserver, + pub _base_2: root::nsIThreadObserver, + pub mRefCnt: root::nsAutoRefCnt, + pub mLoader: root::RefPtr<root::mozilla::css::Loader>, + pub mTitle: ::nsstring::nsStringRepr, + pub mEncoding: *const root::mozilla::Encoding, + pub mURI: root::nsCOMPtr, + pub mLineNumber: u32, + pub mSheet: root::RefPtr<root::mozilla::StyleSheet>, + pub mNext: *mut root::mozilla::css::SheetLoadData, + pub mParentData: root::RefPtr<root::mozilla::css::SheetLoadData>, + pub mPendingChildren: u32, + pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 2usize], u8>, + pub mOwningElement: root::nsCOMPtr, + pub mObserver: root::nsCOMPtr, + pub mLoaderPrincipal: root::nsCOMPtr, + pub mRequestingNode: root::nsCOMPtr, + pub mPreloadEncoding: *const root::mozilla::Encoding, + } + pub type SheetLoadData_HasThreadSafeRefCnt = root::mozilla::FalseType; + #[test] + fn bindgen_test_layout_SheetLoadData() { + assert_eq!( + ::std::mem::size_of::<SheetLoadData>(), + 152usize, + concat!("Size of: ", stringify!(SheetLoadData)) + ); + assert_eq!( + ::std::mem::align_of::<SheetLoadData>(), + 8usize, + concat!("Alignment of ", stringify!(SheetLoadData)) + ); + } + impl SheetLoadData { + #[inline] + pub fn mSyncLoad(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_mSyncLoad(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn mIsNonDocumentSheet(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } + } + #[inline] + pub fn set_mIsNonDocumentSheet(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn mIsLoading(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) } + } + #[inline] + pub fn set_mIsLoading(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn mIsBeingParsed(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) } + } + #[inline] + pub fn set_mIsBeingParsed(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn mIsCancelled(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) } + } + #[inline] + pub fn set_mIsCancelled(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn mMustNotify(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) } + } + #[inline] + pub fn set_mMustNotify(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn mWasAlternate(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) } + } + #[inline] + pub fn set_mWasAlternate(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn mUseSystemPrincipal(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) } + } + #[inline] + pub fn set_mUseSystemPrincipal(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn mSheetAlreadyComplete(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } + } + #[inline] + pub fn set_mSheetAlreadyComplete(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 1u8, val as u64) + } + } + #[inline] + pub fn mIsCrossOriginNoCORS(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } + } + #[inline] + pub fn set_mIsCrossOriginNoCORS(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn mBlockResourceTiming(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } + } + #[inline] + pub fn set_mBlockResourceTiming(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn mLoadFailed(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } + } + #[inline] + pub fn set_mLoadFailed(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + mSyncLoad: bool, + mIsNonDocumentSheet: bool, + mIsLoading: bool, + mIsBeingParsed: bool, + mIsCancelled: bool, + mMustNotify: bool, + mWasAlternate: bool, + mUseSystemPrincipal: bool, + mSheetAlreadyComplete: bool, + mIsCrossOriginNoCORS: bool, + mBlockResourceTiming: bool, + mLoadFailed: bool, + ) -> root::__BindgenBitfieldUnit<[u8; 2usize], u8> { + let mut __bindgen_bitfield_unit : root :: __BindgenBitfieldUnit < [ u8 ; 2usize ] , u8 > = Default :: default ( ) ; + __bindgen_bitfield_unit.set(0usize, 1u8, { + let mSyncLoad: u8 = unsafe { ::std::mem::transmute(mSyncLoad) }; + mSyncLoad as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let mIsNonDocumentSheet: u8 = + unsafe { ::std::mem::transmute(mIsNonDocumentSheet) }; + mIsNonDocumentSheet as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let mIsLoading: u8 = unsafe { ::std::mem::transmute(mIsLoading) }; + mIsLoading as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let mIsBeingParsed: u8 = unsafe { ::std::mem::transmute(mIsBeingParsed) }; + mIsBeingParsed as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let mIsCancelled: u8 = unsafe { ::std::mem::transmute(mIsCancelled) }; + mIsCancelled as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let mMustNotify: u8 = unsafe { ::std::mem::transmute(mMustNotify) }; + mMustNotify as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let mWasAlternate: u8 = unsafe { ::std::mem::transmute(mWasAlternate) }; + mWasAlternate as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let mUseSystemPrincipal: u8 = + unsafe { ::std::mem::transmute(mUseSystemPrincipal) }; + mUseSystemPrincipal as u64 + }); + __bindgen_bitfield_unit.set(8usize, 1u8, { + let mSheetAlreadyComplete: u8 = + unsafe { ::std::mem::transmute(mSheetAlreadyComplete) }; + mSheetAlreadyComplete as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let mIsCrossOriginNoCORS: u8 = + unsafe { ::std::mem::transmute(mIsCrossOriginNoCORS) }; + mIsCrossOriginNoCORS as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let mBlockResourceTiming: u8 = + unsafe { ::std::mem::transmute(mBlockResourceTiming) }; + mBlockResourceTiming as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let mLoadFailed: u8 = unsafe { ::std::mem::transmute(mLoadFailed) }; + mLoadFailed as u64 + }); + __bindgen_bitfield_unit + } + } + #[repr(C)] + #[derive(Debug)] + pub struct Rule { + pub _base: root::nsISupports, + pub _base_1: root::nsWrapperCache, + pub mRefCnt: root::nsCycleCollectingAutoRefCnt, + pub mSheet: *mut root::mozilla::StyleSheet, + pub mParentRule: *mut root::mozilla::css::GroupRule, + pub mLineNumber: u32, + pub mColumnNumber: u32, + } + pub type Rule_HasThreadSafeRefCnt = root::mozilla::FalseType; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct Rule_cycleCollection { + pub _base: root::nsXPCOMCycleCollectionParticipant, + } + #[test] + fn bindgen_test_layout_Rule_cycleCollection() { + assert_eq!( + ::std::mem::size_of::<Rule_cycleCollection>(), + 16usize, + concat!("Size of: ", stringify!(Rule_cycleCollection)) + ); + assert_eq!( + ::std::mem::align_of::<Rule_cycleCollection>(), + 8usize, + concat!("Alignment of ", stringify!(Rule_cycleCollection)) + ); + } + impl Clone for Rule_cycleCollection { + fn clone(&self) -> Self { + *self + } + } + pub const Rule_UNKNOWN_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 0; + pub const Rule_CHARSET_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 1; + pub const Rule_IMPORT_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 2; + pub const Rule_NAMESPACE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 3; + pub const Rule_STYLE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 4; + pub const Rule_MEDIA_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 5; + pub const Rule_FONT_FACE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 6; + pub const Rule_PAGE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 7; + pub const Rule_KEYFRAME_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 8; + pub const Rule_KEYFRAMES_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 9; + pub const Rule_DOCUMENT_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 10; + pub const Rule_SUPPORTS_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 11; + pub const Rule_FONT_FEATURE_VALUES_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 12; + pub const Rule_COUNTER_STYLE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 13; + pub type Rule__bindgen_ty_1 = u32; + extern "C" { + #[link_name = "\u{1}_ZN7mozilla3css4Rule21_cycleCollectorGlobalE"] + pub static mut Rule__cycleCollectorGlobal: root::mozilla::css::Rule_cycleCollection; + } + #[test] + fn bindgen_test_layout_Rule() { + assert_eq!( + ::std::mem::size_of::<Rule>(), + 64usize, + concat!("Size of: ", stringify!(Rule)) + ); + assert_eq!( + ::std::mem::align_of::<Rule>(), + 8usize, + concat!("Alignment of ", stringify!(Rule)) + ); + } + #[repr(C)] + pub struct ErrorReporter { + pub mError: root::nsAutoString, + pub mErrorLine: ::nsstring::nsStringRepr, + pub mFileName: ::nsstring::nsStringRepr, + pub mScanner: *const root::nsCSSScanner, + pub mSheet: *const root::mozilla::StyleSheet, + pub mLoader: *const root::mozilla::css::Loader, + pub mURI: *mut root::nsIURI, + pub mInnerWindowID: u64, + pub mErrorLineNumber: u32, + pub mPrevErrorLineNumber: u32, + pub mErrorColNumber: u32, + } + #[test] + fn bindgen_test_layout_ErrorReporter() { + assert_eq!( + ::std::mem::size_of::<ErrorReporter>(), + 240usize, + concat!("Size of: ", stringify!(ErrorReporter)) + ); + assert_eq!( + ::std::mem::align_of::<ErrorReporter>(), + 8usize, + concat!("Alignment of ", stringify!(ErrorReporter)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mError as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mError) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mErrorLine as *const _ as usize + }, + 152usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mErrorLine) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mFileName as *const _ as usize + }, + 168usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mFileName) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mScanner as *const _ as usize + }, + 184usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mScanner) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mSheet as *const _ as usize + }, + 192usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mSheet) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mLoader as *const _ as usize + }, + 200usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mLoader) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ErrorReporter>())).mURI as *const _ as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mURI) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mInnerWindowID as *const _ + as usize + }, + 216usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mInnerWindowID) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mErrorLineNumber as *const _ + as usize + }, + 224usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mErrorLineNumber) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mPrevErrorLineNumber as *const _ + as usize + }, + 228usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mPrevErrorLineNumber) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<ErrorReporter>())).mErrorColNumber as *const _ + as usize + }, + 232usize, + concat!( + "Offset of field: ", + stringify!(ErrorReporter), + "::", + stringify!(mErrorColNumber) + ) + ); + } + #[repr(i32)] + /// Enum defining the type of URL matching function for a @-moz-document rule + /// condition. + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum URLMatchingFunction { + eURL = 0, + eURLPrefix = 1, + eDomain = 2, + eRegExp = 3, + } + } pub mod profiler { #[allow(unused_imports)] use self::super::super::super::root; @@ -6986,23 +6939,20 @@ pub mod root { } } } - #[repr(C)] - #[derive(Debug)] - pub struct OwningNonNull<T> { - pub mPtr: root::RefPtr<T>, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, - } pub mod net { #[allow(unused_imports)] use self::super::super::super::root; pub const ReferrerPolicy_RP_No_Referrer: root::mozilla::net::ReferrerPolicy = 2; pub const ReferrerPolicy_RP_Origin: root::mozilla::net::ReferrerPolicy = 3; - pub const ReferrerPolicy_RP_No_Referrer_When_Downgrade : root :: mozilla :: net :: ReferrerPolicy = 1 ; - pub const ReferrerPolicy_RP_Origin_When_Crossorigin : root :: mozilla :: net :: ReferrerPolicy = 4 ; + pub const ReferrerPolicy_RP_No_Referrer_When_Downgrade: + root::mozilla::net::ReferrerPolicy = 1; + pub const ReferrerPolicy_RP_Origin_When_Crossorigin: + root::mozilla::net::ReferrerPolicy = 4; pub const ReferrerPolicy_RP_Unsafe_URL: root::mozilla::net::ReferrerPolicy = 5; pub const ReferrerPolicy_RP_Same_Origin: root::mozilla::net::ReferrerPolicy = 6; pub const ReferrerPolicy_RP_Strict_Origin: root::mozilla::net::ReferrerPolicy = 7; - pub const ReferrerPolicy_RP_Strict_Origin_When_Cross_Origin : root :: mozilla :: net :: ReferrerPolicy = 8 ; + pub const ReferrerPolicy_RP_Strict_Origin_When_Cross_Origin: + root::mozilla::net::ReferrerPolicy = 8; pub const ReferrerPolicy_RP_Unset: root::mozilla::net::ReferrerPolicy = 0; pub type ReferrerPolicy = u32; } @@ -7062,7 +7012,8 @@ pub mod root { } pub const StyleSheet_ChangeType_Added: root::mozilla::StyleSheet_ChangeType = 0; pub const StyleSheet_ChangeType_Removed: root::mozilla::StyleSheet_ChangeType = 1; - pub const StyleSheet_ChangeType_ApplicableStateChanged : root :: mozilla :: StyleSheet_ChangeType = 2 ; + pub const StyleSheet_ChangeType_ApplicableStateChanged: + root::mozilla::StyleSheet_ChangeType = 2; pub const StyleSheet_ChangeType_RuleAdded: root::mozilla::StyleSheet_ChangeType = 3; pub const StyleSheet_ChangeType_RuleRemoved: root::mozilla::StyleSheet_ChangeType = 4; pub const StyleSheet_ChangeType_RuleChanged: root::mozilla::StyleSheet_ChangeType = 5; @@ -7071,8 +7022,10 @@ pub mod root { /// Used by the StyleSets in order to handle more efficiently some kinds of /// changes. pub type StyleSheet_ChangeType = i32; - pub const StyleSheet_DocumentAssociationMode_OwnedByDocument : root :: mozilla :: StyleSheet_DocumentAssociationMode = 0 ; - pub const StyleSheet_DocumentAssociationMode_NotOwnedByDocument : root :: mozilla :: StyleSheet_DocumentAssociationMode = 1 ; + pub const StyleSheet_DocumentAssociationMode_OwnedByDocument: + root::mozilla::StyleSheet_DocumentAssociationMode = 0; + pub const StyleSheet_DocumentAssociationMode_NotOwnedByDocument: + root::mozilla::StyleSheet_DocumentAssociationMode = 1; pub type StyleSheet_DocumentAssociationMode = u8; #[repr(C)] #[derive(Debug, Copy)] @@ -7127,8 +7080,10 @@ pub mod root { *self } } - pub const StyleSheet_dirtyFlagAttributes_FORCED_UNIQUE_INNER : root :: mozilla :: StyleSheet_dirtyFlagAttributes = 1 ; - pub const StyleSheet_dirtyFlagAttributes_MODIFIED_RULES : root :: mozilla :: StyleSheet_dirtyFlagAttributes = 2 ; + pub const StyleSheet_dirtyFlagAttributes_FORCED_UNIQUE_INNER: + root::mozilla::StyleSheet_dirtyFlagAttributes = 1; + pub const StyleSheet_dirtyFlagAttributes_MODIFIED_RULES: + root::mozilla::StyleSheet_dirtyFlagAttributes = 2; pub type StyleSheet_dirtyFlagAttributes = u32; extern "C" { #[link_name = "\u{1}_ZN7mozilla10StyleSheet21_cycleCollectorGlobalE"] @@ -7283,6 +7238,16 @@ pub mod root { *self } } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct EventListenerManager { + _unused: [u8; 0], + } + impl Clone for EventListenerManager { + fn clone(&self) -> Self { + *self + } + } pub mod widget { #[allow(unused_imports)] use self::super::super::super::root; @@ -7393,16 +7358,20 @@ pub mod root { pub const FrameChildListID_kAbsoluteList: root::mozilla::layout::FrameChildListID = 32; pub const FrameChildListID_kFixedList: root::mozilla::layout::FrameChildListID = 64; pub const FrameChildListID_kOverflowList: root::mozilla::layout::FrameChildListID = 128; - pub const FrameChildListID_kOverflowContainersList : root :: mozilla :: layout :: FrameChildListID = 256 ; - pub const FrameChildListID_kExcessOverflowContainersList : root :: mozilla :: layout :: FrameChildListID = 512 ; - pub const FrameChildListID_kOverflowOutOfFlowList : root :: mozilla :: layout :: FrameChildListID = 1024 ; + pub const FrameChildListID_kOverflowContainersList: + root::mozilla::layout::FrameChildListID = 256; + pub const FrameChildListID_kExcessOverflowContainersList: + root::mozilla::layout::FrameChildListID = 512; + pub const FrameChildListID_kOverflowOutOfFlowList: + root::mozilla::layout::FrameChildListID = 1024; pub const FrameChildListID_kFloatList: root::mozilla::layout::FrameChildListID = 2048; pub const FrameChildListID_kBulletList: root::mozilla::layout::FrameChildListID = 4096; pub const FrameChildListID_kPushedFloatsList: root::mozilla::layout::FrameChildListID = 8192; pub const FrameChildListID_kBackdropList: root::mozilla::layout::FrameChildListID = 16384; - pub const FrameChildListID_kNoReflowPrincipalList : root :: mozilla :: layout :: FrameChildListID = 32768 ; + pub const FrameChildListID_kNoReflowPrincipalList: + root::mozilla::layout::FrameChildListID = 32768; pub type FrameChildListID = u32; } #[repr(C)] @@ -7535,8 +7504,10 @@ pub mod root { pub const UseCounter_eUseCounter_UNKNOWN: root::mozilla::UseCounter = -1; pub const UseCounter_eUseCounter_SVGSVGElement_getElementById: root::mozilla::UseCounter = 0; - pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_getter : root :: mozilla :: UseCounter = 1 ; - pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_setter : root :: mozilla :: UseCounter = 2 ; + pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_getter: + root::mozilla::UseCounter = 1; + pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_setter: + root::mozilla::UseCounter = 2; pub const UseCounter_eUseCounter_property_Fill: root::mozilla::UseCounter = 3; pub const UseCounter_eUseCounter_property_FillOpacity: root::mozilla::UseCounter = 4; pub const UseCounter_eUseCounter_XMLDocument_async_getter: root::mozilla::UseCounter = 5; @@ -7554,32 +7525,53 @@ pub mod root { pub const UseCounter_eUseCounter_OfflineResourceList_swapCache: root::mozilla::UseCounter = 16; pub const UseCounter_eUseCounter_OfflineResourceList_update: root::mozilla::UseCounter = 17; - pub const UseCounter_eUseCounter_OfflineResourceList_status_getter : root :: mozilla :: UseCounter = 18 ; - pub const UseCounter_eUseCounter_OfflineResourceList_status_setter : root :: mozilla :: UseCounter = 19 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_getter : root :: mozilla :: UseCounter = 20 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_setter : root :: mozilla :: UseCounter = 21 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onerror_getter : root :: mozilla :: UseCounter = 22 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onerror_setter : root :: mozilla :: UseCounter = 23 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_getter : root :: mozilla :: UseCounter = 24 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_setter : root :: mozilla :: UseCounter = 25 ; - pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_getter : root :: mozilla :: UseCounter = 26 ; - pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_setter : root :: mozilla :: UseCounter = 27 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_getter : root :: mozilla :: UseCounter = 28 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_setter : root :: mozilla :: UseCounter = 29 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_getter : root :: mozilla :: UseCounter = 30 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_setter : root :: mozilla :: UseCounter = 31 ; - pub const UseCounter_eUseCounter_OfflineResourceList_oncached_getter : root :: mozilla :: UseCounter = 32 ; - pub const UseCounter_eUseCounter_OfflineResourceList_oncached_setter : root :: mozilla :: UseCounter = 33 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_getter : root :: mozilla :: UseCounter = 34 ; - pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_setter : root :: mozilla :: UseCounter = 35 ; + pub const UseCounter_eUseCounter_OfflineResourceList_status_getter: + root::mozilla::UseCounter = 18; + pub const UseCounter_eUseCounter_OfflineResourceList_status_setter: + root::mozilla::UseCounter = 19; + pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_getter: + root::mozilla::UseCounter = 20; + pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_setter: + root::mozilla::UseCounter = 21; + pub const UseCounter_eUseCounter_OfflineResourceList_onerror_getter: + root::mozilla::UseCounter = 22; + pub const UseCounter_eUseCounter_OfflineResourceList_onerror_setter: + root::mozilla::UseCounter = 23; + pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_getter: + root::mozilla::UseCounter = 24; + pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_setter: + root::mozilla::UseCounter = 25; + pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_getter: + root::mozilla::UseCounter = 26; + pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_setter: + root::mozilla::UseCounter = 27; + pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_getter: + root::mozilla::UseCounter = 28; + pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_setter: + root::mozilla::UseCounter = 29; + pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_getter: + root::mozilla::UseCounter = 30; + pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_setter: + root::mozilla::UseCounter = 31; + pub const UseCounter_eUseCounter_OfflineResourceList_oncached_getter: + root::mozilla::UseCounter = 32; + pub const UseCounter_eUseCounter_OfflineResourceList_oncached_setter: + root::mozilla::UseCounter = 33; + pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_getter: + root::mozilla::UseCounter = 34; + pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_setter: + root::mozilla::UseCounter = 35; pub const UseCounter_eUseCounter_IDBDatabase_createMutableFile: root::mozilla::UseCounter = 36; - pub const UseCounter_eUseCounter_IDBDatabase_mozCreateFileHandle : root :: mozilla :: UseCounter = 37 ; + pub const UseCounter_eUseCounter_IDBDatabase_mozCreateFileHandle: + root::mozilla::UseCounter = 37; pub const UseCounter_eUseCounter_IDBMutableFile_open: root::mozilla::UseCounter = 38; pub const UseCounter_eUseCounter_IDBMutableFile_getFile: root::mozilla::UseCounter = 39; pub const UseCounter_eUseCounter_DataTransfer_addElement: root::mozilla::UseCounter = 40; - pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_getter : root :: mozilla :: UseCounter = 41 ; - pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_setter : root :: mozilla :: UseCounter = 42 ; + pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_getter: + root::mozilla::UseCounter = 41; + pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_setter: + root::mozilla::UseCounter = 42; pub const UseCounter_eUseCounter_DataTransfer_mozCursor_getter: root::mozilla::UseCounter = 43; pub const UseCounter_eUseCounter_DataTransfer_mozCursor_setter: root::mozilla::UseCounter = @@ -7589,10 +7581,14 @@ pub mod root { 46; pub const UseCounter_eUseCounter_DataTransfer_mozSetDataAt: root::mozilla::UseCounter = 47; pub const UseCounter_eUseCounter_DataTransfer_mozGetDataAt: root::mozilla::UseCounter = 48; - pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_getter : root :: mozilla :: UseCounter = 49 ; - pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_setter : root :: mozilla :: UseCounter = 50 ; - pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_getter : root :: mozilla :: UseCounter = 51 ; - pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_setter : root :: mozilla :: UseCounter = 52 ; + pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_getter: + root::mozilla::UseCounter = 49; + pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_setter: + root::mozilla::UseCounter = 50; + pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_getter: + root::mozilla::UseCounter = 51; + pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_setter: + root::mozilla::UseCounter = 52; pub const UseCounter_eUseCounter_custom_JS_asmjs: root::mozilla::UseCounter = 53; pub const UseCounter_eUseCounter_custom_JS_wasm: root::mozilla::UseCounter = 54; pub const UseCounter_eUseCounter_console_assert: root::mozilla::UseCounter = 55; @@ -7623,42 +7619,44 @@ pub mod root { pub const UseCounter_eUseCounter_PrefixedVisibilityAPI: root::mozilla::UseCounter = 80; pub const UseCounter_eUseCounter_NodeIteratorDetach: root::mozilla::UseCounter = 81; pub const UseCounter_eUseCounter_LenientThis: root::mozilla::UseCounter = 82; - pub const UseCounter_eUseCounter_GetSetUserData: root::mozilla::UseCounter = 83; - pub const UseCounter_eUseCounter_MozGetAsFile: root::mozilla::UseCounter = 84; - pub const UseCounter_eUseCounter_UseOfCaptureEvents: root::mozilla::UseCounter = 85; - pub const UseCounter_eUseCounter_UseOfReleaseEvents: root::mozilla::UseCounter = 86; - pub const UseCounter_eUseCounter_UseOfDOM3LoadMethod: root::mozilla::UseCounter = 87; - pub const UseCounter_eUseCounter_ChromeUseOfDOM3LoadMethod: root::mozilla::UseCounter = 88; - pub const UseCounter_eUseCounter_ShowModalDialog: root::mozilla::UseCounter = 89; - pub const UseCounter_eUseCounter_SyncXMLHttpRequest: root::mozilla::UseCounter = 90; - pub const UseCounter_eUseCounter_Window_Cc_ontrollers: root::mozilla::UseCounter = 91; - pub const UseCounter_eUseCounter_ImportXULIntoContent: root::mozilla::UseCounter = 92; - pub const UseCounter_eUseCounter_PannerNodeDoppler: root::mozilla::UseCounter = 93; - pub const UseCounter_eUseCounter_NavigatorGetUserMedia: root::mozilla::UseCounter = 94; - pub const UseCounter_eUseCounter_WebrtcDeprecatedPrefix: root::mozilla::UseCounter = 95; + pub const UseCounter_eUseCounter_MozGetAsFile: root::mozilla::UseCounter = 83; + pub const UseCounter_eUseCounter_UseOfCaptureEvents: root::mozilla::UseCounter = 84; + pub const UseCounter_eUseCounter_UseOfReleaseEvents: root::mozilla::UseCounter = 85; + pub const UseCounter_eUseCounter_UseOfDOM3LoadMethod: root::mozilla::UseCounter = 86; + pub const UseCounter_eUseCounter_ChromeUseOfDOM3LoadMethod: root::mozilla::UseCounter = 87; + pub const UseCounter_eUseCounter_ShowModalDialog: root::mozilla::UseCounter = 88; + pub const UseCounter_eUseCounter_SyncXMLHttpRequest: root::mozilla::UseCounter = 89; + pub const UseCounter_eUseCounter_Window_Cc_ontrollers: root::mozilla::UseCounter = 90; + pub const UseCounter_eUseCounter_ImportXULIntoContent: root::mozilla::UseCounter = 91; + pub const UseCounter_eUseCounter_PannerNodeDoppler: root::mozilla::UseCounter = 92; + pub const UseCounter_eUseCounter_NavigatorGetUserMedia: root::mozilla::UseCounter = 93; + pub const UseCounter_eUseCounter_WebrtcDeprecatedPrefix: root::mozilla::UseCounter = 94; pub const UseCounter_eUseCounter_RTCPeerConnectionGetStreams: root::mozilla::UseCounter = - 96; - pub const UseCounter_eUseCounter_AppCache: root::mozilla::UseCounter = 97; - pub const UseCounter_eUseCounter_AppCacheInsecure: root::mozilla::UseCounter = 98; + 95; + pub const UseCounter_eUseCounter_AppCache: root::mozilla::UseCounter = 96; + pub const UseCounter_eUseCounter_AppCacheInsecure: root::mozilla::UseCounter = 97; pub const UseCounter_eUseCounter_PrefixedImageSmoothingEnabled: root::mozilla::UseCounter = - 99; - pub const UseCounter_eUseCounter_PrefixedFullscreenAPI: root::mozilla::UseCounter = 100; - pub const UseCounter_eUseCounter_LenientSetter: root::mozilla::UseCounter = 101; - pub const UseCounter_eUseCounter_FileLastModifiedDate: root::mozilla::UseCounter = 102; - pub const UseCounter_eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap : root :: mozilla :: UseCounter = 103 ; + 98; + pub const UseCounter_eUseCounter_PrefixedFullscreenAPI: root::mozilla::UseCounter = 99; + pub const UseCounter_eUseCounter_LenientSetter: root::mozilla::UseCounter = 100; + pub const UseCounter_eUseCounter_FileLastModifiedDate: root::mozilla::UseCounter = 101; + pub const UseCounter_eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap: + root::mozilla::UseCounter = 102; pub const UseCounter_eUseCounter_URLCreateObjectURL_MediaStream: root::mozilla::UseCounter = - 104; - pub const UseCounter_eUseCounter_XMLBaseAttribute: root::mozilla::UseCounter = 105; - pub const UseCounter_eUseCounter_WindowContentUntrusted: root::mozilla::UseCounter = 106; - pub const UseCounter_eUseCounter_RegisterProtocolHandlerInsecure : root :: mozilla :: UseCounter = 107 ; + 103; + pub const UseCounter_eUseCounter_XMLBaseAttribute: root::mozilla::UseCounter = 104; + pub const UseCounter_eUseCounter_WindowContentUntrusted: root::mozilla::UseCounter = 105; + pub const UseCounter_eUseCounter_RegisterProtocolHandlerInsecure: + root::mozilla::UseCounter = 106; pub const UseCounter_eUseCounter_MixedDisplayObjectSubrequest: root::mozilla::UseCounter = - 108; - pub const UseCounter_eUseCounter_MotionEvent: root::mozilla::UseCounter = 109; - pub const UseCounter_eUseCounter_OrientationEvent: root::mozilla::UseCounter = 110; - pub const UseCounter_eUseCounter_ProximityEvent: root::mozilla::UseCounter = 111; - pub const UseCounter_eUseCounter_AmbientLightEvent: root::mozilla::UseCounter = 112; + 107; + pub const UseCounter_eUseCounter_MotionEvent: root::mozilla::UseCounter = 108; + pub const UseCounter_eUseCounter_OrientationEvent: root::mozilla::UseCounter = 109; + pub const UseCounter_eUseCounter_ProximityEvent: root::mozilla::UseCounter = 110; + pub const UseCounter_eUseCounter_AmbientLightEvent: root::mozilla::UseCounter = 111; pub const UseCounter_eUseCounter_IDBOpenDBOptions_StorageType: root::mozilla::UseCounter = - 113; + 112; + pub const UseCounter_eUseCounter_GetPropertyCSSValue: root::mozilla::UseCounter = 113; pub const UseCounter_eUseCounter_Count: root::mozilla::UseCounter = 114; pub type UseCounter = i16; pub const LogLevel_Disabled: root::mozilla::LogLevel = 0; @@ -8422,10 +8420,14 @@ pub mod root { pub struct BlockingResourceBase { pub _address: u8, } - pub const BlockingResourceBase_BlockingResourceType_eMutex : root :: mozilla :: BlockingResourceBase_BlockingResourceType = 0 ; - pub const BlockingResourceBase_BlockingResourceType_eReentrantMonitor : root :: mozilla :: BlockingResourceBase_BlockingResourceType = 1 ; - pub const BlockingResourceBase_BlockingResourceType_eCondVar : root :: mozilla :: BlockingResourceBase_BlockingResourceType = 2 ; - pub const BlockingResourceBase_BlockingResourceType_eRecursiveMutex : root :: mozilla :: BlockingResourceBase_BlockingResourceType = 3 ; + pub const BlockingResourceBase_BlockingResourceType_eMutex: + root::mozilla::BlockingResourceBase_BlockingResourceType = 0; + pub const BlockingResourceBase_BlockingResourceType_eReentrantMonitor: + root::mozilla::BlockingResourceBase_BlockingResourceType = 1; + pub const BlockingResourceBase_BlockingResourceType_eCondVar: + root::mozilla::BlockingResourceBase_BlockingResourceType = 2; + pub const BlockingResourceBase_BlockingResourceType_eRecursiveMutex: + root::mozilla::BlockingResourceBase_BlockingResourceType = 3; pub type BlockingResourceBase_BlockingResourceType = u32; extern "C" { #[link_name = "\u{1}_ZN7mozilla20BlockingResourceBase17kResourceTypeNameE"] @@ -9649,298 +9651,17 @@ pub mod root { pub const SERVO_PREF_ENABLED__webkit_mask_position_y: bool = true; pub const SERVO_PREF_ENABLED__webkit_mask_repeat: bool = true; pub const SERVO_PREF_ENABLED__webkit_mask_size: bool = true; - /// Utility class to handle animated style values - #[repr(C)] - #[derive(Debug, Copy)] - pub struct StyleAnimationValue { - pub _bindgen_opaque_blob: [u64; 2usize], - } - pub const StyleAnimationValue_Unit_eUnit_Null: root::mozilla::StyleAnimationValue_Unit = 0; - pub const StyleAnimationValue_Unit_eUnit_Normal: root::mozilla::StyleAnimationValue_Unit = - 1; - pub const StyleAnimationValue_Unit_eUnit_Auto: root::mozilla::StyleAnimationValue_Unit = 2; - pub const StyleAnimationValue_Unit_eUnit_None: root::mozilla::StyleAnimationValue_Unit = 3; - pub const StyleAnimationValue_Unit_eUnit_Enumerated : root :: mozilla :: StyleAnimationValue_Unit = 4 ; - pub const StyleAnimationValue_Unit_eUnit_Visibility : root :: mozilla :: StyleAnimationValue_Unit = 5 ; - pub const StyleAnimationValue_Unit_eUnit_Integer: root::mozilla::StyleAnimationValue_Unit = - 6; - pub const StyleAnimationValue_Unit_eUnit_Coord: root::mozilla::StyleAnimationValue_Unit = 7; - pub const StyleAnimationValue_Unit_eUnit_Percent: root::mozilla::StyleAnimationValue_Unit = - 8; - pub const StyleAnimationValue_Unit_eUnit_Float: root::mozilla::StyleAnimationValue_Unit = 9; - pub const StyleAnimationValue_Unit_eUnit_Color: root::mozilla::StyleAnimationValue_Unit = - 10; - pub const StyleAnimationValue_Unit_eUnit_CurrentColor : root :: mozilla :: StyleAnimationValue_Unit = 11 ; - pub const StyleAnimationValue_Unit_eUnit_ComplexColor : root :: mozilla :: StyleAnimationValue_Unit = 12 ; - pub const StyleAnimationValue_Unit_eUnit_Calc: root::mozilla::StyleAnimationValue_Unit = 13; - pub const StyleAnimationValue_Unit_eUnit_ObjectPosition : root :: mozilla :: StyleAnimationValue_Unit = 14 ; - pub const StyleAnimationValue_Unit_eUnit_URL: root::mozilla::StyleAnimationValue_Unit = 15; - pub const StyleAnimationValue_Unit_eUnit_DiscreteCSSValue : root :: mozilla :: StyleAnimationValue_Unit = 16 ; - pub const StyleAnimationValue_Unit_eUnit_CSSValuePair : root :: mozilla :: StyleAnimationValue_Unit = 17 ; - pub const StyleAnimationValue_Unit_eUnit_CSSValueTriplet : root :: mozilla :: StyleAnimationValue_Unit = 18 ; - pub const StyleAnimationValue_Unit_eUnit_CSSRect: root::mozilla::StyleAnimationValue_Unit = - 19; - pub const StyleAnimationValue_Unit_eUnit_Dasharray : root :: mozilla :: StyleAnimationValue_Unit = 20 ; - pub const StyleAnimationValue_Unit_eUnit_Shadow: root::mozilla::StyleAnimationValue_Unit = - 21; - pub const StyleAnimationValue_Unit_eUnit_Shape: root::mozilla::StyleAnimationValue_Unit = - 22; - pub const StyleAnimationValue_Unit_eUnit_Filter: root::mozilla::StyleAnimationValue_Unit = - 23; - pub const StyleAnimationValue_Unit_eUnit_Transform : root :: mozilla :: StyleAnimationValue_Unit = 24 ; - pub const StyleAnimationValue_Unit_eUnit_BackgroundPositionCoord : root :: mozilla :: StyleAnimationValue_Unit = 25 ; - pub const StyleAnimationValue_Unit_eUnit_CSSValuePairList : root :: mozilla :: StyleAnimationValue_Unit = 26 ; - pub const StyleAnimationValue_Unit_eUnit_UnparsedString : root :: mozilla :: StyleAnimationValue_Unit = 27 ; - /// The types and values for the values that we extract and animate. - pub type StyleAnimationValue_Unit = u32; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct StyleAnimationValue__bindgen_ty_1 { - pub mInt: root::__BindgenUnionField<i32>, - pub mCoord: root::__BindgenUnionField<root::nscoord>, - pub mFloat: root::__BindgenUnionField<f32>, - pub mCSSValue: root::__BindgenUnionField<*mut root::nsCSSValue>, - pub mCSSValuePair: root::__BindgenUnionField<*mut root::nsCSSValuePair>, - pub mCSSValueTriplet: root::__BindgenUnionField<*mut root::nsCSSValueTriplet>, - pub mCSSRect: root::__BindgenUnionField<*mut root::nsCSSRect>, - pub mCSSValueArray: root::__BindgenUnionField<*mut root::nsCSSValue_Array>, - pub mCSSValueList: root::__BindgenUnionField<*mut root::nsCSSValueList>, - pub mCSSValueSharedList: root::__BindgenUnionField<*mut root::nsCSSValueSharedList>, - pub mCSSValuePairList: root::__BindgenUnionField<*mut root::nsCSSValuePairList>, - pub mString: root::__BindgenUnionField<*mut root::nsStringBuffer>, - pub mComplexColor: - root::__BindgenUnionField<*mut root::mozilla::css::ComplexColorValue>, - pub bindgen_union_field: u64, - } - #[test] - fn bindgen_test_layout_StyleAnimationValue__bindgen_ty_1() { - assert_eq!( - ::std::mem::size_of::<StyleAnimationValue__bindgen_ty_1>(), - 8usize, - concat!("Size of: ", stringify!(StyleAnimationValue__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::<StyleAnimationValue__bindgen_ty_1>(), - 8usize, - concat!( - "Alignment of ", - stringify!(StyleAnimationValue__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mInt as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mInt) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCoord as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCoord) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mFloat as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mFloat) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCSSValue - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSValue) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCSSValuePair - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSValuePair) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCSSValueTriplet - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSValueTriplet) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCSSRect - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSRect) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCSSValueArray - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSValueArray) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCSSValueList - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSValueList) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())) - .mCSSValueSharedList as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSValueSharedList) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mCSSValuePairList - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mCSSValuePairList) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mString - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mString) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<StyleAnimationValue__bindgen_ty_1>())).mComplexColor - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StyleAnimationValue__bindgen_ty_1), - "::", - stringify!(mComplexColor) - ) - ); - } - impl Clone for StyleAnimationValue__bindgen_ty_1 { - fn clone(&self) -> Self { - *self - } - } - pub const StyleAnimationValue_IntegerConstructorType_IntegerConstructor : root :: mozilla :: StyleAnimationValue_IntegerConstructorType = 0 ; - pub type StyleAnimationValue_IntegerConstructorType = u32; - pub const StyleAnimationValue_CoordConstructorType_CoordConstructor : root :: mozilla :: StyleAnimationValue_CoordConstructorType = 0 ; - pub type StyleAnimationValue_CoordConstructorType = u32; - pub const StyleAnimationValue_PercentConstructorType_PercentConstructor : root :: mozilla :: StyleAnimationValue_PercentConstructorType = 0 ; - pub type StyleAnimationValue_PercentConstructorType = u32; - pub const StyleAnimationValue_FloatConstructorType_FloatConstructor : root :: mozilla :: StyleAnimationValue_FloatConstructorType = 0 ; - pub type StyleAnimationValue_FloatConstructorType = u32; - pub const StyleAnimationValue_ColorConstructorType_ColorConstructor : root :: mozilla :: StyleAnimationValue_ColorConstructorType = 0 ; - pub type StyleAnimationValue_ColorConstructorType = u32; - #[test] - fn bindgen_test_layout_StyleAnimationValue() { - assert_eq!( - ::std::mem::size_of::<StyleAnimationValue>(), - 16usize, - concat!("Size of: ", stringify!(StyleAnimationValue)) - ); - assert_eq!( - ::std::mem::align_of::<StyleAnimationValue>(), - 8usize, - concat!("Alignment of ", stringify!(StyleAnimationValue)) - ); - } - impl Clone for StyleAnimationValue { - fn clone(&self) -> Self { - *self - } - } #[repr(C)] #[derive(Debug)] pub struct AnimationValue { - pub mGecko: root::mozilla::StyleAnimationValue, + pub mGecko: usize, pub mServo: root::RefPtr<root::RawServoAnimationValue>, } #[test] fn bindgen_test_layout_AnimationValue() { assert_eq!( ::std::mem::size_of::<AnimationValue>(), - 24usize, + 16usize, concat!("Size of: ", stringify!(AnimationValue)) ); assert_eq!( @@ -9960,7 +9681,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<AnimationValue>())).mServo as *const _ as usize }, - 16usize, + 8usize, concat!( "Offset of field: ", stringify!(AnimationValue), @@ -9979,7 +9700,7 @@ pub mod root { fn bindgen_test_layout_PropertyStyleAnimationValuePair() { assert_eq!( ::std::mem::size_of::<PropertyStyleAnimationValuePair>(), - 32usize, + 24usize, concat!("Size of: ", stringify!(PropertyStyleAnimationValuePair)) ); assert_eq!( @@ -10331,9 +10052,12 @@ pub mod root { pub struct MozPromise_ResolveOrRejectValue { pub mValue: root::mozilla::MozPromise_ResolveOrRejectValue_Storage, } - pub const MozPromise_ResolveOrRejectValue_NothingIndex : root :: mozilla :: MozPromise_ResolveOrRejectValue__bindgen_ty_1 = 0 ; - pub const MozPromise_ResolveOrRejectValue_ResolveIndex : root :: mozilla :: MozPromise_ResolveOrRejectValue__bindgen_ty_1 = 0 ; - pub const MozPromise_ResolveOrRejectValue_RejectIndex : root :: mozilla :: MozPromise_ResolveOrRejectValue__bindgen_ty_1 = 0 ; + pub const MozPromise_ResolveOrRejectValue_NothingIndex: + root::mozilla::MozPromise_ResolveOrRejectValue__bindgen_ty_1 = 0; + pub const MozPromise_ResolveOrRejectValue_ResolveIndex: + root::mozilla::MozPromise_ResolveOrRejectValue__bindgen_ty_1 = 0; + pub const MozPromise_ResolveOrRejectValue_RejectIndex: + root::mozilla::MozPromise_ResolveOrRejectValue__bindgen_ty_1 = 0; pub type MozPromise_ResolveOrRejectValue__bindgen_ty_1 = i32; pub type MozPromise_ResolveOrRejectValue_Storage = root::mozilla::Variant; pub type MozPromise_AllPromiseType = u8; @@ -10540,7 +10264,8 @@ pub mod root { pub type URIPrincipalReferrerPolicyAndCORSModeHashKey_KeyTypePointer = *const root::mozilla::URIPrincipalReferrerPolicyAndCORSModeHashKey; pub use self :: super :: super :: root :: mozilla :: net :: ReferrerPolicy as URIPrincipalReferrerPolicyAndCORSModeHashKey_ReferrerPolicy; - pub const URIPrincipalReferrerPolicyAndCORSModeHashKey_ALLOW_MEMMOVE : root :: mozilla :: URIPrincipalReferrerPolicyAndCORSModeHashKey__bindgen_ty_1 = 1 ; + pub const URIPrincipalReferrerPolicyAndCORSModeHashKey_ALLOW_MEMMOVE: + root::mozilla::URIPrincipalReferrerPolicyAndCORSModeHashKey__bindgen_ty_1 = 1; pub type URIPrincipalReferrerPolicyAndCORSModeHashKey__bindgen_ty_1 = u32; #[test] fn bindgen_test_layout_URIPrincipalReferrerPolicyAndCORSModeHashKey() { @@ -11060,8 +10785,10 @@ pub mod root { pub mTimingFunction: root::nsSMILKeySpline, pub mStepsOrFrames: u32, } - pub const ComputedTimingFunction_BeforeFlag_Unset : root :: mozilla :: ComputedTimingFunction_BeforeFlag = 0 ; - pub const ComputedTimingFunction_BeforeFlag_Set : root :: mozilla :: ComputedTimingFunction_BeforeFlag = 1 ; + pub const ComputedTimingFunction_BeforeFlag_Unset: + root::mozilla::ComputedTimingFunction_BeforeFlag = 0; + pub const ComputedTimingFunction_BeforeFlag_Set: + root::mozilla::ComputedTimingFunction_BeforeFlag = 1; pub type ComputedTimingFunction_BeforeFlag = i32; #[test] fn bindgen_test_layout_ComputedTimingFunction() { @@ -11134,7 +10861,7 @@ pub mod root { fn bindgen_test_layout_AnimationPropertySegment() { assert_eq!( ::std::mem::size_of::<AnimationPropertySegment>(), - 208usize, + 192usize, concat!("Size of: ", stringify!(AnimationPropertySegment)) ); assert_eq!( @@ -11185,7 +10912,7 @@ pub mod root { &(*(::std::ptr::null::<AnimationPropertySegment>())).mToValue as *const _ as usize }, - 32usize, + 24usize, concat!( "Offset of field: ", stringify!(AnimationPropertySegment), @@ -11198,7 +10925,7 @@ pub mod root { &(*(::std::ptr::null::<AnimationPropertySegment>())).mTimingFunction as *const _ as usize }, - 56usize, + 40usize, concat!( "Offset of field: ", stringify!(AnimationPropertySegment), @@ -11211,7 +10938,7 @@ pub mod root { &(*(::std::ptr::null::<AnimationPropertySegment>())).mFromComposite as *const _ as usize }, - 200usize, + 184usize, concat!( "Offset of field: ", stringify!(AnimationPropertySegment), @@ -11224,7 +10951,7 @@ pub mod root { &(*(::std::ptr::null::<AnimationPropertySegment>())).mToComposite as *const _ as usize }, - 201usize, + 185usize, concat!( "Offset of field: ", stringify!(AnimationPropertySegment), @@ -11298,9 +11025,12 @@ pub mod root { } pub const ComputedTiming_AnimationPhase_Idle: root::mozilla::ComputedTiming_AnimationPhase = 0; - pub const ComputedTiming_AnimationPhase_Before : root :: mozilla :: ComputedTiming_AnimationPhase = 1 ; - pub const ComputedTiming_AnimationPhase_Active : root :: mozilla :: ComputedTiming_AnimationPhase = 2 ; - pub const ComputedTiming_AnimationPhase_After : root :: mozilla :: ComputedTiming_AnimationPhase = 3 ; + pub const ComputedTiming_AnimationPhase_Before: + root::mozilla::ComputedTiming_AnimationPhase = 1; + pub const ComputedTiming_AnimationPhase_Active: + root::mozilla::ComputedTiming_AnimationPhase = 2; + pub const ComputedTiming_AnimationPhase_After: + root::mozilla::ComputedTiming_AnimationPhase = 3; pub type ComputedTiming_AnimationPhase = i32; #[test] fn bindgen_test_layout_ComputedTiming() { @@ -12015,25 +11745,32 @@ pub mod root { } pub const LookAndFeel_IntID_eIntID_CaretBlinkTime: root::mozilla::LookAndFeel_IntID = 0; pub const LookAndFeel_IntID_eIntID_CaretWidth: root::mozilla::LookAndFeel_IntID = 1; - pub const LookAndFeel_IntID_eIntID_ShowCaretDuringSelection : root :: mozilla :: LookAndFeel_IntID = 2 ; - pub const LookAndFeel_IntID_eIntID_SelectTextfieldsOnKeyFocus : root :: mozilla :: LookAndFeel_IntID = 3 ; + pub const LookAndFeel_IntID_eIntID_ShowCaretDuringSelection: + root::mozilla::LookAndFeel_IntID = 2; + pub const LookAndFeel_IntID_eIntID_SelectTextfieldsOnKeyFocus: + root::mozilla::LookAndFeel_IntID = 3; pub const LookAndFeel_IntID_eIntID_SubmenuDelay: root::mozilla::LookAndFeel_IntID = 4; pub const LookAndFeel_IntID_eIntID_MenusCanOverlapOSBar: root::mozilla::LookAndFeel_IntID = 5; pub const LookAndFeel_IntID_eIntID_UseOverlayScrollbars: root::mozilla::LookAndFeel_IntID = 6; - pub const LookAndFeel_IntID_eIntID_AllowOverlayScrollbarsOverlap : root :: mozilla :: LookAndFeel_IntID = 7 ; + pub const LookAndFeel_IntID_eIntID_AllowOverlayScrollbarsOverlap: + root::mozilla::LookAndFeel_IntID = 7; pub const LookAndFeel_IntID_eIntID_ShowHideScrollbars: root::mozilla::LookAndFeel_IntID = 8; - pub const LookAndFeel_IntID_eIntID_SkipNavigatingDisabledMenuItem : root :: mozilla :: LookAndFeel_IntID = 9 ; + pub const LookAndFeel_IntID_eIntID_SkipNavigatingDisabledMenuItem: + root::mozilla::LookAndFeel_IntID = 9; pub const LookAndFeel_IntID_eIntID_DragThresholdX: root::mozilla::LookAndFeel_IntID = 10; pub const LookAndFeel_IntID_eIntID_DragThresholdY: root::mozilla::LookAndFeel_IntID = 11; pub const LookAndFeel_IntID_eIntID_UseAccessibilityTheme: root::mozilla::LookAndFeel_IntID = 12; pub const LookAndFeel_IntID_eIntID_ScrollArrowStyle: root::mozilla::LookAndFeel_IntID = 13; pub const LookAndFeel_IntID_eIntID_ScrollSliderStyle: root::mozilla::LookAndFeel_IntID = 14; - pub const LookAndFeel_IntID_eIntID_ScrollButtonLeftMouseButtonAction : root :: mozilla :: LookAndFeel_IntID = 15 ; - pub const LookAndFeel_IntID_eIntID_ScrollButtonMiddleMouseButtonAction : root :: mozilla :: LookAndFeel_IntID = 16 ; - pub const LookAndFeel_IntID_eIntID_ScrollButtonRightMouseButtonAction : root :: mozilla :: LookAndFeel_IntID = 17 ; + pub const LookAndFeel_IntID_eIntID_ScrollButtonLeftMouseButtonAction: + root::mozilla::LookAndFeel_IntID = 15; + pub const LookAndFeel_IntID_eIntID_ScrollButtonMiddleMouseButtonAction: + root::mozilla::LookAndFeel_IntID = 16; + pub const LookAndFeel_IntID_eIntID_ScrollButtonRightMouseButtonAction: + root::mozilla::LookAndFeel_IntID = 17; pub const LookAndFeel_IntID_eIntID_TreeOpenDelay: root::mozilla::LookAndFeel_IntID = 18; pub const LookAndFeel_IntID_eIntID_TreeCloseDelay: root::mozilla::LookAndFeel_IntID = 19; pub const LookAndFeel_IntID_eIntID_TreeLazyScrollDelay: root::mozilla::LookAndFeel_IntID = @@ -12042,8 +11779,10 @@ pub mod root { pub const LookAndFeel_IntID_eIntID_TreeScrollLinesMax: root::mozilla::LookAndFeel_IntID = 22; pub const LookAndFeel_IntID_eIntID_TabFocusModel: root::mozilla::LookAndFeel_IntID = 23; - pub const LookAndFeel_IntID_eIntID_ChosenMenuItemsShouldBlink : root :: mozilla :: LookAndFeel_IntID = 24 ; - pub const LookAndFeel_IntID_eIntID_WindowsAccentColorInTitlebar : root :: mozilla :: LookAndFeel_IntID = 25 ; + pub const LookAndFeel_IntID_eIntID_ChosenMenuItemsShouldBlink: + root::mozilla::LookAndFeel_IntID = 24; + pub const LookAndFeel_IntID_eIntID_WindowsAccentColorInTitlebar: + root::mozilla::LookAndFeel_IntID = 25; pub const LookAndFeel_IntID_eIntID_WindowsDefaultTheme: root::mozilla::LookAndFeel_IntID = 26; pub const LookAndFeel_IntID_eIntID_DWMCompositor: root::mozilla::LookAndFeel_IntID = 27; @@ -12052,7 +11791,8 @@ pub mod root { pub const LookAndFeel_IntID_eIntID_TouchEnabled: root::mozilla::LookAndFeel_IntID = 30; pub const LookAndFeel_IntID_eIntID_MacGraphiteTheme: root::mozilla::LookAndFeel_IntID = 31; pub const LookAndFeel_IntID_eIntID_MacYosemiteTheme: root::mozilla::LookAndFeel_IntID = 32; - pub const LookAndFeel_IntID_eIntID_AlertNotificationOrigin : root :: mozilla :: LookAndFeel_IntID = 33 ; + pub const LookAndFeel_IntID_eIntID_AlertNotificationOrigin: + root::mozilla::LookAndFeel_IntID = 33; /// If true, clicking on a scrollbar (not as in dragging the thumb) defaults /// to scrolling the view corresponding to the clicked point. Otherwise, we /// only do so if the scrollbar is clicked using the middle mouse button or @@ -12060,46 +11800,58 @@ pub mod root { pub const LookAndFeel_IntID_eIntID_ScrollToClick: root::mozilla::LookAndFeel_IntID = 34; /// IME and spell checker underline styles, the values should be /// NS_DECORATION_LINE_STYLE_*. They are defined below. - pub const LookAndFeel_IntID_eIntID_IMERawInputUnderlineStyle : root :: mozilla :: LookAndFeel_IntID = 35 ; + pub const LookAndFeel_IntID_eIntID_IMERawInputUnderlineStyle: + root::mozilla::LookAndFeel_IntID = 35; /// IME and spell checker underline styles, the values should be /// NS_DECORATION_LINE_STYLE_*. They are defined below. - pub const LookAndFeel_IntID_eIntID_IMESelectedRawTextUnderlineStyle : root :: mozilla :: LookAndFeel_IntID = 36 ; + pub const LookAndFeel_IntID_eIntID_IMESelectedRawTextUnderlineStyle: + root::mozilla::LookAndFeel_IntID = 36; /// IME and spell checker underline styles, the values should be /// NS_DECORATION_LINE_STYLE_*. They are defined below. - pub const LookAndFeel_IntID_eIntID_IMEConvertedTextUnderlineStyle : root :: mozilla :: LookAndFeel_IntID = 37 ; + pub const LookAndFeel_IntID_eIntID_IMEConvertedTextUnderlineStyle: + root::mozilla::LookAndFeel_IntID = 37; /// IME and spell checker underline styles, the values should be /// NS_DECORATION_LINE_STYLE_*. They are defined below. - pub const LookAndFeel_IntID_eIntID_IMESelectedConvertedTextUnderline : root :: mozilla :: LookAndFeel_IntID = 38 ; + pub const LookAndFeel_IntID_eIntID_IMESelectedConvertedTextUnderline: + root::mozilla::LookAndFeel_IntID = 38; /// IME and spell checker underline styles, the values should be /// NS_DECORATION_LINE_STYLE_*. They are defined below. - pub const LookAndFeel_IntID_eIntID_SpellCheckerUnderlineStyle : root :: mozilla :: LookAndFeel_IntID = 39 ; + pub const LookAndFeel_IntID_eIntID_SpellCheckerUnderlineStyle: + root::mozilla::LookAndFeel_IntID = 39; /// If this metric != 0, support window dragging on the menubar. pub const LookAndFeel_IntID_eIntID_MenuBarDrag: root::mozilla::LookAndFeel_IntID = 40; /// Return the appropriate WindowsThemeIdentifier for the current theme. - pub const LookAndFeel_IntID_eIntID_WindowsThemeIdentifier : root :: mozilla :: LookAndFeel_IntID = 41 ; + pub const LookAndFeel_IntID_eIntID_WindowsThemeIdentifier: + root::mozilla::LookAndFeel_IntID = 41; /// Return an appropriate os version identifier. - pub const LookAndFeel_IntID_eIntID_OperatingSystemVersionIdentifier : root :: mozilla :: LookAndFeel_IntID = 42 ; + pub const LookAndFeel_IntID_eIntID_OperatingSystemVersionIdentifier: + root::mozilla::LookAndFeel_IntID = 42; /// 0: scrollbar button repeats to scroll only when cursor is on the button. /// 1: scrollbar button repeats to scroll even if cursor is outside of it. - pub const LookAndFeel_IntID_eIntID_ScrollbarButtonAutoRepeatBehavior : root :: mozilla :: LookAndFeel_IntID = 43 ; + pub const LookAndFeel_IntID_eIntID_ScrollbarButtonAutoRepeatBehavior: + root::mozilla::LookAndFeel_IntID = 43; /// Delay before showing a tooltip. pub const LookAndFeel_IntID_eIntID_TooltipDelay: root::mozilla::LookAndFeel_IntID = 44; /// Delay before showing a tooltip. pub const LookAndFeel_IntID_eIntID_SwipeAnimationEnabled: root::mozilla::LookAndFeel_IntID = 45; /// Delay before showing a tooltip. - pub const LookAndFeel_IntID_eIntID_ScrollbarDisplayOnMouseMove : root :: mozilla :: LookAndFeel_IntID = 46 ; + pub const LookAndFeel_IntID_eIntID_ScrollbarDisplayOnMouseMove: + root::mozilla::LookAndFeel_IntID = 46; /// Delay before showing a tooltip. - pub const LookAndFeel_IntID_eIntID_ScrollbarFadeBeginDelay : root :: mozilla :: LookAndFeel_IntID = 47 ; + pub const LookAndFeel_IntID_eIntID_ScrollbarFadeBeginDelay: + root::mozilla::LookAndFeel_IntID = 47; /// Delay before showing a tooltip. pub const LookAndFeel_IntID_eIntID_ScrollbarFadeDuration: root::mozilla::LookAndFeel_IntID = 48; /// Distance in pixels to offset the context menu from the cursor /// on open. - pub const LookAndFeel_IntID_eIntID_ContextMenuOffsetVertical : root :: mozilla :: LookAndFeel_IntID = 49 ; + pub const LookAndFeel_IntID_eIntID_ContextMenuOffsetVertical: + root::mozilla::LookAndFeel_IntID = 49; /// Distance in pixels to offset the context menu from the cursor /// on open. - pub const LookAndFeel_IntID_eIntID_ContextMenuOffsetHorizontal : root :: mozilla :: LookAndFeel_IntID = 50 ; + pub const LookAndFeel_IntID_eIntID_ContextMenuOffsetHorizontal: + root::mozilla::LookAndFeel_IntID = 50; /// Distance in pixels to offset the context menu from the cursor /// on open. pub const LookAndFeel_IntID_eIntID_GTKCSDAvailable: root::mozilla::LookAndFeel_IntID = 51; @@ -12115,21 +11867,34 @@ pub mod root { /// on open. pub const LookAndFeel_IntID_eIntID_GTKCSDCloseButton: root::mozilla::LookAndFeel_IntID = 54; pub type LookAndFeel_IntID = u32; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_Generic : root :: mozilla :: LookAndFeel_WindowsTheme = 0 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_Classic : root :: mozilla :: LookAndFeel_WindowsTheme = 1 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_Aero : root :: mozilla :: LookAndFeel_WindowsTheme = 2 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_LunaBlue : root :: mozilla :: LookAndFeel_WindowsTheme = 3 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_LunaOlive : root :: mozilla :: LookAndFeel_WindowsTheme = 4 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_LunaSilver : root :: mozilla :: LookAndFeel_WindowsTheme = 5 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_Royale : root :: mozilla :: LookAndFeel_WindowsTheme = 6 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_Zune : root :: mozilla :: LookAndFeel_WindowsTheme = 7 ; - pub const LookAndFeel_WindowsTheme_eWindowsTheme_AeroLite : root :: mozilla :: LookAndFeel_WindowsTheme = 8 ; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_Generic: + root::mozilla::LookAndFeel_WindowsTheme = 0; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_Classic: + root::mozilla::LookAndFeel_WindowsTheme = 1; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_Aero: + root::mozilla::LookAndFeel_WindowsTheme = 2; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_LunaBlue: + root::mozilla::LookAndFeel_WindowsTheme = 3; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_LunaOlive: + root::mozilla::LookAndFeel_WindowsTheme = 4; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_LunaSilver: + root::mozilla::LookAndFeel_WindowsTheme = 5; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_Royale: + root::mozilla::LookAndFeel_WindowsTheme = 6; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_Zune: + root::mozilla::LookAndFeel_WindowsTheme = 7; + pub const LookAndFeel_WindowsTheme_eWindowsTheme_AeroLite: + root::mozilla::LookAndFeel_WindowsTheme = 8; /// Windows themes we currently detect. pub type LookAndFeel_WindowsTheme = u32; - pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Windows7 : root :: mozilla :: LookAndFeel_OperatingSystemVersion = 2 ; - pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Windows8 : root :: mozilla :: LookAndFeel_OperatingSystemVersion = 3 ; - pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Windows10 : root :: mozilla :: LookAndFeel_OperatingSystemVersion = 4 ; - pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Unknown : root :: mozilla :: LookAndFeel_OperatingSystemVersion = 5 ; + pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Windows7: + root::mozilla::LookAndFeel_OperatingSystemVersion = 2; + pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Windows8: + root::mozilla::LookAndFeel_OperatingSystemVersion = 3; + pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Windows10: + root::mozilla::LookAndFeel_OperatingSystemVersion = 4; + pub const LookAndFeel_OperatingSystemVersion_eOperatingSystemVersion_Unknown: + root::mozilla::LookAndFeel_OperatingSystemVersion = 5; /// Operating system versions. pub type LookAndFeel_OperatingSystemVersion = u32; pub const LookAndFeel_eScrollArrow_None: root::mozilla::LookAndFeel__bindgen_ty_1 = 0; @@ -12143,17 +11908,24 @@ pub mod root { pub type LookAndFeel__bindgen_ty_1 = u32; pub const LookAndFeel_eScrollArrowStyle_Single: root::mozilla::LookAndFeel__bindgen_ty_2 = 4097; - pub const LookAndFeel_eScrollArrowStyle_BothAtBottom : root :: mozilla :: LookAndFeel__bindgen_ty_2 = 17 ; - pub const LookAndFeel_eScrollArrowStyle_BothAtEachEnd : root :: mozilla :: LookAndFeel__bindgen_ty_2 = 4369 ; - pub const LookAndFeel_eScrollArrowStyle_BothAtTop : root :: mozilla :: LookAndFeel__bindgen_ty_2 = 4352 ; + pub const LookAndFeel_eScrollArrowStyle_BothAtBottom: + root::mozilla::LookAndFeel__bindgen_ty_2 = 17; + pub const LookAndFeel_eScrollArrowStyle_BothAtEachEnd: + root::mozilla::LookAndFeel__bindgen_ty_2 = 4369; + pub const LookAndFeel_eScrollArrowStyle_BothAtTop: + root::mozilla::LookAndFeel__bindgen_ty_2 = 4352; pub type LookAndFeel__bindgen_ty_2 = u32; pub const LookAndFeel_eScrollThumbStyle_Normal: root::mozilla::LookAndFeel__bindgen_ty_3 = 0; - pub const LookAndFeel_eScrollThumbStyle_Proportional : root :: mozilla :: LookAndFeel__bindgen_ty_3 = 1 ; + pub const LookAndFeel_eScrollThumbStyle_Proportional: + root::mozilla::LookAndFeel__bindgen_ty_3 = 1; pub type LookAndFeel__bindgen_ty_3 = u32; - pub const LookAndFeel_FloatID_eFloatID_IMEUnderlineRelativeSize : root :: mozilla :: LookAndFeel_FloatID = 0 ; - pub const LookAndFeel_FloatID_eFloatID_SpellCheckerUnderlineRelativeSize : root :: mozilla :: LookAndFeel_FloatID = 1 ; - pub const LookAndFeel_FloatID_eFloatID_CaretAspectRatio : root :: mozilla :: LookAndFeel_FloatID = 2 ; + pub const LookAndFeel_FloatID_eFloatID_IMEUnderlineRelativeSize: + root::mozilla::LookAndFeel_FloatID = 0; + pub const LookAndFeel_FloatID_eFloatID_SpellCheckerUnderlineRelativeSize: + root::mozilla::LookAndFeel_FloatID = 1; + pub const LookAndFeel_FloatID_eFloatID_CaretAspectRatio: + root::mozilla::LookAndFeel_FloatID = 2; pub type LookAndFeel_FloatID = u32; pub const LookAndFeel_FontID_FontID_MINIMUM: root::mozilla::LookAndFeel_FontID = LookAndFeel_FontID::eFont_Caption; @@ -12245,7 +12017,7 @@ pub mod root { pub static mut StylePrefs_sMozDocumentEnabledInContent: bool; } extern "C" { - #[link_name = "\u{1}_ZN7mozilla10StylePrefs28sMozDocumentURLPrefixHackEnabledE"] + #[link_name = "\u{1}_ZN7mozilla10StylePrefs32sMozDocumentURLPrefixHackEnabledE"] pub static mut StylePrefs_sMozDocumentURLPrefixHackEnabled: bool; } extern "C" { @@ -12337,7 +12109,8 @@ pub mod root { pub type PseudoElementHashEntry_KeyType = root::mozilla::NonOwningAnimationTarget; pub type PseudoElementHashEntry_KeyTypePointer = *const root::mozilla::NonOwningAnimationTarget; - pub const PseudoElementHashEntry_ALLOW_MEMMOVE : root :: mozilla :: PseudoElementHashEntry__bindgen_ty_1 = 1 ; + pub const PseudoElementHashEntry_ALLOW_MEMMOVE: + root::mozilla::PseudoElementHashEntry__bindgen_ty_1 = 1; pub type PseudoElementHashEntry__bindgen_ty_1 = u32; #[test] fn bindgen_test_layout_PseudoElementHashEntry() { @@ -12384,7 +12157,6 @@ pub mod root { pub mPresContext: *mut root::nsPresContext, pub mElementsToRestyle: [u64; 8usize], pub mIsInPreTraverse: bool, - pub mRuleProcessors: [u64; 2usize], } pub type EffectCompositor_HasThreadSafeRefCnt = root::mozilla::FalseType; #[repr(C)] @@ -12419,79 +12191,13 @@ pub mod root { Animations = 0, Transitions = 1, } - pub const EffectCompositor_RestyleType_Throttled : root :: mozilla :: EffectCompositor_RestyleType = 0 ; - pub const EffectCompositor_RestyleType_Standard : root :: mozilla :: EffectCompositor_RestyleType = 1 ; + pub const EffectCompositor_RestyleType_Throttled: + root::mozilla::EffectCompositor_RestyleType = 0; + pub const EffectCompositor_RestyleType_Standard: + root::mozilla::EffectCompositor_RestyleType = 1; pub const EffectCompositor_RestyleType_Layer: root::mozilla::EffectCompositor_RestyleType = 2; pub type EffectCompositor_RestyleType = i32; - #[repr(C)] - #[derive(Debug)] - pub struct EffectCompositor_AnimationStyleRuleProcessor { - pub _base: root::nsIStyleRuleProcessor, - pub mRefCnt: root::nsAutoRefCnt, - pub mCompositor: *mut root::mozilla::EffectCompositor, - pub mCascadeLevel: root::mozilla::EffectCompositor_CascadeLevel, - } - pub type EffectCompositor_AnimationStyleRuleProcessor_HasThreadSafeRefCnt = - root::mozilla::FalseType; - #[test] - fn bindgen_test_layout_EffectCompositor_AnimationStyleRuleProcessor() { - assert_eq!( - ::std::mem::size_of::<EffectCompositor_AnimationStyleRuleProcessor>(), - 32usize, - concat!( - "Size of: ", - stringify!(EffectCompositor_AnimationStyleRuleProcessor) - ) - ); - assert_eq!( - ::std::mem::align_of::<EffectCompositor_AnimationStyleRuleProcessor>(), - 8usize, - concat!( - "Alignment of ", - stringify!(EffectCompositor_AnimationStyleRuleProcessor) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<EffectCompositor_AnimationStyleRuleProcessor>())).mRefCnt - as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EffectCompositor_AnimationStyleRuleProcessor), - "::", - stringify!(mRefCnt) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<EffectCompositor_AnimationStyleRuleProcessor>())) - .mCompositor as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(EffectCompositor_AnimationStyleRuleProcessor), - "::", - stringify!(mCompositor) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<EffectCompositor_AnimationStyleRuleProcessor>())) - .mCascadeLevel as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(EffectCompositor_AnimationStyleRuleProcessor), - "::", - stringify!(mCascadeLevel) - ) - ); - } extern "C" { #[link_name = "\u{1}_ZN7mozilla16EffectCompositor21_cycleCollectorGlobalE"] pub static mut EffectCompositor__cycleCollectorGlobal: @@ -12502,7 +12208,7 @@ pub mod root { fn bindgen_test_layout_EffectCompositor() { assert_eq!( ::std::mem::size_of::<EffectCompositor>(), - 104usize, + 88usize, concat!("Size of: ", stringify!(EffectCompositor)) ); assert_eq!( @@ -12560,19 +12266,6 @@ pub mod root { stringify!(mIsInPreTraverse) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<EffectCompositor>())).mRuleProcessors as *const _ - as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(EffectCompositor), - "::", - stringify!(mRuleProcessors) - ) - ); } pub type CSSPseudoClassTypeBase = u8; #[repr(u8)] @@ -13398,60 +13091,97 @@ pub mod root { ) ); } + /// A ComputedStyle represents the computed style data for an element. The + /// computed style data are stored in a set of structs (see nsStyleStruct.h) that + /// are cached either on the style context or in the rule tree (see nsRuleNode.h + /// for a description of this caching and how the cached structs are shared). + /// + /// Since the data in |nsIStyleRule|s and |nsRuleNode|s are immutable (with a few + /// exceptions, like system color changes), the data in an ComputedStyle are also + /// immutable (with the additional exception of GetUniqueStyleData). When style + /// data change, ElementRestyler::Restyle creates a new style context. + /// + /// ComputedStyles are reference counted. References are generally held by: + /// 1. the |nsIFrame|s that are using the style context and + /// 2. any *child* style contexts (this might be the reverse of + /// expectation, but it makes sense in this case) + /// + /// FIXME(emilio): This comment is somewhat outdated now. #[repr(C)] - pub struct ServoStyleContext { - pub _base: root::nsStyleContext, + pub struct ComputedStyle { pub mPresContext: *mut root::nsPresContext, pub mSource: root::ServoComputedData, pub mCachedInheritingStyles: root::mozilla::CachedInheritingStyles, + pub mPseudoTag: root::RefPtr<root::nsAtom>, + pub mBits: u64, } #[test] - fn bindgen_test_layout_ServoStyleContext() { + fn bindgen_test_layout_ComputedStyle() { assert_eq!( - ::std::mem::size_of::<ServoStyleContext>(), + ::std::mem::size_of::<ComputedStyle>(), 248usize, - concat!("Size of: ", stringify!(ServoStyleContext)) + concat!("Size of: ", stringify!(ComputedStyle)) ); assert_eq!( - ::std::mem::align_of::<ServoStyleContext>(), + ::std::mem::align_of::<ComputedStyle>(), 8usize, - concat!("Alignment of ", stringify!(ServoStyleContext)) + concat!("Alignment of ", stringify!(ComputedStyle)) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<ServoStyleContext>())).mPresContext as *const _ as usize + &(*(::std::ptr::null::<ComputedStyle>())).mPresContext as *const _ as usize }, - 16usize, + 0usize, concat!( "Offset of field: ", - stringify!(ServoStyleContext), + stringify!(ComputedStyle), "::", stringify!(mPresContext) ) ); assert_eq!( + unsafe { &(*(::std::ptr::null::<ComputedStyle>())).mSource as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ComputedStyle), + "::", + stringify!(mSource) + ) + ); + assert_eq!( unsafe { - &(*(::std::ptr::null::<ServoStyleContext>())).mSource as *const _ as usize + &(*(::std::ptr::null::<ComputedStyle>())).mCachedInheritingStyles as *const _ + as usize }, - 24usize, + 224usize, concat!( "Offset of field: ", - stringify!(ServoStyleContext), + stringify!(ComputedStyle), "::", - stringify!(mSource) + stringify!(mCachedInheritingStyles) ) ); assert_eq!( unsafe { - &(*(::std::ptr::null::<ServoStyleContext>())).mCachedInheritingStyles - as *const _ as usize + &(*(::std::ptr::null::<ComputedStyle>())).mPseudoTag as *const _ as usize }, + 232usize, + concat!( + "Offset of field: ", + stringify!(ComputedStyle), + "::", + stringify!(mPseudoTag) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<ComputedStyle>())).mBits as *const _ as usize }, 240usize, concat!( "Offset of field: ", - stringify!(ServoStyleContext), + stringify!(ComputedStyle), "::", - stringify!(mCachedInheritingStyles) + stringify!(mBits) ) ); } @@ -13902,9 +13632,12 @@ pub mod root { pub mRefCnt: root::nsAutoRefCnt, } pub type LineBreaker_HasThreadSafeRefCnt = root::mozilla::FalseType; - pub const LineBreaker_kWordBreak_Normal : root :: mozilla :: intl :: LineBreaker__bindgen_ty_1 = 0 ; - pub const LineBreaker_kWordBreak_BreakAll : root :: mozilla :: intl :: LineBreaker__bindgen_ty_1 = 1 ; - pub const LineBreaker_kWordBreak_KeepAll : root :: mozilla :: intl :: LineBreaker__bindgen_ty_1 = 2 ; + pub const LineBreaker_kWordBreak_Normal: + root::mozilla::intl::LineBreaker__bindgen_ty_1 = 0; + pub const LineBreaker_kWordBreak_BreakAll: + root::mozilla::intl::LineBreaker__bindgen_ty_1 = 1; + pub const LineBreaker_kWordBreak_KeepAll: + root::mozilla::intl::LineBreaker__bindgen_ty_1 = 2; pub type LineBreaker__bindgen_ty_1 = u32; #[test] fn bindgen_test_layout_LineBreaker() { @@ -14511,6 +14244,24 @@ pub mod root { *self } } + #[repr(C)] + #[derive(Debug)] + pub struct RefPtr<T> { + pub mRawPtr: *mut T, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, + } + pub type RefPtr_element_type<T> = T; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct RefPtr_Proxy { + pub _address: u8, + } + pub type RefPtr_Proxy_member_function = u8; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct RefPtr_ConstRemovingRefPtrTraits { + pub _address: u8, + } pub type nsAString = root::nsTSubstring<u16>; pub type nsAutoString = [u64; 19usize]; pub type nsACString = root::nsTSubstring<::std::os::raw::c_char>; @@ -14520,6 +14271,130 @@ pub mod root { pub struct nsCharTraits { pub _address: u8, } + pub type nscoord = i32; + pub type nscolor = u32; + #[repr(C)] + pub struct nsISupports__bindgen_vtable(::std::os::raw::c_void); + /// Basic component object model interface. Objects which implement + /// this interface support runtime interface discovery (QueryInterface) + /// and a reference counted memory model (AddRef/Release). This is + /// modelled after the win32 IUnknown API. + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsISupports { + pub vtable_: *const nsISupports__bindgen_vtable, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsISupports_COMTypeInfo { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_nsISupports() { + assert_eq!( + ::std::mem::size_of::<nsISupports>(), + 8usize, + concat!("Size of: ", stringify!(nsISupports)) + ); + assert_eq!( + ::std::mem::align_of::<nsISupports>(), + 8usize, + concat!("Alignment of ", stringify!(nsISupports)) + ); + } + impl Clone for nsISupports { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct PRThread { + _unused: [u8; 0], + } + impl Clone for PRThread { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsCycleCollectingAutoRefCnt { + pub mRefCntAndFlags: usize, + } + pub type nsCycleCollectingAutoRefCnt_Suspect = ::std::option::Option< + unsafe extern "C" fn( + aPtr: *mut ::std::os::raw::c_void, + aCp: *mut root::nsCycleCollectionParticipant, + aRefCnt: *mut root::nsCycleCollectingAutoRefCnt, + aShouldDelete: *mut bool, + ), + >; + #[test] + fn bindgen_test_layout_nsCycleCollectingAutoRefCnt() { + assert_eq!( + ::std::mem::size_of::<nsCycleCollectingAutoRefCnt>(), + 8usize, + concat!("Size of: ", stringify!(nsCycleCollectingAutoRefCnt)) + ); + assert_eq!( + ::std::mem::align_of::<nsCycleCollectingAutoRefCnt>(), + 8usize, + concat!("Alignment of ", stringify!(nsCycleCollectingAutoRefCnt)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<nsCycleCollectingAutoRefCnt>())).mRefCntAndFlags as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(nsCycleCollectingAutoRefCnt), + "::", + stringify!(mRefCntAndFlags) + ) + ); + } + impl Clone for nsCycleCollectingAutoRefCnt { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsAutoRefCnt { + pub mValue: root::nsrefcnt, + } + pub const nsAutoRefCnt_isThreadSafe: bool = false; + #[test] + fn bindgen_test_layout_nsAutoRefCnt() { + assert_eq!( + ::std::mem::size_of::<nsAutoRefCnt>(), + 8usize, + concat!("Size of: ", stringify!(nsAutoRefCnt)) + ); + assert_eq!( + ::std::mem::align_of::<nsAutoRefCnt>(), + 8usize, + concat!("Alignment of ", stringify!(nsAutoRefCnt)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<nsAutoRefCnt>())).mValue as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(nsAutoRefCnt), + "::", + stringify!(mValue) + ) + ); + } + impl Clone for nsAutoRefCnt { + fn clone(&self) -> Self { + *self + } + } /// @see nsTAString #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -14690,382 +14565,6 @@ pub mod root { pub type nsTAutoStringN_literalstring_type<T> = root::nsTAutoStringN_base_string_type<T>; pub type nsTAutoStringN_DataFlags<T> = root::nsTAutoStringN_base_string_type<T>; pub type nsTAutoStringN_ClassFlags<T> = root::nsTAutoStringN_base_string_type<T>; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Nothing : root :: nsCSSTokenSerializationType = 0 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Whitespace : root :: nsCSSTokenSerializationType = 1 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_AtKeyword_or_Hash : root :: nsCSSTokenSerializationType = 2 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Number : root :: nsCSSTokenSerializationType = 3 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Dimension : root :: nsCSSTokenSerializationType = 4 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Percentage : root :: nsCSSTokenSerializationType = 5 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_URange : root :: nsCSSTokenSerializationType = 6 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_URL_or_BadURL : root :: nsCSSTokenSerializationType = 7 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Function : root :: nsCSSTokenSerializationType = 8 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Ident : root :: nsCSSTokenSerializationType = 9 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_CDC : root :: nsCSSTokenSerializationType = 10 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_DashMatch : root :: nsCSSTokenSerializationType = 11 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_ContainsMatch : root :: nsCSSTokenSerializationType = 12 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Hash : root :: nsCSSTokenSerializationType = 13 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_At : root :: nsCSSTokenSerializationType = 14 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Dot_or_Plus : root :: nsCSSTokenSerializationType = 15 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Minus : root :: nsCSSTokenSerializationType = 16 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_OpenParen : root :: nsCSSTokenSerializationType = 17 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Question : root :: nsCSSTokenSerializationType = 18 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Assorted : root :: nsCSSTokenSerializationType = 19 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Equals : root :: nsCSSTokenSerializationType = 20 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Bar : root :: nsCSSTokenSerializationType = 21 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Slash : root :: nsCSSTokenSerializationType = 22 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Symbol_Asterisk : root :: nsCSSTokenSerializationType = 23 ; - pub const nsCSSTokenSerializationType_eCSSTokenSerialization_Other : root :: nsCSSTokenSerializationType = 24 ; - pub type nsCSSTokenSerializationType = u32; - #[repr(C)] - pub struct nsCSSScanner { - pub mBuffer: *const u16, - pub mOffset: u32, - pub mCount: u32, - pub mLineNumber: u32, - pub mLineOffset: u32, - pub mTokenLineNumber: u32, - pub mTokenLineOffset: u32, - pub mTokenOffset: u32, - pub mRecordStartOffset: u32, - pub mEOFCharacters: root::nsCSSScanner_EOFCharacters, - pub mReporter: *mut root::mozilla::css::ErrorReporter, - pub mRecording: bool, - pub mSeenBadToken: bool, - pub mSeenVariableReference: bool, - pub mSourceMapURL: ::nsstring::nsStringRepr, - pub mSourceURL: ::nsstring::nsStringRepr, - } - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_None: root::nsCSSScanner_EOFCharacters = 0; - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_DropBackslash : root :: nsCSSScanner_EOFCharacters = 1 ; - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_ReplacementChar : root :: nsCSSScanner_EOFCharacters = 2 ; - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_Asterisk: root::nsCSSScanner_EOFCharacters = - 4; - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_Slash: root::nsCSSScanner_EOFCharacters = 8; - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_DoubleQuote : root :: nsCSSScanner_EOFCharacters = 16 ; - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_SingleQuote : root :: nsCSSScanner_EOFCharacters = 32 ; - pub const nsCSSScanner_EOFCharacters_eEOFCharacters_CloseParen : root :: nsCSSScanner_EOFCharacters = 64 ; - pub type nsCSSScanner_EOFCharacters = u32; - #[test] - fn bindgen_test_layout_nsCSSScanner() { - assert_eq!( - ::std::mem::size_of::<nsCSSScanner>(), - 96usize, - concat!("Size of: ", stringify!(nsCSSScanner)) - ); - assert_eq!( - ::std::mem::align_of::<nsCSSScanner>(), - 8usize, - concat!("Alignment of ", stringify!(nsCSSScanner)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mBuffer as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mBuffer) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mOffset as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mOffset) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mCount as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mCount) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mLineNumber as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mLineNumber) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mLineOffset as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mLineOffset) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsCSSScanner>())).mTokenLineNumber as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mTokenLineNumber) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsCSSScanner>())).mTokenLineOffset as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mTokenLineOffset) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mTokenOffset as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mTokenOffset) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsCSSScanner>())).mRecordStartOffset as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mRecordStartOffset) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mEOFCharacters as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mEOFCharacters) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mReporter as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mReporter) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mRecording as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mRecording) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mSeenBadToken as *const _ as usize }, - 57usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mSeenBadToken) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsCSSScanner>())).mSeenVariableReference as *const _ as usize - }, - 58usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mSeenVariableReference) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mSourceMapURL as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mSourceMapURL) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCSSScanner>())).mSourceURL as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(nsCSSScanner), - "::", - stringify!(mSourceURL) - ) - ); - } - #[repr(C)] - pub struct nsISupports__bindgen_vtable(::std::os::raw::c_void); - /// Basic component object model interface. Objects which implement - /// this interface support runtime interface discovery (QueryInterface) - /// and a reference counted memory model (AddRef/Release). This is - /// modelled after the win32 IUnknown API. - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsISupports { - pub vtable_: *const nsISupports__bindgen_vtable, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsISupports_COMTypeInfo { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_nsISupports() { - assert_eq!( - ::std::mem::size_of::<nsISupports>(), - 8usize, - concat!("Size of: ", stringify!(nsISupports)) - ); - assert_eq!( - ::std::mem::align_of::<nsISupports>(), - 8usize, - concat!("Alignment of ", stringify!(nsISupports)) - ); - } - impl Clone for nsISupports { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct PRThread { - _unused: [u8; 0], - } - impl Clone for PRThread { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsCycleCollectingAutoRefCnt { - pub mRefCntAndFlags: usize, - } - pub type nsCycleCollectingAutoRefCnt_Suspect = ::std::option::Option< - unsafe extern "C" fn( - aPtr: *mut ::std::os::raw::c_void, - aCp: *mut root::nsCycleCollectionParticipant, - aRefCnt: *mut root::nsCycleCollectingAutoRefCnt, - aShouldDelete: *mut bool, - ), - >; - #[test] - fn bindgen_test_layout_nsCycleCollectingAutoRefCnt() { - assert_eq!( - ::std::mem::size_of::<nsCycleCollectingAutoRefCnt>(), - 8usize, - concat!("Size of: ", stringify!(nsCycleCollectingAutoRefCnt)) - ); - assert_eq!( - ::std::mem::align_of::<nsCycleCollectingAutoRefCnt>(), - 8usize, - concat!("Alignment of ", stringify!(nsCycleCollectingAutoRefCnt)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsCycleCollectingAutoRefCnt>())).mRefCntAndFlags as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(nsCycleCollectingAutoRefCnt), - "::", - stringify!(mRefCntAndFlags) - ) - ); - } - impl Clone for nsCycleCollectingAutoRefCnt { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsAutoRefCnt { - pub mValue: root::nsrefcnt, - } - pub const nsAutoRefCnt_isThreadSafe: bool = false; - #[test] - fn bindgen_test_layout_nsAutoRefCnt() { - assert_eq!( - ::std::mem::size_of::<nsAutoRefCnt>(), - 8usize, - concat!("Size of: ", stringify!(nsAutoRefCnt)) - ); - assert_eq!( - ::std::mem::align_of::<nsAutoRefCnt>(), - 8usize, - concat!("Alignment of ", stringify!(nsAutoRefCnt)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsAutoRefCnt>())).mValue as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(nsAutoRefCnt), - "::", - stringify!(mValue) - ) - ); - } - impl Clone for nsAutoRefCnt { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug)] - pub struct RefPtr<T> { - pub mRawPtr: *mut T, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, - } - pub type RefPtr_element_type<T> = T; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct RefPtr_Proxy { - pub _address: u8, - } - pub type RefPtr_Proxy_member_function = u8; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct RefPtr_ConstRemovingRefPtrTraits { - pub _address: u8, - } pub mod JS { #[allow(unused_imports)] use self::super::super::root; @@ -15356,66 +14855,98 @@ pub mod root { ); } } - /// Factors implementation for all template versions of nsCOMPtr. - /// - /// Here's the way people normally do things like this: - /// - /// template<class T> class Foo { ... }; - /// template<> class Foo<void*> { ... }; - /// template<class T> class Foo<T*> : private Foo<void*> { ... }; #[repr(C)] - #[derive(Debug)] - pub struct nsCOMPtr_base { - pub mRawPtr: *mut root::nsISupports, + #[derive(Debug, Copy)] + pub struct nsTArrayHeader { + pub mLength: u32, + pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 4usize], u32>, + } + extern "C" { + #[link_name = "\u{1}_ZN14nsTArrayHeader9sEmptyHdrE"] + pub static mut nsTArrayHeader_sEmptyHdr: root::nsTArrayHeader; } #[test] - fn bindgen_test_layout_nsCOMPtr_base() { + fn bindgen_test_layout_nsTArrayHeader() { assert_eq!( - ::std::mem::size_of::<nsCOMPtr_base>(), + ::std::mem::size_of::<nsTArrayHeader>(), 8usize, - concat!("Size of: ", stringify!(nsCOMPtr_base)) + concat!("Size of: ", stringify!(nsTArrayHeader)) ); assert_eq!( - ::std::mem::align_of::<nsCOMPtr_base>(), - 8usize, - concat!("Alignment of ", stringify!(nsCOMPtr_base)) + ::std::mem::align_of::<nsTArrayHeader>(), + 4usize, + concat!("Alignment of ", stringify!(nsTArrayHeader)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCOMPtr_base>())).mRawPtr as *const _ as usize }, + unsafe { &(*(::std::ptr::null::<nsTArrayHeader>())).mLength as *const _ as usize }, 0usize, concat!( "Offset of field: ", - stringify!(nsCOMPtr_base), + stringify!(nsTArrayHeader), "::", - stringify!(mRawPtr) + stringify!(mLength) ) ); } - #[repr(C)] - #[derive(Debug)] - pub struct nsCOMPtr { - pub _base: root::nsCOMPtr_base, - } - pub type nsCOMPtr_element_type<T> = T; - #[repr(C)] - #[derive(Debug)] - pub struct nsAutoPtr<T> { - pub mRawPtr: *mut T, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, + impl Clone for nsTArrayHeader { + fn clone(&self) -> Self { + *self + } } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsAutoPtr_Ptr<T> { - pub mPtr: *mut T, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, + impl nsTArrayHeader { + #[inline] + pub fn mCapacity(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) } + } + #[inline] + pub fn set_mCapacity(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 31u8, val as u64) + } + } + #[inline] + pub fn mIsAutoArray(&self) -> u32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } + } + #[inline] + pub fn set_mIsAutoArray(&mut self, val: u32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(31usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + mCapacity: u32, + mIsAutoArray: u32, + ) -> root::__BindgenBitfieldUnit<[u8; 4usize], u32> { + let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit< + [u8; 4usize], + u32, + > = Default::default(); + __bindgen_bitfield_unit.set(0usize, 31u8, { + let mCapacity: u32 = unsafe { ::std::mem::transmute(mCapacity) }; + mCapacity as u64 + }); + __bindgen_bitfield_unit.set(31usize, 1u8, { + let mIsAutoArray: u32 = unsafe { ::std::mem::transmute(mIsAutoArray) }; + mIsAutoArray as u64 + }); + __bindgen_bitfield_unit + } } - pub type nsAutoPtr_element_type<T> = T; + pub type AutoTArray_self_type = u8; + pub type AutoTArray_base_type<E> = root::nsTArray<E>; + pub type AutoTArray_Header<E> = root::AutoTArray_base_type<E>; + pub type AutoTArray_elem_type<E> = root::AutoTArray_base_type<E>; #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct nsAutoPtr_Proxy { - pub _address: u8, + pub struct AutoTArray__bindgen_ty_1 { + pub mAutoBuf: root::__BindgenUnionField<*mut ::std::os::raw::c_char>, + pub mAlign: root::__BindgenUnionField<u8>, + pub bindgen_union_field: u64, } - pub type nsAutoPtr_Proxy_member_function = u8; pub type PLDHashNumber = u32; #[repr(C)] #[derive(Debug, Copy)] @@ -15808,129 +15339,6 @@ pub mod root { pub type nsPtrHashKey_KeyTypePointer<T> = *mut T; pub const nsPtrHashKey_ALLOW_MEMMOVE: root::nsPtrHashKey__bindgen_ty_1 = 0; pub type nsPtrHashKey__bindgen_ty_1 = i32; - /// hashkey wrapper using nsAString KeyType - /// - /// @see nsTHashtable::EntryType for specification - #[repr(C)] - pub struct nsStringHashKey { - pub _base: root::PLDHashEntryHdr, - pub mStr: ::nsstring::nsStringRepr, - } - pub type nsStringHashKey_KeyType = *const root::nsAString; - pub type nsStringHashKey_KeyTypePointer = *const root::nsAString; - pub const nsStringHashKey_ALLOW_MEMMOVE: root::nsStringHashKey__bindgen_ty_1 = 1; - pub type nsStringHashKey__bindgen_ty_1 = u32; - #[test] - fn bindgen_test_layout_nsStringHashKey() { - assert_eq!( - ::std::mem::size_of::<nsStringHashKey>(), - 24usize, - concat!("Size of: ", stringify!(nsStringHashKey)) - ); - assert_eq!( - ::std::mem::align_of::<nsStringHashKey>(), - 8usize, - concat!("Alignment of ", stringify!(nsStringHashKey)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsStringHashKey>())).mStr as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(nsStringHashKey), - "::", - stringify!(mStr) - ) - ); - } - /// hashkey wrapper using nsACString KeyType - /// - /// @see nsTHashtable::EntryType for specification - #[repr(C)] - #[derive(Debug)] - pub struct nsCStringHashKey { - pub _base: root::PLDHashEntryHdr, - pub mStr: root::nsCString, - } - pub type nsCStringHashKey_KeyType = *const root::nsACString; - pub type nsCStringHashKey_KeyTypePointer = *const root::nsACString; - pub const nsCStringHashKey_ALLOW_MEMMOVE: root::nsCStringHashKey__bindgen_ty_1 = 1; - pub type nsCStringHashKey__bindgen_ty_1 = u32; - #[test] - fn bindgen_test_layout_nsCStringHashKey() { - assert_eq!( - ::std::mem::size_of::<nsCStringHashKey>(), - 24usize, - concat!("Size of: ", stringify!(nsCStringHashKey)) - ); - assert_eq!( - ::std::mem::align_of::<nsCStringHashKey>(), - 8usize, - concat!("Alignment of ", stringify!(nsCStringHashKey)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsCStringHashKey>())).mStr as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(nsCStringHashKey), - "::", - stringify!(mStr) - ) - ); - } - /// hashkey wrapper using nsISupports* KeyType - /// - /// @see nsTHashtable::EntryType for specification - #[repr(C)] - #[derive(Debug)] - pub struct nsISupportsHashKey { - pub _base: root::PLDHashEntryHdr, - pub mSupports: root::nsCOMPtr, - } - pub type nsISupportsHashKey_KeyType = *mut root::nsISupports; - pub type nsISupportsHashKey_KeyTypePointer = *const root::nsISupports; - pub const nsISupportsHashKey_ALLOW_MEMMOVE: root::nsISupportsHashKey__bindgen_ty_1 = 1; - pub type nsISupportsHashKey__bindgen_ty_1 = u32; - #[test] - fn bindgen_test_layout_nsISupportsHashKey() { - assert_eq!( - ::std::mem::size_of::<nsISupportsHashKey>(), - 16usize, - concat!("Size of: ", stringify!(nsISupportsHashKey)) - ); - assert_eq!( - ::std::mem::align_of::<nsISupportsHashKey>(), - 8usize, - concat!("Alignment of ", stringify!(nsISupportsHashKey)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsISupportsHashKey>())).mSupports as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(nsISupportsHashKey), - "::", - stringify!(mSupports) - ) - ); - } - /// hashkey wrapper using refcounted * KeyType - /// - /// @see nsTHashtable::EntryType for specification - #[repr(C)] - #[derive(Debug)] - pub struct nsRefPtrHashKey<T> { - pub _base: root::PLDHashEntryHdr, - pub mKey: root::RefPtr<T>, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, - } - pub type nsRefPtrHashKey_KeyType<T> = *mut T; - pub type nsRefPtrHashKey_KeyTypePointer<T> = *mut T; - pub const nsRefPtrHashKey_ALLOW_MEMMOVE: root::nsRefPtrHashKey__bindgen_ty_1 = 0; - pub type nsRefPtrHashKey__bindgen_ty_1 = i32; /// a base class for templated hashtables. /// /// Clients will rarely need to use this class directly. Check the derived @@ -15996,166 +15404,6 @@ pub mod root { pub _base: root::PLDHashTable_Iterator, } pub type nsTHashtable_Iterator_Base = root::PLDHashTable_Iterator; - /// the private nsTHashtable::EntryType class used by nsBaseHashtable - /// @see nsTHashtable for the specification of this class - /// @see nsBaseHashtable for template parameters - #[repr(C)] - #[derive(Debug)] - pub struct nsBaseHashtableET<KeyClass, DataType> { - pub _base: KeyClass, - pub mData: DataType, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>, - pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>, - } - pub type nsBaseHashtableET_KeyType = [u8; 0usize]; - pub type nsBaseHashtableET_KeyTypePointer = [u8; 0usize]; - /// templated hashtable for simple data types - /// This class manages simple data types that do not need construction or - /// destruction. - /// - /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h - /// for a complete specification. - /// @param DataType the datatype stored in the hashtable, - /// for example, uint32_t or nsCOMPtr. If UserDataType is not the same, - /// DataType must implicitly cast to UserDataType - /// @param UserDataType the user sees, for example uint32_t or nsISupports* - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsBaseHashtable { - pub _address: u8, - } - pub type nsBaseHashtable_fallible_t = root::mozilla::fallible_t; - pub type nsBaseHashtable_KeyType = [u8; 0usize]; - pub type nsBaseHashtable_EntryType<KeyClass, DataType> = - root::nsBaseHashtableET<KeyClass, DataType>; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsBaseHashtable_LookupResult<KeyClass, DataType> { - pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>, - pub mTable: *mut u8, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>, - pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>, - } - #[repr(C)] - #[derive(Debug)] - pub struct nsBaseHashtable_EntryPtr<KeyClass, DataType> { - pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>, - pub mExistingEntry: bool, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>, - pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>, - } - #[repr(C)] - #[derive(Debug)] - pub struct nsBaseHashtable_Iterator { - pub _base: root::PLDHashTable_Iterator, - } - pub type nsBaseHashtable_Iterator_Base = root::PLDHashTable_Iterator; - /// templated hashtable class maps keys to simple datatypes. - /// See nsBaseHashtable for complete declaration - /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h - /// for a complete specification. - /// @param DataType the simple datatype being wrapped - /// @see nsInterfaceHashtable, nsClassHashtable - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsDataHashtable { - pub _address: u8, - } - pub type nsDataHashtable_BaseClass = u8; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsTArrayHeader { - pub mLength: u32, - pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 4usize], u32>, - } - extern "C" { - #[link_name = "\u{1}_ZN14nsTArrayHeader9sEmptyHdrE"] - pub static mut nsTArrayHeader_sEmptyHdr: root::nsTArrayHeader; - } - #[test] - fn bindgen_test_layout_nsTArrayHeader() { - assert_eq!( - ::std::mem::size_of::<nsTArrayHeader>(), - 8usize, - concat!("Size of: ", stringify!(nsTArrayHeader)) - ); - assert_eq!( - ::std::mem::align_of::<nsTArrayHeader>(), - 4usize, - concat!("Alignment of ", stringify!(nsTArrayHeader)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsTArrayHeader>())).mLength as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(nsTArrayHeader), - "::", - stringify!(mLength) - ) - ); - } - impl Clone for nsTArrayHeader { - fn clone(&self) -> Self { - *self - } - } - impl nsTArrayHeader { - #[inline] - pub fn mCapacity(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) } - } - #[inline] - pub fn set_mCapacity(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 31u8, val as u64) - } - } - #[inline] - pub fn mIsAutoArray(&self) -> u32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } - } - #[inline] - pub fn set_mIsAutoArray(&mut self, val: u32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(31usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - mCapacity: u32, - mIsAutoArray: u32, - ) -> root::__BindgenBitfieldUnit<[u8; 4usize], u32> { - let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit< - [u8; 4usize], - u32, - > = Default::default(); - __bindgen_bitfield_unit.set(0usize, 31u8, { - let mCapacity: u32 = unsafe { ::std::mem::transmute(mCapacity) }; - mCapacity as u64 - }); - __bindgen_bitfield_unit.set(31usize, 1u8, { - let mIsAutoArray: u32 = unsafe { ::std::mem::transmute(mIsAutoArray) }; - mIsAutoArray as u64 - }); - __bindgen_bitfield_unit - } - } - pub type AutoTArray_self_type = u8; - pub type AutoTArray_base_type<E> = root::nsTArray<E>; - pub type AutoTArray_Header<E> = root::AutoTArray_base_type<E>; - pub type AutoTArray_elem_type<E> = root::AutoTArray_base_type<E>; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct AutoTArray__bindgen_ty_1 { - pub mAutoBuf: root::__BindgenUnionField<*mut ::std::os::raw::c_char>, - pub mAlign: root::__BindgenUnionField<u8>, - pub bindgen_union_field: u64, - } - pub type nscoord = i32; - pub type nscolor = u32; #[repr(C)] #[derive(Debug, Copy)] pub struct gfxFontFeature { @@ -16416,7 +15664,8 @@ pub mod root { *const root::gfxFontFeatureValueSet_FeatureValueHashKey; pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyTypePointer = *const root::gfxFontFeatureValueSet_FeatureValueHashKey; - pub const gfxFontFeatureValueSet_FeatureValueHashEntry_ALLOW_MEMMOVE : root :: gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_1 = 1 ; + pub const gfxFontFeatureValueSet_FeatureValueHashEntry_ALLOW_MEMMOVE: + root::gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_1 = 1; pub type gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_1 = u32; #[test] fn bindgen_test_layout_gfxFontFeatureValueSet_FeatureValueHashEntry() { @@ -16807,7 +16056,8 @@ pub mod root { pub mOtherElements: root::nsTArray<T>, pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, } - pub const nsStyleAutoArray_WithSingleInitialElement_WITH_SINGLE_INITIAL_ELEMENT : root :: nsStyleAutoArray_WithSingleInitialElement = 0 ; + pub const nsStyleAutoArray_WithSingleInitialElement_WITH_SINGLE_INITIAL_ELEMENT: + root::nsStyleAutoArray_WithSingleInitialElement = 0; pub type nsStyleAutoArray_WithSingleInitialElement = i32; pub const nsStyleUnit_eStyleUnit_MAX: root::nsStyleUnit = nsStyleUnit::eStyleUnit_Calc; #[repr(u8)] @@ -16990,7 +16240,8 @@ pub mod root { ) ); } - pub const nsStyleCoord_CoordConstructorType_CoordConstructor : root :: nsStyleCoord_CoordConstructorType = 0 ; + pub const nsStyleCoord_CoordConstructorType_CoordConstructor: + root::nsStyleCoord_CoordConstructorType = 0; pub type nsStyleCoord_CoordConstructorType = u32; #[test] fn bindgen_test_layout_nsStyleCoord() { @@ -17243,7 +16494,7 @@ pub mod root { /// has changed whether the frame is a container for fixed-pos or abs-pos /// elements, but reframing is otherwise not needed. /// - /// Note that nsStyleContext::CalcStyleDifference adjusts results + /// Note that ComputedStyle::CalcStyleDifference adjusts results /// returned by style struct CalcDifference methods to return this hint /// only if there was a change to whether the element's overall style /// indicates that it establishes a containing block. @@ -17422,6 +16673,47 @@ pub mod root { /// RestyleManager::RestyleHintToString. #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub struct nsRestyleHint(pub u32); + /// Factors implementation for all template versions of nsCOMPtr. + /// + /// Here's the way people normally do things like this: + /// + /// template<class T> class Foo { ... }; + /// template<> class Foo<void*> { ... }; + /// template<class T> class Foo<T*> : private Foo<void*> { ... }; + #[repr(C)] + #[derive(Debug)] + pub struct nsCOMPtr_base { + pub mRawPtr: *mut root::nsISupports, + } + #[test] + fn bindgen_test_layout_nsCOMPtr_base() { + assert_eq!( + ::std::mem::size_of::<nsCOMPtr_base>(), + 8usize, + concat!("Size of: ", stringify!(nsCOMPtr_base)) + ); + assert_eq!( + ::std::mem::align_of::<nsCOMPtr_base>(), + 8usize, + concat!("Alignment of ", stringify!(nsCOMPtr_base)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<nsCOMPtr_base>())).mRawPtr as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(nsCOMPtr_base), + "::", + stringify!(mRawPtr) + ) + ); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsCOMPtr { + pub _base: root::nsCOMPtr_base, + } + pub type nsCOMPtr_element_type<T> = T; /// We want C++ to be able to read the style struct fields of ComputedValues /// so we define this type on the C++ side and use the bindgenned version /// on the Rust side. @@ -17813,6 +17105,25 @@ pub mod root { } } pub type UniqueProfilerBacktrace = root::mozilla::UniquePtr<root::ProfilerBacktrace>; + #[repr(C)] + #[derive(Debug)] + pub struct nsAutoPtr<T> { + pub mRawPtr: *mut T, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsAutoPtr_Ptr<T> { + pub mPtr: *mut T, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, + } + pub type nsAutoPtr_element_type<T> = T; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsAutoPtr_Proxy { + pub _address: u8, + } + pub type nsAutoPtr_Proxy_member_function = u8; /// This structure precedes the string buffers "we" allocate. It may be the /// case that nsTAString::mData does not point to one of these special /// buffers. The mDataFlags member variable distinguishes the buffer type. @@ -17870,6 +17181,8 @@ pub mod root { ) ); } + /// Functions to create content, to be used only inside Gecko + /// (mozilla/content and mozilla/layout). #[repr(C)] #[derive(Debug)] pub struct nsAtom { @@ -18080,10 +17393,12 @@ pub mod root { pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE_PRELOAD: root::nsIContentPolicy__bindgen_ty_1 = 38; pub const nsIContentPolicy_TYPE_INTERNAL_STYLESHEET: root::nsIContentPolicy__bindgen_ty_1 = 39; - pub const nsIContentPolicy_TYPE_INTERNAL_STYLESHEET_PRELOAD : root :: nsIContentPolicy__bindgen_ty_1 = 40 ; + pub const nsIContentPolicy_TYPE_INTERNAL_STYLESHEET_PRELOAD: + root::nsIContentPolicy__bindgen_ty_1 = 40; pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE_FAVICON: root::nsIContentPolicy__bindgen_ty_1 = 41; - pub const nsIContentPolicy_TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS : root :: nsIContentPolicy__bindgen_ty_1 = 42 ; + pub const nsIContentPolicy_TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS: + root::nsIContentPolicy__bindgen_ty_1 = 42; pub const nsIContentPolicy_REJECT_REQUEST: root::nsIContentPolicy__bindgen_ty_1 = -1; pub const nsIContentPolicy_REJECT_TYPE: root::nsIContentPolicy__bindgen_ty_1 = -2; pub const nsIContentPolicy_REJECT_SERVER: root::nsIContentPolicy__bindgen_ty_1 = -3; @@ -18361,17 +17676,24 @@ pub mod root { pub _address: u8, } pub const nsIScriptSecurityManager_STANDARD: root::nsIScriptSecurityManager__bindgen_ty_1 = 0; - pub const nsIScriptSecurityManager_LOAD_IS_AUTOMATIC_DOCUMENT_REPLACEMENT : root :: nsIScriptSecurityManager__bindgen_ty_1 = 1 ; + pub const nsIScriptSecurityManager_LOAD_IS_AUTOMATIC_DOCUMENT_REPLACEMENT: + root::nsIScriptSecurityManager__bindgen_ty_1 = 1; pub const nsIScriptSecurityManager_ALLOW_CHROME: root::nsIScriptSecurityManager__bindgen_ty_1 = 2; - pub const nsIScriptSecurityManager_DISALLOW_INHERIT_PRINCIPAL : root :: nsIScriptSecurityManager__bindgen_ty_1 = 4 ; - pub const nsIScriptSecurityManager_DISALLOW_SCRIPT_OR_DATA : root :: nsIScriptSecurityManager__bindgen_ty_1 = 4 ; - pub const nsIScriptSecurityManager_DISALLOW_SCRIPT : root :: nsIScriptSecurityManager__bindgen_ty_1 = 8 ; - pub const nsIScriptSecurityManager_DONT_REPORT_ERRORS : root :: nsIScriptSecurityManager__bindgen_ty_1 = 16 ; + pub const nsIScriptSecurityManager_DISALLOW_INHERIT_PRINCIPAL: + root::nsIScriptSecurityManager__bindgen_ty_1 = 4; + pub const nsIScriptSecurityManager_DISALLOW_SCRIPT_OR_DATA: + root::nsIScriptSecurityManager__bindgen_ty_1 = 4; + pub const nsIScriptSecurityManager_DISALLOW_SCRIPT: + root::nsIScriptSecurityManager__bindgen_ty_1 = 8; + pub const nsIScriptSecurityManager_DONT_REPORT_ERRORS: + root::nsIScriptSecurityManager__bindgen_ty_1 = 16; pub type nsIScriptSecurityManager__bindgen_ty_1 = u32; pub const nsIScriptSecurityManager_NO_APP_ID: root::nsIScriptSecurityManager__bindgen_ty_2 = 0; - pub const nsIScriptSecurityManager_UNKNOWN_APP_ID : root :: nsIScriptSecurityManager__bindgen_ty_2 = 4294967295 ; - pub const nsIScriptSecurityManager_DEFAULT_USER_CONTEXT_ID : root :: nsIScriptSecurityManager__bindgen_ty_2 = 0 ; + pub const nsIScriptSecurityManager_UNKNOWN_APP_ID: + root::nsIScriptSecurityManager__bindgen_ty_2 = 4294967295; + pub const nsIScriptSecurityManager_DEFAULT_USER_CONTEXT_ID: + root::nsIScriptSecurityManager__bindgen_ty_2 = 0; pub type nsIScriptSecurityManager__bindgen_ty_2 = u32; #[test] fn bindgen_test_layout_nsIScriptSecurityManager() { @@ -18680,7 +18002,102 @@ pub mod root { ) ); } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsBindingManager { + _unused: [u8; 0], + } + impl Clone for nsBindingManager { + fn clone(&self) -> Self { + *self + } + } pub type gfxSize = [u64; 2usize]; + /// hashkey wrapper using nsAString KeyType + /// + /// @see nsTHashtable::EntryType for specification + #[repr(C)] + pub struct nsStringHashKey { + pub _base: root::PLDHashEntryHdr, + pub mStr: ::nsstring::nsStringRepr, + } + pub type nsStringHashKey_KeyType = *const root::nsAString; + pub type nsStringHashKey_KeyTypePointer = *const root::nsAString; + pub const nsStringHashKey_ALLOW_MEMMOVE: root::nsStringHashKey__bindgen_ty_1 = 1; + pub type nsStringHashKey__bindgen_ty_1 = u32; + #[test] + fn bindgen_test_layout_nsStringHashKey() { + assert_eq!( + ::std::mem::size_of::<nsStringHashKey>(), + 24usize, + concat!("Size of: ", stringify!(nsStringHashKey)) + ); + assert_eq!( + ::std::mem::align_of::<nsStringHashKey>(), + 8usize, + concat!("Alignment of ", stringify!(nsStringHashKey)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<nsStringHashKey>())).mStr as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(nsStringHashKey), + "::", + stringify!(mStr) + ) + ); + } + /// hashkey wrapper using nsACString KeyType + /// + /// @see nsTHashtable::EntryType for specification + #[repr(C)] + #[derive(Debug)] + pub struct nsCStringHashKey { + pub _base: root::PLDHashEntryHdr, + pub mStr: root::nsCString, + } + pub type nsCStringHashKey_KeyType = *const root::nsACString; + pub type nsCStringHashKey_KeyTypePointer = *const root::nsACString; + pub const nsCStringHashKey_ALLOW_MEMMOVE: root::nsCStringHashKey__bindgen_ty_1 = 1; + pub type nsCStringHashKey__bindgen_ty_1 = u32; + #[test] + fn bindgen_test_layout_nsCStringHashKey() { + assert_eq!( + ::std::mem::size_of::<nsCStringHashKey>(), + 24usize, + concat!("Size of: ", stringify!(nsCStringHashKey)) + ); + assert_eq!( + ::std::mem::align_of::<nsCStringHashKey>(), + 8usize, + concat!("Alignment of ", stringify!(nsCStringHashKey)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<nsCStringHashKey>())).mStr as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(nsCStringHashKey), + "::", + stringify!(mStr) + ) + ); + } + /// hashkey wrapper using refcounted * KeyType + /// + /// @see nsTHashtable::EntryType for specification + #[repr(C)] + #[derive(Debug)] + pub struct nsRefPtrHashKey<T> { + pub _base: root::PLDHashEntryHdr, + pub mKey: root::RefPtr<T>, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, + } + pub type nsRefPtrHashKey_KeyType<T> = *mut T; + pub type nsRefPtrHashKey_KeyTypePointer<T> = *mut T; + pub const nsRefPtrHashKey_ALLOW_MEMMOVE: root::nsRefPtrHashKey__bindgen_ty_1 = 0; + pub type nsRefPtrHashKey__bindgen_ty_1 = i32; pub type DOMHighResTimeStamp = f64; #[repr(C)] #[derive(Debug, Copy)] @@ -18739,7 +18156,74 @@ pub mod root { *self } } + /// the private nsTHashtable::EntryType class used by nsBaseHashtable + /// @see nsTHashtable for the specification of this class + /// @see nsBaseHashtable for template parameters + #[repr(C)] + #[derive(Debug)] + pub struct nsBaseHashtableET<KeyClass, DataType> { + pub _base: KeyClass, + pub mData: DataType, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>, + pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>, + } + pub type nsBaseHashtableET_KeyType = [u8; 0usize]; + pub type nsBaseHashtableET_KeyTypePointer = [u8; 0usize]; + /// templated hashtable for simple data types + /// This class manages simple data types that do not need construction or + /// destruction. + /// + /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h + /// for a complete specification. + /// @param DataType the datatype stored in the hashtable, + /// for example, uint32_t or nsCOMPtr. If UserDataType is not the same, + /// DataType must implicitly cast to UserDataType + /// @param UserDataType the user sees, for example uint32_t or nsISupports* + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsBaseHashtable { + pub _address: u8, + } + pub type nsBaseHashtable_fallible_t = root::mozilla::fallible_t; + pub type nsBaseHashtable_KeyType = [u8; 0usize]; + pub type nsBaseHashtable_EntryType<KeyClass, DataType> = + root::nsBaseHashtableET<KeyClass, DataType>; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsBaseHashtable_LookupResult<KeyClass, DataType> { + pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>, + pub mTable: *mut u8, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>, + pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>, + } + #[repr(C)] + #[derive(Debug)] + pub struct nsBaseHashtable_EntryPtr<KeyClass, DataType> { + pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>, + pub mExistingEntry: bool, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>, + pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>, + } + #[repr(C)] + #[derive(Debug)] + pub struct nsBaseHashtable_Iterator { + pub _base: root::PLDHashTable_Iterator, + } + pub type nsBaseHashtable_Iterator_Base = root::PLDHashTable_Iterator; + /// templated hashtable class maps keys to simple datatypes. + /// See nsBaseHashtable for complete declaration + /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h + /// for a complete specification. + /// @param DataType the simple datatype being wrapped + /// @see nsInterfaceHashtable, nsClassHashtable + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsDataHashtable { + pub _address: u8, + } + pub type nsDataHashtable_BaseClass = u8; #[repr(C)] + #[derive(Debug)] pub struct nsNodeInfoManager { pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub mNodeInfoHash: [u64; 4usize], @@ -19249,8 +18733,7 @@ pub mod root { pub const nsINode_eHTML_FORM_CONTROL: root::nsINode__bindgen_ty_1 = 64; /// document fragments pub const nsINode_eDOCUMENT_FRAGMENT: root::nsINode__bindgen_ty_1 = 128; - /// data nodes (comments, PIs, text). Nodes of this type always - /// returns a non-null value for nsIContent::GetText() + /// character data nodes (comments, PIs, text). pub const nsINode_eDATA_NODE: root::nsINode__bindgen_ty_1 = 256; /// HTMLMediaElement pub const nsINode_eMEDIA: root::nsINode__bindgen_ty_1 = 512; @@ -19532,8 +19015,8 @@ pub mod root { ) ); } - /// Functions to create content, to be used only inside Gecko - /// (mozilla/content and mozilla/layout). + /// A node of content in a document's content model. This interface + /// is supported by all content objects. #[repr(C)] pub struct nsIContent { pub _base: root::nsINode, @@ -19746,6 +19229,7 @@ pub mod root { pub mDisplayContentsMap: *mut root::nsFrameManager_UndisplayedMap, pub mIsDestroyingFrames: bool, } + pub type nsFrameManager_ComputedStyle = root::mozilla::ComputedStyle; pub use self::super::root::mozilla::layout::FrameChildListID as nsFrameManager_ChildListID; pub type nsFrameManager_UndisplayedNode = root::mozilla::UndisplayedNode; #[repr(C)] @@ -20011,19 +19495,23 @@ pub mod root { pub struct imgINotificationObserver_COMTypeInfo { pub _address: u8, } - pub const imgINotificationObserver_SIZE_AVAILABLE : root :: imgINotificationObserver__bindgen_ty_1 = 1 ; + pub const imgINotificationObserver_SIZE_AVAILABLE: + root::imgINotificationObserver__bindgen_ty_1 = 1; pub const imgINotificationObserver_FRAME_UPDATE: root::imgINotificationObserver__bindgen_ty_1 = 2; - pub const imgINotificationObserver_FRAME_COMPLETE : root :: imgINotificationObserver__bindgen_ty_1 = 3 ; + pub const imgINotificationObserver_FRAME_COMPLETE: + root::imgINotificationObserver__bindgen_ty_1 = 3; pub const imgINotificationObserver_LOAD_COMPLETE: root::imgINotificationObserver__bindgen_ty_1 = 4; - pub const imgINotificationObserver_DECODE_COMPLETE : root :: imgINotificationObserver__bindgen_ty_1 = 5 ; + pub const imgINotificationObserver_DECODE_COMPLETE: + root::imgINotificationObserver__bindgen_ty_1 = 5; pub const imgINotificationObserver_DISCARD: root::imgINotificationObserver__bindgen_ty_1 = 6; pub const imgINotificationObserver_UNLOCKED_DRAW: root::imgINotificationObserver__bindgen_ty_1 = 7; pub const imgINotificationObserver_IS_ANIMATED: root::imgINotificationObserver__bindgen_ty_1 = 8; - pub const imgINotificationObserver_HAS_TRANSPARENCY : root :: imgINotificationObserver__bindgen_ty_1 = 9 ; + pub const imgINotificationObserver_HAS_TRANSPARENCY: + root::imgINotificationObserver__bindgen_ty_1 = 9; pub type imgINotificationObserver__bindgen_ty_1 = u32; #[test] fn bindgen_test_layout_imgINotificationObserver() { @@ -20349,8 +19837,10 @@ pub mod root { } pub type nsIPresShell_LayerManager = root::mozilla::layers::LayerManager; pub type nsIPresShell_SourceSurface = root::mozilla::gfx::SourceSurface; - pub const nsIPresShell_eRenderFlag_STATE_IGNORING_VIEWPORT_SCROLLING : root :: nsIPresShell_eRenderFlag = 1 ; - pub const nsIPresShell_eRenderFlag_STATE_DRAWWINDOW_NOT_FLUSHING : root :: nsIPresShell_eRenderFlag = 2 ; + pub const nsIPresShell_eRenderFlag_STATE_IGNORING_VIEWPORT_SCROLLING: + root::nsIPresShell_eRenderFlag = 1; + pub const nsIPresShell_eRenderFlag_STATE_DRAWWINDOW_NOT_FLUSHING: + root::nsIPresShell_eRenderFlag = 2; pub type nsIPresShell_eRenderFlag = u32; pub type nsIPresShell_RenderFlags = u8; pub const nsIPresShell_ResizeReflowOptions_eBSizeExact: root::nsIPresShell_ResizeReflowOptions = @@ -20379,9 +19869,12 @@ pub mod root { /// be marked dirty. Passing aIntrinsicDirty = eResize and aBitToAdd = 0 /// would result in no work being done, so don't do that. pub type nsIPresShell_IntrinsicDirty = u32; - pub const nsIPresShell_ReflowRootHandling_ePositionOrSizeChange : root :: nsIPresShell_ReflowRootHandling = 0 ; - pub const nsIPresShell_ReflowRootHandling_eNoPositionOrSizeChange : root :: nsIPresShell_ReflowRootHandling = 1 ; - pub const nsIPresShell_ReflowRootHandling_eInferFromBitToAdd : root :: nsIPresShell_ReflowRootHandling = 2 ; + pub const nsIPresShell_ReflowRootHandling_ePositionOrSizeChange: + root::nsIPresShell_ReflowRootHandling = 0; + pub const nsIPresShell_ReflowRootHandling_eNoPositionOrSizeChange: + root::nsIPresShell_ReflowRootHandling = 1; + pub const nsIPresShell_ReflowRootHandling_eInferFromBitToAdd: + root::nsIPresShell_ReflowRootHandling = 2; pub type nsIPresShell_ReflowRootHandling = u32; pub const nsIPresShell_SCROLL_TOP: root::nsIPresShell__bindgen_ty_1 = 0; pub const nsIPresShell_SCROLL_BOTTOM: root::nsIPresShell__bindgen_ty_1 = 100; @@ -20392,7 +19885,8 @@ pub mod root { pub type nsIPresShell__bindgen_ty_1 = i32; pub const nsIPresShell_WhenToScroll_SCROLL_ALWAYS: root::nsIPresShell_WhenToScroll = 0; pub const nsIPresShell_WhenToScroll_SCROLL_IF_NOT_VISIBLE: root::nsIPresShell_WhenToScroll = 1; - pub const nsIPresShell_WhenToScroll_SCROLL_IF_NOT_FULLY_VISIBLE : root :: nsIPresShell_WhenToScroll = 2 ; + pub const nsIPresShell_WhenToScroll_SCROLL_IF_NOT_FULLY_VISIBLE: + root::nsIPresShell_WhenToScroll = 2; pub type nsIPresShell_WhenToScroll = u32; #[repr(C)] #[derive(Debug, Copy)] @@ -21072,17 +20566,28 @@ pub mod root { } } #[inline] - pub fn mNeedThrottledAnimationFlush(&self) -> bool { + pub fn mResizeEventPending(&self) -> bool { unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) } } #[inline] - pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) { + pub fn set_mResizeEventPending(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); self._bitfield_1.set(16usize, 1u8, val as u64) } } #[inline] + pub fn mNeedThrottledAnimationFlush(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) } + } + #[inline] + pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(17usize, 1u8, val as u64) + } + } + #[inline] pub fn new_bitfield_1( mDidInitialize: bool, mIsDestroying: bool, @@ -21100,6 +20605,7 @@ pub mod root { mNeedStyleFlush: bool, mObservingStyleFlushes: bool, mObservingLayoutFlushes: bool, + mResizeEventPending: bool, mNeedThrottledAnimationFlush: bool, ) -> root::__BindgenBitfieldUnit<[u8; 3usize], u8> { let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit< @@ -21177,6 +20683,10 @@ pub mod root { mObservingLayoutFlushes as u64 }); __bindgen_bitfield_unit.set(16usize, 1u8, { + let mResizeEventPending: u8 = unsafe { ::std::mem::transmute(mResizeEventPending) }; + mResizeEventPending as u64 + }); + __bindgen_bitfield_unit.set(17usize, 1u8, { let mNeedThrottledAnimationFlush: u8 = unsafe { ::std::mem::transmute(mNeedThrottledAnimationFlush) }; mNeedThrottledAnimationFlush as u64 @@ -23355,7 +22865,8 @@ pub mod root { root::nsIdentifierMapEntry_ChangeCallback; pub type nsIdentifierMapEntry_ChangeCallbackEntry_KeyTypePointer = *const root::nsIdentifierMapEntry_ChangeCallback; - pub const nsIdentifierMapEntry_ChangeCallbackEntry_ALLOW_MEMMOVE : root :: nsIdentifierMapEntry_ChangeCallbackEntry__bindgen_ty_1 = 1 ; + pub const nsIdentifierMapEntry_ChangeCallbackEntry_ALLOW_MEMMOVE: + root::nsIdentifierMapEntry_ChangeCallbackEntry__bindgen_ty_1 = 1; pub type nsIdentifierMapEntry_ChangeCallbackEntry__bindgen_ty_1 = u32; #[test] fn bindgen_test_layout_nsIdentifierMapEntry_ChangeCallbackEntry() { @@ -24148,8 +23659,8 @@ pub mod root { pub type RawGeckoCSSPropertyIDList = root::nsTArray<root::nsCSSPropertyID>; pub type RawGeckoGfxMatrix4x4 = [root::mozilla::gfx::Float; 16usize]; pub type RawGeckoStyleChildrenIterator = root::mozilla::dom::StyleChildrenIterator; - pub type ServoStyleContextBorrowed = *const root::mozilla::ServoStyleContext; - pub type ServoStyleContextBorrowedOrNull = *const root::mozilla::ServoStyleContext; + pub type ComputedStyleBorrowed = *const root::mozilla::ComputedStyle; + pub type ComputedStyleBorrowedOrNull = *const root::mozilla::ComputedStyle; pub type ServoComputedDataBorrowed = *const root::ServoComputedData; pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode; pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode; @@ -24778,7 +24289,6 @@ pub mod root { pub mLinksToUpdate: root::nsIDocument_LinksToUpdateList, pub mAnimationController: root::RefPtr<root::nsSMILAnimationController>, pub mPropertyTable: root::nsPropertyTable, - pub mExtraPropertyTables: root::nsTArray<root::nsAutoPtr<root::nsPropertyTable>>, pub mChildrenCollection: root::nsCOMPtr, pub mImages: root::RefPtr<root::nsContentList>, pub mEmbeds: root::RefPtr<root::nsContentList>, @@ -24792,12 +24302,13 @@ pub mod root { pub mDocumentState: root::mozilla::EventStates, pub mReadyForIdle: root::RefPtr<root::mozilla::dom::Promise>, pub mAboutCapabilities: root::RefPtr<root::mozilla::dom::AboutCapabilities>, - pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 10usize], u8>, + pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 11usize], u8>, pub mPendingFullscreenRequests: u8, pub mXMLDeclarationBits: u8, + pub mOnloadBlockCount: u32, + pub mAsyncOnloadBlockCount: u32, pub mCompatMode: root::nsCompatibility, pub mReadyState: root::nsIDocument_ReadyState, - pub mStyleBackendType: root::mozilla::StyleBackendType, pub mVisibilityState: root::mozilla::dom::VisibilityState, pub mType: root::nsIDocument_Type, pub mDefaultElementType: u8, @@ -24896,6 +24407,9 @@ pub mod root { pub mScaleFloat: root::mozilla::LayoutDeviceToScreenScale, pub mPixelRatio: root::mozilla::CSSToLayoutDeviceScale, pub mViewportSize: root::mozilla::CSSSize, + pub mListenerManager: root::RefPtr<root::mozilla::EventListenerManager>, + pub mMaybeEndOutermostXBLUpdateRunner: root::nsCOMPtr, + pub mOnloadBlocker: root::nsCOMPtr, pub mOnDemandBuiltInUASheets: root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>, pub mAdditionalSheets: [root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>; 3usize], pub mLastStyleSheetSet: ::nsstring::nsStringRepr, @@ -25156,7 +24670,8 @@ pub mod root { pub const nsIDocument_additionalSheetType_eUserSheet: root::nsIDocument_additionalSheetType = 1; pub const nsIDocument_additionalSheetType_eAuthorSheet: root::nsIDocument_additionalSheetType = 2; - pub const nsIDocument_additionalSheetType_AdditionalSheetTypeCount : root :: nsIDocument_additionalSheetType = 3 ; + pub const nsIDocument_additionalSheetType_AdditionalSheetTypeCount: + root::nsIDocument_additionalSheetType = 3; pub type nsIDocument_additionalSheetType = u32; pub const nsIDocument_ReadyState_READYSTATE_UNINITIALIZED: root::nsIDocument_ReadyState = 0; pub const nsIDocument_ReadyState_READYSTATE_LOADING: root::nsIDocument_ReadyState = 1; @@ -25188,60 +24703,106 @@ pub mod root { } pub type nsIDocument_FrameRequestCallbackList = root::nsTArray<root::RefPtr<root::mozilla::dom::FrameRequestCallback>>; - pub const nsIDocument_DeprecatedOperations_eEnablePrivilege : root :: nsIDocument_DeprecatedOperations = 0 ; - pub const nsIDocument_DeprecatedOperations_eDOMExceptionCode : root :: nsIDocument_DeprecatedOperations = 1 ; - pub const nsIDocument_DeprecatedOperations_eMutationEvent : root :: nsIDocument_DeprecatedOperations = 2 ; + pub const nsIDocument_DeprecatedOperations_eEnablePrivilege: + root::nsIDocument_DeprecatedOperations = 0; + pub const nsIDocument_DeprecatedOperations_eDOMExceptionCode: + root::nsIDocument_DeprecatedOperations = 1; + pub const nsIDocument_DeprecatedOperations_eMutationEvent: + root::nsIDocument_DeprecatedOperations = 2; pub const nsIDocument_DeprecatedOperations_eComponents: root::nsIDocument_DeprecatedOperations = 3; - pub const nsIDocument_DeprecatedOperations_ePrefixedVisibilityAPI : root :: nsIDocument_DeprecatedOperations = 4 ; - pub const nsIDocument_DeprecatedOperations_eNodeIteratorDetach : root :: nsIDocument_DeprecatedOperations = 5 ; - pub const nsIDocument_DeprecatedOperations_eLenientThis : root :: nsIDocument_DeprecatedOperations = 6 ; - pub const nsIDocument_DeprecatedOperations_eGetSetUserData : root :: nsIDocument_DeprecatedOperations = 7 ; - pub const nsIDocument_DeprecatedOperations_eMozGetAsFile : root :: nsIDocument_DeprecatedOperations = 8 ; - pub const nsIDocument_DeprecatedOperations_eUseOfCaptureEvents : root :: nsIDocument_DeprecatedOperations = 9 ; - pub const nsIDocument_DeprecatedOperations_eUseOfReleaseEvents : root :: nsIDocument_DeprecatedOperations = 10 ; - pub const nsIDocument_DeprecatedOperations_eUseOfDOM3LoadMethod : root :: nsIDocument_DeprecatedOperations = 11 ; - pub const nsIDocument_DeprecatedOperations_eChromeUseOfDOM3LoadMethod : root :: nsIDocument_DeprecatedOperations = 12 ; - pub const nsIDocument_DeprecatedOperations_eShowModalDialog : root :: nsIDocument_DeprecatedOperations = 13 ; - pub const nsIDocument_DeprecatedOperations_eSyncXMLHttpRequest : root :: nsIDocument_DeprecatedOperations = 14 ; - pub const nsIDocument_DeprecatedOperations_eWindow_Cc_ontrollers : root :: nsIDocument_DeprecatedOperations = 15 ; - pub const nsIDocument_DeprecatedOperations_eImportXULIntoContent : root :: nsIDocument_DeprecatedOperations = 16 ; - pub const nsIDocument_DeprecatedOperations_ePannerNodeDoppler : root :: nsIDocument_DeprecatedOperations = 17 ; - pub const nsIDocument_DeprecatedOperations_eNavigatorGetUserMedia : root :: nsIDocument_DeprecatedOperations = 18 ; - pub const nsIDocument_DeprecatedOperations_eWebrtcDeprecatedPrefix : root :: nsIDocument_DeprecatedOperations = 19 ; - pub const nsIDocument_DeprecatedOperations_eRTCPeerConnectionGetStreams : root :: nsIDocument_DeprecatedOperations = 20 ; + pub const nsIDocument_DeprecatedOperations_ePrefixedVisibilityAPI: + root::nsIDocument_DeprecatedOperations = 4; + pub const nsIDocument_DeprecatedOperations_eNodeIteratorDetach: + root::nsIDocument_DeprecatedOperations = 5; + pub const nsIDocument_DeprecatedOperations_eLenientThis: + root::nsIDocument_DeprecatedOperations = 6; + pub const nsIDocument_DeprecatedOperations_eMozGetAsFile: + root::nsIDocument_DeprecatedOperations = 7; + pub const nsIDocument_DeprecatedOperations_eUseOfCaptureEvents: + root::nsIDocument_DeprecatedOperations = 8; + pub const nsIDocument_DeprecatedOperations_eUseOfReleaseEvents: + root::nsIDocument_DeprecatedOperations = 9; + pub const nsIDocument_DeprecatedOperations_eUseOfDOM3LoadMethod: + root::nsIDocument_DeprecatedOperations = 10; + pub const nsIDocument_DeprecatedOperations_eChromeUseOfDOM3LoadMethod: + root::nsIDocument_DeprecatedOperations = 11; + pub const nsIDocument_DeprecatedOperations_eShowModalDialog: + root::nsIDocument_DeprecatedOperations = 12; + pub const nsIDocument_DeprecatedOperations_eSyncXMLHttpRequest: + root::nsIDocument_DeprecatedOperations = 13; + pub const nsIDocument_DeprecatedOperations_eWindow_Cc_ontrollers: + root::nsIDocument_DeprecatedOperations = 14; + pub const nsIDocument_DeprecatedOperations_eImportXULIntoContent: + root::nsIDocument_DeprecatedOperations = 15; + pub const nsIDocument_DeprecatedOperations_ePannerNodeDoppler: + root::nsIDocument_DeprecatedOperations = 16; + pub const nsIDocument_DeprecatedOperations_eNavigatorGetUserMedia: + root::nsIDocument_DeprecatedOperations = 17; + pub const nsIDocument_DeprecatedOperations_eWebrtcDeprecatedPrefix: + root::nsIDocument_DeprecatedOperations = 18; + pub const nsIDocument_DeprecatedOperations_eRTCPeerConnectionGetStreams: + root::nsIDocument_DeprecatedOperations = 19; pub const nsIDocument_DeprecatedOperations_eAppCache: root::nsIDocument_DeprecatedOperations = - 21; - pub const nsIDocument_DeprecatedOperations_eAppCacheInsecure : root :: nsIDocument_DeprecatedOperations = 22 ; - pub const nsIDocument_DeprecatedOperations_ePrefixedImageSmoothingEnabled : root :: nsIDocument_DeprecatedOperations = 23 ; - pub const nsIDocument_DeprecatedOperations_ePrefixedFullscreenAPI : root :: nsIDocument_DeprecatedOperations = 24 ; - pub const nsIDocument_DeprecatedOperations_eLenientSetter : root :: nsIDocument_DeprecatedOperations = 25 ; - pub const nsIDocument_DeprecatedOperations_eFileLastModifiedDate : root :: nsIDocument_DeprecatedOperations = 26 ; - pub const nsIDocument_DeprecatedOperations_eImageBitmapRenderingContext_TransferImageBitmap : root :: nsIDocument_DeprecatedOperations = 27 ; - pub const nsIDocument_DeprecatedOperations_eURLCreateObjectURL_MediaStream : root :: nsIDocument_DeprecatedOperations = 28 ; - pub const nsIDocument_DeprecatedOperations_eXMLBaseAttribute : root :: nsIDocument_DeprecatedOperations = 29 ; - pub const nsIDocument_DeprecatedOperations_eWindowContentUntrusted : root :: nsIDocument_DeprecatedOperations = 30 ; - pub const nsIDocument_DeprecatedOperations_eRegisterProtocolHandlerInsecure : root :: nsIDocument_DeprecatedOperations = 31 ; - pub const nsIDocument_DeprecatedOperations_eMixedDisplayObjectSubrequest : root :: nsIDocument_DeprecatedOperations = 32 ; - pub const nsIDocument_DeprecatedOperations_eMotionEvent : root :: nsIDocument_DeprecatedOperations = 33 ; - pub const nsIDocument_DeprecatedOperations_eOrientationEvent : root :: nsIDocument_DeprecatedOperations = 34 ; - pub const nsIDocument_DeprecatedOperations_eProximityEvent : root :: nsIDocument_DeprecatedOperations = 35 ; - pub const nsIDocument_DeprecatedOperations_eAmbientLightEvent : root :: nsIDocument_DeprecatedOperations = 36 ; - pub const nsIDocument_DeprecatedOperations_eIDBOpenDBOptions_StorageType : root :: nsIDocument_DeprecatedOperations = 37 ; - pub const nsIDocument_DeprecatedOperations_eDeprecatedOperationCount : root :: nsIDocument_DeprecatedOperations = 38 ; + 20; + pub const nsIDocument_DeprecatedOperations_eAppCacheInsecure: + root::nsIDocument_DeprecatedOperations = 21; + pub const nsIDocument_DeprecatedOperations_ePrefixedImageSmoothingEnabled: + root::nsIDocument_DeprecatedOperations = 22; + pub const nsIDocument_DeprecatedOperations_ePrefixedFullscreenAPI: + root::nsIDocument_DeprecatedOperations = 23; + pub const nsIDocument_DeprecatedOperations_eLenientSetter: + root::nsIDocument_DeprecatedOperations = 24; + pub const nsIDocument_DeprecatedOperations_eFileLastModifiedDate: + root::nsIDocument_DeprecatedOperations = 25; + pub const nsIDocument_DeprecatedOperations_eImageBitmapRenderingContext_TransferImageBitmap: + root::nsIDocument_DeprecatedOperations = 26; + pub const nsIDocument_DeprecatedOperations_eURLCreateObjectURL_MediaStream: + root::nsIDocument_DeprecatedOperations = 27; + pub const nsIDocument_DeprecatedOperations_eXMLBaseAttribute: + root::nsIDocument_DeprecatedOperations = 28; + pub const nsIDocument_DeprecatedOperations_eWindowContentUntrusted: + root::nsIDocument_DeprecatedOperations = 29; + pub const nsIDocument_DeprecatedOperations_eRegisterProtocolHandlerInsecure: + root::nsIDocument_DeprecatedOperations = 30; + pub const nsIDocument_DeprecatedOperations_eMixedDisplayObjectSubrequest: + root::nsIDocument_DeprecatedOperations = 31; + pub const nsIDocument_DeprecatedOperations_eMotionEvent: + root::nsIDocument_DeprecatedOperations = 32; + pub const nsIDocument_DeprecatedOperations_eOrientationEvent: + root::nsIDocument_DeprecatedOperations = 33; + pub const nsIDocument_DeprecatedOperations_eProximityEvent: + root::nsIDocument_DeprecatedOperations = 34; + pub const nsIDocument_DeprecatedOperations_eAmbientLightEvent: + root::nsIDocument_DeprecatedOperations = 35; + pub const nsIDocument_DeprecatedOperations_eIDBOpenDBOptions_StorageType: + root::nsIDocument_DeprecatedOperations = 36; + pub const nsIDocument_DeprecatedOperations_eGetPropertyCSSValue: + root::nsIDocument_DeprecatedOperations = 37; + pub const nsIDocument_DeprecatedOperations_eDeprecatedOperationCount: + root::nsIDocument_DeprecatedOperations = 38; pub type nsIDocument_DeprecatedOperations = u32; - pub const nsIDocument_DocumentWarnings_eIgnoringWillChangeOverBudget : root :: nsIDocument_DocumentWarnings = 0 ; - pub const nsIDocument_DocumentWarnings_ePreventDefaultFromPassiveListener : root :: nsIDocument_DocumentWarnings = 1 ; + pub const nsIDocument_DocumentWarnings_eIgnoringWillChangeOverBudget: + root::nsIDocument_DocumentWarnings = 0; + pub const nsIDocument_DocumentWarnings_ePreventDefaultFromPassiveListener: + root::nsIDocument_DocumentWarnings = 1; pub const nsIDocument_DocumentWarnings_eSVGRefLoop: root::nsIDocument_DocumentWarnings = 2; - pub const nsIDocument_DocumentWarnings_eSVGRefChainLengthExceeded : root :: nsIDocument_DocumentWarnings = 3 ; - pub const nsIDocument_DocumentWarnings_eDocumentWarningCount : root :: nsIDocument_DocumentWarnings = 4 ; + pub const nsIDocument_DocumentWarnings_eSVGRefChainLengthExceeded: + root::nsIDocument_DocumentWarnings = 3; + pub const nsIDocument_DocumentWarnings_eDocumentWarningCount: + root::nsIDocument_DocumentWarnings = 4; pub type nsIDocument_DocumentWarnings = u32; pub const nsIDocument_ElementCallbackType_eConnected: root::nsIDocument_ElementCallbackType = 0; pub const nsIDocument_ElementCallbackType_eDisconnected: root::nsIDocument_ElementCallbackType = 1; pub const nsIDocument_ElementCallbackType_eAdopted: root::nsIDocument_ElementCallbackType = 2; - pub const nsIDocument_ElementCallbackType_eAttributeChanged : root :: nsIDocument_ElementCallbackType = 3 ; + pub const nsIDocument_ElementCallbackType_eAttributeChanged: + root::nsIDocument_ElementCallbackType = 3; pub type nsIDocument_ElementCallbackType = u32; + pub const nsIDocument_UseCounterReportKind_eDefault: root::nsIDocument_UseCounterReportKind = 0; + pub const nsIDocument_UseCounterReportKind_eIncludeExternalResources: + root::nsIDocument_UseCounterReportKind = 1; + pub type nsIDocument_UseCounterReportKind = i32; pub type nsIDocument_LinksToUpdateList = [u64; 3usize]; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -25276,7 +24837,7 @@ pub mod root { fn bindgen_test_layout_nsIDocument() { assert_eq!( ::std::mem::size_of::<nsIDocument>(), - 1688usize, + 1712usize, concat!("Size of: ", stringify!(nsIDocument)) ); assert_eq!( @@ -26156,6 +25717,28 @@ pub mod root { } } #[inline] + pub fn mParserAborted(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(79usize, 1u8) as u8) } + } + #[inline] + pub fn set_mParserAborted(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(79usize, 1u8, val as u64) + } + } + #[inline] + pub fn mReportedUseCounters(&self) -> bool { + unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 1u8) as u8) } + } + #[inline] + pub fn set_mReportedUseCounters(&mut self, val: bool) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(80usize, 1u8, val as u64) + } + } + #[inline] pub fn new_bitfield_1( mBidiEnabled: bool, mMathMLEnabled: bool, @@ -26236,9 +25819,11 @@ pub mod root { mValidMaxScale: bool, mScaleStrEmpty: bool, mWidthStrEmpty: bool, - ) -> root::__BindgenBitfieldUnit<[u8; 10usize], u8> { + mParserAborted: bool, + mReportedUseCounters: bool, + ) -> root::__BindgenBitfieldUnit<[u8; 11usize], u8> { let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit< - [u8; 10usize], + [u8; 11usize], u8, > = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { @@ -26596,6 +26181,15 @@ pub mod root { let mWidthStrEmpty: u8 = unsafe { ::std::mem::transmute(mWidthStrEmpty) }; mWidthStrEmpty as u64 }); + __bindgen_bitfield_unit.set(79usize, 1u8, { + let mParserAborted: u8 = unsafe { ::std::mem::transmute(mParserAborted) }; + mParserAborted as u64 + }); + __bindgen_bitfield_unit.set(80usize, 1u8, { + let mReportedUseCounters: u8 = + unsafe { ::std::mem::transmute(mReportedUseCounters) }; + mReportedUseCounters as u64 + }); __bindgen_bitfield_unit } } @@ -26647,62 +26241,6 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy)] - pub struct nsIXPConnectJSObjectHolder { - pub _base: root::nsISupports, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsIXPConnectJSObjectHolder_COMTypeInfo { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_nsIXPConnectJSObjectHolder() { - assert_eq!( - ::std::mem::size_of::<nsIXPConnectJSObjectHolder>(), - 8usize, - concat!("Size of: ", stringify!(nsIXPConnectJSObjectHolder)) - ); - assert_eq!( - ::std::mem::align_of::<nsIXPConnectJSObjectHolder>(), - 8usize, - concat!("Alignment of ", stringify!(nsIXPConnectJSObjectHolder)) - ); - } - impl Clone for nsIXPConnectJSObjectHolder { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsIXPConnectWrappedJS { - pub _base: root::nsIXPConnectJSObjectHolder, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsIXPConnectWrappedJS_COMTypeInfo { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_nsIXPConnectWrappedJS() { - assert_eq!( - ::std::mem::size_of::<nsIXPConnectWrappedJS>(), - 8usize, - concat!("Size of: ", stringify!(nsIXPConnectWrappedJS)) - ); - assert_eq!( - ::std::mem::align_of::<nsIXPConnectWrappedJS>(), - 8usize, - concat!("Alignment of ", stringify!(nsIXPConnectWrappedJS)) - ); - } - impl Clone for nsIXPConnectWrappedJS { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] pub struct nsIXPConnect { pub _base: root::nsISupports, } @@ -26735,6 +26273,16 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy)] + pub struct nsXBLPrototypeBinding { + _unused: [u8; 0], + } + impl Clone for nsXBLPrototypeBinding { + fn clone(&self) -> Self { + *self + } + } + #[repr(C)] + #[derive(Debug, Copy)] pub struct nsBidi { _unused: [u8; 0], } @@ -26831,7 +26379,6 @@ pub mod root { pub mTheme: root::nsCOMPtr, pub mLangService: *mut root::nsLanguageAtomService, pub mPrintSettings: root::nsCOMPtr, - pub mPrefChangedTimer: root::nsCOMPtr, pub mBidiEngine: root::mozilla::UniquePtr<root::nsBidi>, pub mTransactions: [u64; 10usize], pub mTextPerf: root::nsAutoPtr<root::gfxTextPerfMetrics>, @@ -26906,17 +26453,23 @@ pub mod root { *self } } - pub const nsPresContext_nsPresContextType_eContext_Galley : root :: nsPresContext_nsPresContextType = 0 ; - pub const nsPresContext_nsPresContextType_eContext_PrintPreview : root :: nsPresContext_nsPresContextType = 1 ; - pub const nsPresContext_nsPresContextType_eContext_Print : root :: nsPresContext_nsPresContextType = 2 ; - pub const nsPresContext_nsPresContextType_eContext_PageLayout : root :: nsPresContext_nsPresContextType = 3 ; + pub const nsPresContext_nsPresContextType_eContext_Galley: + root::nsPresContext_nsPresContextType = 0; + pub const nsPresContext_nsPresContextType_eContext_PrintPreview: + root::nsPresContext_nsPresContextType = 1; + pub const nsPresContext_nsPresContextType_eContext_Print: + root::nsPresContext_nsPresContextType = 2; + pub const nsPresContext_nsPresContextType_eContext_PageLayout: + root::nsPresContext_nsPresContextType = 3; pub type nsPresContext_nsPresContextType = u32; pub const nsPresContext_InteractionType_eClickInteraction: root::nsPresContext_InteractionType = 0; pub const nsPresContext_InteractionType_eKeyInteraction: root::nsPresContext_InteractionType = 1; - pub const nsPresContext_InteractionType_eMouseMoveInteraction : root :: nsPresContext_InteractionType = 2 ; - pub const nsPresContext_InteractionType_eScrollInteraction : root :: nsPresContext_InteractionType = 3 ; + pub const nsPresContext_InteractionType_eMouseMoveInteraction: + root::nsPresContext_InteractionType = 2; + pub const nsPresContext_InteractionType_eScrollInteraction: + root::nsPresContext_InteractionType = 3; pub type nsPresContext_InteractionType = u32; /// A class that can be used to temporarily disable reflow interruption. #[repr(C)] @@ -27040,7 +26593,7 @@ pub mod root { fn bindgen_test_layout_nsPresContext() { assert_eq!( ::std::mem::size_of::<nsPresContext>(), - 1400usize, + 1392usize, concat!("Size of: ", stringify!(nsPresContext)) ); assert_eq!( @@ -27411,20 +26964,8 @@ pub mod root { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsPresContext>())).mPrefChangedTimer as *const _ as usize - }, - 248usize, - concat!( - "Offset of field: ", - stringify!(nsPresContext), - "::", - stringify!(mPrefChangedTimer) - ) - ); - assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mBidiEngine as *const _ as usize }, - 256usize, + 248usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27434,7 +26975,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTransactions as *const _ as usize }, - 264usize, + 256usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27444,7 +26985,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTextPerf as *const _ as usize }, - 344usize, + 336usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27454,7 +26995,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mMissingFonts as *const _ as usize }, - 352usize, + 344usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27464,7 +27005,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mVisibleArea as *const _ as usize }, - 360usize, + 352usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27477,7 +27018,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mLastResizeEventVisibleArea as *const _ as usize }, - 376usize, + 368usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27487,7 +27028,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPageSize as *const _ as usize }, - 392usize, + 384usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27497,7 +27038,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPageScale as *const _ as usize }, - 400usize, + 392usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27507,7 +27048,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPPScale as *const _ as usize }, - 404usize, + 396usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27517,7 +27058,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mDefaultColor as *const _ as usize }, - 408usize, + 400usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27529,7 +27070,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mBackgroundColor as *const _ as usize }, - 412usize, + 404usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27539,7 +27080,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLinkColor as *const _ as usize }, - 416usize, + 408usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27551,7 +27092,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mActiveLinkColor as *const _ as usize }, - 420usize, + 412usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27563,7 +27104,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mVisitedLinkColor as *const _ as usize }, - 424usize, + 416usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27575,7 +27116,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFocusBackgroundColor as *const _ as usize }, - 428usize, + 420usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27587,7 +27128,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFocusTextColor as *const _ as usize }, - 432usize, + 424usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27599,7 +27140,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mBodyTextColor as *const _ as usize }, - 436usize, + 428usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27612,7 +27153,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mViewportScrollbarOverrideElement as *const _ as usize }, - 440usize, + 432usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27625,7 +27166,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mViewportStyleScrollbar as *const _ as usize }, - 448usize, + 440usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27637,7 +27178,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFocusRingWidth as *const _ as usize }, - 512usize, + 504usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27650,7 +27191,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mExistThrottledUpdates as *const _ as usize }, - 513usize, + 505usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27662,7 +27203,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mImageAnimationMode as *const _ as usize }, - 514usize, + 506usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27675,7 +27216,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mImageAnimationModePref as *const _ as usize }, - 516usize, + 508usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27687,7 +27228,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLangGroupFontPrefs as *const _ as usize }, - 520usize, + 512usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27699,7 +27240,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFontGroupCacheDirty as *const _ as usize }, - 1216usize, + 1208usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27711,7 +27252,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLanguagesUsed as *const _ as usize }, - 1224usize, + 1216usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27723,7 +27264,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mBorderWidthTable as *const _ as usize }, - 1256usize, + 1248usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27736,7 +27277,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mInterruptChecksToSkip as *const _ as usize }, - 1268usize, + 1260usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27748,7 +27289,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mElementsRestyled as *const _ as usize }, - 1272usize, + 1264usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27760,7 +27301,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFramesConstructed as *const _ as usize }, - 1280usize, + 1272usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27772,7 +27313,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFramesReflowed as *const _ as usize }, - 1288usize, + 1280usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27784,7 +27325,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mReflowStartTime as *const _ as usize }, - 1296usize, + 1288usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27797,7 +27338,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mFirstNonBlankPaintTime as *const _ as usize }, - 1304usize, + 1296usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27809,7 +27350,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFirstClickTime as *const _ as usize }, - 1312usize, + 1304usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27819,7 +27360,7 @@ pub mod root { ); assert_eq!( unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFirstKeyTime as *const _ as usize }, - 1320usize, + 1312usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27831,7 +27372,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFirstMouseMoveTime as *const _ as usize }, - 1328usize, + 1320usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27843,7 +27384,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFirstScrollTime as *const _ as usize }, - 1336usize, + 1328usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27856,7 +27397,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mInteractionTimeEnabled as *const _ as usize }, - 1344usize, + 1336usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27869,7 +27410,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mLastStyleUpdateForAllAnimations as *const _ as usize }, - 1352usize, + 1344usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27881,7 +27422,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollLastY as *const _ as usize }, - 1360usize, + 1352usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27893,7 +27434,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollMaxY as *const _ as usize }, - 1364usize, + 1356usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27906,7 +27447,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollTotalY as *const _ as usize }, - 1368usize, + 1360usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -27919,7 +27460,7 @@ pub mod root { &(*(::std::ptr::null::<nsPresContext>())).mPendingMediaFeatureValuesChange as *const _ as usize }, - 1380usize, + 1372usize, concat!( "Offset of field: ", stringify!(nsPresContext), @@ -28194,193 +27735,204 @@ pub mod root { } } #[inline] - pub fn mIsEmulatingMedia(&self) -> ::std::os::raw::c_uint { + pub fn mPostedPrefChangedRunnable(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u32) } } #[inline] - pub fn set_mIsEmulatingMedia(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mPostedPrefChangedRunnable(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(25usize, 1u8, val as u64) } } #[inline] - pub fn mIsGlyph(&self) -> ::std::os::raw::c_uint { + pub fn mIsEmulatingMedia(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u32) } } #[inline] - pub fn set_mIsGlyph(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mIsEmulatingMedia(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(26usize, 1u8, val as u64) } } #[inline] - pub fn mUsesRootEMUnits(&self) -> ::std::os::raw::c_uint { + pub fn mIsGlyph(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u32) } } #[inline] - pub fn set_mUsesRootEMUnits(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mIsGlyph(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(27usize, 1u8, val as u64) } } #[inline] - pub fn mUsesExChUnits(&self) -> ::std::os::raw::c_uint { + pub fn mUsesRootEMUnits(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u32) } } #[inline] - pub fn set_mUsesExChUnits(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mUsesRootEMUnits(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(28usize, 1u8, val as u64) } } #[inline] - pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint { + pub fn mUsesExChUnits(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u32) } } #[inline] - pub fn set_mCounterStylesDirty(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mUsesExChUnits(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(29usize, 1u8, val as u64) } } #[inline] - pub fn mFontFeatureValuesDirty(&self) -> ::std::os::raw::c_uint { + pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) } } #[inline] - pub fn set_mFontFeatureValuesDirty(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mCounterStylesDirty(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(30usize, 1u8, val as u64) } } #[inline] - pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint { + pub fn mFontFeatureValuesDirty(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } } #[inline] - pub fn set_mSuppressResizeReflow(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mFontFeatureValuesDirty(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(31usize, 1u8, val as u64) } } #[inline] - pub fn mIsVisual(&self) -> ::std::os::raw::c_uint { + pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) } } #[inline] - pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mSuppressResizeReflow(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(32usize, 1u8, val as u64) } } #[inline] - pub fn mIsChrome(&self) -> ::std::os::raw::c_uint { + pub fn mIsVisual(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) } } #[inline] - pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(33usize, 1u8, val as u64) } } #[inline] - pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint { + pub fn mIsChrome(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u32) } } #[inline] - pub fn set_mIsChromeOriginImage(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(34usize, 1u8, val as u64) } } #[inline] - pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint { + pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u32) } } #[inline] - pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mIsChromeOriginImage(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(35usize, 1u8, val as u64) } } #[inline] - pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint { + pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u32) } } #[inline] - pub fn set_mPaintFlashingInitialized(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(36usize, 1u8, val as u64) } } #[inline] - pub fn mHasWarnedAboutPositionedTableParts(&self) -> ::std::os::raw::c_uint { + pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u32) } } #[inline] - pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mPaintFlashingInitialized(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(37usize, 1u8, val as u64) } } #[inline] - pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) -> ::std::os::raw::c_uint { + pub fn mHasWarnedAboutPositionedTableParts(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u32) } } #[inline] + pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(38usize, 1u8, val as u64) + } + } + #[inline] + pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u32) } + } + #[inline] pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius( &mut self, val: ::std::os::raw::c_uint, ) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(38usize, 1u8, val as u64) + self._bitfield_1.set(39usize, 1u8, val as u64) } } #[inline] pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) } } #[inline] pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(39usize, 1u8, val as u64) + self._bitfield_1.set(40usize, 1u8, val as u64) } } #[inline] pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u32) } } #[inline] pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(40usize, 1u8, val as u64) + self._bitfield_1.set(41usize, 1u8, val as u64) } } #[inline] pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u32) } } #[inline] pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(41usize, 1u8, val as u64) + self._bitfield_1.set(42usize, 1u8, val as u64) } } #[inline] @@ -28409,6 +27961,7 @@ pub mod root { mPendingThemeChanged: ::std::os::raw::c_uint, mPendingUIResolutionChanged: ::std::os::raw::c_uint, mPrefChangePendingNeedsReflow: ::std::os::raw::c_uint, + mPostedPrefChangedRunnable: ::std::os::raw::c_uint, mIsEmulatingMedia: ::std::os::raw::c_uint, mIsGlyph: ::std::os::raw::c_uint, mUsesRootEMUnits: ::std::os::raw::c_uint, @@ -28541,77 +28094,82 @@ pub mod root { mPrefChangePendingNeedsReflow as u64 }); __bindgen_bitfield_unit.set(25usize, 1u8, { + let mPostedPrefChangedRunnable: u32 = + unsafe { ::std::mem::transmute(mPostedPrefChangedRunnable) }; + mPostedPrefChangedRunnable as u64 + }); + __bindgen_bitfield_unit.set(26usize, 1u8, { let mIsEmulatingMedia: u32 = unsafe { ::std::mem::transmute(mIsEmulatingMedia) }; mIsEmulatingMedia as u64 }); - __bindgen_bitfield_unit.set(26usize, 1u8, { + __bindgen_bitfield_unit.set(27usize, 1u8, { let mIsGlyph: u32 = unsafe { ::std::mem::transmute(mIsGlyph) }; mIsGlyph as u64 }); - __bindgen_bitfield_unit.set(27usize, 1u8, { + __bindgen_bitfield_unit.set(28usize, 1u8, { let mUsesRootEMUnits: u32 = unsafe { ::std::mem::transmute(mUsesRootEMUnits) }; mUsesRootEMUnits as u64 }); - __bindgen_bitfield_unit.set(28usize, 1u8, { + __bindgen_bitfield_unit.set(29usize, 1u8, { let mUsesExChUnits: u32 = unsafe { ::std::mem::transmute(mUsesExChUnits) }; mUsesExChUnits as u64 }); - __bindgen_bitfield_unit.set(29usize, 1u8, { + __bindgen_bitfield_unit.set(30usize, 1u8, { let mCounterStylesDirty: u32 = unsafe { ::std::mem::transmute(mCounterStylesDirty) }; mCounterStylesDirty as u64 }); - __bindgen_bitfield_unit.set(30usize, 1u8, { + __bindgen_bitfield_unit.set(31usize, 1u8, { let mFontFeatureValuesDirty: u32 = unsafe { ::std::mem::transmute(mFontFeatureValuesDirty) }; mFontFeatureValuesDirty as u64 }); - __bindgen_bitfield_unit.set(31usize, 1u8, { + __bindgen_bitfield_unit.set(32usize, 1u8, { let mSuppressResizeReflow: u32 = unsafe { ::std::mem::transmute(mSuppressResizeReflow) }; mSuppressResizeReflow as u64 }); - __bindgen_bitfield_unit.set(32usize, 1u8, { + __bindgen_bitfield_unit.set(33usize, 1u8, { let mIsVisual: u32 = unsafe { ::std::mem::transmute(mIsVisual) }; mIsVisual as u64 }); - __bindgen_bitfield_unit.set(33usize, 1u8, { + __bindgen_bitfield_unit.set(34usize, 1u8, { let mIsChrome: u32 = unsafe { ::std::mem::transmute(mIsChrome) }; mIsChrome as u64 }); - __bindgen_bitfield_unit.set(34usize, 1u8, { + __bindgen_bitfield_unit.set(35usize, 1u8, { let mIsChromeOriginImage: u32 = unsafe { ::std::mem::transmute(mIsChromeOriginImage) }; mIsChromeOriginImage as u64 }); - __bindgen_bitfield_unit.set(35usize, 1u8, { + __bindgen_bitfield_unit.set(36usize, 1u8, { let mPaintFlashing: u32 = unsafe { ::std::mem::transmute(mPaintFlashing) }; mPaintFlashing as u64 }); - __bindgen_bitfield_unit.set(36usize, 1u8, { + __bindgen_bitfield_unit.set(37usize, 1u8, { let mPaintFlashingInitialized: u32 = unsafe { ::std::mem::transmute(mPaintFlashingInitialized) }; mPaintFlashingInitialized as u64 }); - __bindgen_bitfield_unit.set(37usize, 1u8, { + __bindgen_bitfield_unit.set(38usize, 1u8, { let mHasWarnedAboutPositionedTableParts: u32 = unsafe { ::std::mem::transmute(mHasWarnedAboutPositionedTableParts) }; mHasWarnedAboutPositionedTableParts as u64 }); - __bindgen_bitfield_unit.set(38usize, 1u8, { + __bindgen_bitfield_unit.set(39usize, 1u8, { let mHasWarnedAboutTooLargeDashedOrDottedRadius: u32 = unsafe { ::std::mem::transmute(mHasWarnedAboutTooLargeDashedOrDottedRadius) }; mHasWarnedAboutTooLargeDashedOrDottedRadius as u64 }); - __bindgen_bitfield_unit.set(39usize, 1u8, { + __bindgen_bitfield_unit.set(40usize, 1u8, { let mQuirkSheetAdded: u32 = unsafe { ::std::mem::transmute(mQuirkSheetAdded) }; mQuirkSheetAdded as u64 }); - __bindgen_bitfield_unit.set(40usize, 1u8, { + __bindgen_bitfield_unit.set(41usize, 1u8, { let mNeedsPrefUpdate: u32 = unsafe { ::std::mem::transmute(mNeedsPrefUpdate) }; mNeedsPrefUpdate as u64 }); - __bindgen_bitfield_unit.set(41usize, 1u8, { + __bindgen_bitfield_unit.set(42usize, 1u8, { let mHadNonBlankPaint: u32 = unsafe { ::std::mem::transmute(mHadNonBlankPaint) }; mHadNonBlankPaint as u64 }); @@ -38218,32 +37776,23 @@ pub mod root { ); } #[repr(C)] + #[derive(Debug)] pub struct nsStyleVariables { - pub mVariables: root::mozilla::CSSVariableValues, + pub _address: u8, } pub const nsStyleVariables_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleVariables() { assert_eq!( ::std::mem::size_of::<nsStyleVariables>(), - 40usize, + 1usize, concat!("Size of: ", stringify!(nsStyleVariables)) ); assert_eq!( ::std::mem::align_of::<nsStyleVariables>(), - 8usize, + 1usize, concat!("Alignment of ", stringify!(nsStyleVariables)) ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsStyleVariables>())).mVariables as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(nsStyleVariables), - "::", - stringify!(mVariables) - ) - ); } #[repr(C)] #[derive(Debug)] @@ -38804,60 +38353,6 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy)] - pub struct nsXBLDocumentInfo { - _unused: [u8; 0], - } - impl Clone for nsXBLDocumentInfo { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsIStyleRuleProcessor { - pub _base: root::nsISupports, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsIStyleRuleProcessor_COMTypeInfo { - pub _address: u8, - } - pub type nsIStyleRuleProcessor_EnumFunc = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut root::nsIStyleRuleProcessor, - arg2: *mut ::std::os::raw::c_void, - ) -> bool, - >; - #[test] - fn bindgen_test_layout_nsIStyleRuleProcessor() { - assert_eq!( - ::std::mem::size_of::<nsIStyleRuleProcessor>(), - 8usize, - concat!("Size of: ", stringify!(nsIStyleRuleProcessor)) - ); - assert_eq!( - ::std::mem::align_of::<nsIStyleRuleProcessor>(), - 8usize, - concat!("Alignment of ", stringify!(nsIStyleRuleProcessor)) - ); - } - impl Clone for nsIStyleRuleProcessor { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsXBLPrototypeBinding { - _unused: [u8; 0], - } - impl Clone for nsXBLPrototypeBinding { - fn clone(&self) -> Self { - *self - } - } - #[repr(C)] - #[derive(Debug, Copy)] pub struct nsAnonymousContentList { _unused: [u8; 0], } @@ -39399,34 +38894,6 @@ pub mod root { concat!("Alignment of ", stringify!(nsISMILAttr)) ); } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsIDOMClientRect { - pub _base: root::nsISupports, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsIDOMClientRect_COMTypeInfo { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_nsIDOMClientRect() { - assert_eq!( - ::std::mem::size_of::<nsIDOMClientRect>(), - 8usize, - concat!("Size of: ", stringify!(nsIDOMClientRect)) - ); - assert_eq!( - ::std::mem::align_of::<nsIDOMClientRect>(), - 8usize, - concat!("Alignment of ", stringify!(nsIDOMClientRect)) - ); - } - impl Clone for nsIDOMClientRect { - fn clone(&self) -> Self { - *self - } - } /// nsITheme is a service that provides platform-specific native /// rendering for widgets. In other words, it provides the necessary /// operations to draw a rendering object (an nsIFrame) as a native @@ -39744,14 +39211,19 @@ pub mod root { pub _base: root::nsGenericHTMLElementBase, pub _base_1: root::nsIDOMElement, } - pub const nsGenericHTMLElement_PresContextFor_eForComposedDoc : root :: nsGenericHTMLElement_PresContextFor = 0 ; - pub const nsGenericHTMLElement_PresContextFor_eForUncomposedDoc : root :: nsGenericHTMLElement_PresContextFor = 1 ; + pub const nsGenericHTMLElement_PresContextFor_eForComposedDoc: + root::nsGenericHTMLElement_PresContextFor = 0; + pub const nsGenericHTMLElement_PresContextFor_eForUncomposedDoc: + root::nsGenericHTMLElement_PresContextFor = 1; /// Get the presentation context for this content node. /// @return the presentation context pub type nsGenericHTMLElement_PresContextFor = u32; - pub const nsGenericHTMLElement_ContentEditableTristate_eInherit : root :: nsGenericHTMLElement_ContentEditableTristate = -1 ; - pub const nsGenericHTMLElement_ContentEditableTristate_eFalse : root :: nsGenericHTMLElement_ContentEditableTristate = 0 ; - pub const nsGenericHTMLElement_ContentEditableTristate_eTrue : root :: nsGenericHTMLElement_ContentEditableTristate = 1 ; + pub const nsGenericHTMLElement_ContentEditableTristate_eInherit: + root::nsGenericHTMLElement_ContentEditableTristate = -1; + pub const nsGenericHTMLElement_ContentEditableTristate_eFalse: + root::nsGenericHTMLElement_ContentEditableTristate = 0; + pub const nsGenericHTMLElement_ContentEditableTristate_eTrue: + root::nsGenericHTMLElement_ContentEditableTristate = 1; pub type nsGenericHTMLElement_ContentEditableTristate = i32; extern "C" { #[link_name = "\u{1}_ZN20nsGenericHTMLElement19sCommonAttributeMapE"] @@ -39929,7 +39401,8 @@ pub mod root { 0; pub const nsDOMCSSDeclaration_Operation_eOperation_Modify: root::nsDOMCSSDeclaration_Operation = 1; - pub const nsDOMCSSDeclaration_Operation_eOperation_RemoveProperty : root :: nsDOMCSSDeclaration_Operation = 2 ; + pub const nsDOMCSSDeclaration_Operation_eOperation_RemoveProperty: + root::nsDOMCSSDeclaration_Operation = 2; pub type nsDOMCSSDeclaration_Operation = u32; #[repr(C)] #[derive(Debug)] @@ -40109,6 +39582,16 @@ pub mod root { *self } } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsCSSScanner { + _unused: [u8; 0], + } + impl Clone for nsCSSScanner { + fn clone(&self) -> Self { + *self + } + } pub const GECKO_IS_NIGHTLY: bool = true; #[repr(C)] pub struct ServoBundledURI { @@ -40394,281 +39877,6 @@ pub mod root { pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozPlaceholder: u32 = 8; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder: u32 = 8; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch: u32 = 12; - /// templated hashtable class maps keys to interface pointers. - /// See nsBaseHashtable for complete declaration. - /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h - /// for a complete specification. - /// @param Interface the interface-type being wrapped - /// @see nsDataHashtable, nsClassHashtable - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsInterfaceHashtable { - pub _address: u8, - } - pub type nsInterfaceHashtable_KeyType = [u8; 0usize]; - pub type nsInterfaceHashtable_UserDataType<Interface> = *mut Interface; - pub type nsInterfaceHashtable_base_type = u8; - pub type nsBindingList = root::nsTArray<root::RefPtr<root::nsXBLBinding>>; - #[repr(C)] - pub struct nsBindingManager { - pub _base: root::nsStubMutationObserver, - pub mRefCnt: root::nsCycleCollectingAutoRefCnt, - pub mBoundContentSet: u64, - pub mWrapperTable: root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>, - pub mDocumentTable: u64, - pub mLoadingDocTable: u64, - pub mAttachedStack: root::nsBindingList, - pub mProcessingAttachedStack: bool, - pub mDestroyed: bool, - pub mAttachedStackSizeOnOutermost: u32, - pub mProcessAttachedQueueEvent: u64, - pub mDocument: *mut root::nsIDocument, - } - pub type nsBindingManager_HasThreadSafeRefCnt = root::mozilla::FalseType; - pub const nsBindingManager_DestructorHandling_eRunDtor : root :: nsBindingManager_DestructorHandling = 0 ; - pub const nsBindingManager_DestructorHandling_eDoNotRunDtor : root :: nsBindingManager_DestructorHandling = 1 ; - /// Notify the binding manager that an element - /// has been removed from its document, - /// so that it can update any bindings or - /// nsIAnonymousContentCreator-created anonymous - /// content that may depend on the document. - /// @param aContent the element that's being moved - /// @param aOldDocument the old document in which the - /// content resided. - /// @param aDestructorHandling whether or not to run the possible XBL - /// destructor. - pub type nsBindingManager_DestructorHandling = u32; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsBindingManager_cycleCollection { - pub _base: root::nsXPCOMCycleCollectionParticipant, - } - #[test] - fn bindgen_test_layout_nsBindingManager_cycleCollection() { - assert_eq!( - ::std::mem::size_of::<nsBindingManager_cycleCollection>(), - 16usize, - concat!("Size of: ", stringify!(nsBindingManager_cycleCollection)) - ); - assert_eq!( - ::std::mem::align_of::<nsBindingManager_cycleCollection>(), - 8usize, - concat!( - "Alignment of ", - stringify!(nsBindingManager_cycleCollection) - ) - ); - } - impl Clone for nsBindingManager_cycleCollection { - fn clone(&self) -> Self { - *self - } - } - pub type nsBindingManager_BoundContentBindingCallback = root::std::function; - pub type nsBindingManager_WrapperHashtable = u8; - extern "C" { - #[link_name = "\u{1}_ZN16nsBindingManager21_cycleCollectorGlobalE"] - pub static mut nsBindingManager__cycleCollectorGlobal: - root::nsBindingManager_cycleCollection; - } - #[test] - fn bindgen_test_layout_nsBindingManager() { - assert_eq!( - ::std::mem::size_of::<nsBindingManager>(), - 80usize, - concat!("Size of: ", stringify!(nsBindingManager)) - ); - assert_eq!( - ::std::mem::align_of::<nsBindingManager>(), - 8usize, - concat!("Alignment of ", stringify!(nsBindingManager)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsBindingManager>())).mRefCnt as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mRefCnt) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mBoundContentSet as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mBoundContentSet) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mWrapperTable as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mWrapperTable) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mDocumentTable as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mDocumentTable) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mLoadingDocTable as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mLoadingDocTable) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mAttachedStack as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mAttachedStack) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mProcessingAttachedStack as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mProcessingAttachedStack) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsBindingManager>())).mDestroyed as *const _ as usize }, - 57usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mDestroyed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mAttachedStackSizeOnOutermost - as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mAttachedStackSizeOnOutermost) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<nsBindingManager>())).mProcessAttachedQueueEvent as *const _ - as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mProcessAttachedQueueEvent) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsBindingManager>())).mDocument as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(nsBindingManager), - "::", - stringify!(mDocument) - ) - ); - } - /// An nsStyleContext represents the computed style data for an element. - /// The computed style data are stored in a set of structs (see - /// nsStyleStruct.h) that are cached either on the style context or in - /// the rule tree (see nsRuleNode.h for a description of this caching and - /// how the cached structs are shared). - /// - /// Since the data in |nsIStyleRule|s and |nsRuleNode|s are immutable - /// (with a few exceptions, like system color changes), the data in an - /// nsStyleContext are also immutable (with the additional exception of - /// GetUniqueStyleData). When style data change, - /// ElementRestyler::Restyle creates a new style context. - /// - /// Style contexts are reference counted. References are generally held - /// by: - /// 1. the |nsIFrame|s that are using the style context and - /// 2. any *child* style contexts (this might be the reverse of - /// expectation, but it makes sense in this case) - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleContext { - pub mPseudoTag: root::RefPtr<root::nsAtom>, - pub mBits: u64, - } - #[test] - fn bindgen_test_layout_nsStyleContext() { - assert_eq!( - ::std::mem::size_of::<nsStyleContext>(), - 16usize, - concat!("Size of: ", stringify!(nsStyleContext)) - ); - assert_eq!( - ::std::mem::align_of::<nsStyleContext>(), - 8usize, - concat!("Alignment of ", stringify!(nsStyleContext)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsStyleContext>())).mPseudoTag as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(nsStyleContext), - "::", - stringify!(mPseudoTag) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<nsStyleContext>())).mBits as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(nsStyleContext), - "::", - stringify!(mBits) - ) - ); - } #[repr(C)] #[derive(Debug)] pub struct nsCSSCounterStyleRule { @@ -41211,10 +40419,6 @@ pub mod root { pub static mut nsContentUtils_sAnimationsAPIElementAnimateEnabled: bool; } extern "C" { - #[link_name = "\u{1}_ZN14nsContentUtils34sAnimationsAPIPendingMemberEnabledE"] - pub static mut nsContentUtils_sAnimationsAPIPendingMemberEnabled: bool; - } - extern "C" { #[link_name = "\u{1}_ZN14nsContentUtils19sGetBoxQuadsEnabledE"] pub static mut nsContentUtils_sGetBoxQuadsEnabled: bool; } @@ -41388,10 +40592,14 @@ pub mod root { eEnumerated = 6, eIdent = 7, } - pub const nsMediaFeature_RequirementFlags_eNoRequirements : root :: nsMediaFeature_RequirementFlags = 0 ; - pub const nsMediaFeature_RequirementFlags_eHasWebkitPrefix : root :: nsMediaFeature_RequirementFlags = 1 ; - pub const nsMediaFeature_RequirementFlags_eWebkitDevicePixelRatioPrefEnabled : root :: nsMediaFeature_RequirementFlags = 2 ; - pub const nsMediaFeature_RequirementFlags_eUserAgentAndChromeOnly : root :: nsMediaFeature_RequirementFlags = 4 ; + pub const nsMediaFeature_RequirementFlags_eNoRequirements: + root::nsMediaFeature_RequirementFlags = 0; + pub const nsMediaFeature_RequirementFlags_eHasWebkitPrefix: + root::nsMediaFeature_RequirementFlags = 1; + pub const nsMediaFeature_RequirementFlags_eWebkitDevicePixelRatioPrefEnabled: + root::nsMediaFeature_RequirementFlags = 2; + pub const nsMediaFeature_RequirementFlags_eUserAgentAndChromeOnly: + root::nsMediaFeature_RequirementFlags = 4; pub type nsMediaFeature_RequirementFlags = u8; #[repr(C)] #[derive(Debug, Copy)] @@ -41640,44 +40848,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::nsCOMPtr>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsCOMPtr) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::nsCOMPtr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::nsCOMPtr) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsTArray_open0_CSSVariableValues_Variable_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::nsTArray<root::mozilla::CSSVariableValues_Variable>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsTArray<root::mozilla::CSSVariableValues_Variable>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::nsTArray<root::mozilla::CSSVariableValues_Variable>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::nsTArray<root::mozilla::CSSVariableValues_Variable>) - ) - ); - } - #[test] fn __bindgen_test_layout_nsTArray_open0_FontFamilyName_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsTArray<root::mozilla::FontFamilyName>>(), @@ -44023,84 +43193,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_UniquePtr_open0_nsCSSSelectorList_DefaultDelete_open1_nsCSSSelectorList_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSSelectorList>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSSelectorList>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsCSSSelectorList>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSSelectorList>) - ) - ); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_open0_nsCSSSelectorList_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - } - #[test] - fn __bindgen_test_layout_UniquePtr_open0_nsCSSSelectorList_DefaultDelete_open1_nsCSSSelectorList_close1_close0_instantiation_1( -) { - assert_eq!( - ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSSelectorList>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSSelectorList>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsCSSSelectorList>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSSelectorList>) - ) - ); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_open0_nsCSSSelectorList_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - } - #[test] fn __bindgen_test_layout_UniquePtr_open0_RawServoSelectorList_DefaultDelete_open1_RawServoSelectorList_close1_close0_instantiation_1( ) { assert_eq!( @@ -44518,26 +43610,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsAutoPtr_open1_nsPropertyTable_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<root::nsTArray<root::nsAutoPtr<root::nsPropertyTable>>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsTArray<root::nsAutoPtr<root::nsPropertyTable>>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::nsTArray<root::nsAutoPtr<root::nsPropertyTable>>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::nsTArray<root::nsAutoPtr<root::nsPropertyTable>>) - ) - ); - } - #[test] fn __bindgen_test_layout_nsCOMPtr_open0_nsIHTMLCollection_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsCOMPtr>(), @@ -44804,7 +43876,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_1() { + fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsCOMPtr>(), 8usize, @@ -45550,6 +44622,63 @@ pub mod root { ); } #[test] + fn __bindgen_test_layout_RefPtr_open0_EventListenerManager_close0_instantiation() { + assert_eq!( + ::std::mem::size_of::<root::RefPtr<root::mozilla::EventListenerManager>>(), + 8usize, + concat!( + "Size of template specialization: ", + stringify!(root::RefPtr<root::mozilla::EventListenerManager>) + ) + ); + assert_eq!( + ::std::mem::align_of::<root::RefPtr<root::mozilla::EventListenerManager>>(), + 8usize, + concat!( + "Alignment of template specialization: ", + stringify!(root::RefPtr<root::mozilla::EventListenerManager>) + ) + ); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_2() { + assert_eq!( + ::std::mem::size_of::<root::nsCOMPtr>(), + 8usize, + concat!( + "Size of template specialization: ", + stringify!(root::nsCOMPtr) + ) + ); + assert_eq!( + ::std::mem::align_of::<root::nsCOMPtr>(), + 8usize, + concat!( + "Alignment of template specialization: ", + stringify!(root::nsCOMPtr) + ) + ); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_open0_nsIRequest_close0_instantiation() { + assert_eq!( + ::std::mem::size_of::<root::nsCOMPtr>(), + 8usize, + concat!( + "Size of template specialization: ", + stringify!(root::nsCOMPtr) + ) + ); + assert_eq!( + ::std::mem::align_of::<root::nsCOMPtr>(), + 8usize, + concat!( + "Alignment of template specialization: ", + stringify!(root::nsCOMPtr) + ) + ); + } + #[test] fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation_1() { assert_eq!( @@ -46065,25 +45194,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsITimer_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<root::nsCOMPtr>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsCOMPtr) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::nsCOMPtr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::nsCOMPtr) - ) - ); - } - #[test] fn __bindgen_test_layout_UniquePtr_open0_nsBidi_DefaultDelete_open1_nsBidi_close1_close0_instantiation( ) { assert_eq!( @@ -46448,84 +45558,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_UniquePtr_open0_nsCSSValueList_DefaultDelete_open1_nsCSSValueList_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValueList>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValueList>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsCSSValueList>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValueList>) - ) - ); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_open0_nsCSSValueList_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - } - #[test] - fn __bindgen_test_layout_UniquePtr_open0_nsCSSValuePairList_DefaultDelete_open1_nsCSSValuePairList_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValuePairList>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValuePairList>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsCSSValuePairList>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValuePairList>) - ) - ); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_open0_nsCSSValuePairList_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - } - #[test] fn __bindgen_test_layout_nsTArray_open0_nsCSSValueGradientStop_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsTArray<root::nsCSSValueGradientStop>>(), @@ -48180,84 +47212,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_UniquePtr_open0_nsCSSValueList_DefaultDelete_open1_nsCSSValueList_close1_close0_instantiation_1( -) { - assert_eq!( - ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValueList>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValueList>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsCSSValueList>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValueList>) - ) - ); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_open0_nsCSSValueList_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - } - #[test] - fn __bindgen_test_layout_UniquePtr_open0_nsCSSValuePairList_DefaultDelete_open1_nsCSSValuePairList_close1_close0_instantiation_1( -) { - assert_eq!( - ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValuePairList>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValuePairList>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsCSSValuePairList>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::UniquePtr<root::nsCSSValuePairList>) - ) - ); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_open0_nsCSSValuePairList_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::mozilla::DefaultDelete>(), - 1usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::DefaultDelete) - ) - ); - } - #[test] fn __bindgen_test_layout_RefPtr_open0_RawServoAnimationValue_close0_instantiation_1() { assert_eq!( ::std::mem::size_of::<root::RefPtr<root::RawServoAnimationValue>>(), @@ -49228,7 +48182,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_2() { + fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_1() { assert_eq!( ::std::mem::size_of::<root::nsCOMPtr>(), 8usize, @@ -49361,7 +48315,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_3() { + fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_2() { assert_eq!( ::std::mem::size_of::<root::nsCOMPtr>(), 8usize, @@ -49438,7 +48392,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_4() { + fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_3() { assert_eq!( ::std::mem::size_of::<root::nsCOMPtr>(), 8usize, @@ -50166,38 +49120,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_OwningNonNull_open0_EffectCompositor_AnimationStyleRuleProcessor_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::< - root::mozilla::OwningNonNull< - root::mozilla::EffectCompositor_AnimationStyleRuleProcessor, - >, - >(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::mozilla::OwningNonNull< - root::mozilla::EffectCompositor_AnimationStyleRuleProcessor, - >) - ) - ); - assert_eq!( - ::std::mem::align_of::< - root::mozilla::OwningNonNull< - root::mozilla::EffectCompositor_AnimationStyleRuleProcessor, - >, - >(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::mozilla::OwningNonNull< - root::mozilla::EffectCompositor_AnimationStyleRuleProcessor, - >) - ) - ); - } - #[test] fn __bindgen_test_layout_UniquePtr_open0_nsStyleGridTemplate_DefaultDelete_open1_nsStyleGridTemplate_close1_close0_instantiation_2( ) { assert_eq!( @@ -50373,140 +49295,25 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsXBLBinding_close1_close0_instantiation() - { - assert_eq!( - ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsXBLBinding>>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsTArray<root::RefPtr<root::nsXBLBinding>>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsXBLBinding>>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::nsTArray<root::RefPtr<root::nsXBLBinding>>) - ) - ); - } - #[test] - fn __bindgen_test_layout_RefPtr_open0_nsXBLBinding_close0_instantiation_2() { - assert_eq!( - ::std::mem::size_of::<root::RefPtr<root::nsXBLBinding>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::RefPtr<root::nsXBLBinding>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::RefPtr<root::nsXBLBinding>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::RefPtr<root::nsXBLBinding>) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsAutoPtr_open0_nsTHashtable_open1_nsRefPtrHashKey_open2_nsIContent_close2_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<u64>(), - 8usize, - concat!("Size of template specialization: ", stringify!(u64)) - ); - assert_eq!( - ::std::mem::align_of::<u64>(), - 8usize, - concat!("Alignment of template specialization: ", stringify!(u64)) - ); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsIContent_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsIContent>>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsRefPtrHashKey<root::nsIContent>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::nsRefPtrHashKey<root::nsIContent>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::nsRefPtrHashKey<root::nsIContent>) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsAutoPtr_open0_nsBindingManager_WrapperHashtable_close0_instantiation( -) { + fn __bindgen_test_layout_RefPtr_open0_ComputedStyle_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>>(), + ::std::mem::size_of::<root::RefPtr<root::mozilla::ComputedStyle>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>) + stringify!(root::RefPtr<root::mozilla::ComputedStyle>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>>(), + ::std::mem::align_of::<root::RefPtr<root::mozilla::ComputedStyle>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>) + stringify!(root::RefPtr<root::mozilla::ComputedStyle>) ) ); } #[test] - fn __bindgen_test_layout_nsAutoPtr_open0_nsRefPtrHashtable_open1_nsURIHashKey_nsXBLDocumentInfo_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<u64>(), - 8usize, - concat!("Size of template specialization: ", stringify!(u64)) - ); - assert_eq!( - ::std::mem::align_of::<u64>(), - 8usize, - concat!("Alignment of template specialization: ", stringify!(u64)) - ); - } - #[test] - fn __bindgen_test_layout_nsAutoPtr_open0_nsInterfaceHashtable_open1_nsURIHashKey_nsIStreamListener_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<u64>(), - 8usize, - concat!("Size of template specialization: ", stringify!(u64)) - ); - assert_eq!( - ::std::mem::align_of::<u64>(), - 8usize, - concat!("Alignment of template specialization: ", stringify!(u64)) - ); - } - #[test] - fn __bindgen_test_layout_RefPtr_open0_nsRunnableMethod_open1_nsBindingManager_void_close1_close0_instantiation( -) { - assert_eq!( - ::std::mem::size_of::<u64>(), - 8usize, - concat!("Size of template specialization: ", stringify!(u64)) - ); - assert_eq!( - ::std::mem::align_of::<u64>(), - 8usize, - concat!("Alignment of template specialization: ", stringify!(u64)) - ); - } - #[test] fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_13() { assert_eq!( ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(), @@ -50526,25 +49333,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_RefPtr_open0_ServoStyleContext_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::RefPtr<root::mozilla::ServoStyleContext>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::RefPtr<root::mozilla::ServoStyleContext>) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::RefPtr<root::mozilla::ServoStyleContext>>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::RefPtr<root::mozilla::ServoStyleContext>) - ) - ); - } - #[test] fn __bindgen_test_layout_RefPtr_open0_RawServoDeclarationBlock_close0_instantiation_1() { assert_eq!( ::std::mem::size_of::<root::RefPtr<root::RawServoDeclarationBlock>>(), @@ -50659,7 +49447,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_2() { + fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_3() { assert_eq!( ::std::mem::size_of::<root::nsCOMPtr>(), 8usize, |