diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 223aec0692b..59c70abd553 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -44,8 +44,7 @@ use gecko_bindings::structs::RawGeckoXBLBinding; use gecko_bindings::structs::RefPtr; use gecko_bindings::structs::CSSPseudoClassType; use gecko_bindings::structs::CSSPseudoElementType; -use gecko_bindings::structs::TraversalRestyleBehavior; -use gecko_bindings::structs::TraversalRootBehavior; +use gecko_bindings::structs::ServoTraversalFlags; use gecko_bindings::structs::ComputedTimingFunction_BeforeFlag; use gecko_bindings::structs::CounterStylePtr; use gecko_bindings::structs::FontFamilyList; @@ -2740,13 +2739,17 @@ extern "C" { } extern "C" { pub fn Servo_TakeChangeHint(element: RawGeckoElementBorrowed, - restyle_behavior: TraversalRestyleBehavior, + flags: ServoTraversalFlags, was_restyled: *mut bool) -> nsChangeHint; } extern "C" { pub fn Servo_ResolveStyle(element: RawGeckoElementBorrowed, set: RawServoStyleSetBorrowed, - restyle_behavior: TraversalRestyleBehavior) + flags: ServoTraversalFlags) + -> ServoStyleContextStrong; +} +extern "C" { + pub fn Servo_ResolveStyleAllowStale(element: RawGeckoElementBorrowed) -> ServoStyleContextStrong; } extern "C" { @@ -2780,9 +2783,7 @@ extern "C" { pub fn Servo_TraverseSubtree(root: RawGeckoElementBorrowed, set: RawServoStyleSetBorrowed, snapshots: *const ServoElementSnapshotTable, - root_behavior: TraversalRootBehavior, - restyle_behavior: TraversalRestyleBehavior) - -> bool; + flags: ServoTraversalFlags) -> bool; } extern "C" { pub fn Servo_AssertTreeIsClean(root: RawGeckoElementBorrowed); @@ -2846,5 +2847,6 @@ extern "C" { *const ::std::os::raw::c_char, sourceLen: u32, lineNumber: u32, colNumber: u32, aURI: *mut nsIURI, - followup: *const ::std::os::raw::c_char); + followup: + *const ::std::os::raw::c_char); } diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index bcdae124f1f..54c4fb85781 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -1052,6 +1052,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 { @@ -1081,10 +1083,17 @@ pub mod root { pub type iterator_pointer<_Pointer> = _Pointer; pub type iterator_reference<_Reference> = _Reference; #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct __iterator_traits { + pub _address: u8, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct iterator_traits { pub _address: u8, } #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct reverse_iterator<_Iterator> { pub current: _Iterator, pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iterator>>, @@ -1293,7 +1302,7 @@ pub mod root { } #[repr(u16)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StringClassFlags { FIXED = 1, } + pub enum StringClassFlags { FIXED = 1, NULL_TERMINATED = 2, } /** * LinkedList supports refcounted elements using this adapter class. Clients * using LinkedList> will get a data structure that holds a strong @@ -1388,9 +1397,9 @@ pub mod root { #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum ArenaObjectID { eArenaObjectID_DummyBeforeFirstObjectID = 173, - eArenaObjectID_nsLineBox = 174, - eArenaObjectID_nsRuleNode = 175, - eArenaObjectID_GeckoStyleContext = 176, + eArenaObjectID_GeckoStyleContext = 174, + eArenaObjectID_nsLineBox = 175, + eArenaObjectID_nsRuleNode = 176, eArenaObjectID_DisplayItemData = 177, eArenaObjectID_nsInheritedStyleData = 178, eArenaObjectID_nsResetStyleData = 179, @@ -2508,6 +2517,16 @@ pub mod root { pub mod layers { #[allow(unused_imports)] use self::super::super::super::root; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct LayerManager { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct ContainerLayer { + _unused: [u8; 0], + } /** * The viewport and displayport metrics for the painted frame at the * time of a layer-tree transaction. These metrics are especially @@ -3341,148 +3360,6 @@ pub mod root { (16u64 as u8)) } } - /** - * This class is used for communicating information about the currently focused - * element of a document and the scrollable frames to use when keyboard scrolling - * it. It is created on the main thread at paint-time, but is then passed over - * IPC to the compositor/APZ code. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FocusTarget { - pub mSequenceNumber: u64, - pub mFocusHasKeyEventListeners: bool, - pub mType: root::mozilla::layers::FocusTarget_FocusTargetType, - pub mData: root::mozilla::layers::FocusTarget_FocusTargetData, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FocusTarget_ScrollTargets { - pub mHorizontal: root::mozilla::layers::FrameMetrics_ViewID, - pub mVertical: root::mozilla::layers::FrameMetrics_ViewID, - } - #[test] - fn bindgen_test_layout_FocusTarget_ScrollTargets() { - assert_eq!(::std::mem::size_of::() - , 16usize , concat ! ( - "Size of: " , stringify ! ( - FocusTarget_ScrollTargets ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - FocusTarget_ScrollTargets ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_ScrollTargets ) ) - . mHorizontal as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_ScrollTargets ) , "::" , stringify ! ( - mHorizontal ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_ScrollTargets ) ) - . mVertical as * const _ as usize } , 8usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_ScrollTargets ) , "::" , stringify ! ( - mVertical ) )); - } - impl Clone for FocusTarget_ScrollTargets { - fn clone(&self) -> Self { *self } - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum FocusTarget_FocusTargetType { - eNone = 0, - eRefLayer = 1, - eScrollLayer = 2, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FocusTarget_FocusTargetData { - pub mRefLayerId: root::__BindgenUnionField, - pub mScrollTargets: root::__BindgenUnionField, - pub bindgen_union_field: [u64; 2usize], - } - #[test] - fn bindgen_test_layout_FocusTarget_FocusTargetData() { - assert_eq!(::std::mem::size_of::() - , 16usize , concat ! ( - "Size of: " , stringify ! ( - FocusTarget_FocusTargetData ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - FocusTarget_FocusTargetData ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_FocusTargetData ) - ) . mRefLayerId as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_FocusTargetData ) , "::" , stringify ! - ( mRefLayerId ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_FocusTargetData ) - ) . mScrollTargets as * const _ as usize } , - 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_FocusTargetData ) , "::" , stringify ! - ( mScrollTargets ) )); - } - impl Clone for FocusTarget_FocusTargetData { - fn clone(&self) -> Self { *self } - } - pub const FocusTarget_sFocusTargetTypeCount: usize = 3; - extern "C" { - #[link_name = - "_ZN7mozilla6layers11FocusTarget23sHighestFocusTargetTypeE"] - pub static FocusTarget_sHighestFocusTargetType: - root::mozilla::layers::FocusTarget_FocusTargetType; - } - #[test] - fn bindgen_test_layout_FocusTarget() { - assert_eq!(::std::mem::size_of::() , 32usize , - concat ! ( - "Size of: " , stringify ! ( FocusTarget ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( FocusTarget ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . - mSequenceNumber as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( mSequenceNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . - mFocusHasKeyEventListeners as * const _ as usize } - , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( - mFocusHasKeyEventListeners ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . mType as * - const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( mType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . mData as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( mData ) )); - } - impl Clone for FocusTarget { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct LayerManager { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct ContainerLayer { - _unused: [u8; 0], - } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct Layer { @@ -4578,6 +4455,11 @@ pub mod root { pub mStorage: root::mozilla::AlignedStorage2, } #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct TabGroup { + _unused: [u8; 0], + } + #[repr(C)] pub struct DispatcherTrait__bindgen_vtable(::std::os::raw::c_void); #[repr(C)] #[derive(Debug, Copy)] @@ -5981,7 +5863,7 @@ pub mod root { #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() - , 96usize , concat ! ( + , 104usize , concat ! ( "Size of: " , stringify ! ( FragmentOrElement_nsDOMSlots ) )); assert_eq! (::std::mem::align_of::() @@ -5991,7 +5873,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mStyle as * const _ as usize } , 48usize , + . mStyle as * const _ as usize } , 56usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5999,7 +5881,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mDataset as * const _ as usize } , 56usize , + . mDataset as * const _ as usize } , 64usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -6007,7 +5889,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mAttributeMap as * const _ as usize } , 64usize + . mAttributeMap as * const _ as usize } , 72usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -6015,7 +5897,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mChildrenList as * const _ as usize } , 72usize + . mChildrenList as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -6023,7 +5905,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mClassList as * const _ as usize } , 80usize , + . mClassList as * const _ as usize } , 88usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -6031,7 +5913,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mExtendedSlots as * const _ as usize } , 88usize + . mExtendedSlots as * const _ as usize } , 96usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -7297,221 +7179,6 @@ pub mod root { impl Clone for ChangesToFlush { fn clone(&self) -> Self { *self } } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct CSSPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_CSSPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( - "Size of: " , stringify ! ( CSSPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , concat ! - ( "Alignment of " , stringify ! ( CSSPixel ) )); - } - impl Clone for CSSPixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct LayoutDevicePixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_LayoutDevicePixel() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of: " , stringify ! ( LayoutDevicePixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( LayoutDevicePixel ) - )); - } - impl Clone for LayoutDevicePixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct LayerPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_LayerPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , concat ! - ( "Size of: " , stringify ! ( LayerPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , concat - ! ( "Alignment of " , stringify ! ( LayerPixel ) )); - } - impl Clone for LayerPixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct ScreenPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_ScreenPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , concat - ! ( "Size of: " , stringify ! ( ScreenPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( ScreenPixel ) )); - } - impl Clone for ScreenPixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct ParentLayerPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_ParentLayerPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of: " , stringify ! ( ParentLayerPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( ParentLayerPixel ) )); - } - impl Clone for ParentLayerPixel { - fn clone(&self) -> Self { *self } - } - pub type CSSPoint = [u32; 2usize]; - pub type CSSIntPoint = [u32; 2usize]; - pub type CSSSize = [u32; 2usize]; - pub type CSSRect = [u32; 4usize]; - pub type LayoutDeviceIntPoint = [u32; 2usize]; - pub type LayoutDeviceIntSize = [u32; 2usize]; - pub type LayoutDeviceIntRect = [u32; 4usize]; - pub type ScreenIntSize = u8; - pub type ScreenMargin = [u32; 4usize]; - pub type ParentLayerRect = [u32; 4usize]; - pub type ParentLayerIntRect = [u32; 4usize]; - pub type CSSToLayoutDeviceScale = u32; - pub type CSSToParentLayerScale2D = [u32; 2usize]; - pub type LayoutDeviceToLayerScale2D = [u32; 2usize]; - pub type ScreenToLayerScale2D = [u32; 2usize]; - pub type TimeStampValue = u64; - /** - * Instances of this class represent moments in time, or a special - * "null" moment. We do not use the non-monotonic system clock or - * local time, since they can be reset, causing apparent backward - * travel in time, which can confuse algorithms. Instead we measure - * elapsed time according to the system. This time can never go - * backwards (i.e. it never wraps around, at least not in less than - * five million years of system elapsed time). It might not advance - * while the system is sleeping. If TimeStamp::SetNow() is not called - * at all for hours or days, we might not notice the passage of some - * of that time. - * - * We deliberately do not expose a way to convert TimeStamps to some - * particular unit. All you can do is compute a difference between two - * TimeStamps to get a TimeDuration. You can also add a TimeDuration - * to a TimeStamp to get a new TimeStamp. You can't do something - * meaningless like add two TimeStamps. - * - * Internally this is implemented as either a wrapper around - * - high-resolution, monotonic, system clocks if they exist on this - * platform - * - PRIntervalTime otherwise. We detect wraparounds of - * PRIntervalTime and work around them. - * - * This class is similar to C++11's time_point, however it is - * explicitly nullable and provides an IsNull() method. time_point - * is initialized to the clock's epoch and provides a - * time_since_epoch() method that functions similiarly. i.e. - * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct TimeStamp { - /** - * When built with PRIntervalTime, a value of 0 means this instance - * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, - * and the high 32 bits represent a counter of the number of - * rollovers of PRIntervalTime that we've seen. This counter starts - * at 1 to avoid a real time colliding with the "null" value. - * - * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum - * time to wrap around is about 2^64/100000 seconds, i.e. about - * 5,849,424 years. - * - * When using a system clock, a value is system dependent. - */ - pub mValue: root::mozilla::TimeStampValue, - } - #[test] - fn bindgen_test_layout_TimeStamp() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( "Size of: " , stringify ! ( TimeStamp ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( TimeStamp ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const TimeStamp ) ) . mValue as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( TimeStamp ) , - "::" , stringify ! ( mValue ) )); - } - impl Clone for TimeStamp { - fn clone(&self) -> Self { *self } - } - /** - * Instances of this class represent the length of an interval of time. - * Negative durations are allowed, meaning the end is before the start. - * - * Internally the duration is stored as a int64_t in units of - * PR_TicksPerSecond() when building with NSPR interval timers, or a - * system-dependent unit when building with system clocks. The - * system-dependent unit must be constant, otherwise the semantics of - * this class would be broken. - * - * The ValueCalculator template parameter determines how arithmetic - * operations are performed on the integer count of ticks (mValue). - */ - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct BaseTimeDuration { - pub mValue: i64, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct BaseTimeDuration__SomethingVeryRandomHere { - pub _address: u8, - } - /** - * Perform arithmetic operations on the value of a BaseTimeDuration without - * doing strict checks on the range of values. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct TimeDurationValueCalculator { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_TimeDurationValueCalculator() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of: " , stringify ! ( TimeDurationValueCalculator - ) )); - assert_eq! (::std::mem::align_of::() - , 1usize , concat ! ( - "Alignment of " , stringify ! ( - TimeDurationValueCalculator ) )); - } - impl Clone for TimeDurationValueCalculator { - fn clone(&self) -> Self { *self } - } - /** - * Specialization of BaseTimeDuration that uses TimeDurationValueCalculator for - * arithmetic on the mValue member. - * - * Use this class for time durations that are *not* expected to hold values of - * Forever (or the negative equivalent) or when such time duration are *not* - * expected to be used in arithmetic operations. - */ - pub type TimeDuration = root::mozilla::BaseTimeDuration; /** * EventStates is the class used to represent the event states of nsIContent * instances. These states are calculated by IntrinsicState() and @@ -7545,21 +7212,31 @@ pub mod root { #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum LazyComputeBehavior { Allow = 0, Assert = 1, } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRootBehavior { - Normal = 0, - UnstyledChildrenOnly = 1, - } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRestyleBehavior { - Normal = 0, - ForNewlyBoundElement = 1, - ForReconstruct = 2, - ForThrottledAnimationFlush = 3, - ForCSSRuleChanges = 4, - } + pub const ServoTraversalFlags_Empty: + root::mozilla::ServoTraversalFlags = + 0; + pub const ServoTraversalFlags_AnimationOnly: + root::mozilla::ServoTraversalFlags = + 1; + pub const ServoTraversalFlags_ForCSSRuleChanges: + root::mozilla::ServoTraversalFlags = + 2; + pub const ServoTraversalFlags_UnstyledChildrenOnly: + root::mozilla::ServoTraversalFlags = + 4; + pub const ServoTraversalFlags_Forgetful: + root::mozilla::ServoTraversalFlags = + 8; + pub const ServoTraversalFlags_AggressivelyForgetful: + root::mozilla::ServoTraversalFlags = + 16; + pub const ServoTraversalFlags_ClearDirtyDescendants: + root::mozilla::ServoTraversalFlags = + 32; + pub const ServoTraversalFlags_ClearAnimationOnlyDirtyDescendants: + root::mozilla::ServoTraversalFlags = + 64; + pub type ServoTraversalFlags = u32; #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum StyleRuleInclusion { All = 0, DefaultOnly = 1, } @@ -8063,6 +7740,125 @@ pub mod root { */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum StyleBackendType { None = 0, Gecko = 1, Servo = 2, } + pub type TimeStampValue = u64; + /** + * Instances of this class represent moments in time, or a special + * "null" moment. We do not use the non-monotonic system clock or + * local time, since they can be reset, causing apparent backward + * travel in time, which can confuse algorithms. Instead we measure + * elapsed time according to the system. This time can never go + * backwards (i.e. it never wraps around, at least not in less than + * five million years of system elapsed time). It might not advance + * while the system is sleeping. If TimeStamp::SetNow() is not called + * at all for hours or days, we might not notice the passage of some + * of that time. + * + * We deliberately do not expose a way to convert TimeStamps to some + * particular unit. All you can do is compute a difference between two + * TimeStamps to get a TimeDuration. You can also add a TimeDuration + * to a TimeStamp to get a new TimeStamp. You can't do something + * meaningless like add two TimeStamps. + * + * Internally this is implemented as either a wrapper around + * - high-resolution, monotonic, system clocks if they exist on this + * platform + * - PRIntervalTime otherwise. We detect wraparounds of + * PRIntervalTime and work around them. + * + * This class is similar to C++11's time_point, however it is + * explicitly nullable and provides an IsNull() method. time_point + * is initialized to the clock's epoch and provides a + * time_since_epoch() method that functions similiarly. i.e. + * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct TimeStamp { + /** + * When built with PRIntervalTime, a value of 0 means this instance + * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, + * and the high 32 bits represent a counter of the number of + * rollovers of PRIntervalTime that we've seen. This counter starts + * at 1 to avoid a real time colliding with the "null" value. + * + * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum + * time to wrap around is about 2^64/100000 seconds, i.e. about + * 5,849,424 years. + * + * When using a system clock, a value is system dependent. + */ + pub mValue: root::mozilla::TimeStampValue, + } + #[test] + fn bindgen_test_layout_TimeStamp() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( "Size of: " , stringify ! ( TimeStamp ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( TimeStamp ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const TimeStamp ) ) . mValue as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( TimeStamp ) , + "::" , stringify ! ( mValue ) )); + } + impl Clone for TimeStamp { + fn clone(&self) -> Self { *self } + } + /** + * Instances of this class represent the length of an interval of time. + * Negative durations are allowed, meaning the end is before the start. + * + * Internally the duration is stored as a int64_t in units of + * PR_TicksPerSecond() when building with NSPR interval timers, or a + * system-dependent unit when building with system clocks. The + * system-dependent unit must be constant, otherwise the semantics of + * this class would be broken. + * + * The ValueCalculator template parameter determines how arithmetic + * operations are performed on the integer count of ticks (mValue). + */ + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct BaseTimeDuration { + pub mValue: i64, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct BaseTimeDuration__SomethingVeryRandomHere { + pub _address: u8, + } + /** + * Perform arithmetic operations on the value of a BaseTimeDuration without + * doing strict checks on the range of values. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct TimeDurationValueCalculator { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_TimeDurationValueCalculator() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of: " , stringify ! ( TimeDurationValueCalculator + ) )); + assert_eq! (::std::mem::align_of::() + , 1usize , concat ! ( + "Alignment of " , stringify ! ( + TimeDurationValueCalculator ) )); + } + impl Clone for TimeDurationValueCalculator { + fn clone(&self) -> Self { *self } + } + /** + * Specialization of BaseTimeDuration that uses TimeDurationValueCalculator for + * arithmetic on the mValue member. + * + * Use this class for time durations that are *not* expected to hold values of + * Forever (or the negative equivalent) or when such time duration are *not* + * expected to be used in arithmetic operations. + */ + pub type TimeDuration = root::mozilla::BaseTimeDuration; #[repr(C)] #[derive(Debug, Copy)] pub struct ErrorResult { @@ -8919,6 +8715,102 @@ pub mod root { eURLStrikeout = 512, } #[repr(C)] + #[derive(Debug, Copy)] + pub struct CSSPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_CSSPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( + "Size of: " , stringify ! ( CSSPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , concat ! + ( "Alignment of " , stringify ! ( CSSPixel ) )); + } + impl Clone for CSSPixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct LayoutDevicePixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_LayoutDevicePixel() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of: " , stringify ! ( LayoutDevicePixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( LayoutDevicePixel ) + )); + } + impl Clone for LayoutDevicePixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct LayerPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_LayerPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , concat ! + ( "Size of: " , stringify ! ( LayerPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , concat + ! ( "Alignment of " , stringify ! ( LayerPixel ) )); + } + impl Clone for LayerPixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ScreenPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_ScreenPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , concat + ! ( "Size of: " , stringify ! ( ScreenPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( ScreenPixel ) )); + } + impl Clone for ScreenPixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ParentLayerPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_ParentLayerPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of: " , stringify ! ( ParentLayerPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( ParentLayerPixel ) )); + } + impl Clone for ParentLayerPixel { + fn clone(&self) -> Self { *self } + } + pub type CSSPoint = [u32; 2usize]; + pub type CSSIntPoint = [u32; 2usize]; + pub type CSSSize = [u32; 2usize]; + pub type CSSRect = [u32; 4usize]; + pub type LayoutDeviceIntPoint = [u32; 2usize]; + pub type LayoutDeviceIntSize = [u32; 2usize]; + pub type LayoutDeviceIntRect = [u32; 4usize]; + pub type ScreenIntSize = u8; + pub type ScreenMargin = [u32; 4usize]; + pub type ParentLayerRect = [u32; 4usize]; + pub type ParentLayerIntRect = [u32; 4usize]; + pub type CSSToLayoutDeviceScale = u32; + pub type CSSToParentLayerScale2D = [u32; 2usize]; + pub type LayoutDeviceToLayerScale2D = [u32; 2usize]; + pub type ScreenToLayerScale2D = [u32; 2usize]; + #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct AccessibleCaretEventHub { _unused: [u8; 0], @@ -9050,7 +8942,7 @@ pub mod root { eUseCounter_ShowModalDialog = 71, eUseCounter_Window_Content = 72, eUseCounter_SyncXMLHttpRequest = 73, - eUseCounter_Window_Controllers = 74, + eUseCounter_Window_Cc_ontrollers = 74, eUseCounter_ImportXULIntoContent = 75, eUseCounter_PannerNodeDoppler = 76, eUseCounter_NavigatorGetUserMedia = 77, @@ -9554,6 +9446,7 @@ pub mod root { eMutex = 0, eReentrantMonitor = 1, eCondVar = 2, + eRecursiveMutex = 3, } pub type BlockingResourceBase_DDT = root::mozilla::DeadlockDetector; pub type BlockingResourceBase_AcquisitionState = bool; @@ -17488,1377 +17381,6 @@ pub mod root { nsEventStatus_eConsumeDoDefault = 2, nsEventStatus_eSentinel = 3, } - pub type gfxSize = [u64; 2usize]; - pub type nsIntRect = root::mozilla::gfx::IntRect; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct pixman_region32_data { - pub size: ::std::os::raw::c_long, - pub numRects: ::std::os::raw::c_long, - } - #[test] - fn bindgen_test_layout_pixman_region32_data() { - assert_eq!(::std::mem::size_of::() , 16usize , - concat ! ( - "Size of: " , stringify ! ( pixman_region32_data ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( pixman_region32_data ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32_data ) ) . size as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - pixman_region32_data ) , "::" , stringify ! ( size ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32_data ) ) . numRects - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - pixman_region32_data ) , "::" , stringify ! ( numRects ) - )); - } - impl Clone for pixman_region32_data { - fn clone(&self) -> Self { *self } - } - pub type pixman_region32_data_t = root::pixman_region32_data; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct pixman_box32 { - pub x1: i32, - pub y1: i32, - pub x2: i32, - pub y2: i32, - } - #[test] - fn bindgen_test_layout_pixman_box32() { - assert_eq!(::std::mem::size_of::() , 16usize , concat ! - ( "Size of: " , stringify ! ( pixman_box32 ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! - ( "Alignment of " , stringify ! ( pixman_box32 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . x1 as * const _ as - usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( x1 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . y1 as * const _ as - usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( y1 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . x2 as * const _ as - usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( x2 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . y2 as * const _ as - usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( y2 ) )); - } - impl Clone for pixman_box32 { - fn clone(&self) -> Self { *self } - } - pub type pixman_box32_t = root::pixman_box32; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct pixman_region32 { - pub extents: root::pixman_box32_t, - pub data: *mut root::pixman_region32_data_t, - } - #[test] - fn bindgen_test_layout_pixman_region32() { - assert_eq!(::std::mem::size_of::() , 24usize , concat - ! ( "Size of: " , stringify ! ( pixman_region32 ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( pixman_region32 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32 ) ) . extents as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_region32 ) , - "::" , stringify ! ( extents ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32 ) ) . data as * const - _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_region32 ) , - "::" , stringify ! ( data ) )); - } - impl Clone for pixman_region32 { - fn clone(&self) -> Self { *self } - } - pub type pixman_region32_t = root::pixman_region32; - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum VisitSide { TOP = 0, BOTTOM = 1, LEFT = 2, RIGHT = 3, } - /** - * Presentation shell interface. Presentation shells are the - * controlling point for managing the presentation of a document. The - * presentation shell holds a live reference to the document, the - * presentation context, the style manager, the style set and the root - * frame.

- * - * When this object is Release'd, it will release the document, the - * presentation context, the style manager, the style set and the root - * frame. - */ - #[repr(C)] - pub struct nsIPresShell { - pub _base: root::nsISupports, - pub mDocument: root::nsCOMPtr, - pub mPresContext: root::RefPtr, - pub mStyleSet: root::mozilla::StyleSetHandle, - pub mFrameConstructor: *mut root::nsCSSFrameConstructor, - pub mViewManager: *mut root::nsViewManager, - pub mFrameArena: root::nsPresArena, - pub mSelection: root::RefPtr, - pub mFrameManager: *mut root::nsFrameManagerBase, - pub mForwardingContainer: u64, - pub mDocAccessible: *mut root::mozilla::a11y::DocAccessible, - pub mReflowContinueTimer: root::nsCOMPtr, - pub mDrawEventTargetFrame: *mut root::nsIFrame, - pub mAllocatedPointers: [u64; 6usize], - pub mPaintCount: u64, - pub mScrollPositionClampingScrollPortSize: root::nsSize, - pub mAutoWeakFrames: *mut root::AutoWeakFrame, - pub mWeakFrames: [u64; 6usize], - pub mCanvasBackgroundColor: root::nscolor, - pub mResolution: [u32; 2usize], - pub mSelectionFlags: i16, - pub mRenderFlags: root::nsIPresShell_RenderFlags, - pub _bitfield_1: [u8; 2usize], - pub mPresShellId: u32, - pub mFontSizeInflationEmPerLine: u32, - pub mFontSizeInflationMinTwips: u32, - pub mFontSizeInflationLineThreshold: u32, - pub mFontSizeInflationForceEnabled: bool, - pub mFontSizeInflationDisabledInMasterProcess: bool, - pub mFontSizeInflationEnabled: bool, - pub mFontSizeInflationEnabledIsDirty: bool, - pub mPaintingIsFrozen: bool, - pub mIsNeverPainting: bool, - pub mInFlush: bool, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsIPresShell_COMTypeInfo { - pub _address: u8, - } - pub type nsIPresShell_FocusTarget = root::mozilla::layers::FocusTarget; - pub type nsIPresShell_LayerManager = root::mozilla::layers::LayerManager; - pub type nsIPresShell_SourceSurface = root::mozilla::gfx::SourceSurface; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_eRenderFlag { - STATE_IGNORING_VIEWPORT_SCROLLING = 1, - STATE_DRAWWINDOW_NOT_FLUSHING = 2, - } - pub type nsIPresShell_RenderFlags = u8; - #[repr(u32)] - /** - * Gets nearest scrollable frame from the specified content node. The frame - * is scrollable with overflow:scroll or overflow:auto in some direction when - * aDirection is eEither. Otherwise, this returns a nearest frame that is - * scrollable in the specified direction. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_ScrollDirection { - eHorizontal = 0, - eVertical = 1, - eEither = 2, - } - #[repr(u32)] - /** - * Tell the pres shell that a frame needs to be marked dirty and needs - * Reflow. It's OK if this is an ancestor of the frame needing reflow as - * long as the ancestor chain between them doesn't cross a reflow root. - * - * The bit to add should be NS_FRAME_IS_DIRTY, NS_FRAME_HAS_DIRTY_CHILDREN - * or nsFrameState(0); passing 0 means that dirty bits won't be set on the - * frame or its ancestors/descendants, but that intrinsic widths will still - * be marked dirty. Passing aIntrinsicDirty = eResize and aBitToAdd = 0 - * would result in no work being done, so don't do that. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_IntrinsicDirty { - eResize = 0, - eTreeChange = 1, - eStyleChange = 2, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_ReflowRootHandling { - ePositionOrSizeChange = 0, - eNoPositionOrSizeChange = 1, - eInferFromBitToAdd = 2, - } - pub const nsIPresShell_SCROLL_TOP: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_TOP; - pub const nsIPresShell_SCROLL_BOTTOM: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; - pub const nsIPresShell_SCROLL_LEFT: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_TOP; - pub const nsIPresShell_SCROLL_RIGHT: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; - pub const nsIPresShell_SCROLL_CENTER: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_CENTER; - pub const nsIPresShell_SCROLL_MINIMUM: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_MINIMUM; - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_1 { - SCROLL_TOP = 0, - SCROLL_BOTTOM = 100, - SCROLL_CENTER = 50, - SCROLL_MINIMUM = -1, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_WhenToScroll { - SCROLL_ALWAYS = 0, - SCROLL_IF_NOT_VISIBLE = 1, - SCROLL_IF_NOT_FULLY_VISIBLE = 2, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsIPresShell_ScrollAxis { - pub _bindgen_opaque_blob: u32, - } - #[test] - fn bindgen_test_layout_nsIPresShell_ScrollAxis() { - assert_eq!(::std::mem::size_of::() , 4usize , - concat ! ( - "Size of: " , stringify ! ( nsIPresShell_ScrollAxis ) )); - assert_eq! (::std::mem::align_of::() , 4usize - , concat ! ( - "Alignment of " , stringify ! ( nsIPresShell_ScrollAxis ) - )); - } - impl Clone for nsIPresShell_ScrollAxis { - fn clone(&self) -> Self { *self } - } - pub const nsIPresShell_SCROLL_FIRST_ANCESTOR_ONLY: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_FIRST_ANCESTOR_ONLY; - pub const nsIPresShell_SCROLL_OVERFLOW_HIDDEN: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_OVERFLOW_HIDDEN; - pub const nsIPresShell_SCROLL_NO_PARENT_FRAMES: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_NO_PARENT_FRAMES; - pub const nsIPresShell_SCROLL_SMOOTH: root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH; - pub const nsIPresShell_SCROLL_SMOOTH_AUTO: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH_AUTO; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_2 { - SCROLL_FIRST_ANCESTOR_ONLY = 1, - SCROLL_OVERFLOW_HIDDEN = 2, - SCROLL_NO_PARENT_FRAMES = 4, - SCROLL_SMOOTH = 8, - SCROLL_SMOOTH_AUTO = 16, - } - pub const nsIPresShell_RENDER_IS_UNTRUSTED: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_IS_UNTRUSTED; - pub const nsIPresShell_RENDER_IGNORE_VIEWPORT_SCROLLING: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_IGNORE_VIEWPORT_SCROLLING; - pub const nsIPresShell_RENDER_CARET: root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_CARET; - pub const nsIPresShell_RENDER_USE_WIDGET_LAYERS: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_USE_WIDGET_LAYERS; - pub const nsIPresShell_RENDER_ASYNC_DECODE_IMAGES: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_ASYNC_DECODE_IMAGES; - pub const nsIPresShell_RENDER_DOCUMENT_RELATIVE: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_DOCUMENT_RELATIVE; - pub const nsIPresShell_RENDER_DRAWWINDOW_NOT_FLUSHING: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_DRAWWINDOW_NOT_FLUSHING; - #[repr(u32)] - /** - * Render the document into an arbitrary gfxContext - * Designed for getting a picture of a document or a piece of a document - * Note that callers will generally want to call FlushPendingNotifications - * to get an up-to-date view of the document - * @param aRect is the region to capture into the offscreen buffer, in the - * root frame's coordinate system (if aIgnoreViewportScrolling is false) - * or in the root scrolled frame's coordinate system - * (if aIgnoreViewportScrolling is true). The coordinates are in appunits. - * @param aFlags see below; - * set RENDER_IS_UNTRUSTED if the contents may be passed to malicious - * agents. E.g. we might choose not to paint the contents of sensitive widgets - * such as the file name in a file upload widget, and we might choose not - * to paint themes. - * set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore - * clipping and scrollbar painting due to scrolling in the viewport - * set RENDER_CARET to draw the caret if one would be visible - * (by default the caret is never drawn) - * set RENDER_USE_LAYER_MANAGER to force rendering to go through - * the layer manager for the window. This may be unexpectedly slow - * (if the layer manager must read back data from the GPU) or low-quality - * (if the layer manager reads back pixel data and scales it - * instead of rendering using the appropriate scaling). It may also - * slow everything down if the area rendered does not correspond to the - * normal visible area of the window. - * set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously - * decoded during rendering. - * (by default images decode synchronously with RenderDocument) - * set RENDER_DOCUMENT_RELATIVE to render the document as if there has been - * no scrolling and interpret |aRect| relative to the document instead of the - * CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set - * or the document is in ignore viewport scrolling mode - * (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling). - * @param aBackgroundColor a background color to render onto - * @param aRenderedContext the gfxContext to render to. We render so that - * one CSS pixel in the source document is rendered to one unit in the current - * transform. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_3 { - RENDER_IS_UNTRUSTED = 1, - RENDER_IGNORE_VIEWPORT_SCROLLING = 2, - RENDER_CARET = 4, - RENDER_USE_WIDGET_LAYERS = 8, - RENDER_ASYNC_DECODE_IMAGES = 16, - RENDER_DOCUMENT_RELATIVE = 32, - RENDER_DRAWWINDOW_NOT_FLUSHING = 64, - } - pub const nsIPresShell_RENDER_IS_IMAGE: root::nsIPresShell__bindgen_ty_4 = - nsIPresShell__bindgen_ty_4::RENDER_IS_IMAGE; - pub const nsIPresShell_RENDER_AUTO_SCALE: root::nsIPresShell__bindgen_ty_4 - = - nsIPresShell__bindgen_ty_4::RENDER_AUTO_SCALE; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_4 { - RENDER_IS_IMAGE = 256, - RENDER_AUTO_SCALE = 128, - } - pub const nsIPresShell_FORCE_DRAW: root::nsIPresShell__bindgen_ty_5 = - nsIPresShell__bindgen_ty_5::FORCE_DRAW; - pub const nsIPresShell_ADD_FOR_SUBDOC: root::nsIPresShell__bindgen_ty_5 = - nsIPresShell__bindgen_ty_5::ADD_FOR_SUBDOC; - pub const nsIPresShell_APPEND_UNSCROLLED_ONLY: - root::nsIPresShell__bindgen_ty_5 = - nsIPresShell__bindgen_ty_5::APPEND_UNSCROLLED_ONLY; - #[repr(u32)] - /** - * Add a solid color item to the bottom of aList with frame aFrame and bounds - * aBounds. Checks first if this needs to be done by checking if aFrame is a - * canvas frame (if the FORCE_DRAW flag is passed then this check is skipped). - * aBackstopColor is composed behind the background color of the canvas, it is - * transparent by default. - * We attempt to make the background color part of the scrolled canvas (to reduce - * transparent layers), and if async scrolling is enabled (and the background - * is opaque) then we add a second, unscrolled item to handle the checkerboarding - * case. - * ADD_FOR_SUBDOC shoud be specified when calling this for a subdocument, and - * LayoutUseContainersForRootFrame might cause the whole list to be scrolled. In - * that case the second unscrolled item will be elided. - * APPEND_UNSCROLLED_ONLY only attempts to add the unscrolled item, so that we - * can add it manually after LayoutUseContainersForRootFrame has built the - * scrolling ContainerLayer. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_5 { - FORCE_DRAW = 1, - ADD_FOR_SUBDOC = 2, - APPEND_UNSCROLLED_ONLY = 4, - } - #[repr(C)] - pub struct nsIPresShell_PointerCaptureInfo { - pub mPendingContent: root::nsCOMPtr, - pub mOverrideContent: root::nsCOMPtr, - } - #[test] - fn bindgen_test_layout_nsIPresShell_PointerCaptureInfo() { - assert_eq!(::std::mem::size_of::() , - 16usize , concat ! ( - "Size of: " , stringify ! ( nsIPresShell_PointerCaptureInfo - ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - nsIPresShell_PointerCaptureInfo ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . - mPendingContent as * const _ as usize } , 0usize , concat - ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( - mPendingContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . - mOverrideContent as * const _ as usize } , 8usize , concat - ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( - mOverrideContent ) )); - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsIPresShell_PointerInfo { - pub mPointerType: u16, - pub mActiveState: bool, - pub mPrimaryState: bool, - pub mPreventMouseEventByContent: bool, - } - #[test] - fn bindgen_test_layout_nsIPresShell_PointerInfo() { - assert_eq!(::std::mem::size_of::() , 6usize - , concat ! ( - "Size of: " , stringify ! ( nsIPresShell_PointerInfo ) )); - assert_eq! (::std::mem::align_of::() , - 2usize , concat ! ( - "Alignment of " , stringify ! ( nsIPresShell_PointerInfo ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mPointerType as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mPointerType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mActiveState as * const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mActiveState ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mPrimaryState as * const _ as usize } , 3usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mPrimaryState ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mPreventMouseEventByContent as * const _ as usize } , - 4usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mPreventMouseEventByContent ) )); - } - impl Clone for nsIPresShell_PointerInfo { - fn clone(&self) -> Self { *self } - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_PaintFlags { - PAINT_LAYERS = 1, - PAINT_COMPOSITE = 2, - PAINT_SYNC_DECODE_IMAGES = 4, - } - #[repr(u32)] - /** - * Ensures that the refresh driver is running, and schedules a view - * manager flush on the next tick. - * - * @param aType PAINT_DELAYED_COMPRESS : Schedule a paint to be executed after a delay, and - * put FrameLayerBuilder in 'compressed' mode that avoids short cut optimizations. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_PaintType { - PAINT_DEFAULT = 0, - PAINT_DELAYED_COMPRESS = 1, - } - extern "C" { - #[link_name = "_ZN12nsIPresShell12gCaptureInfoE"] - pub static mut nsIPresShell_gCaptureInfo: root::CapturingContentInfo; - } - extern "C" { - #[link_name = "_ZN12nsIPresShell14gKeyDownTargetE"] - pub static mut nsIPresShell_gKeyDownTarget: *mut root::nsIContent; - } - #[test] - fn bindgen_test_layout_nsIPresShell() { - assert_eq!(::std::mem::size_of::() , 5456usize , concat - ! ( "Size of: " , stringify ! ( nsIPresShell ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsIPresShell ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mDocument as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mDocument ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPresContext as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPresContext ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mStyleSet as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mStyleSet ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mFrameConstructor - as * const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFrameConstructor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mViewManager as * - const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mViewManager ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mFrameArena as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFrameArena ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mSelection as * - const _ as usize } , 5240usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mSelection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mFrameManager as * - const _ as usize } , 5248usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFrameManager ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mForwardingContainer as * const _ as usize } , 5256usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mForwardingContainer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mDocAccessible as - * const _ as usize } , 5264usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mDocAccessible ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mReflowContinueTimer as * const _ as usize } , 5272usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mReflowContinueTimer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mDrawEventTargetFrame as * const _ as usize } , 5280usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mDrawEventTargetFrame ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mAllocatedPointers - as * const _ as usize } , 5288usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mAllocatedPointers ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPaintCount as * - const _ as usize } , 5336usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPaintCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mScrollPositionClampingScrollPortSize as * const _ as - usize } , 5344usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mScrollPositionClampingScrollPortSize - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mAutoWeakFrames as - * const _ as usize } , 5352usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mAutoWeakFrames ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mWeakFrames as * - const _ as usize } , 5360usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mWeakFrames ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mCanvasBackgroundColor as * const _ as usize } , 5408usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mCanvasBackgroundColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mResolution as * - const _ as usize } , 5412usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mResolution ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as - * const _ as usize } , 5420usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mSelectionFlags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as * - const _ as usize } , 5422usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mRenderFlags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as * - const _ as usize } , 5428usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPresShellId ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationEmPerLine as * const _ as usize } , - 5432usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationEmPerLine ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationMinTwips as * const _ as usize } , - 5436usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationMinTwips ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationLineThreshold as * const _ as usize } , - 5440usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationLineThreshold ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationForceEnabled as * const _ as usize } , - 5444usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationForceEnabled ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationDisabledInMasterProcess as * const _ as - usize } , 5445usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( - mFontSizeInflationDisabledInMasterProcess ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationEnabled as * const _ as usize } , - 5446usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationEnabled ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationEnabledIsDirty as * const _ as usize } , - 5447usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationEnabledIsDirty ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen - as * const _ as usize } , 5448usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPaintingIsFrozen ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting - as * const _ as usize } , 5449usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mIsNeverPainting ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mInFlush as * - const _ as usize } , 5450usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mInFlush ) )); - } - impl nsIPresShell { - #[inline] - pub fn mDidInitialize(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u16; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mDidInitialize(&mut self, val: bool) { - let mask = 1u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsDestroying(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u16; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsDestroying(&mut self, val: bool) { - let mask = 2u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsReflowing(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 4u64 as u16; - let val = (unit_field_val & mask) >> 2usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsReflowing(&mut self, val: bool) { - let mask = 4u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 2usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mPaintingSuppressed(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 8u64 as u16; - let val = (unit_field_val & mask) >> 3usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mPaintingSuppressed(&mut self, val: bool) { - let mask = 8u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 3usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsActive(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 16u64 as u16; - let val = (unit_field_val & mask) >> 4usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsActive(&mut self, val: bool) { - let mask = 16u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 4usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mFrozen(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 32u64 as u16; - let val = (unit_field_val & mask) >> 5usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mFrozen(&mut self, val: bool) { - let mask = 32u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 5usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsFirstPaint(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 64u64 as u16; - let val = (unit_field_val & mask) >> 6usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsFirstPaint(&mut self, val: bool) { - let mask = 64u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 6usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mObservesMutationsForPrint(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 128u64 as u16; - let val = (unit_field_val & mask) >> 7usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mObservesMutationsForPrint(&mut self, val: bool) { - let mask = 128u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 7usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mSuppressInterruptibleReflows(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 256u64 as u16; - let val = (unit_field_val & mask) >> 8usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mSuppressInterruptibleReflows(&mut self, val: bool) { - let mask = 256u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 8usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mScrollPositionClampingScrollPortSizeSet(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 512u64 as u16; - let val = (unit_field_val & mask) >> 9usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mScrollPositionClampingScrollPortSizeSet(&mut self, - val: bool) { - let mask = 512u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 9usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mNeedLayoutFlush(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1024u64 as u16; - let val = (unit_field_val & mask) >> 10usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mNeedLayoutFlush(&mut self, val: bool) { - let mask = 1024u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 10usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mNeedStyleFlush(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2048u64 as u16; - let val = (unit_field_val & mask) >> 11usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mNeedStyleFlush(&mut self, val: bool) { - let mask = 2048u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 11usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mObservingStyleFlushes(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 4096u64 as u16; - let val = (unit_field_val & mask) >> 12usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mObservingStyleFlushes(&mut self, val: bool) { - let mask = 4096u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 12usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mObservingLayoutFlushes(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 8192u64 as u16; - let val = (unit_field_val & mask) >> 13usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mObservingLayoutFlushes(&mut self, val: bool) { - let mask = 8192u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 13usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mNeedThrottledAnimationFlush(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 16384u64 as u16; - let val = (unit_field_val & mask) >> 14usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) { - let mask = 16384u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 14usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(mDidInitialize: bool, mIsDestroying: bool, - mIsReflowing: bool, mPaintingSuppressed: bool, - mIsActive: bool, mFrozen: bool, - mIsFirstPaint: bool, - mObservesMutationsForPrint: bool, - mSuppressInterruptibleReflows: bool, - mScrollPositionClampingScrollPortSizeSet: bool, - mNeedLayoutFlush: bool, mNeedStyleFlush: bool, - mObservingStyleFlushes: bool, - mObservingLayoutFlushes: bool, - mNeedThrottledAnimationFlush: bool) -> u16 { - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - 0 - } - | - ((mDidInitialize - as - u8 - as - u16) - << - 0usize) - & - (1u64 - as - u16)) - } - | - ((mIsDestroying - as - u8 - as - u16) - << - 1usize) - & - (2u64 - as - u16)) - } | - ((mIsReflowing - as - u8 - as - u16) - << - 2usize) - & - (4u64 - as - u16)) - } | - ((mPaintingSuppressed - as - u8 - as - u16) - << - 3usize) - & - (8u64 - as - u16)) - } | - ((mIsActive - as u8 - as - u16) - << - 4usize) - & - (16u64 - as - u16)) - } | - ((mFrozen as u8 - as u16) << - 5usize) & - (32u64 as - u16)) - } | - ((mIsFirstPaint as u8 - as u16) << - 6usize) & - (64u64 as u16)) - } | - ((mObservesMutationsForPrint - as u8 as u16) << - 7usize) & - (128u64 as u16)) - } | - ((mSuppressInterruptibleReflows - as u8 as u16) << 8usize) - & (256u64 as u16)) - } | - ((mScrollPositionClampingScrollPortSizeSet - as u8 as u16) << 9usize) & - (512u64 as u16)) - } | - ((mNeedLayoutFlush as u8 as u16) << - 10usize) & (1024u64 as u16)) - } | - ((mNeedStyleFlush as u8 as u16) << 11usize) & - (2048u64 as u16)) - } | - ((mObservingStyleFlushes as u8 as u16) << 12usize) - & (4096u64 as u16)) - } | - ((mObservingLayoutFlushes as u8 as u16) << 13usize) & - (8192u64 as u16)) - } | - ((mNeedThrottledAnimationFlush as u8 as u16) << 14usize) & - (16384u64 as u16)) - } - } #[repr(C)] #[derive(Debug)] pub struct nsStyleFont { @@ -18970,7 +17492,7 @@ pub mod root { "::" , stringify ! ( mColor ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_88() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_80() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -18981,7 +17503,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_89() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_81() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -21005,10 +19527,9 @@ pub mod root { "::" , stringify ! ( mMixBlendMode ) )); } /** - * We want C++ to be abe to read the style struct fields of ComputedValues + * 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. - * */ #[repr(C)] #[derive(Debug)] @@ -21052,161 +19573,158 @@ pub mod root { #[test] fn bindgen_test_layout_ServoComputedData() { assert_eq!(::std::mem::size_of::() , 224usize , - concat ! ( - "Size of: " , stringify ! ( ServoComputedData ) )); + concat ! ( "Size of: " , stringify ! ( ServoComputedData ) + )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( ServoComputedData ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Font as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Font ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Font ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Color as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Color ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Color ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . List as * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( List ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( List ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Text as * const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Text ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Text ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Visibility - as * const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Visibility ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Visibility as + * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Visibility ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . - UserInterface as * const _ as usize } , 40usize , concat ! - ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( UserInterface ) )); + & ( * ( 0 as * const ServoComputedData ) ) . UserInterface + as * const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( UserInterface ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . TableBorder as * const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( TableBorder ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( TableBorder ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . SVG as * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( SVG ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( SVG ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Background - as * const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Background ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Background as + * const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Background ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Position as - * const _ as usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Position ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Position as * + const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Position ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . TextReset - as * const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( TextReset ) )); + & ( * ( 0 as * const ServoComputedData ) ) . TextReset as + * const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( TextReset ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Display as - * const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Display ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Display as * + const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Display ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Content as - * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Content ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Content as * + const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Content ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . UIReset as - * const _ as usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( UIReset ) )); + & ( * ( 0 as * const ServoComputedData ) ) . UIReset as * + const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( UIReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Table as * const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Table ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Table ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Margin as * const _ as usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Margin ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Margin ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Padding as - * const _ as usize } , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Padding ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Padding as * + const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Padding ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Border as * const _ as usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Border ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Border ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Outline as - * const _ as usize } , 144usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Outline ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Outline as * + const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Outline ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . XUL as * const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( XUL ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( XUL ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . SVGReset as - * const _ as usize } , 160usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( SVGReset ) )); + & ( * ( 0 as * const ServoComputedData ) ) . SVGReset as * + const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( SVGReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Column as * const _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Column ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Column ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Effects as - * const _ as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Effects ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Effects as * + const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Effects ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . custom_properties as * const _ as usize } , 184usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( custom_properties ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( custom_properties ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . - writing_mode as * const _ as usize } , 192usize , concat ! - ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( writing_mode ) )); + & ( * ( 0 as * const ServoComputedData ) ) . writing_mode + as * const _ as usize } , 192usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( writing_mode ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . flags as * const _ as usize } , 193usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( flags ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( flags ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . rules as * const _ as usize } , 200usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( rules ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( rules ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . - visited_style as * const _ as usize } , 208usize , concat - ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( visited_style ) )); + & ( * ( 0 as * const ServoComputedData ) ) . visited_style + as * const _ as usize } , 208usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( visited_style ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . font_computation_data as * const _ as usize } , 216usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( font_computation_data ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( font_computation_data ) )); } #[repr(C)] #[derive(Debug, Copy)] @@ -21221,14 +19739,14 @@ pub mod root { )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( - ServoComputedDataForgotten ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedDataForgotten ) ) . - mPtr as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedDataForgotten ) , "::" , stringify ! ( mPtr + "Alignment of " , stringify ! ( ServoComputedDataForgotten ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedDataForgotten ) ) . mPtr + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedDataForgotten ) , "::" , stringify ! ( mPtr ) + )); } impl Clone for ServoComputedDataForgotten { fn clone(&self) -> Self { *self } @@ -21867,6 +20385,11 @@ pub mod root { */ pub mWeakReference: *mut root::nsNodeWeakReference, /** + * A set of ranges in the common ancestor for the selection to which + * this node belongs to. + */ + pub mCommonAncestorRanges: u64, + /** * Number of descendant nodes in the uncomposed document that have been * explicitly set as editable. */ @@ -21874,7 +20397,7 @@ pub mod root { } #[test] fn bindgen_test_layout_nsINode_nsSlots() { - assert_eq!(::std::mem::size_of::() , 48usize , concat + assert_eq!(::std::mem::size_of::() , 56usize , concat ! ( "Size of: " , stringify ! ( nsINode_nsSlots ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( @@ -21897,7 +20420,13 @@ pub mod root { "::" , stringify ! ( mWeakReference ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsINode_nsSlots ) ) . - mEditableDescendantCount as * const _ as usize } , 40usize + mCommonAncestorRanges as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsINode_nsSlots ) , + "::" , stringify ! ( mCommonAncestorRanges ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsINode_nsSlots ) ) . + mEditableDescendantCount as * const _ as usize } , 48usize , concat ! ( "Alignment of field: " , stringify ! ( nsINode_nsSlots ) , "::" , stringify ! ( mEditableDescendantCount ) )); @@ -23379,7 +21908,7 @@ pub mod root { eShowModalDialog = 24, eWindow_Content = 25, eSyncXMLHttpRequest = 26, - eWindow_Controllers = 27, + eWindow_Cc_ontrollers = 27, eImportXULIntoContent = 28, ePannerNodeDoppler = 29, eNavigatorGetUserMedia = 30, @@ -26219,9 +24748,16 @@ pub mod root { pub mParent: root::RefPtr, pub mPseudoTag: root::nsCOMPtr, pub mBits: u64, - pub mRefCnt: u32, pub mFrameRefCnt: u32, } + pub const nsStyleContext_kAllResolvedStructs: + root::nsStyleContext__bindgen_ty_1 = + nsStyleContext__bindgen_ty_1::kAllResolvedStructs; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsStyleContext__bindgen_ty_1 { + kAllResolvedStructs = 4294967295, + } extern "C" { #[link_name = "_ZN14nsStyleContext16sDependencyTableE"] pub static mut nsStyleContext_sDependencyTable: [u32; 0usize]; @@ -26247,14 +24783,9 @@ pub mod root { _ as usize } , 16usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mBits ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContext ) ) . mRefCnt as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContext ) , - "::" , stringify ! ( mRefCnt ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mFrameRefCnt as - * const _ as usize } , 28usize , concat ! ( + * const _ as usize } , 24usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mFrameRefCnt ) )); } @@ -27988,7 +26519,7 @@ pub mod root { } } #[inline] - pub fn mUsesViewportUnits(&self) -> ::std::os::raw::c_uint { + pub fn mPendingViewportChange(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28003,8 +26534,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mUsesViewportUnits(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mPendingViewportChange(&mut self, + val: ::std::os::raw::c_uint) { let mask = 1073741824u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28027,7 +26558,7 @@ pub mod root { } } #[inline] - pub fn mPendingViewportChange(&self) -> ::std::os::raw::c_uint { + pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28042,8 +26573,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPendingViewportChange(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mCounterStylesDirty(&mut self, + val: ::std::os::raw::c_uint) { let mask = 2147483648u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28066,7 +26597,7 @@ pub mod root { } } #[inline] - pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint { + pub fn mPostedFlushCounterStyles(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28081,8 +26612,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mCounterStylesDirty(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mPostedFlushCounterStyles(&mut self, + val: ::std::os::raw::c_uint) { let mask = 4294967296u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28105,7 +26636,7 @@ pub mod root { } } #[inline] - pub fn mPostedFlushCounterStyles(&self) -> ::std::os::raw::c_uint { + pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28120,8 +26651,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPostedFlushCounterStyles(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mSuppressResizeReflow(&mut self, + val: ::std::os::raw::c_uint) { let mask = 8589934592u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28144,7 +26675,7 @@ pub mod root { } } #[inline] - pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint { + pub fn mIsVisual(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28159,8 +26690,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mSuppressResizeReflow(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) { let mask = 17179869184u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28183,7 +26713,7 @@ pub mod root { } } #[inline] - pub fn mIsVisual(&self) -> ::std::os::raw::c_uint { + pub fn mFireAfterPaintEvents(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28198,7 +26728,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mFireAfterPaintEvents(&mut self, + val: ::std::os::raw::c_uint) { let mask = 34359738368u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28221,7 +26752,7 @@ pub mod root { } } #[inline] - pub fn mFireAfterPaintEvents(&self) -> ::std::os::raw::c_uint { + pub fn mIsChrome(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28236,8 +26767,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mFireAfterPaintEvents(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) { let mask = 68719476736u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28260,7 +26790,7 @@ pub mod root { } } #[inline] - pub fn mIsChrome(&self) -> ::std::os::raw::c_uint { + pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28275,7 +26805,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mIsChromeOriginImage(&mut self, + val: ::std::os::raw::c_uint) { let mask = 137438953472u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28298,7 +26829,7 @@ pub mod root { } } #[inline] - pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint { + pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28313,8 +26844,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mIsChromeOriginImage(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) { let mask = 274877906944u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28337,7 +26867,7 @@ pub mod root { } } #[inline] - pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint { + pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28352,7 +26882,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mPaintFlashingInitialized(&mut self, + val: ::std::os::raw::c_uint) { let mask = 549755813888u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28375,7 +26906,8 @@ pub mod root { } } #[inline] - pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint { + pub fn mHasWarnedAboutPositionedTableParts(&self) + -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28390,8 +26922,9 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPaintFlashingInitialized(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, + val: + ::std::os::raw::c_uint) { let mask = 1099511627776u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28414,7 +26947,7 @@ pub mod root { } } #[inline] - pub fn mHasWarnedAboutPositionedTableParts(&self) + pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; @@ -28430,9 +26963,9 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, - val: - ::std::os::raw::c_uint) { + pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius(&mut self, + val: + ::std::os::raw::c_uint) { let mask = 2199023255552u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28455,8 +26988,7 @@ pub mod root { } } #[inline] - pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) - -> ::std::os::raw::c_uint { + pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28471,9 +27003,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius(&mut self, - val: - ::std::os::raw::c_uint) { + pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) { let mask = 4398046511104u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28496,7 +27026,7 @@ pub mod root { } } #[inline] - pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint { + pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28511,7 +27041,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) { let mask = 8796093022208u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28534,7 +27064,7 @@ pub mod root { } } #[inline] - pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint { + pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28549,7 +27079,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) { let mask = 17592186044416u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28572,7 +27102,7 @@ pub mod root { } } #[inline] - pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint { + pub fn mRestyleLoggingEnabled(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28587,7 +27117,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mRestyleLoggingEnabled(&mut self, + val: ::std::os::raw::c_uint) { let mask = 35184372088832u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28610,7 +27141,7 @@ pub mod root { } } #[inline] - pub fn mRestyleLoggingEnabled(&self) -> ::std::os::raw::c_uint { + pub fn mInitialized(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28625,8 +27156,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mRestyleLoggingEnabled(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mInitialized(&mut self, val: ::std::os::raw::c_uint) { let mask = 70368744177664u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28649,44 +27179,6 @@ pub mod root { } } #[inline] - pub fn mInitialized(&self) -> ::std::os::raw::c_uint { - let mut unit_field_val: u64 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u64 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 140737488355328u64 as u64; - let val = (unit_field_val & mask) >> 47usize; - unsafe { ::std::mem::transmute(val as u32) } - } - #[inline] - pub fn set_mInitialized(&mut self, val: ::std::os::raw::c_uint) { - let mask = 140737488355328u64 as u64; - let val = val as u32 as u64; - let mut unit_field_val: u64 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u64 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 47usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] pub fn new_bitfield_1(mHasPendingInterrupt: ::std::os::raw::c_uint, mPendingInterruptFromTest: ::std::os::raw::c_uint, @@ -28723,7 +27215,6 @@ pub mod root { mIsGlyph: ::std::os::raw::c_uint, mUsesRootEMUnits: ::std::os::raw::c_uint, mUsesExChUnits: ::std::os::raw::c_uint, - mUsesViewportUnits: ::std::os::raw::c_uint, mPendingViewportChange: ::std::os::raw::c_uint, mCounterStylesDirty: ::std::os::raw::c_uint, mPostedFlushCounterStyles: @@ -28791,396 +27282,382 @@ pub mod root { ({ ({ ({ - ({ - 0 - } - | - ((mHasPendingInterrupt - as - u32 - as - u64) - << - 0usize) - & - (1u64 - as - u64)) + 0 } | - ((mPendingInterruptFromTest + ((mHasPendingInterrupt as u32 as u64) << - 1usize) + 0usize) & - (2u64 + (1u64 as u64)) } | - ((mInterruptsEnabled + ((mPendingInterruptFromTest as u32 as u64) << - 2usize) + 1usize) & - (4u64 + (2u64 as u64)) } | - ((mUseDocumentFonts + ((mInterruptsEnabled as u32 as u64) << - 3usize) + 2usize) & - (8u64 + (4u64 as u64)) } | - ((mUseDocumentColors + ((mUseDocumentFonts as u32 as u64) << - 4usize) + 3usize) & - (16u64 + (8u64 as u64)) } | - ((mUnderlineLinks + ((mUseDocumentColors as u32 as u64) << - 5usize) + 4usize) & - (32u64 + (16u64 as u64)) } | - ((mSendAfterPaintToContent + ((mUnderlineLinks as u32 as u64) << - 6usize) + 5usize) & - (64u64 + (32u64 as u64)) } | - ((mUseFocusColors + ((mSendAfterPaintToContent as u32 as u64) << - 7usize) + 6usize) & - (128u64 + (64u64 as u64)) } | - ((mFocusRingOnAnything + ((mUseFocusColors as u32 as u64) << - 8usize) + 7usize) & - (256u64 + (128u64 as u64)) } | - ((mFocusRingStyle + ((mFocusRingOnAnything as u32 as u64) << - 9usize) + 8usize) & - (512u64 + (256u64 as u64)) } | - ((mDrawImageBackground + ((mFocusRingStyle as u32 as u64) << - 10usize) + 9usize) & - (1024u64 + (512u64 as u64)) } | - ((mDrawColorBackground + ((mDrawImageBackground as u32 as u64) << - 11usize) + 10usize) & - (2048u64 + (1024u64 as u64)) } | - ((mNeverAnimate + ((mDrawColorBackground as u32 as u64) << - 12usize) + 11usize) & - (4096u64 + (2048u64 as u64)) } | - ((mIsRenderingOnlySelection + ((mNeverAnimate as u32 as u64) << - 13usize) + 12usize) & - (8192u64 + (4096u64 as u64)) } | - ((mPaginated + ((mIsRenderingOnlySelection as u32 as u64) << - 14usize) + 13usize) & - (16384u64 + (8192u64 as u64)) } | - ((mCanPaginatedScroll + ((mPaginated as u32 as u64) << - 15usize) + 14usize) & - (32768u64 + (16384u64 as u64)) } | - ((mDoScaledTwips + ((mCanPaginatedScroll as u32 as u64) << - 16usize) + 15usize) & - (65536u64 + (32768u64 as u64)) } | - ((mIsRootPaginatedDocument + ((mDoScaledTwips as u32 as u64) << - 17usize) + 16usize) & - (131072u64 + (65536u64 as u64)) } | - ((mPrefBidiDirection + ((mIsRootPaginatedDocument as u32 as u64) << - 18usize) + 17usize) & - (262144u64 + (131072u64 as u64)) } | - ((mPrefScrollbarSide + ((mPrefBidiDirection as u32 as u64) << - 19usize) + 18usize) & - (1572864u64 + (262144u64 as u64)) } | - ((mPendingSysColorChanged + ((mPrefScrollbarSide as u32 as u64) << - 21usize) + 19usize) & - (2097152u64 + (1572864u64 as u64)) } | - ((mPendingThemeChanged + ((mPendingSysColorChanged as u32 as u64) << - 22usize) + 21usize) & - (4194304u64 + (2097152u64 as u64)) } | - ((mPendingUIResolutionChanged + ((mPendingThemeChanged as u32 as u64) << - 23usize) + 22usize) & - (8388608u64 + (4194304u64 as u64)) } | - ((mPendingMediaFeatureValuesChanged + ((mPendingUIResolutionChanged as u32 as u64) << - 24usize) + 23usize) & - (16777216u64 + (8388608u64 as u64)) } | - ((mPrefChangePendingNeedsReflow + ((mPendingMediaFeatureValuesChanged as u32 as u64) << - 25usize) + 24usize) & - (33554432u64 + (16777216u64 as u64)) } | - ((mIsEmulatingMedia + ((mPrefChangePendingNeedsReflow as u32 as u64) << - 26usize) + 25usize) & - (67108864u64 + (33554432u64 as u64)) } | - ((mIsGlyph + ((mIsEmulatingMedia as u32 as u64) << - 27usize) + 26usize) & - (134217728u64 + (67108864u64 as u64)) } | - ((mUsesRootEMUnits + ((mIsGlyph as u32 as u64) << - 28usize) + 27usize) & - (268435456u64 + (134217728u64 as u64)) } | - ((mUsesExChUnits + ((mUsesRootEMUnits as u32 as u64) << - 29usize) + 28usize) & - (536870912u64 + (268435456u64 as u64)) } | - ((mUsesViewportUnits + ((mUsesExChUnits as u32 as u64) << - 30usize) + 29usize) & - (1073741824u64 + (536870912u64 as u64)) } @@ -29191,9 +27668,9 @@ pub mod root { as u64) << - 31usize) + 30usize) & - (2147483648u64 + (1073741824u64 as u64)) } @@ -29204,9 +27681,9 @@ pub mod root { as u64) << - 32usize) + 31usize) & - (4294967296u64 + (2147483648u64 as u64)) } @@ -29217,9 +27694,9 @@ pub mod root { as u64) << - 33usize) + 32usize) & - (8589934592u64 + (4294967296u64 as u64)) } @@ -29230,9 +27707,9 @@ pub mod root { as u64) << - 34usize) + 33usize) & - (17179869184u64 + (8589934592u64 as u64)) } | @@ -29242,9 +27719,9 @@ pub mod root { as u64) << - 35usize) + 34usize) & - (34359738368u64 + (17179869184u64 as u64)) } | @@ -29254,9 +27731,9 @@ pub mod root { as u64) << - 36usize) + 35usize) & - (68719476736u64 + (34359738368u64 as u64)) } | @@ -29266,58 +27743,59 @@ pub mod root { as u64) << - 37usize) + 36usize) & - (137438953472u64 + (68719476736u64 as u64)) } | ((mIsChromeOriginImage as u32 as u64) << - 38usize) & - (274877906944u64 + 37usize) & + (137438953472u64 as u64)) } | ((mPaintFlashing as u32 as u64) << - 39usize) & - (549755813888u64 + 38usize) & + (274877906944u64 as u64)) } | ((mPaintFlashingInitialized as u32 as u64) << - 40usize) & - (1099511627776u64 as + 39usize) & + (549755813888u64 as u64)) } | ((mHasWarnedAboutPositionedTableParts as u32 as u64) << - 41usize) & - (2199023255552u64 as u64)) + 40usize) & + (1099511627776u64 as u64)) } | ((mHasWarnedAboutTooLargeDashedOrDottedRadius - as u32 as u64) << 42usize) & - (4398046511104u64 as u64)) + as u32 as u64) << 41usize) & + (2199023255552u64 as u64)) } | ((mQuirkSheetAdded as u32 as u64) << - 43usize) & - (8796093022208u64 as u64)) + 42usize) & + (4398046511104u64 as u64)) } | - ((mNeedsPrefUpdate as u32 as u64) << 44usize) - & (17592186044416u64 as u64)) + ((mNeedsPrefUpdate as u32 as u64) << 43usize) + & (8796093022208u64 as u64)) } | - ((mHadNonBlankPaint as u32 as u64) << 45usize) & - (35184372088832u64 as u64)) + ((mHadNonBlankPaint as u32 as u64) << 44usize) & + (17592186044416u64 as u64)) } | - ((mRestyleLoggingEnabled as u32 as u64) << 46usize) & - (70368744177664u64 as u64)) + ((mRestyleLoggingEnabled as u32 as u64) << 45usize) & + (35184372088832u64 as u64)) } | - ((mInitialized as u32 as u64) << 47usize) & - (140737488355328u64 as u64)) + ((mInitialized as u32 as u64) << 46usize) & + (70368744177664u64 as u64)) } } + pub type gfxSize = [u64; 2usize]; #[repr(C)] #[derive(Debug)] pub struct nsAttrName { @@ -30008,6 +28486,1274 @@ pub mod root { ( "Alignment of " , stringify ! ( nsINodeList ) )); } /** + * Presentation shell interface. Presentation shells are the + * controlling point for managing the presentation of a document. The + * presentation shell holds a live reference to the document, the + * presentation context, the style manager, the style set and the root + * frame.

+ * + * When this object is Release'd, it will release the document, the + * presentation context, the style manager, the style set and the root + * frame. + */ + #[repr(C)] + pub struct nsIPresShell { + pub _base: root::nsISupports, + pub mDocument: root::nsCOMPtr, + pub mPresContext: root::RefPtr, + pub mStyleSet: root::mozilla::StyleSetHandle, + pub mFrameConstructor: *mut root::nsCSSFrameConstructor, + pub mViewManager: *mut root::nsViewManager, + pub mFrameArena: root::nsPresArena, + pub mSelection: root::RefPtr, + pub mFrameManager: *mut root::nsFrameManagerBase, + pub mForwardingContainer: u64, + pub mDocAccessible: *mut root::mozilla::a11y::DocAccessible, + pub mReflowContinueTimer: root::nsCOMPtr, + pub mDrawEventTargetFrame: *mut root::nsIFrame, + pub mAllocatedPointers: [u64; 6usize], + pub mPaintCount: u64, + pub mScrollPositionClampingScrollPortSize: root::nsSize, + pub mAutoWeakFrames: *mut root::AutoWeakFrame, + pub mWeakFrames: [u64; 6usize], + pub mCanvasBackgroundColor: root::nscolor, + pub mResolution: [u32; 2usize], + pub mSelectionFlags: i16, + pub mRenderFlags: root::nsIPresShell_RenderFlags, + pub _bitfield_1: [u8; 2usize], + pub mPresShellId: u32, + pub mFontSizeInflationEmPerLine: u32, + pub mFontSizeInflationMinTwips: u32, + pub mFontSizeInflationLineThreshold: u32, + pub mFontSizeInflationForceEnabled: bool, + pub mFontSizeInflationDisabledInMasterProcess: bool, + pub mFontSizeInflationEnabled: bool, + pub mFontSizeInflationEnabledIsDirty: bool, + pub mPaintingIsFrozen: bool, + pub mIsNeverPainting: bool, + pub mInFlush: bool, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsIPresShell_COMTypeInfo { + pub _address: u8, + } + pub type nsIPresShell_LayerManager = root::mozilla::layers::LayerManager; + pub type nsIPresShell_SourceSurface = root::mozilla::gfx::SourceSurface; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_eRenderFlag { + STATE_IGNORING_VIEWPORT_SCROLLING = 1, + STATE_DRAWWINDOW_NOT_FLUSHING = 2, + } + pub type nsIPresShell_RenderFlags = u8; + #[repr(u32)] + /** + * Gets nearest scrollable frame from the specified content node. The frame + * is scrollable with overflow:scroll or overflow:auto in some direction when + * aDirection is eEither. Otherwise, this returns a nearest frame that is + * scrollable in the specified direction. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_ScrollDirection { + eHorizontal = 0, + eVertical = 1, + eEither = 2, + } + #[repr(u32)] + /** + * Tell the pres shell that a frame needs to be marked dirty and needs + * Reflow. It's OK if this is an ancestor of the frame needing reflow as + * long as the ancestor chain between them doesn't cross a reflow root. + * + * The bit to add should be NS_FRAME_IS_DIRTY, NS_FRAME_HAS_DIRTY_CHILDREN + * or nsFrameState(0); passing 0 means that dirty bits won't be set on the + * frame or its ancestors/descendants, but that intrinsic widths will still + * be marked dirty. Passing aIntrinsicDirty = eResize and aBitToAdd = 0 + * would result in no work being done, so don't do that. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_IntrinsicDirty { + eResize = 0, + eTreeChange = 1, + eStyleChange = 2, + } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_ReflowRootHandling { + ePositionOrSizeChange = 0, + eNoPositionOrSizeChange = 1, + eInferFromBitToAdd = 2, + } + pub const nsIPresShell_SCROLL_TOP: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_TOP; + pub const nsIPresShell_SCROLL_BOTTOM: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; + pub const nsIPresShell_SCROLL_LEFT: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_TOP; + pub const nsIPresShell_SCROLL_RIGHT: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; + pub const nsIPresShell_SCROLL_CENTER: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_CENTER; + pub const nsIPresShell_SCROLL_MINIMUM: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_MINIMUM; + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_1 { + SCROLL_TOP = 0, + SCROLL_BOTTOM = 100, + SCROLL_CENTER = 50, + SCROLL_MINIMUM = -1, + } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_WhenToScroll { + SCROLL_ALWAYS = 0, + SCROLL_IF_NOT_VISIBLE = 1, + SCROLL_IF_NOT_FULLY_VISIBLE = 2, + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIPresShell_ScrollAxis { + pub _bindgen_opaque_blob: u32, + } + #[test] + fn bindgen_test_layout_nsIPresShell_ScrollAxis() { + assert_eq!(::std::mem::size_of::() , 4usize , + concat ! ( + "Size of: " , stringify ! ( nsIPresShell_ScrollAxis ) )); + assert_eq! (::std::mem::align_of::() , 4usize + , concat ! ( + "Alignment of " , stringify ! ( nsIPresShell_ScrollAxis ) + )); + } + impl Clone for nsIPresShell_ScrollAxis { + fn clone(&self) -> Self { *self } + } + pub const nsIPresShell_SCROLL_FIRST_ANCESTOR_ONLY: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_FIRST_ANCESTOR_ONLY; + pub const nsIPresShell_SCROLL_OVERFLOW_HIDDEN: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_OVERFLOW_HIDDEN; + pub const nsIPresShell_SCROLL_NO_PARENT_FRAMES: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_NO_PARENT_FRAMES; + pub const nsIPresShell_SCROLL_SMOOTH: root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH; + pub const nsIPresShell_SCROLL_SMOOTH_AUTO: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH_AUTO; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_2 { + SCROLL_FIRST_ANCESTOR_ONLY = 1, + SCROLL_OVERFLOW_HIDDEN = 2, + SCROLL_NO_PARENT_FRAMES = 4, + SCROLL_SMOOTH = 8, + SCROLL_SMOOTH_AUTO = 16, + } + pub const nsIPresShell_RENDER_IS_UNTRUSTED: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_IS_UNTRUSTED; + pub const nsIPresShell_RENDER_IGNORE_VIEWPORT_SCROLLING: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_IGNORE_VIEWPORT_SCROLLING; + pub const nsIPresShell_RENDER_CARET: root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_CARET; + pub const nsIPresShell_RENDER_USE_WIDGET_LAYERS: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_USE_WIDGET_LAYERS; + pub const nsIPresShell_RENDER_ASYNC_DECODE_IMAGES: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_ASYNC_DECODE_IMAGES; + pub const nsIPresShell_RENDER_DOCUMENT_RELATIVE: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_DOCUMENT_RELATIVE; + pub const nsIPresShell_RENDER_DRAWWINDOW_NOT_FLUSHING: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_DRAWWINDOW_NOT_FLUSHING; + #[repr(u32)] + /** + * Render the document into an arbitrary gfxContext + * Designed for getting a picture of a document or a piece of a document + * Note that callers will generally want to call FlushPendingNotifications + * to get an up-to-date view of the document + * @param aRect is the region to capture into the offscreen buffer, in the + * root frame's coordinate system (if aIgnoreViewportScrolling is false) + * or in the root scrolled frame's coordinate system + * (if aIgnoreViewportScrolling is true). The coordinates are in appunits. + * @param aFlags see below; + * set RENDER_IS_UNTRUSTED if the contents may be passed to malicious + * agents. E.g. we might choose not to paint the contents of sensitive widgets + * such as the file name in a file upload widget, and we might choose not + * to paint themes. + * set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore + * clipping and scrollbar painting due to scrolling in the viewport + * set RENDER_CARET to draw the caret if one would be visible + * (by default the caret is never drawn) + * set RENDER_USE_LAYER_MANAGER to force rendering to go through + * the layer manager for the window. This may be unexpectedly slow + * (if the layer manager must read back data from the GPU) or low-quality + * (if the layer manager reads back pixel data and scales it + * instead of rendering using the appropriate scaling). It may also + * slow everything down if the area rendered does not correspond to the + * normal visible area of the window. + * set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously + * decoded during rendering. + * (by default images decode synchronously with RenderDocument) + * set RENDER_DOCUMENT_RELATIVE to render the document as if there has been + * no scrolling and interpret |aRect| relative to the document instead of the + * CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set + * or the document is in ignore viewport scrolling mode + * (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling). + * @param aBackgroundColor a background color to render onto + * @param aRenderedContext the gfxContext to render to. We render so that + * one CSS pixel in the source document is rendered to one unit in the current + * transform. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_3 { + RENDER_IS_UNTRUSTED = 1, + RENDER_IGNORE_VIEWPORT_SCROLLING = 2, + RENDER_CARET = 4, + RENDER_USE_WIDGET_LAYERS = 8, + RENDER_ASYNC_DECODE_IMAGES = 16, + RENDER_DOCUMENT_RELATIVE = 32, + RENDER_DRAWWINDOW_NOT_FLUSHING = 64, + } + pub const nsIPresShell_RENDER_IS_IMAGE: root::nsIPresShell__bindgen_ty_4 = + nsIPresShell__bindgen_ty_4::RENDER_IS_IMAGE; + pub const nsIPresShell_RENDER_AUTO_SCALE: root::nsIPresShell__bindgen_ty_4 + = + nsIPresShell__bindgen_ty_4::RENDER_AUTO_SCALE; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_4 { + RENDER_IS_IMAGE = 256, + RENDER_AUTO_SCALE = 128, + } + pub const nsIPresShell_FORCE_DRAW: root::nsIPresShell__bindgen_ty_5 = + nsIPresShell__bindgen_ty_5::FORCE_DRAW; + pub const nsIPresShell_ADD_FOR_SUBDOC: root::nsIPresShell__bindgen_ty_5 = + nsIPresShell__bindgen_ty_5::ADD_FOR_SUBDOC; + pub const nsIPresShell_APPEND_UNSCROLLED_ONLY: + root::nsIPresShell__bindgen_ty_5 = + nsIPresShell__bindgen_ty_5::APPEND_UNSCROLLED_ONLY; + #[repr(u32)] + /** + * Add a solid color item to the bottom of aList with frame aFrame and bounds + * aBounds. Checks first if this needs to be done by checking if aFrame is a + * canvas frame (if the FORCE_DRAW flag is passed then this check is skipped). + * aBackstopColor is composed behind the background color of the canvas, it is + * transparent by default. + * We attempt to make the background color part of the scrolled canvas (to reduce + * transparent layers), and if async scrolling is enabled (and the background + * is opaque) then we add a second, unscrolled item to handle the checkerboarding + * case. + * ADD_FOR_SUBDOC shoud be specified when calling this for a subdocument, and + * LayoutUseContainersForRootFrame might cause the whole list to be scrolled. In + * that case the second unscrolled item will be elided. + * APPEND_UNSCROLLED_ONLY only attempts to add the unscrolled item, so that we + * can add it manually after LayoutUseContainersForRootFrame has built the + * scrolling ContainerLayer. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_5 { + FORCE_DRAW = 1, + ADD_FOR_SUBDOC = 2, + APPEND_UNSCROLLED_ONLY = 4, + } + #[repr(C)] + pub struct nsIPresShell_PointerCaptureInfo { + pub mPendingContent: root::nsCOMPtr, + pub mOverrideContent: root::nsCOMPtr, + } + #[test] + fn bindgen_test_layout_nsIPresShell_PointerCaptureInfo() { + assert_eq!(::std::mem::size_of::() , + 16usize , concat ! ( + "Size of: " , stringify ! ( nsIPresShell_PointerCaptureInfo + ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + nsIPresShell_PointerCaptureInfo ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . + mPendingContent as * const _ as usize } , 0usize , concat + ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( + mPendingContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . + mOverrideContent as * const _ as usize } , 8usize , concat + ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( + mOverrideContent ) )); + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIPresShell_PointerInfo { + pub mPointerType: u16, + pub mActiveState: bool, + pub mPrimaryState: bool, + pub mPreventMouseEventByContent: bool, + } + #[test] + fn bindgen_test_layout_nsIPresShell_PointerInfo() { + assert_eq!(::std::mem::size_of::() , 6usize + , concat ! ( + "Size of: " , stringify ! ( nsIPresShell_PointerInfo ) )); + assert_eq! (::std::mem::align_of::() , + 2usize , concat ! ( + "Alignment of " , stringify ! ( nsIPresShell_PointerInfo ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mPointerType as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mPointerType ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mActiveState as * const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mActiveState ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mPrimaryState as * const _ as usize } , 3usize , concat ! + ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mPrimaryState ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mPreventMouseEventByContent as * const _ as usize } , + 4usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mPreventMouseEventByContent ) )); + } + impl Clone for nsIPresShell_PointerInfo { + fn clone(&self) -> Self { *self } + } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_PaintFlags { + PAINT_LAYERS = 1, + PAINT_COMPOSITE = 2, + PAINT_SYNC_DECODE_IMAGES = 4, + } + #[repr(u32)] + /** + * Ensures that the refresh driver is running, and schedules a view + * manager flush on the next tick. + * + * @param aType PAINT_DELAYED_COMPRESS : Schedule a paint to be executed after a delay, and + * put FrameLayerBuilder in 'compressed' mode that avoids short cut optimizations. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_PaintType { + PAINT_DEFAULT = 0, + PAINT_DELAYED_COMPRESS = 1, + } + extern "C" { + #[link_name = "_ZN12nsIPresShell12gCaptureInfoE"] + pub static mut nsIPresShell_gCaptureInfo: root::CapturingContentInfo; + } + extern "C" { + #[link_name = "_ZN12nsIPresShell14gKeyDownTargetE"] + pub static mut nsIPresShell_gKeyDownTarget: *mut root::nsIContent; + } + #[test] + fn bindgen_test_layout_nsIPresShell() { + assert_eq!(::std::mem::size_of::() , 5456usize , concat + ! ( "Size of: " , stringify ! ( nsIPresShell ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsIPresShell ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mDocument as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mDocument ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPresContext as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mStyleSet as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mStyleSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mFrameConstructor + as * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFrameConstructor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mViewManager as * + const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mViewManager ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mFrameArena as * + const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFrameArena ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mSelection as * + const _ as usize } , 5240usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mSelection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mFrameManager as * + const _ as usize } , 5248usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFrameManager ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mForwardingContainer as * const _ as usize } , 5256usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mForwardingContainer ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mDocAccessible as + * const _ as usize } , 5264usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mDocAccessible ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mReflowContinueTimer as * const _ as usize } , 5272usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mReflowContinueTimer ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mDrawEventTargetFrame as * const _ as usize } , 5280usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mDrawEventTargetFrame ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mAllocatedPointers + as * const _ as usize } , 5288usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mAllocatedPointers ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPaintCount as * + const _ as usize } , 5336usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPaintCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mScrollPositionClampingScrollPortSize as * const _ as + usize } , 5344usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mScrollPositionClampingScrollPortSize + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mAutoWeakFrames as + * const _ as usize } , 5352usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mAutoWeakFrames ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mWeakFrames as * + const _ as usize } , 5360usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mWeakFrames ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mCanvasBackgroundColor as * const _ as usize } , 5408usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mCanvasBackgroundColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mResolution as * + const _ as usize } , 5412usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mResolution ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as + * const _ as usize } , 5420usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mSelectionFlags ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as * + const _ as usize } , 5422usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mRenderFlags ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as * + const _ as usize } , 5428usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPresShellId ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationEmPerLine as * const _ as usize } , + 5432usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationEmPerLine ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationMinTwips as * const _ as usize } , + 5436usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationMinTwips ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationLineThreshold as * const _ as usize } , + 5440usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationLineThreshold ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationForceEnabled as * const _ as usize } , + 5444usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationForceEnabled ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationDisabledInMasterProcess as * const _ as + usize } , 5445usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( + mFontSizeInflationDisabledInMasterProcess ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationEnabled as * const _ as usize } , + 5446usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationEnabled ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationEnabledIsDirty as * const _ as usize } , + 5447usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationEnabledIsDirty ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen + as * const _ as usize } , 5448usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPaintingIsFrozen ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting + as * const _ as usize } , 5449usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mIsNeverPainting ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mInFlush as * + const _ as usize } , 5450usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mInFlush ) )); + } + impl nsIPresShell { + #[inline] + pub fn mDidInitialize(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1u64 as u16; + let val = (unit_field_val & mask) >> 0usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mDidInitialize(&mut self, val: bool) { + let mask = 1u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 0usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsDestroying(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2u64 as u16; + let val = (unit_field_val & mask) >> 1usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsDestroying(&mut self, val: bool) { + let mask = 2u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 1usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsReflowing(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 4u64 as u16; + let val = (unit_field_val & mask) >> 2usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsReflowing(&mut self, val: bool) { + let mask = 4u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 2usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mPaintingSuppressed(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 8u64 as u16; + let val = (unit_field_val & mask) >> 3usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mPaintingSuppressed(&mut self, val: bool) { + let mask = 8u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 3usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsActive(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 16u64 as u16; + let val = (unit_field_val & mask) >> 4usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsActive(&mut self, val: bool) { + let mask = 16u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 4usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mFrozen(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 32u64 as u16; + let val = (unit_field_val & mask) >> 5usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mFrozen(&mut self, val: bool) { + let mask = 32u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 5usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsFirstPaint(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 64u64 as u16; + let val = (unit_field_val & mask) >> 6usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsFirstPaint(&mut self, val: bool) { + let mask = 64u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 6usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mObservesMutationsForPrint(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 128u64 as u16; + let val = (unit_field_val & mask) >> 7usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mObservesMutationsForPrint(&mut self, val: bool) { + let mask = 128u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 7usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mSuppressInterruptibleReflows(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 256u64 as u16; + let val = (unit_field_val & mask) >> 8usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mSuppressInterruptibleReflows(&mut self, val: bool) { + let mask = 256u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 8usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mScrollPositionClampingScrollPortSizeSet(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 512u64 as u16; + let val = (unit_field_val & mask) >> 9usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mScrollPositionClampingScrollPortSizeSet(&mut self, + val: bool) { + let mask = 512u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 9usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mNeedLayoutFlush(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1024u64 as u16; + let val = (unit_field_val & mask) >> 10usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mNeedLayoutFlush(&mut self, val: bool) { + let mask = 1024u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 10usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mNeedStyleFlush(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2048u64 as u16; + let val = (unit_field_val & mask) >> 11usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mNeedStyleFlush(&mut self, val: bool) { + let mask = 2048u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 11usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mObservingStyleFlushes(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 4096u64 as u16; + let val = (unit_field_val & mask) >> 12usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mObservingStyleFlushes(&mut self, val: bool) { + let mask = 4096u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 12usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mObservingLayoutFlushes(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 8192u64 as u16; + let val = (unit_field_val & mask) >> 13usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mObservingLayoutFlushes(&mut self, val: bool) { + let mask = 8192u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 13usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mNeedThrottledAnimationFlush(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 16384u64 as u16; + let val = (unit_field_val & mask) >> 14usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) { + let mask = 16384u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 14usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn new_bitfield_1(mDidInitialize: bool, mIsDestroying: bool, + mIsReflowing: bool, mPaintingSuppressed: bool, + mIsActive: bool, mFrozen: bool, + mIsFirstPaint: bool, + mObservesMutationsForPrint: bool, + mSuppressInterruptibleReflows: bool, + mScrollPositionClampingScrollPortSizeSet: bool, + mNeedLayoutFlush: bool, mNeedStyleFlush: bool, + mObservingStyleFlushes: bool, + mObservingLayoutFlushes: bool, + mNeedThrottledAnimationFlush: bool) -> u16 { + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + 0 + } + | + ((mDidInitialize + as + u8 + as + u16) + << + 0usize) + & + (1u64 + as + u16)) + } + | + ((mIsDestroying + as + u8 + as + u16) + << + 1usize) + & + (2u64 + as + u16)) + } | + ((mIsReflowing + as + u8 + as + u16) + << + 2usize) + & + (4u64 + as + u16)) + } | + ((mPaintingSuppressed + as + u8 + as + u16) + << + 3usize) + & + (8u64 + as + u16)) + } | + ((mIsActive + as u8 + as + u16) + << + 4usize) + & + (16u64 + as + u16)) + } | + ((mFrozen as u8 + as u16) << + 5usize) & + (32u64 as + u16)) + } | + ((mIsFirstPaint as u8 + as u16) << + 6usize) & + (64u64 as u16)) + } | + ((mObservesMutationsForPrint + as u8 as u16) << + 7usize) & + (128u64 as u16)) + } | + ((mSuppressInterruptibleReflows + as u8 as u16) << 8usize) + & (256u64 as u16)) + } | + ((mScrollPositionClampingScrollPortSizeSet + as u8 as u16) << 9usize) & + (512u64 as u16)) + } | + ((mNeedLayoutFlush as u8 as u16) << + 10usize) & (1024u64 as u16)) + } | + ((mNeedStyleFlush as u8 as u16) << 11usize) & + (2048u64 as u16)) + } | + ((mObservingStyleFlushes as u8 as u16) << 12usize) + & (4096u64 as u16)) + } | + ((mObservingLayoutFlushes as u8 as u16) << 13usize) & + (8192u64 as u16)) + } | + ((mNeedThrottledAnimationFlush as u8 as u16) << 14usize) & + (16384u64 as u16)) + } + } + /** * A class that implements nsIWeakReference */ #[repr(C)] @@ -30050,57 +29796,62 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_85 = - _bindgen_ty_85::NODE_TYPE_SPECIFIC_BITS_OFFSET; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsRange { + _unused: [u8; 0], + } + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_IS_EDITABLE; + pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_IS_NATIVE_ANONYMOUS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_77 = + _bindgen_ty_77::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_85 { + pub enum _bindgen_ty_77 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -30527,6 +30278,7 @@ pub mod root { impl Clone for nsFrameManagerBase { fn clone(&self) -> Self { *self } } + pub type nsIntRect = root::mozilla::gfx::IntRect; #[repr(C)] #[derive(Debug, Copy)] pub struct nsIWeakReference { @@ -31038,6 +30790,106 @@ pub mod root { TEXT_IN_OFFSET_CACHE = 9223372036854775808, } #[repr(C)] + #[derive(Debug, Copy)] + pub struct pixman_region32_data { + pub size: ::std::os::raw::c_long, + pub numRects: ::std::os::raw::c_long, + } + #[test] + fn bindgen_test_layout_pixman_region32_data() { + assert_eq!(::std::mem::size_of::() , 16usize , + concat ! ( + "Size of: " , stringify ! ( pixman_region32_data ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( pixman_region32_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32_data ) ) . size as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + pixman_region32_data ) , "::" , stringify ! ( size ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32_data ) ) . numRects + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( + pixman_region32_data ) , "::" , stringify ! ( numRects ) + )); + } + impl Clone for pixman_region32_data { + fn clone(&self) -> Self { *self } + } + pub type pixman_region32_data_t = root::pixman_region32_data; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct pixman_box32 { + pub x1: i32, + pub y1: i32, + pub x2: i32, + pub y2: i32, + } + #[test] + fn bindgen_test_layout_pixman_box32() { + assert_eq!(::std::mem::size_of::() , 16usize , concat ! + ( "Size of: " , stringify ! ( pixman_box32 ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( pixman_box32 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . x1 as * const _ as + usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( x1 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . y1 as * const _ as + usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( y1 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . x2 as * const _ as + usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( x2 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . y2 as * const _ as + usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( y2 ) )); + } + impl Clone for pixman_box32 { + fn clone(&self) -> Self { *self } + } + pub type pixman_box32_t = root::pixman_box32; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct pixman_region32 { + pub extents: root::pixman_box32_t, + pub data: *mut root::pixman_region32_data_t, + } + #[test] + fn bindgen_test_layout_pixman_region32() { + assert_eq!(::std::mem::size_of::() , 24usize , concat + ! ( "Size of: " , stringify ! ( pixman_region32 ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( pixman_region32 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32 ) ) . extents as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_region32 ) , + "::" , stringify ! ( extents ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32 ) ) . data as * const + _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_region32 ) , + "::" , stringify ! ( data ) )); + } + impl Clone for pixman_region32 { + fn clone(&self) -> Self { *self } + } + pub type pixman_region32_t = root::pixman_region32; + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum VisitSide { TOP = 0, BOTTOM = 1, LEFT = 2, RIGHT = 3, } + #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct gfxContext { _unused: [u8; 0], @@ -32375,11 +32227,6 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct nsRange { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct nsSMILAnimationController { _unused: [u8; 0], } @@ -35092,14 +34939,13 @@ pub mod root { pub mURI: root::RefPtr, pub mListener: *mut root::imgINotificationObserver, pub mLoadGroup: root::nsCOMPtr, + pub mTabGroup: root::RefPtr, + pub mEventTarget: root::nsCOMPtr, pub mLoadFlags: root::nsLoadFlags, pub mLockCount: u32, pub mAnimationConsumers: u32, - pub mCanceled: bool, - pub mIsInLoadGroup: bool, - pub mListenerIsStrongRef: bool, - pub mDecodeRequested: bool, - pub mDeferNotifications: bool, + pub _bitfield_1: u8, + pub __bindgen_padding_0: [u8; 3usize], } pub type imgRequestProxy_Image = root::mozilla::image::Image; pub type imgRequestProxy_ImageURL = root::mozilla::image::ImageURL; @@ -35138,13 +34984,311 @@ pub mod root { } #[test] fn bindgen_test_layout_imgRequestProxy() { - assert_eq!(::std::mem::size_of::() , 120usize , + assert_eq!(::std::mem::size_of::() , 128usize , concat ! ( "Size of: " , stringify ! ( imgRequestProxy ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( imgRequestProxy ) )); } + impl imgRequestProxy { + #[inline] + pub fn mCanceled(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1u64 as u8; + let val = (unit_field_val & mask) >> 0usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mCanceled(&mut self, val: bool) { + let mask = 1u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 0usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsInLoadGroup(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2u64 as u8; + let val = (unit_field_val & mask) >> 1usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsInLoadGroup(&mut self, val: bool) { + let mask = 2u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 1usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mListenerIsStrongRef(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 4u64 as u8; + let val = (unit_field_val & mask) >> 2usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mListenerIsStrongRef(&mut self, val: bool) { + let mask = 4u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 2usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mDecodeRequested(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 8u64 as u8; + let val = (unit_field_val & mask) >> 3usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mDecodeRequested(&mut self, val: bool) { + let mask = 8u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 3usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mDeferNotifications(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 16u64 as u8; + let val = (unit_field_val & mask) >> 4usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mDeferNotifications(&mut self, val: bool) { + let mask = 16u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 4usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mHadListener(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 32u64 as u8; + let val = (unit_field_val & mask) >> 5usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mHadListener(&mut self, val: bool) { + let mask = 32u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 5usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mHadDispatch(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 64u64 as u8; + let val = (unit_field_val & mask) >> 6usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mHadDispatch(&mut self, val: bool) { + let mask = 64u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 6usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn new_bitfield_1(mCanceled: bool, mIsInLoadGroup: bool, + mListenerIsStrongRef: bool, + mDecodeRequested: bool, + mDeferNotifications: bool, mHadListener: bool, + mHadDispatch: bool) -> u8 { + ({ + ({ + ({ + ({ + ({ + ({ + ({ 0 } | + ((mCanceled as u8 as u8) << + 0usize) & (1u64 as u8)) + } | + ((mIsInLoadGroup as u8 as u8) << + 1usize) & (2u64 as u8)) + } | + ((mListenerIsStrongRef as u8 as u8) << + 2usize) & (4u64 as u8)) + } | + ((mDecodeRequested as u8 as u8) << 3usize) & + (8u64 as u8)) + } | + ((mDeferNotifications as u8 as u8) << 4usize) & + (16u64 as u8)) + } | ((mHadListener as u8 as u8) << 5usize) & (32u64 as u8)) + } | ((mHadDispatch as u8 as u8) << 6usize) & (64u64 as u8)) + } + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSUnit { @@ -39349,46 +39493,46 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_1; pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_87 + root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_79 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_87 = - _bindgen_ty_87::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; + pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_PENDING_RESTYLE_FLAGS; + pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; + pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_ALL_RESTYLE_FLAGS; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_79 = + _bindgen_ty_79::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_87 { + pub enum _bindgen_ty_79 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -40041,7 +40185,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_90() { + fn __bindgen_test_layout_IntegralConstant_instantiation_82() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40050,7 +40194,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_91() { + fn __bindgen_test_layout_IntegralConstant_instantiation_83() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40059,7 +40203,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_92() { + fn __bindgen_test_layout_nsCharTraits_instantiation_84() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40070,7 +40214,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_93() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_85() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40081,7 +40225,7 @@ pub mod root { root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_94() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_86() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40092,7 +40236,7 @@ pub mod root { root::nsWritingIterator ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_95() { + fn __bindgen_test_layout_nsCharTraits_instantiation_87() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40103,7 +40247,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_96() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_88() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40114,7 +40258,7 @@ pub mod root { root::nsReadingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_97() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_89() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40125,7 +40269,7 @@ pub mod root { root::nsWritingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_98() { + fn __bindgen_test_layout_nsCharTraits_instantiation_90() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40136,7 +40280,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_99() { + fn __bindgen_test_layout_nsCharTraits_instantiation_91() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40147,7 +40291,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_221270_instantiation_100() { + fn __bindgen_test_layout__bindgen_ty_id_196644_instantiation_92() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40156,7 +40300,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_221306_instantiation_101() { + fn __bindgen_test_layout__bindgen_ty_id_196680_instantiation_93() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40165,7 +40309,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_102() { + fn __bindgen_test_layout_nsTArray_instantiation_94() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40176,7 +40320,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_103() { + fn __bindgen_test_layout_Handle_instantiation_95() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40187,7 +40331,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_104() { + fn __bindgen_test_layout_Handle_instantiation_96() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40198,7 +40342,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_105() { + fn __bindgen_test_layout_Handle_instantiation_97() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40209,7 +40353,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_106() { + fn __bindgen_test_layout_MutableHandle_instantiation_98() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40220,7 +40364,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_107() { + fn __bindgen_test_layout_Rooted_instantiation_99() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40231,7 +40375,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_108() { + fn __bindgen_test_layout_DeletePolicy_instantiation_100() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40242,6 +40386,94 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_101() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_102() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_103() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_104() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_105() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_106() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_107() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_BaseTimeDuration_instantiation_108() { + assert_eq!(::std::mem::size_of::() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::BaseTimeDuration ) )); + assert_eq!(::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::BaseTimeDuration ) )); + } + #[test] fn __bindgen_test_layout_nsTArray_instantiation_109() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40253,348 +40485,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_110() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_111() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::std::os::raw::c_uint> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::std::os::raw::c_uint> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_112() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::std::os::raw::c_uint> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::std::os::raw::c_uint> ) )); - } - #[test] - fn __bindgen_test_layout_PointTyped_instantiation_113() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_114() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_SizeTyped_instantiation_115() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_RectTyped_instantiation_116() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_117() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntSizeTyped_instantiation_118() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_119() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_MarginTyped_instantiation_120() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_RectTyped_instantiation_121() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_122() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactor_instantiation_123() { - assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( - "Size of template specialization: " , stringify ! ( u32 ) - )); - assert_eq!(::std::mem::align_of::() , 4usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u32 ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_124() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_125() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_126() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_127() { - assert_eq!(::std::mem::size_of::() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::BaseTimeDuration ) )); - assert_eq!(::std::mem::align_of::() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::BaseTimeDuration ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_128() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_129() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_130() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_131() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_132() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_133() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] - fn __bindgen_test_layout_WeakPtr_instantiation_134() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_135() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey<::std::os::raw::c_void> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey<::std::os::raw::c_void> ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_136() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_137() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_138() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_139() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_140() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_141() { + fn __bindgen_test_layout_TErrorResult_instantiation_110() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40605,7 +40496,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_142() { + fn __bindgen_test_layout_TErrorResult_instantiation_111() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40616,7 +40507,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_143() { + fn __bindgen_test_layout_already_AddRefed_instantiation_112() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40627,7 +40518,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_144() { + fn __bindgen_test_layout_Handle_instantiation_113() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40638,7 +40529,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_145() { + fn __bindgen_test_layout_MutableHandle_instantiation_114() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40649,7 +40540,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_146() { + fn __bindgen_test_layout_Handle_instantiation_115() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40660,7 +40551,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_147() { + fn __bindgen_test_layout_nsTArray_instantiation_116() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40671,7 +40562,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_148() { + fn __bindgen_test_layout_Handle_instantiation_117() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40682,7 +40573,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_149() { + fn __bindgen_test_layout_RefPtr_instantiation_118() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40693,7 +40584,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_150() { + fn __bindgen_test_layout_Handle_instantiation_119() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40704,7 +40595,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_151() { + fn __bindgen_test_layout_Handle_instantiation_120() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40715,7 +40606,18 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_152() { + fn __bindgen_test_layout_DefaultDelete_instantiation_121() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_122() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40726,6 +40628,334 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_123() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_124() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_125() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_126() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_127() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_128() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_129() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_130() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_131() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_132() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_133() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_134() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_135() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_136() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_137() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_138() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_139() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_iterator_instantiation_140() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::std::iterator ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::std::iterator ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_141() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_142() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_143() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_144() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_145() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_146() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_147() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_148() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_149() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_Heap_instantiation_150() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Heap ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Heap ) )); + } + #[test] + fn __bindgen_test_layout_Heap_instantiation_151() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Heap<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Heap<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_TenuredHeap_instantiation_152() { + assert_eq!(::std::mem::size_of::() , 8usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::TenuredHeap ) )); + assert_eq!(::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::TenuredHeap ) )); + } + #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_153() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40737,315 +40967,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_154() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_155() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_156() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_157() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_158() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_159() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_160() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_161() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_162() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_163() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_164() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_165() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_166() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_167() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_iterator_instantiation_168() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::std::iterator ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::std::iterator ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_169() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_170() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_171() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_172() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_173() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_174() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_175() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_176() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_177() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_Heap_instantiation_178() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Heap ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Heap ) )); - } - #[test] - fn __bindgen_test_layout_Heap_instantiation_179() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Heap<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Heap<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_180() { - assert_eq!(::std::mem::size_of::() , 8usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::TenuredHeap ) )); - assert_eq!(::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::TenuredHeap ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_181() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_182() { + fn __bindgen_test_layout_NotNull_instantiation_154() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41058,7 +40980,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_183() { + fn __bindgen_test_layout_nsTArray_instantiation_155() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41071,7 +40993,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_184() { + fn __bindgen_test_layout_RefPtr_instantiation_156() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41082,7 +41004,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_185() { + fn __bindgen_test_layout_nsTArray_instantiation_157() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41095,7 +41017,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_186() { + fn __bindgen_test_layout_RefPtr_instantiation_158() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41106,7 +41028,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_187() { + fn __bindgen_test_layout_nsTArray_instantiation_159() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41119,7 +41041,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_188() { + fn __bindgen_test_layout_nsTArray_instantiation_160() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41130,7 +41052,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_189() { + fn __bindgen_test_layout_RefPtr_instantiation_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41141,7 +41063,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_190() { + fn __bindgen_test_layout_nsTArray_instantiation_162() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41154,7 +41076,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_191() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_163() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41165,7 +41087,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_192() { + fn __bindgen_test_layout_nsTArray_instantiation_164() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41176,7 +41098,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_193() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_165() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41187,7 +41109,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_194() { + fn __bindgen_test_layout_already_AddRefed_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41198,7 +41120,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_195() { + fn __bindgen_test_layout_already_AddRefed_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41209,7 +41131,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_196() { + fn __bindgen_test_layout_RefPtr_instantiation_168() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41220,7 +41142,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_197() { + fn __bindgen_test_layout_nsTArray_instantiation_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41231,7 +41153,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_198() { + fn __bindgen_test_layout_already_AddRefed_instantiation_170() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41242,7 +41164,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_199() { + fn __bindgen_test_layout_MutableHandle_instantiation_171() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41253,7 +41175,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_200() { + fn __bindgen_test_layout_already_AddRefed_instantiation_172() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41264,7 +41186,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_201() { + fn __bindgen_test_layout_already_AddRefed_instantiation_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41275,7 +41197,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_202() { + fn __bindgen_test_layout_already_AddRefed_instantiation_174() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41286,7 +41208,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_203() { + fn __bindgen_test_layout_RefPtr_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41297,7 +41219,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_204() { + fn __bindgen_test_layout_nsTArray_instantiation_176() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41310,7 +41232,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_205() { + fn __bindgen_test_layout_Handle_instantiation_177() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41321,7 +41243,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_206() { + fn __bindgen_test_layout_already_AddRefed_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41332,7 +41254,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_207() { + fn __bindgen_test_layout_already_AddRefed_instantiation_179() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41343,7 +41265,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_208() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_180() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41354,7 +41276,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_209() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41365,7 +41287,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_210() { + fn __bindgen_test_layout_RefPtr_instantiation_182() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41376,7 +41298,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_211() { + fn __bindgen_test_layout_nsTArray_instantiation_183() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41389,6 +41311,322 @@ pub mod root { )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_184() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_185() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_186() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_187() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_188() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_189() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_190() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_191() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_192() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_193() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_194() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_195() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_196() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_197() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_198() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_199() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsRefPtrHashKey + ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsRefPtrHashKey + ) )); + } + #[test] + fn __bindgen_test_layout_nsDataHashtable_instantiation_200() { + assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 6usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 6usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 6usize] ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_201() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_202() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_nsTHashtable_instantiation_203() { + assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 6usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 6usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 6usize] ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_204() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_205() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_206() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_207() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_208() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_209() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_210() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_211() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] fn __bindgen_test_layout_nsTArray_instantiation_212() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41400,141 +41638,110 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_213() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_RefPtr_instantiation_213() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_214() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_214() { + assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::nsTArray> + ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_215() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsCOMPtr_instantiation_215() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_216() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_216() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + u64 ) )); } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_217() { - assert_eq!(::std::mem::size_of::>() + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_218() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_218() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_NotNull_instantiation_219() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_219() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_220() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_220() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_221() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_221() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_222() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_223() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_224() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_225() { + fn __bindgen_test_layout_DefaultDelete_instantiation_222() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41545,50 +41752,81 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_226() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_223() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); + root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_227() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsCOMPtr_instantiation_224() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); + root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_228() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_225() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( + root::nsTArray> ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); + root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_229() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_226() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_227() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_228() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_229() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_230() { @@ -41602,15 +41840,15 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_231() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( + fn __bindgen_test_layout_Handle_instantiation_231() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); + root::JS::Handle<*mut root::JSObject> ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_232() { @@ -41635,411 +41873,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_234() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_235() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsRefPtrHashKey - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsRefPtrHashKey - ) )); - } - #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_236() { - assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 6usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 6usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 6usize] ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_237() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_238() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_nsTHashtable_instantiation_239() { - assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 6usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 6usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 6usize] ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_240() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_241() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_242() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_243() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_244() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_245() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_246() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_247() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_248() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_249() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_250() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_251() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_252() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_253() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_254() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_255() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_256() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_257() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_258() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_259() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_260() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_261() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_262() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_263() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_264() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_265() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_266() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_267() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_268() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_269() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_270() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_234() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42050,7 +41884,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_271() { + fn __bindgen_test_layout_already_AddRefed_instantiation_235() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42061,7 +41895,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_272() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_236() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42072,7 +41906,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_273() { + fn __bindgen_test_layout_Handle_instantiation_237() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42083,7 +41917,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_274() { + fn __bindgen_test_layout_nsTArray_instantiation_238() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42094,205 +41928,108 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_275() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_239() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_276() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - } - #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_277() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - } - #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_278() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_279() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_240() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_280() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_241() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_281() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_RefPtr_instantiation_242() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_282() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_243() { + assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::nsTArray> ) + )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_283() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_284() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_RefPtr_instantiation_244() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_285() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_286() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_245() { + assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::nsTArray> ) + )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_287() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_WeakPtr_instantiation_246() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_247() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_288() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_289() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_290() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_291() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_292() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_293() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42303,7 +42040,379 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_294() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_249() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_250() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_OwningNonNull_instantiation_251() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::OwningNonNull ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::OwningNonNull ) )); + } + #[test] + fn __bindgen_test_layout_OwningNonNull_instantiation_252() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::OwningNonNull ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::OwningNonNull ) )); + } + #[test] + fn __bindgen_test_layout_OwningNonNull_instantiation_253() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::OwningNonNull ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::OwningNonNull ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_254() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_255() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_256() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_257() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_258() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_259() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_260() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_261() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_262() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_263() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_264() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_265() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_266() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_267() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsPtrHashKey_instantiation_268() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey<::std::os::raw::c_void> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey<::std::os::raw::c_void> ) )); + } + #[test] + fn __bindgen_test_layout_PointTyped_instantiation_269() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntPointTyped_instantiation_270() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_SizeTyped_instantiation_271() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_RectTyped_instantiation_272() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntPointTyped_instantiation_273() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntSizeTyped_instantiation_274() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntRectTyped_instantiation_275() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_MarginTyped_instantiation_276() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_RectTyped_instantiation_277() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntRectTyped_instantiation_278() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactor_instantiation_279() { + assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( + "Size of template specialization: " , stringify ! ( u32 ) + )); + assert_eq!(::std::mem::align_of::() , 4usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u32 ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactors2D_instantiation_280() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactors2D_instantiation_281() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactors2D_instantiation_282() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42314,7 +42423,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_295() { + fn __bindgen_test_layout_already_AddRefed_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42325,7 +42434,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_296() { + fn __bindgen_test_layout_NotNull_instantiation_285() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42338,7 +42447,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_297() { + fn __bindgen_test_layout_already_AddRefed_instantiation_286() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42349,7 +42458,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_298() { + fn __bindgen_test_layout_already_AddRefed_instantiation_287() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42361,14 +42470,14 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy)] - pub struct _bindgen_ty_53 { + pub struct _bindgen_ty_46 { pub _address: u8, } - impl Clone for _bindgen_ty_53 { + impl Clone for _bindgen_ty_46 { fn clone(&self) -> Self { *self } } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_299() { + fn __bindgen_test_layout_already_AddRefed_instantiation_288() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42379,7 +42488,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_300() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_289() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42390,7 +42499,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_301() { + fn __bindgen_test_layout_MutableHandle_instantiation_290() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42401,7 +42510,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_302() { + fn __bindgen_test_layout_MutableHandle_instantiation_291() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42412,7 +42521,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_303() { + fn __bindgen_test_layout_already_AddRefed_instantiation_292() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42423,7 +42532,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_304() { + fn __bindgen_test_layout_DefaultDelete_instantiation_293() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42434,7 +42543,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_305() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_294() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42445,7 +42554,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_306() { + fn __bindgen_test_layout_Rooted_instantiation_295() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42456,7 +42565,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_307() { + fn __bindgen_test_layout_Rooted_instantiation_296() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42467,7 +42576,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_308() { + fn __bindgen_test_layout_already_AddRefed_instantiation_297() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42478,7 +42587,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_309() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_298() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42489,7 +42598,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_310() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_299() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42500,7 +42609,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_311() { + fn __bindgen_test_layout_NotNull_instantiation_300() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42513,7 +42622,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_312() { + fn __bindgen_test_layout_nsTArray_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42524,7 +42633,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_313() { + fn __bindgen_test_layout_Handle_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42535,7 +42644,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_314() { + fn __bindgen_test_layout_MutableHandle_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42546,6 +42655,129 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_304() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_305() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_306() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_307() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_308() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_309() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_310() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_311() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_312() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_313() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_314() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] fn __bindgen_test_layout_Handle_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42557,130 +42789,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_316() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_317() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_318() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_319() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_320() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_321() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_322() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_323() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_324() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_325() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_326() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_327() { + fn __bindgen_test_layout_nsTArray_instantiation_316() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42691,7 +42800,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_328() { + fn __bindgen_test_layout_RefPtr_instantiation_317() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42704,7 +42813,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_329() { + fn __bindgen_test_layout_nsTArray_instantiation_318() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42717,7 +42826,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_330() { + fn __bindgen_test_layout_RefPtr_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42730,7 +42839,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_331() { + fn __bindgen_test_layout_UniquePtr_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42741,7 +42850,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_332() { + fn __bindgen_test_layout_nsTArray_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42752,7 +42861,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_333() { + fn __bindgen_test_layout_Handle_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42763,7 +42872,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_334() { + fn __bindgen_test_layout_MutableHandle_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42774,7 +42883,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_335() { + fn __bindgen_test_layout_Handle_instantiation_324() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42785,7 +42894,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_336() { + fn __bindgen_test_layout_MutableHandle_instantiation_325() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42796,7 +42905,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_337() { + fn __bindgen_test_layout_already_AddRefed_instantiation_326() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42807,7 +42916,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_338() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_327() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42818,7 +42927,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_339() { + fn __bindgen_test_layout_OwningNonNull_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42831,7 +42940,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_340() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42842,7 +42951,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_341() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42853,7 +42962,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_342() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42864,6 +42973,127 @@ pub mod root { root::nsCOMPtr ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_332() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_333() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_334() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_335() { + assert_eq!(::std::mem::size_of::>() + , 40usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsMainThreadPtrHolder ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsMainThreadPtrHolder ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_336() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_337() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_338() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_339() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_340() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsPtrHashKey_instantiation_341() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_342() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_343() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -42875,117 +43105,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_344() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_345() { - assert_eq!(::std::mem::size_of::>() - , 40usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_346() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_347() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_348() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_349() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_350() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_351() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_352() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_353() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_354() { + fn __bindgen_test_layout_UniquePtr_instantiation_344() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42996,7 +43116,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_355() { + fn __bindgen_test_layout_DefaultDelete_instantiation_345() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43007,7 +43127,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_356() { + fn __bindgen_test_layout_UniquePtr_instantiation_346() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43018,7 +43138,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_357() { + fn __bindgen_test_layout_already_AddRefed_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43029,7 +43149,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_358() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_348() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -43038,7 +43158,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_359() { + fn __bindgen_test_layout_nsTArray_instantiation_349() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43049,7 +43169,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_360() { + fn __bindgen_test_layout_nsTArray_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43060,7 +43180,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_361() { + fn __bindgen_test_layout_already_AddRefed_instantiation_351() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43071,7 +43191,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_362() { + fn __bindgen_test_layout_Maybe_instantiation_352() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43082,7 +43202,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_363() { + fn __bindgen_test_layout_Maybe_instantiation_353() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43093,7 +43213,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_364() { + fn __bindgen_test_layout_already_AddRefed_instantiation_354() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43104,7 +43224,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_365() { + fn __bindgen_test_layout_already_AddRefed_instantiation_355() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43115,7 +43235,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_366() { + fn __bindgen_test_layout_DefaultDelete_instantiation_356() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43126,7 +43246,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_367() { + fn __bindgen_test_layout_UniquePtr_instantiation_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43137,7 +43257,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_368() { + fn __bindgen_test_layout_DefaultDelete_instantiation_358() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43148,7 +43268,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_369() { + fn __bindgen_test_layout_UniquePtr_instantiation_359() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43159,7 +43279,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_370() { + fn __bindgen_test_layout_already_AddRefed_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43170,7 +43290,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_371() { + fn __bindgen_test_layout_Maybe_instantiation_361() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43181,7 +43301,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_372() { + fn __bindgen_test_layout_DefaultDelete_instantiation_362() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43192,7 +43312,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_373() { + fn __bindgen_test_layout_DefaultDelete_instantiation_363() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43203,7 +43323,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_374() { + fn __bindgen_test_layout_pair_instantiation_364() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43214,7 +43334,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_375() { + fn __bindgen_test_layout_nsTArray_instantiation_365() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -43229,7 +43349,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_376() { + fn __bindgen_test_layout_nsTArray_instantiation_366() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43240,7 +43360,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_377() { + fn __bindgen_test_layout_nsTArray_instantiation_367() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43251,7 +43371,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_378() { + fn __bindgen_test_layout_nsTArray_instantiation_368() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43262,7 +43382,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_379() { + fn __bindgen_test_layout_RefPtr_instantiation_369() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43273,7 +43393,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_380() { + fn __bindgen_test_layout_nsTArray_instantiation_370() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43284,7 +43404,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_381() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_371() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43295,7 +43415,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_382() { + fn __bindgen_test_layout_DefaultDelete_instantiation_372() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43306,7 +43426,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_383() { + fn __bindgen_test_layout_UniquePtr_instantiation_373() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43317,7 +43437,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_384() { + fn __bindgen_test_layout_DefaultDelete_instantiation_374() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43328,7 +43448,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_385() { + fn __bindgen_test_layout_UniquePtr_instantiation_375() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43339,7 +43459,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_386() { + fn __bindgen_test_layout_RefPtr_instantiation_376() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43350,7 +43470,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_387() { + fn __bindgen_test_layout_RefPtr_instantiation_377() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43361,7 +43481,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_388() { + fn __bindgen_test_layout_NonNull_instantiation_378() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43374,7 +43494,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_389() { + fn __bindgen_test_layout_NonNull_instantiation_379() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43387,7 +43507,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_390() { + fn __bindgen_test_layout_Handle_instantiation_380() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43398,7 +43518,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_391() { + fn __bindgen_test_layout_MutableHandle_instantiation_381() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43409,7 +43529,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_392() { + fn __bindgen_test_layout_Maybe_instantiation_382() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43420,7 +43540,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_393() { + fn __bindgen_test_layout_Maybe_instantiation_383() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43431,7 +43551,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_394() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_384() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43442,7 +43562,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_395() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_385() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43453,7 +43573,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_396() { + fn __bindgen_test_layout_already_AddRefed_instantiation_386() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43464,7 +43584,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_397() { + fn __bindgen_test_layout_already_AddRefed_instantiation_387() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43475,7 +43595,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_398() { + fn __bindgen_test_layout_nsTArray_instantiation_388() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43486,7 +43606,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_399() { + fn __bindgen_test_layout_nsTArray_instantiation_389() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43497,7 +43617,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_400() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_390() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43508,7 +43628,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_401() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_391() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43521,7 +43641,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_402() { + fn __bindgen_test_layout_DefaultDelete_instantiation_392() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43532,7 +43652,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_403() { + fn __bindgen_test_layout_already_AddRefed_instantiation_393() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43543,7 +43663,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_404() { + fn __bindgen_test_layout_nsTArray_instantiation_394() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43556,6 +43676,110 @@ pub mod root { ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_395() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_396() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_397() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_398() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_399() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Sequence_instantiation_400() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_401() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_Sequence_instantiation_402() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_Sequence_instantiation_403() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_404() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] fn __bindgen_test_layout_Handle_instantiation_405() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43567,40 +43791,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_406() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_407() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_408() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_409() { + fn __bindgen_test_layout_MutableHandle_instantiation_406() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43611,16 +43802,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_410() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_411() { + fn __bindgen_test_layout_Handle_instantiation_407() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43631,47 +43813,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_412() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_Sequence_instantiation_413() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_414() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_415() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_416() { + fn __bindgen_test_layout_MutableHandle_instantiation_408() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43682,29 +43824,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_417() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_418() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_419() { + fn __bindgen_test_layout_Handle_instantiation_409() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43715,7 +43835,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_420() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_410() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43726,7 +43846,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_421() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_411() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43737,7 +43857,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_422() { + fn __bindgen_test_layout_Handle_instantiation_412() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43748,7 +43868,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_423() { + fn __bindgen_test_layout_nsTArray_instantiation_413() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43759,7 +43879,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_424() { + fn __bindgen_test_layout_nsTArray_instantiation_414() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43770,7 +43890,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_425() { + fn __bindgen_test_layout_nsTArray_instantiation_415() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43781,7 +43901,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_426() { + fn __bindgen_test_layout_RefPtr_instantiation_416() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43792,7 +43912,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_427() { + fn __bindgen_test_layout_nsTArray_instantiation_417() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43803,7 +43923,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_428() { + fn __bindgen_test_layout_nsTArray_instantiation_418() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43814,7 +43934,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_429() { + fn __bindgen_test_layout_nsTArray_instantiation_419() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43825,7 +43945,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_430() { + fn __bindgen_test_layout_already_AddRefed_instantiation_420() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43836,7 +43956,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_431() { + fn __bindgen_test_layout_Handle_instantiation_421() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43847,7 +43967,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_432() { + fn __bindgen_test_layout_nsTArray_instantiation_422() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43858,7 +43978,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_433() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_423() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 1b3a5654dd4..a3a092b1b04 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -1052,6 +1052,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 { @@ -1081,10 +1083,17 @@ pub mod root { pub type iterator_pointer<_Pointer> = _Pointer; pub type iterator_reference<_Reference> = _Reference; #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct __iterator_traits { + pub _address: u8, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct iterator_traits { pub _address: u8, } #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct reverse_iterator<_Iterator> { pub current: _Iterator, pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iterator>>, @@ -1282,7 +1291,7 @@ pub mod root { } #[repr(u16)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StringClassFlags { FIXED = 1, } + pub enum StringClassFlags { FIXED = 1, NULL_TERMINATED = 2, } /** * LinkedList supports refcounted elements using this adapter class. Clients * using LinkedList> will get a data structure that holds a strong @@ -1330,9 +1339,9 @@ pub mod root { #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum ArenaObjectID { eArenaObjectID_DummyBeforeFirstObjectID = 173, - eArenaObjectID_nsLineBox = 174, - eArenaObjectID_nsRuleNode = 175, - eArenaObjectID_GeckoStyleContext = 176, + eArenaObjectID_GeckoStyleContext = 174, + eArenaObjectID_nsLineBox = 175, + eArenaObjectID_nsRuleNode = 176, eArenaObjectID_DisplayItemData = 177, eArenaObjectID_nsInheritedStyleData = 178, eArenaObjectID_nsResetStyleData = 179, @@ -2402,6 +2411,16 @@ pub mod root { pub mod layers { #[allow(unused_imports)] use self::super::super::super::root; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct LayerManager { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct ContainerLayer { + _unused: [u8; 0], + } /** * The viewport and displayport metrics for the painted frame at the * time of a layer-tree transaction. These metrics are especially @@ -3235,148 +3254,6 @@ pub mod root { (16u64 as u8)) } } - /** - * This class is used for communicating information about the currently focused - * element of a document and the scrollable frames to use when keyboard scrolling - * it. It is created on the main thread at paint-time, but is then passed over - * IPC to the compositor/APZ code. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FocusTarget { - pub mSequenceNumber: u64, - pub mFocusHasKeyEventListeners: bool, - pub mType: root::mozilla::layers::FocusTarget_FocusTargetType, - pub mData: root::mozilla::layers::FocusTarget_FocusTargetData, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FocusTarget_ScrollTargets { - pub mHorizontal: root::mozilla::layers::FrameMetrics_ViewID, - pub mVertical: root::mozilla::layers::FrameMetrics_ViewID, - } - #[test] - fn bindgen_test_layout_FocusTarget_ScrollTargets() { - assert_eq!(::std::mem::size_of::() - , 16usize , concat ! ( - "Size of: " , stringify ! ( - FocusTarget_ScrollTargets ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - FocusTarget_ScrollTargets ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_ScrollTargets ) ) - . mHorizontal as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_ScrollTargets ) , "::" , stringify ! ( - mHorizontal ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_ScrollTargets ) ) - . mVertical as * const _ as usize } , 8usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_ScrollTargets ) , "::" , stringify ! ( - mVertical ) )); - } - impl Clone for FocusTarget_ScrollTargets { - fn clone(&self) -> Self { *self } - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum FocusTarget_FocusTargetType { - eNone = 0, - eRefLayer = 1, - eScrollLayer = 2, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FocusTarget_FocusTargetData { - pub mRefLayerId: root::__BindgenUnionField, - pub mScrollTargets: root::__BindgenUnionField, - pub bindgen_union_field: [u64; 2usize], - } - #[test] - fn bindgen_test_layout_FocusTarget_FocusTargetData() { - assert_eq!(::std::mem::size_of::() - , 16usize , concat ! ( - "Size of: " , stringify ! ( - FocusTarget_FocusTargetData ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - FocusTarget_FocusTargetData ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_FocusTargetData ) - ) . mRefLayerId as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_FocusTargetData ) , "::" , stringify ! - ( mRefLayerId ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget_FocusTargetData ) - ) . mScrollTargets as * const _ as usize } , - 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - FocusTarget_FocusTargetData ) , "::" , stringify ! - ( mScrollTargets ) )); - } - impl Clone for FocusTarget_FocusTargetData { - fn clone(&self) -> Self { *self } - } - pub const FocusTarget_sFocusTargetTypeCount: usize = 3; - extern "C" { - #[link_name = - "_ZN7mozilla6layers11FocusTarget23sHighestFocusTargetTypeE"] - pub static FocusTarget_sHighestFocusTargetType: - root::mozilla::layers::FocusTarget_FocusTargetType; - } - #[test] - fn bindgen_test_layout_FocusTarget() { - assert_eq!(::std::mem::size_of::() , 32usize , - concat ! ( - "Size of: " , stringify ! ( FocusTarget ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( FocusTarget ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . - mSequenceNumber as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( mSequenceNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . - mFocusHasKeyEventListeners as * const _ as usize } - , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( - mFocusHasKeyEventListeners ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . mType as * - const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( mType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const FocusTarget ) ) . mData as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( FocusTarget - ) , "::" , stringify ! ( mData ) )); - } - impl Clone for FocusTarget { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct LayerManager { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct ContainerLayer { - _unused: [u8; 0], - } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct Layer { @@ -4463,6 +4340,11 @@ pub mod root { pub mStorage: root::mozilla::AlignedStorage2, } #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct TabGroup { + _unused: [u8; 0], + } + #[repr(C)] pub struct DispatcherTrait__bindgen_vtable(::std::os::raw::c_void); #[repr(C)] #[derive(Debug, Copy)] @@ -5855,7 +5737,7 @@ pub mod root { #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() - , 96usize , concat ! ( + , 104usize , concat ! ( "Size of: " , stringify ! ( FragmentOrElement_nsDOMSlots ) )); assert_eq! (::std::mem::align_of::() @@ -5865,7 +5747,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mStyle as * const _ as usize } , 48usize , + . mStyle as * const _ as usize } , 56usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5873,7 +5755,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mDataset as * const _ as usize } , 56usize , + . mDataset as * const _ as usize } , 64usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5881,7 +5763,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mAttributeMap as * const _ as usize } , 64usize + . mAttributeMap as * const _ as usize } , 72usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5889,7 +5771,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mChildrenList as * const _ as usize } , 72usize + . mChildrenList as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5897,7 +5779,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mClassList as * const _ as usize } , 80usize , + . mClassList as * const _ as usize } , 88usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5905,7 +5787,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mExtendedSlots as * const _ as usize } , 88usize + . mExtendedSlots as * const _ as usize } , 96usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -7145,221 +7027,6 @@ pub mod root { impl Clone for ChangesToFlush { fn clone(&self) -> Self { *self } } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct CSSPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_CSSPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( - "Size of: " , stringify ! ( CSSPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , concat ! - ( "Alignment of " , stringify ! ( CSSPixel ) )); - } - impl Clone for CSSPixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct LayoutDevicePixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_LayoutDevicePixel() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of: " , stringify ! ( LayoutDevicePixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( LayoutDevicePixel ) - )); - } - impl Clone for LayoutDevicePixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct LayerPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_LayerPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , concat ! - ( "Size of: " , stringify ! ( LayerPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , concat - ! ( "Alignment of " , stringify ! ( LayerPixel ) )); - } - impl Clone for LayerPixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct ScreenPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_ScreenPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , concat - ! ( "Size of: " , stringify ! ( ScreenPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( ScreenPixel ) )); - } - impl Clone for ScreenPixel { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct ParentLayerPixel { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_ParentLayerPixel() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of: " , stringify ! ( ParentLayerPixel ) )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( ParentLayerPixel ) )); - } - impl Clone for ParentLayerPixel { - fn clone(&self) -> Self { *self } - } - pub type CSSPoint = [u32; 2usize]; - pub type CSSIntPoint = [u32; 2usize]; - pub type CSSSize = [u32; 2usize]; - pub type CSSRect = [u32; 4usize]; - pub type LayoutDeviceIntPoint = [u32; 2usize]; - pub type LayoutDeviceIntSize = [u32; 2usize]; - pub type LayoutDeviceIntRect = [u32; 4usize]; - pub type ScreenIntSize = u8; - pub type ScreenMargin = [u32; 4usize]; - pub type ParentLayerRect = [u32; 4usize]; - pub type ParentLayerIntRect = [u32; 4usize]; - pub type CSSToLayoutDeviceScale = u32; - pub type CSSToParentLayerScale2D = [u32; 2usize]; - pub type LayoutDeviceToLayerScale2D = [u32; 2usize]; - pub type ScreenToLayerScale2D = [u32; 2usize]; - pub type TimeStampValue = u64; - /** - * Instances of this class represent moments in time, or a special - * "null" moment. We do not use the non-monotonic system clock or - * local time, since they can be reset, causing apparent backward - * travel in time, which can confuse algorithms. Instead we measure - * elapsed time according to the system. This time can never go - * backwards (i.e. it never wraps around, at least not in less than - * five million years of system elapsed time). It might not advance - * while the system is sleeping. If TimeStamp::SetNow() is not called - * at all for hours or days, we might not notice the passage of some - * of that time. - * - * We deliberately do not expose a way to convert TimeStamps to some - * particular unit. All you can do is compute a difference between two - * TimeStamps to get a TimeDuration. You can also add a TimeDuration - * to a TimeStamp to get a new TimeStamp. You can't do something - * meaningless like add two TimeStamps. - * - * Internally this is implemented as either a wrapper around - * - high-resolution, monotonic, system clocks if they exist on this - * platform - * - PRIntervalTime otherwise. We detect wraparounds of - * PRIntervalTime and work around them. - * - * This class is similar to C++11's time_point, however it is - * explicitly nullable and provides an IsNull() method. time_point - * is initialized to the clock's epoch and provides a - * time_since_epoch() method that functions similiarly. i.e. - * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct TimeStamp { - /** - * When built with PRIntervalTime, a value of 0 means this instance - * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, - * and the high 32 bits represent a counter of the number of - * rollovers of PRIntervalTime that we've seen. This counter starts - * at 1 to avoid a real time colliding with the "null" value. - * - * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum - * time to wrap around is about 2^64/100000 seconds, i.e. about - * 5,849,424 years. - * - * When using a system clock, a value is system dependent. - */ - pub mValue: root::mozilla::TimeStampValue, - } - #[test] - fn bindgen_test_layout_TimeStamp() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( "Size of: " , stringify ! ( TimeStamp ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( TimeStamp ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const TimeStamp ) ) . mValue as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( TimeStamp ) , - "::" , stringify ! ( mValue ) )); - } - impl Clone for TimeStamp { - fn clone(&self) -> Self { *self } - } - /** - * Instances of this class represent the length of an interval of time. - * Negative durations are allowed, meaning the end is before the start. - * - * Internally the duration is stored as a int64_t in units of - * PR_TicksPerSecond() when building with NSPR interval timers, or a - * system-dependent unit when building with system clocks. The - * system-dependent unit must be constant, otherwise the semantics of - * this class would be broken. - * - * The ValueCalculator template parameter determines how arithmetic - * operations are performed on the integer count of ticks (mValue). - */ - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct BaseTimeDuration { - pub mValue: i64, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct BaseTimeDuration__SomethingVeryRandomHere { - pub _address: u8, - } - /** - * Perform arithmetic operations on the value of a BaseTimeDuration without - * doing strict checks on the range of values. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct TimeDurationValueCalculator { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_TimeDurationValueCalculator() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of: " , stringify ! ( TimeDurationValueCalculator - ) )); - assert_eq! (::std::mem::align_of::() - , 1usize , concat ! ( - "Alignment of " , stringify ! ( - TimeDurationValueCalculator ) )); - } - impl Clone for TimeDurationValueCalculator { - fn clone(&self) -> Self { *self } - } - /** - * Specialization of BaseTimeDuration that uses TimeDurationValueCalculator for - * arithmetic on the mValue member. - * - * Use this class for time durations that are *not* expected to hold values of - * Forever (or the negative equivalent) or when such time duration are *not* - * expected to be used in arithmetic operations. - */ - pub type TimeDuration = root::mozilla::BaseTimeDuration; /** * EventStates is the class used to represent the event states of nsIContent * instances. These states are calculated by IntrinsicState() and @@ -7393,21 +7060,31 @@ pub mod root { #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum LazyComputeBehavior { Allow = 0, Assert = 1, } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRootBehavior { - Normal = 0, - UnstyledChildrenOnly = 1, - } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRestyleBehavior { - Normal = 0, - ForNewlyBoundElement = 1, - ForReconstruct = 2, - ForThrottledAnimationFlush = 3, - ForCSSRuleChanges = 4, - } + pub const ServoTraversalFlags_Empty: + root::mozilla::ServoTraversalFlags = + 0; + pub const ServoTraversalFlags_AnimationOnly: + root::mozilla::ServoTraversalFlags = + 1; + pub const ServoTraversalFlags_ForCSSRuleChanges: + root::mozilla::ServoTraversalFlags = + 2; + pub const ServoTraversalFlags_UnstyledChildrenOnly: + root::mozilla::ServoTraversalFlags = + 4; + pub const ServoTraversalFlags_Forgetful: + root::mozilla::ServoTraversalFlags = + 8; + pub const ServoTraversalFlags_AggressivelyForgetful: + root::mozilla::ServoTraversalFlags = + 16; + pub const ServoTraversalFlags_ClearDirtyDescendants: + root::mozilla::ServoTraversalFlags = + 32; + pub const ServoTraversalFlags_ClearAnimationOnlyDirtyDescendants: + root::mozilla::ServoTraversalFlags = + 64; + pub type ServoTraversalFlags = u32; #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum StyleRuleInclusion { All = 0, DefaultOnly = 1, } @@ -7461,7 +7138,7 @@ pub mod root { } #[test] fn bindgen_test_layout_ServoStyleContext() { - assert_eq!(::std::mem::size_of::() , 264usize , + assert_eq!(::std::mem::size_of::() , 256usize , concat ! ( "Size of: " , stringify ! ( ServoStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -7470,14 +7147,14 @@ pub mod root { )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleContext ) ) . - mPresContext as * const _ as usize } , 32usize , + mPresContext as * const _ as usize } , 24usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleContext ) , "::" , stringify ! ( mPresContext ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleContext ) ) . mSource - as * const _ as usize } , 40usize , concat ! ( + as * const _ as usize } , 32usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleContext ) , "::" , stringify ! ( mSource ) )); @@ -7911,6 +7588,125 @@ pub mod root { */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum StyleBackendType { None = 0, Gecko = 1, Servo = 2, } + pub type TimeStampValue = u64; + /** + * Instances of this class represent moments in time, or a special + * "null" moment. We do not use the non-monotonic system clock or + * local time, since they can be reset, causing apparent backward + * travel in time, which can confuse algorithms. Instead we measure + * elapsed time according to the system. This time can never go + * backwards (i.e. it never wraps around, at least not in less than + * five million years of system elapsed time). It might not advance + * while the system is sleeping. If TimeStamp::SetNow() is not called + * at all for hours or days, we might not notice the passage of some + * of that time. + * + * We deliberately do not expose a way to convert TimeStamps to some + * particular unit. All you can do is compute a difference between two + * TimeStamps to get a TimeDuration. You can also add a TimeDuration + * to a TimeStamp to get a new TimeStamp. You can't do something + * meaningless like add two TimeStamps. + * + * Internally this is implemented as either a wrapper around + * - high-resolution, monotonic, system clocks if they exist on this + * platform + * - PRIntervalTime otherwise. We detect wraparounds of + * PRIntervalTime and work around them. + * + * This class is similar to C++11's time_point, however it is + * explicitly nullable and provides an IsNull() method. time_point + * is initialized to the clock's epoch and provides a + * time_since_epoch() method that functions similiarly. i.e. + * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct TimeStamp { + /** + * When built with PRIntervalTime, a value of 0 means this instance + * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, + * and the high 32 bits represent a counter of the number of + * rollovers of PRIntervalTime that we've seen. This counter starts + * at 1 to avoid a real time colliding with the "null" value. + * + * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum + * time to wrap around is about 2^64/100000 seconds, i.e. about + * 5,849,424 years. + * + * When using a system clock, a value is system dependent. + */ + pub mValue: root::mozilla::TimeStampValue, + } + #[test] + fn bindgen_test_layout_TimeStamp() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( "Size of: " , stringify ! ( TimeStamp ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( TimeStamp ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const TimeStamp ) ) . mValue as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( TimeStamp ) , + "::" , stringify ! ( mValue ) )); + } + impl Clone for TimeStamp { + fn clone(&self) -> Self { *self } + } + /** + * Instances of this class represent the length of an interval of time. + * Negative durations are allowed, meaning the end is before the start. + * + * Internally the duration is stored as a int64_t in units of + * PR_TicksPerSecond() when building with NSPR interval timers, or a + * system-dependent unit when building with system clocks. The + * system-dependent unit must be constant, otherwise the semantics of + * this class would be broken. + * + * The ValueCalculator template parameter determines how arithmetic + * operations are performed on the integer count of ticks (mValue). + */ + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct BaseTimeDuration { + pub mValue: i64, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct BaseTimeDuration__SomethingVeryRandomHere { + pub _address: u8, + } + /** + * Perform arithmetic operations on the value of a BaseTimeDuration without + * doing strict checks on the range of values. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct TimeDurationValueCalculator { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_TimeDurationValueCalculator() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of: " , stringify ! ( TimeDurationValueCalculator + ) )); + assert_eq! (::std::mem::align_of::() + , 1usize , concat ! ( + "Alignment of " , stringify ! ( + TimeDurationValueCalculator ) )); + } + impl Clone for TimeDurationValueCalculator { + fn clone(&self) -> Self { *self } + } + /** + * Specialization of BaseTimeDuration that uses TimeDurationValueCalculator for + * arithmetic on the mValue member. + * + * Use this class for time durations that are *not* expected to hold values of + * Forever (or the negative equivalent) or when such time duration are *not* + * expected to be used in arithmetic operations. + */ + pub type TimeDuration = root::mozilla::BaseTimeDuration; #[repr(C)] #[derive(Debug, Copy)] pub struct MallocAllocPolicy { @@ -8762,6 +8558,102 @@ pub mod root { eURLStrikeout = 512, } #[repr(C)] + #[derive(Debug, Copy)] + pub struct CSSPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_CSSPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( + "Size of: " , stringify ! ( CSSPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , concat ! + ( "Alignment of " , stringify ! ( CSSPixel ) )); + } + impl Clone for CSSPixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct LayoutDevicePixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_LayoutDevicePixel() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of: " , stringify ! ( LayoutDevicePixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( LayoutDevicePixel ) + )); + } + impl Clone for LayoutDevicePixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct LayerPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_LayerPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , concat ! + ( "Size of: " , stringify ! ( LayerPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , concat + ! ( "Alignment of " , stringify ! ( LayerPixel ) )); + } + impl Clone for LayerPixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ScreenPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_ScreenPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , concat + ! ( "Size of: " , stringify ! ( ScreenPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( ScreenPixel ) )); + } + impl Clone for ScreenPixel { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ParentLayerPixel { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_ParentLayerPixel() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of: " , stringify ! ( ParentLayerPixel ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( ParentLayerPixel ) )); + } + impl Clone for ParentLayerPixel { + fn clone(&self) -> Self { *self } + } + pub type CSSPoint = [u32; 2usize]; + pub type CSSIntPoint = [u32; 2usize]; + pub type CSSSize = [u32; 2usize]; + pub type CSSRect = [u32; 4usize]; + pub type LayoutDeviceIntPoint = [u32; 2usize]; + pub type LayoutDeviceIntSize = [u32; 2usize]; + pub type LayoutDeviceIntRect = [u32; 4usize]; + pub type ScreenIntSize = u8; + pub type ScreenMargin = [u32; 4usize]; + pub type ParentLayerRect = [u32; 4usize]; + pub type ParentLayerIntRect = [u32; 4usize]; + pub type CSSToLayoutDeviceScale = u32; + pub type CSSToParentLayerScale2D = [u32; 2usize]; + pub type LayoutDeviceToLayerScale2D = [u32; 2usize]; + pub type ScreenToLayerScale2D = [u32; 2usize]; + #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct AccessibleCaretEventHub { _unused: [u8; 0], @@ -8892,7 +8784,7 @@ pub mod root { eUseCounter_ShowModalDialog = 71, eUseCounter_Window_Content = 72, eUseCounter_SyncXMLHttpRequest = 73, - eUseCounter_Window_Controllers = 74, + eUseCounter_Window_Cc_ontrollers = 74, eUseCounter_ImportXULIntoContent = 75, eUseCounter_PannerNodeDoppler = 76, eUseCounter_NavigatorGetUserMedia = 77, @@ -9341,6 +9233,7 @@ pub mod root { eMutex = 0, eReentrantMonitor = 1, eCondVar = 2, + eRecursiveMutex = 3, } extern "C" { #[link_name = @@ -17117,1364 +17010,6 @@ pub mod root { nsEventStatus_eConsumeDoDefault = 2, nsEventStatus_eSentinel = 3, } - pub type gfxSize = [u64; 2usize]; - pub type nsIntRect = root::mozilla::gfx::IntRect; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct pixman_region32_data { - pub size: ::std::os::raw::c_long, - pub numRects: ::std::os::raw::c_long, - } - #[test] - fn bindgen_test_layout_pixman_region32_data() { - assert_eq!(::std::mem::size_of::() , 16usize , - concat ! ( - "Size of: " , stringify ! ( pixman_region32_data ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( pixman_region32_data ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32_data ) ) . size as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - pixman_region32_data ) , "::" , stringify ! ( size ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32_data ) ) . numRects - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - pixman_region32_data ) , "::" , stringify ! ( numRects ) - )); - } - impl Clone for pixman_region32_data { - fn clone(&self) -> Self { *self } - } - pub type pixman_region32_data_t = root::pixman_region32_data; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct pixman_box32 { - pub x1: i32, - pub y1: i32, - pub x2: i32, - pub y2: i32, - } - #[test] - fn bindgen_test_layout_pixman_box32() { - assert_eq!(::std::mem::size_of::() , 16usize , concat ! - ( "Size of: " , stringify ! ( pixman_box32 ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! - ( "Alignment of " , stringify ! ( pixman_box32 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . x1 as * const _ as - usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( x1 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . y1 as * const _ as - usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( y1 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . x2 as * const _ as - usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( x2 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_box32 ) ) . y2 as * const _ as - usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_box32 ) , - "::" , stringify ! ( y2 ) )); - } - impl Clone for pixman_box32 { - fn clone(&self) -> Self { *self } - } - pub type pixman_box32_t = root::pixman_box32; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct pixman_region32 { - pub extents: root::pixman_box32_t, - pub data: *mut root::pixman_region32_data_t, - } - #[test] - fn bindgen_test_layout_pixman_region32() { - assert_eq!(::std::mem::size_of::() , 24usize , concat - ! ( "Size of: " , stringify ! ( pixman_region32 ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( pixman_region32 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32 ) ) . extents as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_region32 ) , - "::" , stringify ! ( extents ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const pixman_region32 ) ) . data as * const - _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( pixman_region32 ) , - "::" , stringify ! ( data ) )); - } - impl Clone for pixman_region32 { - fn clone(&self) -> Self { *self } - } - pub type pixman_region32_t = root::pixman_region32; - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum VisitSide { TOP = 0, BOTTOM = 1, LEFT = 2, RIGHT = 3, } - /** - * Presentation shell interface. Presentation shells are the - * controlling point for managing the presentation of a document. The - * presentation shell holds a live reference to the document, the - * presentation context, the style manager, the style set and the root - * frame.

- * - * When this object is Release'd, it will release the document, the - * presentation context, the style manager, the style set and the root - * frame. - */ - #[repr(C)] - pub struct nsIPresShell { - pub _base: root::nsISupports, - pub mDocument: root::nsCOMPtr, - pub mPresContext: root::RefPtr, - pub mStyleSet: root::mozilla::StyleSetHandle, - pub mFrameConstructor: *mut root::nsCSSFrameConstructor, - pub mViewManager: *mut root::nsViewManager, - pub mFrameArena: root::nsPresArena, - pub mSelection: root::RefPtr, - pub mFrameManager: *mut root::nsFrameManagerBase, - pub mForwardingContainer: u64, - pub mDocAccessible: *mut root::mozilla::a11y::DocAccessible, - pub mReflowContinueTimer: root::nsCOMPtr, - pub mPaintCount: u64, - pub mScrollPositionClampingScrollPortSize: root::nsSize, - pub mAutoWeakFrames: *mut root::AutoWeakFrame, - pub mWeakFrames: [u64; 5usize], - pub mCanvasBackgroundColor: root::nscolor, - pub mResolution: [u32; 2usize], - pub mSelectionFlags: i16, - pub mRenderFlags: root::nsIPresShell_RenderFlags, - pub _bitfield_1: [u8; 2usize], - pub mPresShellId: u32, - pub mFontSizeInflationEmPerLine: u32, - pub mFontSizeInflationMinTwips: u32, - pub mFontSizeInflationLineThreshold: u32, - pub mFontSizeInflationForceEnabled: bool, - pub mFontSizeInflationDisabledInMasterProcess: bool, - pub mFontSizeInflationEnabled: bool, - pub mFontSizeInflationEnabledIsDirty: bool, - pub mPaintingIsFrozen: bool, - pub mIsNeverPainting: bool, - pub mInFlush: bool, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct nsIPresShell_COMTypeInfo { - pub _address: u8, - } - pub type nsIPresShell_FocusTarget = root::mozilla::layers::FocusTarget; - pub type nsIPresShell_LayerManager = root::mozilla::layers::LayerManager; - pub type nsIPresShell_SourceSurface = root::mozilla::gfx::SourceSurface; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_eRenderFlag { - STATE_IGNORING_VIEWPORT_SCROLLING = 1, - STATE_DRAWWINDOW_NOT_FLUSHING = 2, - } - pub type nsIPresShell_RenderFlags = u8; - #[repr(u32)] - /** - * Gets nearest scrollable frame from the specified content node. The frame - * is scrollable with overflow:scroll or overflow:auto in some direction when - * aDirection is eEither. Otherwise, this returns a nearest frame that is - * scrollable in the specified direction. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_ScrollDirection { - eHorizontal = 0, - eVertical = 1, - eEither = 2, - } - #[repr(u32)] - /** - * Tell the pres shell that a frame needs to be marked dirty and needs - * Reflow. It's OK if this is an ancestor of the frame needing reflow as - * long as the ancestor chain between them doesn't cross a reflow root. - * - * The bit to add should be NS_FRAME_IS_DIRTY, NS_FRAME_HAS_DIRTY_CHILDREN - * or nsFrameState(0); passing 0 means that dirty bits won't be set on the - * frame or its ancestors/descendants, but that intrinsic widths will still - * be marked dirty. Passing aIntrinsicDirty = eResize and aBitToAdd = 0 - * would result in no work being done, so don't do that. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_IntrinsicDirty { - eResize = 0, - eTreeChange = 1, - eStyleChange = 2, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_ReflowRootHandling { - ePositionOrSizeChange = 0, - eNoPositionOrSizeChange = 1, - eInferFromBitToAdd = 2, - } - pub const nsIPresShell_SCROLL_TOP: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_TOP; - pub const nsIPresShell_SCROLL_BOTTOM: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; - pub const nsIPresShell_SCROLL_LEFT: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_TOP; - pub const nsIPresShell_SCROLL_RIGHT: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; - pub const nsIPresShell_SCROLL_CENTER: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_CENTER; - pub const nsIPresShell_SCROLL_MINIMUM: root::nsIPresShell__bindgen_ty_1 = - nsIPresShell__bindgen_ty_1::SCROLL_MINIMUM; - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_1 { - SCROLL_TOP = 0, - SCROLL_BOTTOM = 100, - SCROLL_CENTER = 50, - SCROLL_MINIMUM = -1, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_WhenToScroll { - SCROLL_ALWAYS = 0, - SCROLL_IF_NOT_VISIBLE = 1, - SCROLL_IF_NOT_FULLY_VISIBLE = 2, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsIPresShell_ScrollAxis { - pub _bindgen_opaque_blob: u32, - } - #[test] - fn bindgen_test_layout_nsIPresShell_ScrollAxis() { - assert_eq!(::std::mem::size_of::() , 4usize , - concat ! ( - "Size of: " , stringify ! ( nsIPresShell_ScrollAxis ) )); - assert_eq! (::std::mem::align_of::() , 4usize - , concat ! ( - "Alignment of " , stringify ! ( nsIPresShell_ScrollAxis ) - )); - } - impl Clone for nsIPresShell_ScrollAxis { - fn clone(&self) -> Self { *self } - } - pub const nsIPresShell_SCROLL_FIRST_ANCESTOR_ONLY: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_FIRST_ANCESTOR_ONLY; - pub const nsIPresShell_SCROLL_OVERFLOW_HIDDEN: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_OVERFLOW_HIDDEN; - pub const nsIPresShell_SCROLL_NO_PARENT_FRAMES: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_NO_PARENT_FRAMES; - pub const nsIPresShell_SCROLL_SMOOTH: root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH; - pub const nsIPresShell_SCROLL_SMOOTH_AUTO: - root::nsIPresShell__bindgen_ty_2 = - nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH_AUTO; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_2 { - SCROLL_FIRST_ANCESTOR_ONLY = 1, - SCROLL_OVERFLOW_HIDDEN = 2, - SCROLL_NO_PARENT_FRAMES = 4, - SCROLL_SMOOTH = 8, - SCROLL_SMOOTH_AUTO = 16, - } - pub const nsIPresShell_RENDER_IS_UNTRUSTED: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_IS_UNTRUSTED; - pub const nsIPresShell_RENDER_IGNORE_VIEWPORT_SCROLLING: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_IGNORE_VIEWPORT_SCROLLING; - pub const nsIPresShell_RENDER_CARET: root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_CARET; - pub const nsIPresShell_RENDER_USE_WIDGET_LAYERS: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_USE_WIDGET_LAYERS; - pub const nsIPresShell_RENDER_ASYNC_DECODE_IMAGES: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_ASYNC_DECODE_IMAGES; - pub const nsIPresShell_RENDER_DOCUMENT_RELATIVE: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_DOCUMENT_RELATIVE; - pub const nsIPresShell_RENDER_DRAWWINDOW_NOT_FLUSHING: - root::nsIPresShell__bindgen_ty_3 = - nsIPresShell__bindgen_ty_3::RENDER_DRAWWINDOW_NOT_FLUSHING; - #[repr(u32)] - /** - * Render the document into an arbitrary gfxContext - * Designed for getting a picture of a document or a piece of a document - * Note that callers will generally want to call FlushPendingNotifications - * to get an up-to-date view of the document - * @param aRect is the region to capture into the offscreen buffer, in the - * root frame's coordinate system (if aIgnoreViewportScrolling is false) - * or in the root scrolled frame's coordinate system - * (if aIgnoreViewportScrolling is true). The coordinates are in appunits. - * @param aFlags see below; - * set RENDER_IS_UNTRUSTED if the contents may be passed to malicious - * agents. E.g. we might choose not to paint the contents of sensitive widgets - * such as the file name in a file upload widget, and we might choose not - * to paint themes. - * set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore - * clipping and scrollbar painting due to scrolling in the viewport - * set RENDER_CARET to draw the caret if one would be visible - * (by default the caret is never drawn) - * set RENDER_USE_LAYER_MANAGER to force rendering to go through - * the layer manager for the window. This may be unexpectedly slow - * (if the layer manager must read back data from the GPU) or low-quality - * (if the layer manager reads back pixel data and scales it - * instead of rendering using the appropriate scaling). It may also - * slow everything down if the area rendered does not correspond to the - * normal visible area of the window. - * set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously - * decoded during rendering. - * (by default images decode synchronously with RenderDocument) - * set RENDER_DOCUMENT_RELATIVE to render the document as if there has been - * no scrolling and interpret |aRect| relative to the document instead of the - * CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set - * or the document is in ignore viewport scrolling mode - * (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling). - * @param aBackgroundColor a background color to render onto - * @param aRenderedContext the gfxContext to render to. We render so that - * one CSS pixel in the source document is rendered to one unit in the current - * transform. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_3 { - RENDER_IS_UNTRUSTED = 1, - RENDER_IGNORE_VIEWPORT_SCROLLING = 2, - RENDER_CARET = 4, - RENDER_USE_WIDGET_LAYERS = 8, - RENDER_ASYNC_DECODE_IMAGES = 16, - RENDER_DOCUMENT_RELATIVE = 32, - RENDER_DRAWWINDOW_NOT_FLUSHING = 64, - } - pub const nsIPresShell_RENDER_IS_IMAGE: root::nsIPresShell__bindgen_ty_4 = - nsIPresShell__bindgen_ty_4::RENDER_IS_IMAGE; - pub const nsIPresShell_RENDER_AUTO_SCALE: root::nsIPresShell__bindgen_ty_4 - = - nsIPresShell__bindgen_ty_4::RENDER_AUTO_SCALE; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_4 { - RENDER_IS_IMAGE = 256, - RENDER_AUTO_SCALE = 128, - } - pub const nsIPresShell_FORCE_DRAW: root::nsIPresShell__bindgen_ty_5 = - nsIPresShell__bindgen_ty_5::FORCE_DRAW; - pub const nsIPresShell_ADD_FOR_SUBDOC: root::nsIPresShell__bindgen_ty_5 = - nsIPresShell__bindgen_ty_5::ADD_FOR_SUBDOC; - pub const nsIPresShell_APPEND_UNSCROLLED_ONLY: - root::nsIPresShell__bindgen_ty_5 = - nsIPresShell__bindgen_ty_5::APPEND_UNSCROLLED_ONLY; - #[repr(u32)] - /** - * Add a solid color item to the bottom of aList with frame aFrame and bounds - * aBounds. Checks first if this needs to be done by checking if aFrame is a - * canvas frame (if the FORCE_DRAW flag is passed then this check is skipped). - * aBackstopColor is composed behind the background color of the canvas, it is - * transparent by default. - * We attempt to make the background color part of the scrolled canvas (to reduce - * transparent layers), and if async scrolling is enabled (and the background - * is opaque) then we add a second, unscrolled item to handle the checkerboarding - * case. - * ADD_FOR_SUBDOC shoud be specified when calling this for a subdocument, and - * LayoutUseContainersForRootFrame might cause the whole list to be scrolled. In - * that case the second unscrolled item will be elided. - * APPEND_UNSCROLLED_ONLY only attempts to add the unscrolled item, so that we - * can add it manually after LayoutUseContainersForRootFrame has built the - * scrolling ContainerLayer. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell__bindgen_ty_5 { - FORCE_DRAW = 1, - ADD_FOR_SUBDOC = 2, - APPEND_UNSCROLLED_ONLY = 4, - } - #[repr(C)] - pub struct nsIPresShell_PointerCaptureInfo { - pub mPendingContent: root::nsCOMPtr, - pub mOverrideContent: root::nsCOMPtr, - } - #[test] - fn bindgen_test_layout_nsIPresShell_PointerCaptureInfo() { - assert_eq!(::std::mem::size_of::() , - 16usize , concat ! ( - "Size of: " , stringify ! ( nsIPresShell_PointerCaptureInfo - ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - nsIPresShell_PointerCaptureInfo ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . - mPendingContent as * const _ as usize } , 0usize , concat - ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( - mPendingContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . - mOverrideContent as * const _ as usize } , 8usize , concat - ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( - mOverrideContent ) )); - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsIPresShell_PointerInfo { - pub mPointerType: u16, - pub mActiveState: bool, - pub mPrimaryState: bool, - pub mPreventMouseEventByContent: bool, - } - #[test] - fn bindgen_test_layout_nsIPresShell_PointerInfo() { - assert_eq!(::std::mem::size_of::() , 6usize - , concat ! ( - "Size of: " , stringify ! ( nsIPresShell_PointerInfo ) )); - assert_eq! (::std::mem::align_of::() , - 2usize , concat ! ( - "Alignment of " , stringify ! ( nsIPresShell_PointerInfo ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mPointerType as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mPointerType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mActiveState as * const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mActiveState ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mPrimaryState as * const _ as usize } , 3usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mPrimaryState ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . - mPreventMouseEventByContent as * const _ as usize } , - 4usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsIPresShell_PointerInfo ) , "::" , stringify ! ( - mPreventMouseEventByContent ) )); - } - impl Clone for nsIPresShell_PointerInfo { - fn clone(&self) -> Self { *self } - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_PaintFlags { - PAINT_LAYERS = 1, - PAINT_COMPOSITE = 2, - PAINT_SYNC_DECODE_IMAGES = 4, - } - #[repr(u32)] - /** - * Ensures that the refresh driver is running, and schedules a view - * manager flush on the next tick. - * - * @param aType PAINT_DELAYED_COMPRESS : Schedule a paint to be executed after a delay, and - * put FrameLayerBuilder in 'compressed' mode that avoids short cut optimizations. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPresShell_PaintType { - PAINT_DEFAULT = 0, - PAINT_DELAYED_COMPRESS = 1, - } - extern "C" { - #[link_name = "_ZN12nsIPresShell12gCaptureInfoE"] - pub static mut nsIPresShell_gCaptureInfo: root::CapturingContentInfo; - } - extern "C" { - #[link_name = "_ZN12nsIPresShell14gKeyDownTargetE"] - pub static mut nsIPresShell_gKeyDownTarget: *mut root::nsIContent; - } - #[test] - fn bindgen_test_layout_nsIPresShell() { - assert_eq!(::std::mem::size_of::() , 5384usize , concat - ! ( "Size of: " , stringify ! ( nsIPresShell ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsIPresShell ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mDocument as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mDocument ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPresContext as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPresContext ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mStyleSet as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mStyleSet ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mFrameConstructor - as * const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFrameConstructor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mViewManager as * - const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mViewManager ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mFrameArena as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFrameArena ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mSelection as * - const _ as usize } , 5232usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mSelection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mFrameManager as * - const _ as usize } , 5240usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFrameManager ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mForwardingContainer as * const _ as usize } , 5248usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mForwardingContainer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mDocAccessible as - * const _ as usize } , 5256usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mDocAccessible ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mReflowContinueTimer as * const _ as usize } , 5264usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mReflowContinueTimer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPaintCount as * - const _ as usize } , 5272usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPaintCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mScrollPositionClampingScrollPortSize as * const _ as - usize } , 5280usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mScrollPositionClampingScrollPortSize - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mAutoWeakFrames as - * const _ as usize } , 5288usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mAutoWeakFrames ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mWeakFrames as * - const _ as usize } , 5296usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mWeakFrames ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mCanvasBackgroundColor as * const _ as usize } , 5336usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mCanvasBackgroundColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mResolution as * - const _ as usize } , 5340usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mResolution ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as - * const _ as usize } , 5348usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mSelectionFlags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as * - const _ as usize } , 5350usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mRenderFlags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as * - const _ as usize } , 5356usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPresShellId ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationEmPerLine as * const _ as usize } , - 5360usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationEmPerLine ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationMinTwips as * const _ as usize } , - 5364usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationMinTwips ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationLineThreshold as * const _ as usize } , - 5368usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationLineThreshold ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationForceEnabled as * const _ as usize } , - 5372usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationForceEnabled ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationDisabledInMasterProcess as * const _ as - usize } , 5373usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( - mFontSizeInflationDisabledInMasterProcess ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationEnabled as * const _ as usize } , - 5374usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationEnabled ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . - mFontSizeInflationEnabledIsDirty as * const _ as usize } , - 5375usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mFontSizeInflationEnabledIsDirty ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen - as * const _ as usize } , 5376usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mPaintingIsFrozen ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting - as * const _ as usize } , 5377usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mIsNeverPainting ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsIPresShell ) ) . mInFlush as * - const _ as usize } , 5378usize , concat ! ( - "Alignment of field: " , stringify ! ( nsIPresShell ) , - "::" , stringify ! ( mInFlush ) )); - } - impl nsIPresShell { - #[inline] - pub fn mDidInitialize(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u16; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mDidInitialize(&mut self, val: bool) { - let mask = 1u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsDestroying(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u16; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsDestroying(&mut self, val: bool) { - let mask = 2u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsReflowing(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 4u64 as u16; - let val = (unit_field_val & mask) >> 2usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsReflowing(&mut self, val: bool) { - let mask = 4u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 2usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mPaintingSuppressed(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 8u64 as u16; - let val = (unit_field_val & mask) >> 3usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mPaintingSuppressed(&mut self, val: bool) { - let mask = 8u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 3usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsActive(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 16u64 as u16; - let val = (unit_field_val & mask) >> 4usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsActive(&mut self, val: bool) { - let mask = 16u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 4usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mFrozen(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 32u64 as u16; - let val = (unit_field_val & mask) >> 5usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mFrozen(&mut self, val: bool) { - let mask = 32u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 5usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mIsFirstPaint(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 64u64 as u16; - let val = (unit_field_val & mask) >> 6usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mIsFirstPaint(&mut self, val: bool) { - let mask = 64u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 6usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mObservesMutationsForPrint(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 128u64 as u16; - let val = (unit_field_val & mask) >> 7usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mObservesMutationsForPrint(&mut self, val: bool) { - let mask = 128u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 7usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mSuppressInterruptibleReflows(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 256u64 as u16; - let val = (unit_field_val & mask) >> 8usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mSuppressInterruptibleReflows(&mut self, val: bool) { - let mask = 256u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 8usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mScrollPositionClampingScrollPortSizeSet(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 512u64 as u16; - let val = (unit_field_val & mask) >> 9usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mScrollPositionClampingScrollPortSizeSet(&mut self, - val: bool) { - let mask = 512u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 9usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mNeedLayoutFlush(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1024u64 as u16; - let val = (unit_field_val & mask) >> 10usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mNeedLayoutFlush(&mut self, val: bool) { - let mask = 1024u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 10usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mNeedStyleFlush(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2048u64 as u16; - let val = (unit_field_val & mask) >> 11usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mNeedStyleFlush(&mut self, val: bool) { - let mask = 2048u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 11usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mObservingStyleFlushes(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 4096u64 as u16; - let val = (unit_field_val & mask) >> 12usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mObservingStyleFlushes(&mut self, val: bool) { - let mask = 4096u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 12usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mObservingLayoutFlushes(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 8192u64 as u16; - let val = (unit_field_val & mask) >> 13usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mObservingLayoutFlushes(&mut self, val: bool) { - let mask = 8192u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 13usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mNeedThrottledAnimationFlush(&self) -> bool { - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 16384u64 as u16; - let val = (unit_field_val & mask) >> 14usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) { - let mask = 16384u64 as u16; - let val = val as u8 as u16; - let mut unit_field_val: u16 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u16 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 14usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(mDidInitialize: bool, mIsDestroying: bool, - mIsReflowing: bool, mPaintingSuppressed: bool, - mIsActive: bool, mFrozen: bool, - mIsFirstPaint: bool, - mObservesMutationsForPrint: bool, - mSuppressInterruptibleReflows: bool, - mScrollPositionClampingScrollPortSizeSet: bool, - mNeedLayoutFlush: bool, mNeedStyleFlush: bool, - mObservingStyleFlushes: bool, - mObservingLayoutFlushes: bool, - mNeedThrottledAnimationFlush: bool) -> u16 { - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - ({ - 0 - } - | - ((mDidInitialize - as - u8 - as - u16) - << - 0usize) - & - (1u64 - as - u16)) - } - | - ((mIsDestroying - as - u8 - as - u16) - << - 1usize) - & - (2u64 - as - u16)) - } | - ((mIsReflowing - as - u8 - as - u16) - << - 2usize) - & - (4u64 - as - u16)) - } | - ((mPaintingSuppressed - as - u8 - as - u16) - << - 3usize) - & - (8u64 - as - u16)) - } | - ((mIsActive - as u8 - as - u16) - << - 4usize) - & - (16u64 - as - u16)) - } | - ((mFrozen as u8 - as u16) << - 5usize) & - (32u64 as - u16)) - } | - ((mIsFirstPaint as u8 - as u16) << - 6usize) & - (64u64 as u16)) - } | - ((mObservesMutationsForPrint - as u8 as u16) << - 7usize) & - (128u64 as u16)) - } | - ((mSuppressInterruptibleReflows - as u8 as u16) << 8usize) - & (256u64 as u16)) - } | - ((mScrollPositionClampingScrollPortSizeSet - as u8 as u16) << 9usize) & - (512u64 as u16)) - } | - ((mNeedLayoutFlush as u8 as u16) << - 10usize) & (1024u64 as u16)) - } | - ((mNeedStyleFlush as u8 as u16) << 11usize) & - (2048u64 as u16)) - } | - ((mObservingStyleFlushes as u8 as u16) << 12usize) - & (4096u64 as u16)) - } | - ((mObservingLayoutFlushes as u8 as u16) << 13usize) & - (8192u64 as u16)) - } | - ((mNeedThrottledAnimationFlush as u8 as u16) << 14usize) & - (16384u64 as u16)) - } - } #[repr(C)] #[derive(Debug)] pub struct nsStyleFont { @@ -18586,7 +17121,7 @@ pub mod root { "::" , stringify ! ( mColor ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_86() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_75() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -18597,7 +17132,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_87() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_76() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -20621,10 +19156,9 @@ pub mod root { "::" , stringify ! ( mMixBlendMode ) )); } /** - * We want C++ to be abe to read the style struct fields of ComputedValues + * 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. - * */ #[repr(C)] #[derive(Debug)] @@ -20668,161 +19202,158 @@ pub mod root { #[test] fn bindgen_test_layout_ServoComputedData() { assert_eq!(::std::mem::size_of::() , 224usize , - concat ! ( - "Size of: " , stringify ! ( ServoComputedData ) )); + concat ! ( "Size of: " , stringify ! ( ServoComputedData ) + )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( ServoComputedData ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Font as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Font ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Font ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Color as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Color ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Color ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . List as * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( List ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( List ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Text as * const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Text ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Text ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Visibility - as * const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Visibility ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Visibility as + * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Visibility ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . - UserInterface as * const _ as usize } , 40usize , concat ! - ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( UserInterface ) )); + & ( * ( 0 as * const ServoComputedData ) ) . UserInterface + as * const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( UserInterface ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . TableBorder as * const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( TableBorder ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( TableBorder ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . SVG as * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( SVG ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( SVG ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Background - as * const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Background ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Background as + * const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Background ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Position as - * const _ as usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Position ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Position as * + const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Position ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . TextReset - as * const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( TextReset ) )); + & ( * ( 0 as * const ServoComputedData ) ) . TextReset as + * const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( TextReset ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Display as - * const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Display ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Display as * + const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Display ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Content as - * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Content ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Content as * + const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Content ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . UIReset as - * const _ as usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( UIReset ) )); + & ( * ( 0 as * const ServoComputedData ) ) . UIReset as * + const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( UIReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Table as * const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Table ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Table ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Margin as * const _ as usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Margin ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Margin ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Padding as - * const _ as usize } , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Padding ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Padding as * + const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Padding ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Border as * const _ as usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Border ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Border ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Outline as - * const _ as usize } , 144usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Outline ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Outline as * + const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Outline ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . XUL as * const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( XUL ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( XUL ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . SVGReset as - * const _ as usize } , 160usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( SVGReset ) )); + & ( * ( 0 as * const ServoComputedData ) ) . SVGReset as * + const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( SVGReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . Column as * const _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Column ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Column ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . Effects as - * const _ as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( Effects ) )); + & ( * ( 0 as * const ServoComputedData ) ) . Effects as * + const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( Effects ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . custom_properties as * const _ as usize } , 184usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( custom_properties ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( custom_properties ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . - writing_mode as * const _ as usize } , 192usize , concat ! - ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( writing_mode ) )); + & ( * ( 0 as * const ServoComputedData ) ) . writing_mode + as * const _ as usize } , 192usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( writing_mode ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . flags as * const _ as usize } , 193usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( flags ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( flags ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . rules as * const _ as usize } , 200usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( rules ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( rules ) )); assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedData ) ) . - visited_style as * const _ as usize } , 208usize , concat - ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( visited_style ) )); + & ( * ( 0 as * const ServoComputedData ) ) . visited_style + as * const _ as usize } , 208usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( visited_style ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedData ) ) . font_computation_data as * const _ as usize } , 216usize , concat ! ( - "Alignment of field: " , stringify ! ( ServoComputedData - ) , "::" , stringify ! ( font_computation_data ) )); + "Alignment of field: " , stringify ! ( ServoComputedData ) + , "::" , stringify ! ( font_computation_data ) )); } #[repr(C)] #[derive(Debug, Copy)] @@ -20837,14 +19368,14 @@ pub mod root { )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( - ServoComputedDataForgotten ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedDataForgotten ) ) . - mPtr as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedDataForgotten ) , "::" , stringify ! ( mPtr + "Alignment of " , stringify ! ( ServoComputedDataForgotten ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedDataForgotten ) ) . mPtr + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedDataForgotten ) , "::" , stringify ! ( mPtr ) + )); } impl Clone for ServoComputedDataForgotten { fn clone(&self) -> Self { *self } @@ -21483,6 +20014,11 @@ pub mod root { */ pub mWeakReference: *mut root::nsNodeWeakReference, /** + * A set of ranges in the common ancestor for the selection to which + * this node belongs to. + */ + pub mCommonAncestorRanges: u64, + /** * Number of descendant nodes in the uncomposed document that have been * explicitly set as editable. */ @@ -21490,7 +20026,7 @@ pub mod root { } #[test] fn bindgen_test_layout_nsINode_nsSlots() { - assert_eq!(::std::mem::size_of::() , 48usize , concat + assert_eq!(::std::mem::size_of::() , 56usize , concat ! ( "Size of: " , stringify ! ( nsINode_nsSlots ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( @@ -21513,7 +20049,13 @@ pub mod root { "::" , stringify ! ( mWeakReference ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsINode_nsSlots ) ) . - mEditableDescendantCount as * const _ as usize } , 40usize + mCommonAncestorRanges as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsINode_nsSlots ) , + "::" , stringify ! ( mCommonAncestorRanges ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsINode_nsSlots ) ) . + mEditableDescendantCount as * const _ as usize } , 48usize , concat ! ( "Alignment of field: " , stringify ! ( nsINode_nsSlots ) , "::" , stringify ! ( mEditableDescendantCount ) )); @@ -22968,7 +21510,7 @@ pub mod root { eShowModalDialog = 24, eWindow_Content = 25, eSyncXMLHttpRequest = 26, - eWindow_Controllers = 27, + eWindow_Cc_ontrollers = 27, eImportXULIntoContent = 28, ePannerNodeDoppler = 29, eNavigatorGetUserMedia = 30, @@ -25802,11 +24344,18 @@ pub mod root { pub mParent: root::RefPtr, pub mPseudoTag: root::nsCOMPtr, pub mBits: u64, - pub mRefCnt: u32, + } + pub const nsStyleContext_kAllResolvedStructs: + root::nsStyleContext__bindgen_ty_1 = + nsStyleContext__bindgen_ty_1::kAllResolvedStructs; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsStyleContext__bindgen_ty_1 { + kAllResolvedStructs = 4294967295, } #[test] fn bindgen_test_layout_nsStyleContext() { - assert_eq!(::std::mem::size_of::() , 32usize , concat + assert_eq!(::std::mem::size_of::() , 24usize , concat ! ( "Size of: " , stringify ! ( nsStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( nsStyleContext ) )); @@ -25825,11 +24374,6 @@ pub mod root { _ as usize } , 16usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mBits ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContext ) ) . mRefCnt as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContext ) , - "::" , stringify ! ( mRefCnt ) )); } #[repr(C)] pub struct nsPresContext { @@ -27550,7 +26094,7 @@ pub mod root { } } #[inline] - pub fn mUsesViewportUnits(&self) -> ::std::os::raw::c_uint { + pub fn mPendingViewportChange(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27565,8 +26109,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mUsesViewportUnits(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mPendingViewportChange(&mut self, + val: ::std::os::raw::c_uint) { let mask = 1073741824u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27589,7 +26133,7 @@ pub mod root { } } #[inline] - pub fn mPendingViewportChange(&self) -> ::std::os::raw::c_uint { + pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27604,8 +26148,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPendingViewportChange(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mCounterStylesDirty(&mut self, + val: ::std::os::raw::c_uint) { let mask = 2147483648u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27628,7 +26172,7 @@ pub mod root { } } #[inline] - pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint { + pub fn mPostedFlushCounterStyles(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27643,8 +26187,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mCounterStylesDirty(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mPostedFlushCounterStyles(&mut self, + val: ::std::os::raw::c_uint) { let mask = 4294967296u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27667,7 +26211,7 @@ pub mod root { } } #[inline] - pub fn mPostedFlushCounterStyles(&self) -> ::std::os::raw::c_uint { + pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27682,8 +26226,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPostedFlushCounterStyles(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mSuppressResizeReflow(&mut self, + val: ::std::os::raw::c_uint) { let mask = 8589934592u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27706,7 +26250,7 @@ pub mod root { } } #[inline] - pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint { + pub fn mIsVisual(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27721,8 +26265,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mSuppressResizeReflow(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) { let mask = 17179869184u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27745,7 +26288,7 @@ pub mod root { } } #[inline] - pub fn mIsVisual(&self) -> ::std::os::raw::c_uint { + pub fn mFireAfterPaintEvents(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27760,7 +26303,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mFireAfterPaintEvents(&mut self, + val: ::std::os::raw::c_uint) { let mask = 34359738368u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27783,7 +26327,7 @@ pub mod root { } } #[inline] - pub fn mFireAfterPaintEvents(&self) -> ::std::os::raw::c_uint { + pub fn mIsChrome(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27798,8 +26342,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mFireAfterPaintEvents(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) { let mask = 68719476736u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27822,7 +26365,7 @@ pub mod root { } } #[inline] - pub fn mIsChrome(&self) -> ::std::os::raw::c_uint { + pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27837,7 +26380,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mIsChromeOriginImage(&mut self, + val: ::std::os::raw::c_uint) { let mask = 137438953472u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27860,7 +26404,7 @@ pub mod root { } } #[inline] - pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint { + pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27875,8 +26419,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mIsChromeOriginImage(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) { let mask = 274877906944u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27899,7 +26442,7 @@ pub mod root { } } #[inline] - pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint { + pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27914,7 +26457,8 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mPaintFlashingInitialized(&mut self, + val: ::std::os::raw::c_uint) { let mask = 549755813888u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27937,7 +26481,8 @@ pub mod root { } } #[inline] - pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint { + pub fn mHasWarnedAboutPositionedTableParts(&self) + -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -27952,8 +26497,9 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mPaintFlashingInitialized(&mut self, - val: ::std::os::raw::c_uint) { + pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, + val: + ::std::os::raw::c_uint) { let mask = 1099511627776u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -27976,7 +26522,7 @@ pub mod root { } } #[inline] - pub fn mHasWarnedAboutPositionedTableParts(&self) + pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; @@ -27992,9 +26538,9 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, - val: - ::std::os::raw::c_uint) { + pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius(&mut self, + val: + ::std::os::raw::c_uint) { let mask = 2199023255552u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28017,8 +26563,7 @@ pub mod root { } } #[inline] - pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) - -> ::std::os::raw::c_uint { + pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28033,9 +26578,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius(&mut self, - val: - ::std::os::raw::c_uint) { + pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) { let mask = 4398046511104u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28058,7 +26601,7 @@ pub mod root { } } #[inline] - pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint { + pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28073,7 +26616,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) { let mask = 8796093022208u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28096,7 +26639,7 @@ pub mod root { } } #[inline] - pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint { + pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint { let mut unit_field_val: u64 = unsafe { ::std::mem::uninitialized() }; unsafe { @@ -28111,7 +26654,7 @@ pub mod root { unsafe { ::std::mem::transmute(val as u32) } } #[inline] - pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) { + pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) { let mask = 17592186044416u64 as u64; let val = val as u32 as u64; let mut unit_field_val: u64 = @@ -28134,44 +26677,6 @@ pub mod root { } } #[inline] - pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint { - let mut unit_field_val: u64 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u64 as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 35184372088832u64 as u64; - let val = (unit_field_val & mask) >> 45usize; - unsafe { ::std::mem::transmute(val as u32) } - } - #[inline] - pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) { - let mask = 35184372088832u64 as u64; - let val = val as u32 as u64; - let mut unit_field_val: u64 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as - *mut u64 as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 45usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] pub fn new_bitfield_1(mHasPendingInterrupt: ::std::os::raw::c_uint, mPendingInterruptFromTest: ::std::os::raw::c_uint, @@ -28208,7 +26713,6 @@ pub mod root { mIsGlyph: ::std::os::raw::c_uint, mUsesRootEMUnits: ::std::os::raw::c_uint, mUsesExChUnits: ::std::os::raw::c_uint, - mUsesViewportUnits: ::std::os::raw::c_uint, mPendingViewportChange: ::std::os::raw::c_uint, mCounterStylesDirty: ::std::os::raw::c_uint, mPostedFlushCounterStyles: @@ -28273,396 +26777,382 @@ pub mod root { ({ ({ ({ - ({ - 0 - } - | - ((mHasPendingInterrupt - as - u32 - as - u64) - << - 0usize) - & - (1u64 - as - u64)) + 0 } | - ((mPendingInterruptFromTest + ((mHasPendingInterrupt as u32 as u64) << - 1usize) + 0usize) & - (2u64 + (1u64 as u64)) } | - ((mInterruptsEnabled + ((mPendingInterruptFromTest as u32 as u64) << - 2usize) + 1usize) & - (4u64 + (2u64 as u64)) } | - ((mUseDocumentFonts + ((mInterruptsEnabled as u32 as u64) << - 3usize) + 2usize) & - (8u64 + (4u64 as u64)) } | - ((mUseDocumentColors + ((mUseDocumentFonts as u32 as u64) << - 4usize) + 3usize) & - (16u64 + (8u64 as u64)) } | - ((mUnderlineLinks + ((mUseDocumentColors as u32 as u64) << - 5usize) + 4usize) & - (32u64 + (16u64 as u64)) } | - ((mSendAfterPaintToContent + ((mUnderlineLinks as u32 as u64) << - 6usize) + 5usize) & - (64u64 + (32u64 as u64)) } | - ((mUseFocusColors + ((mSendAfterPaintToContent as u32 as u64) << - 7usize) + 6usize) & - (128u64 + (64u64 as u64)) } | - ((mFocusRingOnAnything + ((mUseFocusColors as u32 as u64) << - 8usize) + 7usize) & - (256u64 + (128u64 as u64)) } | - ((mFocusRingStyle + ((mFocusRingOnAnything as u32 as u64) << - 9usize) + 8usize) & - (512u64 + (256u64 as u64)) } | - ((mDrawImageBackground + ((mFocusRingStyle as u32 as u64) << - 10usize) + 9usize) & - (1024u64 + (512u64 as u64)) } | - ((mDrawColorBackground + ((mDrawImageBackground as u32 as u64) << - 11usize) + 10usize) & - (2048u64 + (1024u64 as u64)) } | - ((mNeverAnimate + ((mDrawColorBackground as u32 as u64) << - 12usize) + 11usize) & - (4096u64 + (2048u64 as u64)) } | - ((mIsRenderingOnlySelection + ((mNeverAnimate as u32 as u64) << - 13usize) + 12usize) & - (8192u64 + (4096u64 as u64)) } | - ((mPaginated + ((mIsRenderingOnlySelection as u32 as u64) << - 14usize) + 13usize) & - (16384u64 + (8192u64 as u64)) } | - ((mCanPaginatedScroll + ((mPaginated as u32 as u64) << - 15usize) + 14usize) & - (32768u64 + (16384u64 as u64)) } | - ((mDoScaledTwips + ((mCanPaginatedScroll as u32 as u64) << - 16usize) + 15usize) & - (65536u64 + (32768u64 as u64)) } | - ((mIsRootPaginatedDocument + ((mDoScaledTwips as u32 as u64) << - 17usize) + 16usize) & - (131072u64 + (65536u64 as u64)) } | - ((mPrefBidiDirection + ((mIsRootPaginatedDocument as u32 as u64) << - 18usize) + 17usize) & - (262144u64 + (131072u64 as u64)) } | - ((mPrefScrollbarSide + ((mPrefBidiDirection as u32 as u64) << - 19usize) + 18usize) & - (1572864u64 + (262144u64 as u64)) } | - ((mPendingSysColorChanged + ((mPrefScrollbarSide as u32 as u64) << - 21usize) + 19usize) & - (2097152u64 + (1572864u64 as u64)) } | - ((mPendingThemeChanged + ((mPendingSysColorChanged as u32 as u64) << - 22usize) + 21usize) & - (4194304u64 + (2097152u64 as u64)) } | - ((mPendingUIResolutionChanged + ((mPendingThemeChanged as u32 as u64) << - 23usize) + 22usize) & - (8388608u64 + (4194304u64 as u64)) } | - ((mPendingMediaFeatureValuesChanged + ((mPendingUIResolutionChanged as u32 as u64) << - 24usize) + 23usize) & - (16777216u64 + (8388608u64 as u64)) } | - ((mPrefChangePendingNeedsReflow + ((mPendingMediaFeatureValuesChanged as u32 as u64) << - 25usize) + 24usize) & - (33554432u64 + (16777216u64 as u64)) } | - ((mIsEmulatingMedia + ((mPrefChangePendingNeedsReflow as u32 as u64) << - 26usize) + 25usize) & - (67108864u64 + (33554432u64 as u64)) } | - ((mIsGlyph + ((mIsEmulatingMedia as u32 as u64) << - 27usize) + 26usize) & - (134217728u64 + (67108864u64 as u64)) } | - ((mUsesRootEMUnits + ((mIsGlyph as u32 as u64) << - 28usize) + 27usize) & - (268435456u64 + (134217728u64 as u64)) } | - ((mUsesExChUnits + ((mUsesRootEMUnits as u32 as u64) << - 29usize) + 28usize) & - (536870912u64 + (268435456u64 as u64)) } | - ((mUsesViewportUnits + ((mUsesExChUnits as u32 as u64) << - 30usize) + 29usize) & - (1073741824u64 + (536870912u64 as u64)) } @@ -28673,9 +27163,9 @@ pub mod root { as u64) << - 31usize) + 30usize) & - (2147483648u64 + (1073741824u64 as u64)) } @@ -28686,9 +27176,9 @@ pub mod root { as u64) << - 32usize) + 31usize) & - (4294967296u64 + (2147483648u64 as u64)) } | @@ -28698,9 +27188,9 @@ pub mod root { as u64) << - 33usize) + 32usize) & - (8589934592u64 + (4294967296u64 as u64)) } | @@ -28710,9 +27200,9 @@ pub mod root { as u64) << - 34usize) + 33usize) & - (17179869184u64 + (8589934592u64 as u64)) } | @@ -28722,58 +27212,59 @@ pub mod root { as u64) << - 35usize) + 34usize) & - (34359738368u64 + (17179869184u64 as u64)) } | ((mFireAfterPaintEvents as u32 as u64) << - 36usize) & - (68719476736u64 + 35usize) & + (34359738368u64 as u64)) } | ((mIsChrome as u32 as u64) << - 37usize) & - (137438953472u64 + 36usize) & + (68719476736u64 as u64)) } | ((mIsChromeOriginImage as u32 as u64) << - 38usize) & - (274877906944u64 as + 37usize) & + (137438953472u64 as u64)) } | ((mPaintFlashing as u32 as u64) - << 39usize) & - (549755813888u64 as u64)) + << 38usize) & + (274877906944u64 as u64)) } | ((mPaintFlashingInitialized as u32 - as u64) << 40usize) & - (1099511627776u64 as u64)) + as u64) << 39usize) & + (549755813888u64 as u64)) } | ((mHasWarnedAboutPositionedTableParts as - u32 as u64) << 41usize) & - (2199023255552u64 as u64)) + u32 as u64) << 40usize) & + (1099511627776u64 as u64)) } | ((mHasWarnedAboutTooLargeDashedOrDottedRadius - as u32 as u64) << 42usize) & - (4398046511104u64 as u64)) + as u32 as u64) << 41usize) & + (2199023255552u64 as u64)) } | - ((mQuirkSheetAdded as u32 as u64) << 43usize) & - (8796093022208u64 as u64)) + ((mQuirkSheetAdded as u32 as u64) << 42usize) & + (4398046511104u64 as u64)) } | - ((mNeedsPrefUpdate as u32 as u64) << 44usize) & - (17592186044416u64 as u64)) + ((mNeedsPrefUpdate as u32 as u64) << 43usize) & + (8796093022208u64 as u64)) } | - ((mHadNonBlankPaint as u32 as u64) << 45usize) & - (35184372088832u64 as u64)) + ((mHadNonBlankPaint as u32 as u64) << 44usize) & + (17592186044416u64 as u64)) } } + pub type gfxSize = [u64; 2usize]; #[repr(C)] #[derive(Debug)] pub struct nsAttrName { @@ -29455,6 +27946,1261 @@ pub mod root { ( "Alignment of " , stringify ! ( nsINodeList ) )); } /** + * Presentation shell interface. Presentation shells are the + * controlling point for managing the presentation of a document. The + * presentation shell holds a live reference to the document, the + * presentation context, the style manager, the style set and the root + * frame.

+ * + * When this object is Release'd, it will release the document, the + * presentation context, the style manager, the style set and the root + * frame. + */ + #[repr(C)] + pub struct nsIPresShell { + pub _base: root::nsISupports, + pub mDocument: root::nsCOMPtr, + pub mPresContext: root::RefPtr, + pub mStyleSet: root::mozilla::StyleSetHandle, + pub mFrameConstructor: *mut root::nsCSSFrameConstructor, + pub mViewManager: *mut root::nsViewManager, + pub mFrameArena: root::nsPresArena, + pub mSelection: root::RefPtr, + pub mFrameManager: *mut root::nsFrameManagerBase, + pub mForwardingContainer: u64, + pub mDocAccessible: *mut root::mozilla::a11y::DocAccessible, + pub mReflowContinueTimer: root::nsCOMPtr, + pub mPaintCount: u64, + pub mScrollPositionClampingScrollPortSize: root::nsSize, + pub mAutoWeakFrames: *mut root::AutoWeakFrame, + pub mWeakFrames: [u64; 5usize], + pub mCanvasBackgroundColor: root::nscolor, + pub mResolution: [u32; 2usize], + pub mSelectionFlags: i16, + pub mRenderFlags: root::nsIPresShell_RenderFlags, + pub _bitfield_1: [u8; 2usize], + pub mPresShellId: u32, + pub mFontSizeInflationEmPerLine: u32, + pub mFontSizeInflationMinTwips: u32, + pub mFontSizeInflationLineThreshold: u32, + pub mFontSizeInflationForceEnabled: bool, + pub mFontSizeInflationDisabledInMasterProcess: bool, + pub mFontSizeInflationEnabled: bool, + pub mFontSizeInflationEnabledIsDirty: bool, + pub mPaintingIsFrozen: bool, + pub mIsNeverPainting: bool, + pub mInFlush: bool, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsIPresShell_COMTypeInfo { + pub _address: u8, + } + pub type nsIPresShell_LayerManager = root::mozilla::layers::LayerManager; + pub type nsIPresShell_SourceSurface = root::mozilla::gfx::SourceSurface; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_eRenderFlag { + STATE_IGNORING_VIEWPORT_SCROLLING = 1, + STATE_DRAWWINDOW_NOT_FLUSHING = 2, + } + pub type nsIPresShell_RenderFlags = u8; + #[repr(u32)] + /** + * Gets nearest scrollable frame from the specified content node. The frame + * is scrollable with overflow:scroll or overflow:auto in some direction when + * aDirection is eEither. Otherwise, this returns a nearest frame that is + * scrollable in the specified direction. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_ScrollDirection { + eHorizontal = 0, + eVertical = 1, + eEither = 2, + } + #[repr(u32)] + /** + * Tell the pres shell that a frame needs to be marked dirty and needs + * Reflow. It's OK if this is an ancestor of the frame needing reflow as + * long as the ancestor chain between them doesn't cross a reflow root. + * + * The bit to add should be NS_FRAME_IS_DIRTY, NS_FRAME_HAS_DIRTY_CHILDREN + * or nsFrameState(0); passing 0 means that dirty bits won't be set on the + * frame or its ancestors/descendants, but that intrinsic widths will still + * be marked dirty. Passing aIntrinsicDirty = eResize and aBitToAdd = 0 + * would result in no work being done, so don't do that. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_IntrinsicDirty { + eResize = 0, + eTreeChange = 1, + eStyleChange = 2, + } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_ReflowRootHandling { + ePositionOrSizeChange = 0, + eNoPositionOrSizeChange = 1, + eInferFromBitToAdd = 2, + } + pub const nsIPresShell_SCROLL_TOP: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_TOP; + pub const nsIPresShell_SCROLL_BOTTOM: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; + pub const nsIPresShell_SCROLL_LEFT: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_TOP; + pub const nsIPresShell_SCROLL_RIGHT: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_BOTTOM; + pub const nsIPresShell_SCROLL_CENTER: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_CENTER; + pub const nsIPresShell_SCROLL_MINIMUM: root::nsIPresShell__bindgen_ty_1 = + nsIPresShell__bindgen_ty_1::SCROLL_MINIMUM; + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_1 { + SCROLL_TOP = 0, + SCROLL_BOTTOM = 100, + SCROLL_CENTER = 50, + SCROLL_MINIMUM = -1, + } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_WhenToScroll { + SCROLL_ALWAYS = 0, + SCROLL_IF_NOT_VISIBLE = 1, + SCROLL_IF_NOT_FULLY_VISIBLE = 2, + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIPresShell_ScrollAxis { + pub _bindgen_opaque_blob: u32, + } + #[test] + fn bindgen_test_layout_nsIPresShell_ScrollAxis() { + assert_eq!(::std::mem::size_of::() , 4usize , + concat ! ( + "Size of: " , stringify ! ( nsIPresShell_ScrollAxis ) )); + assert_eq! (::std::mem::align_of::() , 4usize + , concat ! ( + "Alignment of " , stringify ! ( nsIPresShell_ScrollAxis ) + )); + } + impl Clone for nsIPresShell_ScrollAxis { + fn clone(&self) -> Self { *self } + } + pub const nsIPresShell_SCROLL_FIRST_ANCESTOR_ONLY: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_FIRST_ANCESTOR_ONLY; + pub const nsIPresShell_SCROLL_OVERFLOW_HIDDEN: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_OVERFLOW_HIDDEN; + pub const nsIPresShell_SCROLL_NO_PARENT_FRAMES: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_NO_PARENT_FRAMES; + pub const nsIPresShell_SCROLL_SMOOTH: root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH; + pub const nsIPresShell_SCROLL_SMOOTH_AUTO: + root::nsIPresShell__bindgen_ty_2 = + nsIPresShell__bindgen_ty_2::SCROLL_SMOOTH_AUTO; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_2 { + SCROLL_FIRST_ANCESTOR_ONLY = 1, + SCROLL_OVERFLOW_HIDDEN = 2, + SCROLL_NO_PARENT_FRAMES = 4, + SCROLL_SMOOTH = 8, + SCROLL_SMOOTH_AUTO = 16, + } + pub const nsIPresShell_RENDER_IS_UNTRUSTED: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_IS_UNTRUSTED; + pub const nsIPresShell_RENDER_IGNORE_VIEWPORT_SCROLLING: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_IGNORE_VIEWPORT_SCROLLING; + pub const nsIPresShell_RENDER_CARET: root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_CARET; + pub const nsIPresShell_RENDER_USE_WIDGET_LAYERS: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_USE_WIDGET_LAYERS; + pub const nsIPresShell_RENDER_ASYNC_DECODE_IMAGES: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_ASYNC_DECODE_IMAGES; + pub const nsIPresShell_RENDER_DOCUMENT_RELATIVE: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_DOCUMENT_RELATIVE; + pub const nsIPresShell_RENDER_DRAWWINDOW_NOT_FLUSHING: + root::nsIPresShell__bindgen_ty_3 = + nsIPresShell__bindgen_ty_3::RENDER_DRAWWINDOW_NOT_FLUSHING; + #[repr(u32)] + /** + * Render the document into an arbitrary gfxContext + * Designed for getting a picture of a document or a piece of a document + * Note that callers will generally want to call FlushPendingNotifications + * to get an up-to-date view of the document + * @param aRect is the region to capture into the offscreen buffer, in the + * root frame's coordinate system (if aIgnoreViewportScrolling is false) + * or in the root scrolled frame's coordinate system + * (if aIgnoreViewportScrolling is true). The coordinates are in appunits. + * @param aFlags see below; + * set RENDER_IS_UNTRUSTED if the contents may be passed to malicious + * agents. E.g. we might choose not to paint the contents of sensitive widgets + * such as the file name in a file upload widget, and we might choose not + * to paint themes. + * set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore + * clipping and scrollbar painting due to scrolling in the viewport + * set RENDER_CARET to draw the caret if one would be visible + * (by default the caret is never drawn) + * set RENDER_USE_LAYER_MANAGER to force rendering to go through + * the layer manager for the window. This may be unexpectedly slow + * (if the layer manager must read back data from the GPU) or low-quality + * (if the layer manager reads back pixel data and scales it + * instead of rendering using the appropriate scaling). It may also + * slow everything down if the area rendered does not correspond to the + * normal visible area of the window. + * set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously + * decoded during rendering. + * (by default images decode synchronously with RenderDocument) + * set RENDER_DOCUMENT_RELATIVE to render the document as if there has been + * no scrolling and interpret |aRect| relative to the document instead of the + * CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set + * or the document is in ignore viewport scrolling mode + * (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling). + * @param aBackgroundColor a background color to render onto + * @param aRenderedContext the gfxContext to render to. We render so that + * one CSS pixel in the source document is rendered to one unit in the current + * transform. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_3 { + RENDER_IS_UNTRUSTED = 1, + RENDER_IGNORE_VIEWPORT_SCROLLING = 2, + RENDER_CARET = 4, + RENDER_USE_WIDGET_LAYERS = 8, + RENDER_ASYNC_DECODE_IMAGES = 16, + RENDER_DOCUMENT_RELATIVE = 32, + RENDER_DRAWWINDOW_NOT_FLUSHING = 64, + } + pub const nsIPresShell_RENDER_IS_IMAGE: root::nsIPresShell__bindgen_ty_4 = + nsIPresShell__bindgen_ty_4::RENDER_IS_IMAGE; + pub const nsIPresShell_RENDER_AUTO_SCALE: root::nsIPresShell__bindgen_ty_4 + = + nsIPresShell__bindgen_ty_4::RENDER_AUTO_SCALE; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_4 { + RENDER_IS_IMAGE = 256, + RENDER_AUTO_SCALE = 128, + } + pub const nsIPresShell_FORCE_DRAW: root::nsIPresShell__bindgen_ty_5 = + nsIPresShell__bindgen_ty_5::FORCE_DRAW; + pub const nsIPresShell_ADD_FOR_SUBDOC: root::nsIPresShell__bindgen_ty_5 = + nsIPresShell__bindgen_ty_5::ADD_FOR_SUBDOC; + pub const nsIPresShell_APPEND_UNSCROLLED_ONLY: + root::nsIPresShell__bindgen_ty_5 = + nsIPresShell__bindgen_ty_5::APPEND_UNSCROLLED_ONLY; + #[repr(u32)] + /** + * Add a solid color item to the bottom of aList with frame aFrame and bounds + * aBounds. Checks first if this needs to be done by checking if aFrame is a + * canvas frame (if the FORCE_DRAW flag is passed then this check is skipped). + * aBackstopColor is composed behind the background color of the canvas, it is + * transparent by default. + * We attempt to make the background color part of the scrolled canvas (to reduce + * transparent layers), and if async scrolling is enabled (and the background + * is opaque) then we add a second, unscrolled item to handle the checkerboarding + * case. + * ADD_FOR_SUBDOC shoud be specified when calling this for a subdocument, and + * LayoutUseContainersForRootFrame might cause the whole list to be scrolled. In + * that case the second unscrolled item will be elided. + * APPEND_UNSCROLLED_ONLY only attempts to add the unscrolled item, so that we + * can add it manually after LayoutUseContainersForRootFrame has built the + * scrolling ContainerLayer. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell__bindgen_ty_5 { + FORCE_DRAW = 1, + ADD_FOR_SUBDOC = 2, + APPEND_UNSCROLLED_ONLY = 4, + } + #[repr(C)] + pub struct nsIPresShell_PointerCaptureInfo { + pub mPendingContent: root::nsCOMPtr, + pub mOverrideContent: root::nsCOMPtr, + } + #[test] + fn bindgen_test_layout_nsIPresShell_PointerCaptureInfo() { + assert_eq!(::std::mem::size_of::() , + 16usize , concat ! ( + "Size of: " , stringify ! ( nsIPresShell_PointerCaptureInfo + ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + nsIPresShell_PointerCaptureInfo ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . + mPendingContent as * const _ as usize } , 0usize , concat + ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( + mPendingContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerCaptureInfo ) ) . + mOverrideContent as * const _ as usize } , 8usize , concat + ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerCaptureInfo ) , "::" , stringify ! ( + mOverrideContent ) )); + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIPresShell_PointerInfo { + pub mPointerType: u16, + pub mActiveState: bool, + pub mPrimaryState: bool, + pub mPreventMouseEventByContent: bool, + } + #[test] + fn bindgen_test_layout_nsIPresShell_PointerInfo() { + assert_eq!(::std::mem::size_of::() , 6usize + , concat ! ( + "Size of: " , stringify ! ( nsIPresShell_PointerInfo ) )); + assert_eq! (::std::mem::align_of::() , + 2usize , concat ! ( + "Alignment of " , stringify ! ( nsIPresShell_PointerInfo ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mPointerType as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mPointerType ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mActiveState as * const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mActiveState ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mPrimaryState as * const _ as usize } , 3usize , concat ! + ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mPrimaryState ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell_PointerInfo ) ) . + mPreventMouseEventByContent as * const _ as usize } , + 4usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsIPresShell_PointerInfo ) , "::" , stringify ! ( + mPreventMouseEventByContent ) )); + } + impl Clone for nsIPresShell_PointerInfo { + fn clone(&self) -> Self { *self } + } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_PaintFlags { + PAINT_LAYERS = 1, + PAINT_COMPOSITE = 2, + PAINT_SYNC_DECODE_IMAGES = 4, + } + #[repr(u32)] + /** + * Ensures that the refresh driver is running, and schedules a view + * manager flush on the next tick. + * + * @param aType PAINT_DELAYED_COMPRESS : Schedule a paint to be executed after a delay, and + * put FrameLayerBuilder in 'compressed' mode that avoids short cut optimizations. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsIPresShell_PaintType { + PAINT_DEFAULT = 0, + PAINT_DELAYED_COMPRESS = 1, + } + extern "C" { + #[link_name = "_ZN12nsIPresShell12gCaptureInfoE"] + pub static mut nsIPresShell_gCaptureInfo: root::CapturingContentInfo; + } + extern "C" { + #[link_name = "_ZN12nsIPresShell14gKeyDownTargetE"] + pub static mut nsIPresShell_gKeyDownTarget: *mut root::nsIContent; + } + #[test] + fn bindgen_test_layout_nsIPresShell() { + assert_eq!(::std::mem::size_of::() , 5384usize , concat + ! ( "Size of: " , stringify ! ( nsIPresShell ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsIPresShell ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mDocument as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mDocument ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPresContext as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mStyleSet as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mStyleSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mFrameConstructor + as * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFrameConstructor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mViewManager as * + const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mViewManager ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mFrameArena as * + const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFrameArena ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mSelection as * + const _ as usize } , 5232usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mSelection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mFrameManager as * + const _ as usize } , 5240usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFrameManager ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mForwardingContainer as * const _ as usize } , 5248usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mForwardingContainer ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mDocAccessible as + * const _ as usize } , 5256usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mDocAccessible ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mReflowContinueTimer as * const _ as usize } , 5264usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mReflowContinueTimer ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPaintCount as * + const _ as usize } , 5272usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPaintCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mScrollPositionClampingScrollPortSize as * const _ as + usize } , 5280usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mScrollPositionClampingScrollPortSize + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mAutoWeakFrames as + * const _ as usize } , 5288usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mAutoWeakFrames ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mWeakFrames as * + const _ as usize } , 5296usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mWeakFrames ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mCanvasBackgroundColor as * const _ as usize } , 5336usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mCanvasBackgroundColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mResolution as * + const _ as usize } , 5340usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mResolution ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mSelectionFlags as + * const _ as usize } , 5348usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mSelectionFlags ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mRenderFlags as * + const _ as usize } , 5350usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mRenderFlags ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPresShellId as * + const _ as usize } , 5356usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPresShellId ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationEmPerLine as * const _ as usize } , + 5360usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationEmPerLine ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationMinTwips as * const _ as usize } , + 5364usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationMinTwips ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationLineThreshold as * const _ as usize } , + 5368usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationLineThreshold ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationForceEnabled as * const _ as usize } , + 5372usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationForceEnabled ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationDisabledInMasterProcess as * const _ as + usize } , 5373usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( + mFontSizeInflationDisabledInMasterProcess ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationEnabled as * const _ as usize } , + 5374usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationEnabled ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . + mFontSizeInflationEnabledIsDirty as * const _ as usize } , + 5375usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mFontSizeInflationEnabledIsDirty ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mPaintingIsFrozen + as * const _ as usize } , 5376usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mPaintingIsFrozen ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mIsNeverPainting + as * const _ as usize } , 5377usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mIsNeverPainting ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsIPresShell ) ) . mInFlush as * + const _ as usize } , 5378usize , concat ! ( + "Alignment of field: " , stringify ! ( nsIPresShell ) , + "::" , stringify ! ( mInFlush ) )); + } + impl nsIPresShell { + #[inline] + pub fn mDidInitialize(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1u64 as u16; + let val = (unit_field_val & mask) >> 0usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mDidInitialize(&mut self, val: bool) { + let mask = 1u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 0usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsDestroying(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2u64 as u16; + let val = (unit_field_val & mask) >> 1usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsDestroying(&mut self, val: bool) { + let mask = 2u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 1usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsReflowing(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 4u64 as u16; + let val = (unit_field_val & mask) >> 2usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsReflowing(&mut self, val: bool) { + let mask = 4u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 2usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mPaintingSuppressed(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 8u64 as u16; + let val = (unit_field_val & mask) >> 3usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mPaintingSuppressed(&mut self, val: bool) { + let mask = 8u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 3usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsActive(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 16u64 as u16; + let val = (unit_field_val & mask) >> 4usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsActive(&mut self, val: bool) { + let mask = 16u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 4usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mFrozen(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 32u64 as u16; + let val = (unit_field_val & mask) >> 5usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mFrozen(&mut self, val: bool) { + let mask = 32u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 5usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsFirstPaint(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 64u64 as u16; + let val = (unit_field_val & mask) >> 6usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsFirstPaint(&mut self, val: bool) { + let mask = 64u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 6usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mObservesMutationsForPrint(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 128u64 as u16; + let val = (unit_field_val & mask) >> 7usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mObservesMutationsForPrint(&mut self, val: bool) { + let mask = 128u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 7usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mSuppressInterruptibleReflows(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 256u64 as u16; + let val = (unit_field_val & mask) >> 8usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mSuppressInterruptibleReflows(&mut self, val: bool) { + let mask = 256u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 8usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mScrollPositionClampingScrollPortSizeSet(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 512u64 as u16; + let val = (unit_field_val & mask) >> 9usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mScrollPositionClampingScrollPortSizeSet(&mut self, + val: bool) { + let mask = 512u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 9usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mNeedLayoutFlush(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1024u64 as u16; + let val = (unit_field_val & mask) >> 10usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mNeedLayoutFlush(&mut self, val: bool) { + let mask = 1024u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 10usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mNeedStyleFlush(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2048u64 as u16; + let val = (unit_field_val & mask) >> 11usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mNeedStyleFlush(&mut self, val: bool) { + let mask = 2048u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 11usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mObservingStyleFlushes(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 4096u64 as u16; + let val = (unit_field_val & mask) >> 12usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mObservingStyleFlushes(&mut self, val: bool) { + let mask = 4096u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 12usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mObservingLayoutFlushes(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 8192u64 as u16; + let val = (unit_field_val & mask) >> 13usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mObservingLayoutFlushes(&mut self, val: bool) { + let mask = 8192u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 13usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mNeedThrottledAnimationFlush(&self) -> bool { + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 16384u64 as u16; + let val = (unit_field_val & mask) >> 14usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) { + let mask = 16384u64 as u16; + let val = val as u8 as u16; + let mut unit_field_val: u16 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as + *mut u16 as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 14usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn new_bitfield_1(mDidInitialize: bool, mIsDestroying: bool, + mIsReflowing: bool, mPaintingSuppressed: bool, + mIsActive: bool, mFrozen: bool, + mIsFirstPaint: bool, + mObservesMutationsForPrint: bool, + mSuppressInterruptibleReflows: bool, + mScrollPositionClampingScrollPortSizeSet: bool, + mNeedLayoutFlush: bool, mNeedStyleFlush: bool, + mObservingStyleFlushes: bool, + mObservingLayoutFlushes: bool, + mNeedThrottledAnimationFlush: bool) -> u16 { + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + ({ + 0 + } + | + ((mDidInitialize + as + u8 + as + u16) + << + 0usize) + & + (1u64 + as + u16)) + } + | + ((mIsDestroying + as + u8 + as + u16) + << + 1usize) + & + (2u64 + as + u16)) + } | + ((mIsReflowing + as + u8 + as + u16) + << + 2usize) + & + (4u64 + as + u16)) + } | + ((mPaintingSuppressed + as + u8 + as + u16) + << + 3usize) + & + (8u64 + as + u16)) + } | + ((mIsActive + as u8 + as + u16) + << + 4usize) + & + (16u64 + as + u16)) + } | + ((mFrozen as u8 + as u16) << + 5usize) & + (32u64 as + u16)) + } | + ((mIsFirstPaint as u8 + as u16) << + 6usize) & + (64u64 as u16)) + } | + ((mObservesMutationsForPrint + as u8 as u16) << + 7usize) & + (128u64 as u16)) + } | + ((mSuppressInterruptibleReflows + as u8 as u16) << 8usize) + & (256u64 as u16)) + } | + ((mScrollPositionClampingScrollPortSizeSet + as u8 as u16) << 9usize) & + (512u64 as u16)) + } | + ((mNeedLayoutFlush as u8 as u16) << + 10usize) & (1024u64 as u16)) + } | + ((mNeedStyleFlush as u8 as u16) << 11usize) & + (2048u64 as u16)) + } | + ((mObservingStyleFlushes as u8 as u16) << 12usize) + & (4096u64 as u16)) + } | + ((mObservingLayoutFlushes as u8 as u16) << 13usize) & + (8192u64 as u16)) + } | + ((mNeedThrottledAnimationFlush as u8 as u16) << 14usize) & + (16384u64 as u16)) + } + } + /** * A class that implements nsIWeakReference */ #[repr(C)] @@ -29490,57 +29236,62 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_TYPE_SPECIFIC_BITS_OFFSET; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsRange { + _unused: [u8; 0], + } + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_IS_EDITABLE; + pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_IS_NATIVE_ANONYMOUS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_72 = + _bindgen_ty_72::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_83 { + pub enum _bindgen_ty_72 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -29929,6 +29680,7 @@ pub mod root { impl Clone for nsFrameManagerBase { fn clone(&self) -> Self { *self } } + pub type nsIntRect = root::mozilla::gfx::IntRect; #[repr(C)] #[derive(Debug, Copy)] pub struct nsIWeakReference { @@ -30440,6 +30192,106 @@ pub mod root { TEXT_IN_OFFSET_CACHE = 9223372036854775808, } #[repr(C)] + #[derive(Debug, Copy)] + pub struct pixman_region32_data { + pub size: ::std::os::raw::c_long, + pub numRects: ::std::os::raw::c_long, + } + #[test] + fn bindgen_test_layout_pixman_region32_data() { + assert_eq!(::std::mem::size_of::() , 16usize , + concat ! ( + "Size of: " , stringify ! ( pixman_region32_data ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( pixman_region32_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32_data ) ) . size as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + pixman_region32_data ) , "::" , stringify ! ( size ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32_data ) ) . numRects + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( + pixman_region32_data ) , "::" , stringify ! ( numRects ) + )); + } + impl Clone for pixman_region32_data { + fn clone(&self) -> Self { *self } + } + pub type pixman_region32_data_t = root::pixman_region32_data; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct pixman_box32 { + pub x1: i32, + pub y1: i32, + pub x2: i32, + pub y2: i32, + } + #[test] + fn bindgen_test_layout_pixman_box32() { + assert_eq!(::std::mem::size_of::() , 16usize , concat ! + ( "Size of: " , stringify ! ( pixman_box32 ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( pixman_box32 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . x1 as * const _ as + usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( x1 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . y1 as * const _ as + usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( y1 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . x2 as * const _ as + usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( x2 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_box32 ) ) . y2 as * const _ as + usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_box32 ) , + "::" , stringify ! ( y2 ) )); + } + impl Clone for pixman_box32 { + fn clone(&self) -> Self { *self } + } + pub type pixman_box32_t = root::pixman_box32; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct pixman_region32 { + pub extents: root::pixman_box32_t, + pub data: *mut root::pixman_region32_data_t, + } + #[test] + fn bindgen_test_layout_pixman_region32() { + assert_eq!(::std::mem::size_of::() , 24usize , concat + ! ( "Size of: " , stringify ! ( pixman_region32 ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( pixman_region32 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32 ) ) . extents as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_region32 ) , + "::" , stringify ! ( extents ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const pixman_region32 ) ) . data as * const + _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( pixman_region32 ) , + "::" , stringify ! ( data ) )); + } + impl Clone for pixman_region32 { + fn clone(&self) -> Self { *self } + } + pub type pixman_region32_t = root::pixman_region32; + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum VisitSide { TOP = 0, BOTTOM = 1, LEFT = 2, RIGHT = 3, } + #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct gfxContext { _unused: [u8; 0], @@ -31777,11 +31629,6 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct nsRange { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct nsSMILAnimationController { _unused: [u8; 0], } @@ -34493,14 +34340,13 @@ pub mod root { pub mURI: root::RefPtr, pub mListener: *mut root::imgINotificationObserver, pub mLoadGroup: root::nsCOMPtr, + pub mTabGroup: root::RefPtr, + pub mEventTarget: root::nsCOMPtr, pub mLoadFlags: root::nsLoadFlags, pub mLockCount: u32, pub mAnimationConsumers: u32, - pub mCanceled: bool, - pub mIsInLoadGroup: bool, - pub mListenerIsStrongRef: bool, - pub mDecodeRequested: bool, - pub mDeferNotifications: bool, + pub _bitfield_1: u8, + pub __bindgen_padding_0: [u8; 3usize], } pub type imgRequestProxy_Image = root::mozilla::image::Image; pub type imgRequestProxy_ImageURL = root::mozilla::image::ImageURL; @@ -34539,13 +34385,311 @@ pub mod root { } #[test] fn bindgen_test_layout_imgRequestProxy() { - assert_eq!(::std::mem::size_of::() , 112usize , + assert_eq!(::std::mem::size_of::() , 120usize , concat ! ( "Size of: " , stringify ! ( imgRequestProxy ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( imgRequestProxy ) )); } + impl imgRequestProxy { + #[inline] + pub fn mCanceled(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1u64 as u8; + let val = (unit_field_val & mask) >> 0usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mCanceled(&mut self, val: bool) { + let mask = 1u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 0usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mIsInLoadGroup(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2u64 as u8; + let val = (unit_field_val & mask) >> 1usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mIsInLoadGroup(&mut self, val: bool) { + let mask = 2u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 1usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mListenerIsStrongRef(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 4u64 as u8; + let val = (unit_field_val & mask) >> 2usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mListenerIsStrongRef(&mut self, val: bool) { + let mask = 4u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 2usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mDecodeRequested(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 8u64 as u8; + let val = (unit_field_val & mask) >> 3usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mDecodeRequested(&mut self, val: bool) { + let mask = 8u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 3usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mDeferNotifications(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 16u64 as u8; + let val = (unit_field_val & mask) >> 4usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mDeferNotifications(&mut self, val: bool) { + let mask = 16u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 4usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mHadListener(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 32u64 as u8; + let val = (unit_field_val & mask) >> 5usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mHadListener(&mut self, val: bool) { + let mask = 32u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 5usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mHadDispatch(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 64u64 as u8; + let val = (unit_field_val & mask) >> 6usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mHadDispatch(&mut self, val: bool) { + let mask = 64u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 6usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn new_bitfield_1(mCanceled: bool, mIsInLoadGroup: bool, + mListenerIsStrongRef: bool, + mDecodeRequested: bool, + mDeferNotifications: bool, mHadListener: bool, + mHadDispatch: bool) -> u8 { + ({ + ({ + ({ + ({ + ({ + ({ + ({ 0 } | + ((mCanceled as u8 as u8) << + 0usize) & (1u64 as u8)) + } | + ((mIsInLoadGroup as u8 as u8) << + 1usize) & (2u64 as u8)) + } | + ((mListenerIsStrongRef as u8 as u8) << + 2usize) & (4u64 as u8)) + } | + ((mDecodeRequested as u8 as u8) << 3usize) & + (8u64 as u8)) + } | + ((mDeferNotifications as u8 as u8) << 4usize) & + (16u64 as u8)) + } | ((mHadListener as u8 as u8) << 5usize) & (32u64 as u8)) + } | ((mHadDispatch as u8 as u8) << 6usize) & (64u64 as u8)) + } + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSUnit { @@ -38658,46 +38802,46 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_1; pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_85 + root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_74 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; + pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_PENDING_RESTYLE_FLAGS; + pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; + pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_ALL_RESTYLE_FLAGS; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_74 = + _bindgen_ty_74::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_85 { + pub enum _bindgen_ty_74 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -39350,7 +39494,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_88() { + fn __bindgen_test_layout_IntegralConstant_instantiation_77() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39359,7 +39503,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_89() { + fn __bindgen_test_layout_IntegralConstant_instantiation_78() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39368,7 +39512,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_90() { + fn __bindgen_test_layout_nsCharTraits_instantiation_79() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39379,7 +39523,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_91() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_80() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39390,7 +39534,7 @@ pub mod root { root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_92() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_81() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39401,7 +39545,7 @@ pub mod root { root::nsWritingIterator ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_93() { + fn __bindgen_test_layout_nsCharTraits_instantiation_82() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39412,7 +39556,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_94() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_83() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39423,7 +39567,7 @@ pub mod root { root::nsReadingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_95() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_84() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39434,7 +39578,7 @@ pub mod root { root::nsWritingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_96() { + fn __bindgen_test_layout_nsCharTraits_instantiation_85() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39445,7 +39589,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_97() { + fn __bindgen_test_layout_nsCharTraits_instantiation_86() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39456,7 +39600,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_217394_instantiation_98() { + fn __bindgen_test_layout__bindgen_ty_id_192593_instantiation_87() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39465,7 +39609,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_217430_instantiation_99() { + fn __bindgen_test_layout__bindgen_ty_id_192629_instantiation_88() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39474,7 +39618,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_100() { + fn __bindgen_test_layout_nsTArray_instantiation_89() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39485,7 +39629,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_101() { + fn __bindgen_test_layout_Handle_instantiation_90() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39496,7 +39640,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_102() { + fn __bindgen_test_layout_Handle_instantiation_91() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39507,7 +39651,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_103() { + fn __bindgen_test_layout_Handle_instantiation_92() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39518,7 +39662,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_104() { + fn __bindgen_test_layout_MutableHandle_instantiation_93() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39529,7 +39673,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_105() { + fn __bindgen_test_layout_Rooted_instantiation_94() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39540,7 +39684,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_106() { + fn __bindgen_test_layout_DeletePolicy_instantiation_95() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39551,7 +39695,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_107() { + fn __bindgen_test_layout_nsTArray_instantiation_96() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39562,7 +39706,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_108() { + fn __bindgen_test_layout_nsTArray_instantiation_97() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39573,7 +39717,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_109() { + fn __bindgen_test_layout_nsTArray_instantiation_98() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39584,7 +39728,7 @@ pub mod root { root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_110() { + fn __bindgen_test_layout_nsTArray_instantiation_99() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39595,260 +39739,7 @@ pub mod root { root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_111() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_112() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_SizeTyped_instantiation_113() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_RectTyped_instantiation_114() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_115() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntSizeTyped_instantiation_116() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_117() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_MarginTyped_instantiation_118() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_RectTyped_instantiation_119() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_120() { - assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 4usize] ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactor_instantiation_121() { - assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( - "Size of template specialization: " , stringify ! ( u32 ) - )); - assert_eq!(::std::mem::align_of::() , 4usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u32 ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_122() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_123() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_124() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 2usize] ) )); - } - #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_125() { - assert_eq!(::std::mem::size_of::() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::BaseTimeDuration ) )); - assert_eq!(::std::mem::align_of::() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::BaseTimeDuration ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_126() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_127() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_128() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_129() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_130() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_131() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] - fn __bindgen_test_layout_WeakPtr_instantiation_132() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_133() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_134() { + fn __bindgen_test_layout_already_AddRefed_instantiation_100() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39859,7 +39750,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_135() { + fn __bindgen_test_layout_already_AddRefed_instantiation_101() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39870,7 +39761,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_136() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_102() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39881,7 +39772,18 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_137() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_103() { + assert_eq!(::std::mem::size_of::() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::BaseTimeDuration ) )); + assert_eq!(::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::BaseTimeDuration ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_104() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39892,7 +39794,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_138() { + fn __bindgen_test_layout_TErrorResult_instantiation_105() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39903,7 +39805,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_139() { + fn __bindgen_test_layout_TErrorResult_instantiation_106() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39914,7 +39816,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_140() { + fn __bindgen_test_layout_already_AddRefed_instantiation_107() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39925,7 +39827,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_141() { + fn __bindgen_test_layout_Handle_instantiation_108() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39936,6 +39838,367 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_109() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_110() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_111() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_112() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_113() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_114() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_115() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_116() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_117() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_118() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_119() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_120() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_121() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_122() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_123() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_124() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_125() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_126() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_127() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_128() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_129() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_130() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_131() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_132() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_133() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_134() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_iterator_instantiation_135() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::std::iterator ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::std::iterator ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_136() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_137() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_138() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::DeletePolicy ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_139() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_140() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_141() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] fn __bindgen_test_layout_MutableHandle_instantiation_142() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -39947,337 +40210,18 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_143() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_143() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::nsTArray ) )); } #[test] fn __bindgen_test_layout_nsTArray_instantiation_144() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_145() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_146() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_147() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_148() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_149() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_150() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_151() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_152() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_153() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_154() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_155() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_156() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_157() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_158() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_159() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_160() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_161() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_162() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_163() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_164() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_iterator_instantiation_165() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::std::iterator ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::std::iterator ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_166() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_167() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_168() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_169() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_170() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_171() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_172() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40288,18 +40232,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_174() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_Heap_instantiation_175() { + fn __bindgen_test_layout_Heap_instantiation_145() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40310,7 +40243,7 @@ pub mod root { root::JS::Heap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_176() { + fn __bindgen_test_layout_Heap_instantiation_146() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40321,7 +40254,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_177() { + fn __bindgen_test_layout_TenuredHeap_instantiation_147() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40332,7 +40265,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_178() { + fn __bindgen_test_layout_already_AddRefed_instantiation_148() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40343,7 +40276,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_179() { + fn __bindgen_test_layout_NotNull_instantiation_149() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40356,7 +40289,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_180() { + fn __bindgen_test_layout_nsTArray_instantiation_150() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40369,7 +40302,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_181() { + fn __bindgen_test_layout_RefPtr_instantiation_151() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40380,7 +40313,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_182() { + fn __bindgen_test_layout_nsTArray_instantiation_152() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40393,7 +40326,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_183() { + fn __bindgen_test_layout_RefPtr_instantiation_153() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40404,7 +40337,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_184() { + fn __bindgen_test_layout_nsTArray_instantiation_154() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40417,7 +40350,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_185() { + fn __bindgen_test_layout_nsTArray_instantiation_155() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40428,7 +40361,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_186() { + fn __bindgen_test_layout_RefPtr_instantiation_156() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40439,7 +40372,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_187() { + fn __bindgen_test_layout_nsTArray_instantiation_157() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40452,7 +40385,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_188() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_158() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40463,7 +40396,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_189() { + fn __bindgen_test_layout_nsTArray_instantiation_159() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40474,7 +40407,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_190() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_160() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40485,7 +40418,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_191() { + fn __bindgen_test_layout_already_AddRefed_instantiation_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40496,7 +40429,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_192() { + fn __bindgen_test_layout_already_AddRefed_instantiation_162() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40507,7 +40440,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_193() { + fn __bindgen_test_layout_RefPtr_instantiation_163() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40518,7 +40451,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_194() { + fn __bindgen_test_layout_nsTArray_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40529,7 +40462,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_195() { + fn __bindgen_test_layout_already_AddRefed_instantiation_165() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40540,7 +40473,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_196() { + fn __bindgen_test_layout_MutableHandle_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40551,7 +40484,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_197() { + fn __bindgen_test_layout_already_AddRefed_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40562,7 +40495,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_198() { + fn __bindgen_test_layout_already_AddRefed_instantiation_168() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40573,7 +40506,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_199() { + fn __bindgen_test_layout_already_AddRefed_instantiation_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40584,7 +40517,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_200() { + fn __bindgen_test_layout_RefPtr_instantiation_170() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40595,7 +40528,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_201() { + fn __bindgen_test_layout_nsTArray_instantiation_171() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40608,7 +40541,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_202() { + fn __bindgen_test_layout_Handle_instantiation_172() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40619,6 +40552,344 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_173() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_174() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_175() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_176() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_177() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_178() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_179() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_180() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_181() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_182() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_183() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_184() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_185() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_186() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_187() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_188() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_189() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_190() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_191() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_192() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_193() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_194() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsRefPtrHashKey + ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsRefPtrHashKey + ) )); + } + #[test] + fn __bindgen_test_layout_nsDataHashtable_instantiation_195() { + assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_196() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_197() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_nsTHashtable_instantiation_198() { + assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_199() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_200() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_201() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::nsIContent> ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_202() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_203() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40630,18 +40901,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_204() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_205() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_204() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40652,7 +40912,66 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_206() { + fn __bindgen_test_layout_RefPtr_instantiation_205() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_206() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_207() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_208() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_209() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_210() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40663,7 +40982,295 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_207() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_211() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_212() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_213() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_NotNull_instantiation_214() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + } + #[test] + fn __bindgen_test_layout_NotNull_instantiation_215() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_216() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_217() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_218() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_219() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_220() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_221() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_222() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_223() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_224() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_225() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_226() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_227() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_228() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_229() { + assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 30usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + [u64; 30usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_230() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_231() { + assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_232() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_233() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_234() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_235() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_236() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_237() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40674,7 +41281,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_208() { + fn __bindgen_test_layout_nsTArray_instantiation_238() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40687,457 +41294,31 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_209() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_RefPtr_instantiation_239() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_210() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_240() { + assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::nsTArray> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_211() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_212() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_213() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_214() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_215() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_216() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_217() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_218() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_219() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_220() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_221() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_222() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_223() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_224() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_225() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_226() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_227() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_228() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_229() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_230() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_231() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_232() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsRefPtrHashKey - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsRefPtrHashKey - ) )); - } - #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_233() { - assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_234() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_235() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_nsTHashtable_instantiation_236() { - assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_237() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_238() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_239() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_240() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_241() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_242() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_243() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_244() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_245() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_246() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_247() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_248() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_249() { + fn __bindgen_test_layout_WeakPtr_instantiation_241() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41146,209 +41327,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_250() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_251() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_252() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_253() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_254() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_255() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_256() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsRefPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_257() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_258() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_259() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_260() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_261() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_262() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_263() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_264() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_265() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_266() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_267() { - assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat - ! ( - "Size of template specialization: " , stringify ! ( - [u64; 30usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - [u64; 30usize] ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_268() { + fn __bindgen_test_layout_already_AddRefed_instantiation_242() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41359,18 +41338,18 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_269() { - assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! - ( + fn __bindgen_test_layout_nsPtrHashKey_instantiation_243() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! - ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u64; 5usize] ) )); + root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_270() { + fn __bindgen_test_layout_Handle_instantiation_244() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41381,29 +41360,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_271() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_272() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_273() { + fn __bindgen_test_layout_OwningNonNull_instantiation_245() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41414,7 +41371,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_274() { + fn __bindgen_test_layout_OwningNonNull_instantiation_246() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41425,7 +41382,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_275() { + fn __bindgen_test_layout_OwningNonNull_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41436,7 +41393,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_276() { + fn __bindgen_test_layout_Handle_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41447,7 +41404,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_277() { + fn __bindgen_test_layout_Handle_instantiation_249() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41458,7 +41415,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_278() { + fn __bindgen_test_layout_Handle_instantiation_250() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41469,7 +41426,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_279() { + fn __bindgen_test_layout_MutableHandle_instantiation_251() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41480,7 +41437,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_280() { + fn __bindgen_test_layout_Handle_instantiation_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41491,7 +41448,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_281() { + fn __bindgen_test_layout_MutableHandle_instantiation_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41502,7 +41459,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_282() { + fn __bindgen_test_layout_Handle_instantiation_254() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41513,7 +41470,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_283() { + fn __bindgen_test_layout_MutableHandle_instantiation_255() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41524,7 +41481,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_284() { + fn __bindgen_test_layout_Handle_instantiation_256() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41535,7 +41492,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_285() { + fn __bindgen_test_layout_Handle_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41546,7 +41503,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_286() { + fn __bindgen_test_layout_Handle_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41557,7 +41514,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_287() { + fn __bindgen_test_layout_MutableHandle_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41568,7 +41525,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_288() { + fn __bindgen_test_layout_RefPtr_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41579,7 +41536,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_289() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_261() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41590,7 +41547,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_290() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_262() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41601,7 +41558,159 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_291() { + fn __bindgen_test_layout_PointTyped_instantiation_263() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntPointTyped_instantiation_264() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_SizeTyped_instantiation_265() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_RectTyped_instantiation_266() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntPointTyped_instantiation_267() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntSizeTyped_instantiation_268() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntRectTyped_instantiation_269() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_MarginTyped_instantiation_270() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_RectTyped_instantiation_271() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_IntRectTyped_instantiation_272() { + assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 4usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 4usize] ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactor_instantiation_273() { + assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( + "Size of template specialization: " , stringify ! ( u32 ) + )); + assert_eq!(::std::mem::align_of::() , 4usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u32 ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactors2D_instantiation_274() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactors2D_instantiation_275() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_ScaleFactors2D_instantiation_276() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 2usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_277() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41612,7 +41721,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_292() { + fn __bindgen_test_layout_already_AddRefed_instantiation_278() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41623,7 +41732,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_293() { + fn __bindgen_test_layout_NotNull_instantiation_279() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41636,7 +41745,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_294() { + fn __bindgen_test_layout_already_AddRefed_instantiation_280() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41647,7 +41756,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_295() { + fn __bindgen_test_layout_already_AddRefed_instantiation_281() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41659,14 +41768,14 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy)] - pub struct _bindgen_ty_51 { + pub struct _bindgen_ty_41 { pub _address: u8, } - impl Clone for _bindgen_ty_51 { + impl Clone for _bindgen_ty_41 { fn clone(&self) -> Self { *self } } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_296() { + fn __bindgen_test_layout_already_AddRefed_instantiation_282() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41677,7 +41786,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_297() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_283() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41688,7 +41797,7 @@ pub mod root { [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_298() { + fn __bindgen_test_layout_MutableHandle_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41699,6 +41808,162 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_285() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_286() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_287() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_288() { + assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + } + #[test] + fn __bindgen_test_layout_Rooted_instantiation_289() { + assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 3usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_Rooted_instantiation_290() { + assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 3usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_291() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_292() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_293() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_NotNull_instantiation_294() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_295() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_296() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_297() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_298() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] fn __bindgen_test_layout_MutableHandle_instantiation_299() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41710,108 +41975,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_300() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_301() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_302() { - assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - } - #[test] - fn __bindgen_test_layout_Rooted_instantiation_303() { - assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 3usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_Rooted_instantiation_304() { - assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 3usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_305() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_306() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_307() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_308() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::mozilla::Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_309() { + fn __bindgen_test_layout_nsTArray_instantiation_300() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41822,29 +41986,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_310() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_311() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_312() { + fn __bindgen_test_layout_Handle_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41855,40 +41997,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_313() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_314() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_315() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_316() { + fn __bindgen_test_layout_RefPtr_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41899,7 +42008,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_317() { + fn __bindgen_test_layout_RefPtr_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41910,7 +42019,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_318() { + fn __bindgen_test_layout_RefPtr_instantiation_304() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41921,7 +42030,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_319() { + fn __bindgen_test_layout_nsTArray_instantiation_305() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41934,7 +42043,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_320() { + fn __bindgen_test_layout_RefPtr_instantiation_306() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41945,7 +42054,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_321() { + fn __bindgen_test_layout_already_AddRefed_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41956,7 +42065,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_322() { + fn __bindgen_test_layout_already_AddRefed_instantiation_308() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41967,7 +42076,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_323() { + fn __bindgen_test_layout_Handle_instantiation_309() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41978,7 +42087,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_324() { + fn __bindgen_test_layout_nsTArray_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41989,7 +42098,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_325() { + fn __bindgen_test_layout_RefPtr_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42002,7 +42111,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_326() { + fn __bindgen_test_layout_nsTArray_instantiation_312() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42015,7 +42124,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_327() { + fn __bindgen_test_layout_RefPtr_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42028,7 +42137,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_328() { + fn __bindgen_test_layout_UniquePtr_instantiation_314() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42039,7 +42148,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_329() { + fn __bindgen_test_layout_nsTArray_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42050,7 +42159,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_330() { + fn __bindgen_test_layout_Handle_instantiation_316() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42061,7 +42170,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_331() { + fn __bindgen_test_layout_MutableHandle_instantiation_317() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42072,7 +42181,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_332() { + fn __bindgen_test_layout_Handle_instantiation_318() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42083,7 +42192,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_333() { + fn __bindgen_test_layout_MutableHandle_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42094,7 +42203,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_334() { + fn __bindgen_test_layout_already_AddRefed_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42105,7 +42214,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_335() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_321() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42116,7 +42225,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_336() { + fn __bindgen_test_layout_OwningNonNull_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42129,7 +42238,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_337() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42140,7 +42249,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_338() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_324() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42151,7 +42260,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_339() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_325() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42162,7 +42271,18 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_340() { + fn __bindgen_test_layout_already_AddRefed_instantiation_326() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_327() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42173,7 +42293,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_341() { + fn __bindgen_test_layout_already_AddRefed_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42184,7 +42304,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_342() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42195,7 +42315,7 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_343() { + fn __bindgen_test_layout_already_AddRefed_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42206,7 +42326,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_344() { + fn __bindgen_test_layout_already_AddRefed_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42217,6 +42337,147 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_332() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_333() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_334() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsPtrHashKey_instantiation_335() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_336() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_337() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_338() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_339() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_340() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_341() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_342() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_343() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_344() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_345() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42228,37 +42489,37 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_346() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_Maybe_instantiation_346() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_347() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_Maybe_instantiation_347() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_348() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( + fn __bindgen_test_layout_already_AddRefed_instantiation_348() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); + root::already_AddRefed ) )); } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_349() { @@ -42284,14 +42545,14 @@ pub mod root { } #[test] fn __bindgen_test_layout_UniquePtr_instantiation_351() { - assert_eq!(::std::mem::size_of::>() + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::mozilla::UniquePtr ) )); } #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_352() { @@ -42306,59 +42567,17 @@ pub mod root { } #[test] fn __bindgen_test_layout_UniquePtr_instantiation_353() { - assert_eq!(::std::mem::size_of::>() + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::mozilla::UniquePtr ) )); } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_354() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_355() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_356() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_357() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_358() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42369,7 +42588,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_359() { + fn __bindgen_test_layout_Maybe_instantiation_355() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42380,40 +42599,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_360() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_361() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_362() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_363() { + fn __bindgen_test_layout_DefaultDelete_instantiation_356() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42424,18 +42610,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_364() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_365() { + fn __bindgen_test_layout_DefaultDelete_instantiation_357() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42446,62 +42621,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_366() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_367() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Maybe_instantiation_368() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_369() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_370() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_pair_instantiation_371() { + fn __bindgen_test_layout_pair_instantiation_358() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42512,7 +42632,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_372() { + fn __bindgen_test_layout_nsTArray_instantiation_359() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -42527,7 +42647,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_373() { + fn __bindgen_test_layout_nsTArray_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42538,7 +42658,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_374() { + fn __bindgen_test_layout_nsTArray_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42549,7 +42669,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_375() { + fn __bindgen_test_layout_nsTArray_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42560,7 +42680,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_376() { + fn __bindgen_test_layout_RefPtr_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42571,7 +42691,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_377() { + fn __bindgen_test_layout_nsTArray_instantiation_364() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42582,7 +42702,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_378() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_365() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42593,7 +42713,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_379() { + fn __bindgen_test_layout_DefaultDelete_instantiation_366() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42604,7 +42724,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_380() { + fn __bindgen_test_layout_UniquePtr_instantiation_367() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42615,7 +42735,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_381() { + fn __bindgen_test_layout_DefaultDelete_instantiation_368() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42626,7 +42746,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_382() { + fn __bindgen_test_layout_UniquePtr_instantiation_369() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42637,7 +42757,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_383() { + fn __bindgen_test_layout_RefPtr_instantiation_370() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42648,7 +42768,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_384() { + fn __bindgen_test_layout_RefPtr_instantiation_371() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42659,7 +42779,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_385() { + fn __bindgen_test_layout_NonNull_instantiation_372() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42672,7 +42792,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_386() { + fn __bindgen_test_layout_NonNull_instantiation_373() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42685,7 +42805,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_387() { + fn __bindgen_test_layout_Handle_instantiation_374() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42696,7 +42816,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_388() { + fn __bindgen_test_layout_MutableHandle_instantiation_375() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42707,7 +42827,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_389() { + fn __bindgen_test_layout_Maybe_instantiation_376() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42718,7 +42838,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_390() { + fn __bindgen_test_layout_Maybe_instantiation_377() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42729,7 +42849,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_391() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_378() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42740,7 +42860,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_392() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_379() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42751,7 +42871,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_393() { + fn __bindgen_test_layout_already_AddRefed_instantiation_380() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42762,7 +42882,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_394() { + fn __bindgen_test_layout_already_AddRefed_instantiation_381() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42773,7 +42893,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_395() { + fn __bindgen_test_layout_nsTArray_instantiation_382() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42784,7 +42904,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_396() { + fn __bindgen_test_layout_nsTArray_instantiation_383() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42795,7 +42915,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_397() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_384() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42806,7 +42926,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_398() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_385() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42819,7 +42939,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_399() { + fn __bindgen_test_layout_DefaultDelete_instantiation_386() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42830,7 +42950,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_400() { + fn __bindgen_test_layout_already_AddRefed_instantiation_387() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42841,7 +42961,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_401() { + fn __bindgen_test_layout_nsTArray_instantiation_388() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42854,7 +42974,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_402() { + fn __bindgen_test_layout_Handle_instantiation_389() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42865,6 +42985,143 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_390() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_391() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_392() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_393() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Sequence_instantiation_394() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_395() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_Sequence_instantiation_396() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_Sequence_instantiation_397() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_398() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_399() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_400() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_401() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_402() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::MutableHandle ) )); + } + #[test] fn __bindgen_test_layout_Handle_instantiation_403() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42876,144 +43133,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_404() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_405() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_406() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_Sequence_instantiation_407() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_408() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_Sequence_instantiation_409() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_Sequence_instantiation_410() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_411() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_412() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_413() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_414() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_415() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_416() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_417() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_404() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43024,7 +43144,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_418() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_405() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43035,7 +43155,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_419() { + fn __bindgen_test_layout_Handle_instantiation_406() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43046,7 +43166,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_420() { + fn __bindgen_test_layout_nsTArray_instantiation_407() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43057,7 +43177,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_421() { + fn __bindgen_test_layout_nsTArray_instantiation_408() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43068,7 +43188,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_422() { + fn __bindgen_test_layout_nsTArray_instantiation_409() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43079,7 +43199,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_423() { + fn __bindgen_test_layout_RefPtr_instantiation_410() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43090,7 +43210,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_424() { + fn __bindgen_test_layout_nsTArray_instantiation_411() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43101,7 +43221,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_425() { + fn __bindgen_test_layout_nsTArray_instantiation_412() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43112,7 +43232,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_426() { + fn __bindgen_test_layout_nsTArray_instantiation_413() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43123,7 +43243,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_427() { + fn __bindgen_test_layout_already_AddRefed_instantiation_414() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43134,7 +43254,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_428() { + fn __bindgen_test_layout_Handle_instantiation_415() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43145,7 +43265,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_429() { + fn __bindgen_test_layout_nsTArray_instantiation_416() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43156,7 +43276,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_430() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_417() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! (