diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index a4d46f45276..0fcebe94d17 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -1070,17 +1070,10 @@ 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>>, @@ -2443,16 +2436,6 @@ 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 @@ -3280,6 +3263,142 @@ 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, + eSentinel = 3, + } + #[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 } + } + #[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 { @@ -7045,88 +7164,102 @@ pub mod root { impl Clone for ChangesToFlush { fn clone(&self) -> Self { *self } } - /** - * EventStates is the class used to represent the event states of nsIContent - * instances. These states are calculated by IntrinsicState() and - * ContentStatesChanged() has to be called when one of them changes thus - * informing the layout/style engine of the change. - * Event states are associated with pseudo-classes. - */ #[repr(C)] #[derive(Debug, Copy)] - pub struct EventStates { - pub mStates: root::mozilla::EventStates_InternalType, + pub struct CSSPixel { + pub _address: u8, } - pub type EventStates_InternalType = u64; - pub type EventStates_ServoType = u64; #[test] - fn bindgen_test_layout_EventStates() { - assert_eq!(::std::mem::size_of::() , 8usize , concat - ! ( "Size of: " , stringify ! ( EventStates ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( EventStates ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const EventStates ) ) . mStates as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( EventStates ) , - "::" , stringify ! ( mStates ) )); + 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 EventStates { + impl Clone for CSSPixel { fn clone(&self) -> Self { *self } } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRootBehavior { - Normal = 0, - UnstyledChildrenOnly = 1, + #[repr(C)] + #[derive(Debug, Copy)] + pub struct LayoutDevicePixel { + pub _address: u8, } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRestyleBehavior { - Normal = 0, - ForNewlyBoundElement = 1, - ForReconstruct = 2, - ForAnimationOnly = 3, - ForCSSRuleChanges = 4, + #[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 ) + )); } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StyleRuleInclusion { All = 0, DefaultOnly = 1, } - pub const UpdateAnimationsTasks_CSSAnimations: - root::mozilla::UpdateAnimationsTasks = - 1; - pub const UpdateAnimationsTasks_CSSTransitions: - root::mozilla::UpdateAnimationsTasks = - 2; - pub const UpdateAnimationsTasks_EffectProperties: - root::mozilla::UpdateAnimationsTasks = - 4; - pub const UpdateAnimationsTasks_CascadeResults: - root::mozilla::UpdateAnimationsTasks = - 8; - pub type UpdateAnimationsTasks = u8; - pub const ParsingMode_Default: root::mozilla::ParsingMode = 0; - pub const ParsingMode_AllowUnitlessLength: root::mozilla::ParsingMode - = - 1; - pub const ParsingMode_AllowAllNumericValues: - root::mozilla::ParsingMode = - 2; - pub type ParsingMode = u8; - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum InheritTarget { - Text = 0, - FirstLetterContinuation = 1, - PlaceholderFrame = 2, + impl Clone for LayoutDevicePixel { + fn clone(&self) -> Self { *self } } - #[repr(u8)] - /** - * Enumeration that represents one of the two supported style system backends. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StyleBackendType { None = 0, Gecko = 1, Servo = 2, } + #[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 @@ -7246,6 +7379,88 @@ pub mod root { * 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 + * ContentStatesChanged() has to be called when one of them changes thus + * informing the layout/style engine of the change. + * Event states are associated with pseudo-classes. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct EventStates { + pub mStates: root::mozilla::EventStates_InternalType, + } + pub type EventStates_InternalType = u64; + pub type EventStates_ServoType = u64; + #[test] + fn bindgen_test_layout_EventStates() { + assert_eq!(::std::mem::size_of::() , 8usize , concat + ! ( "Size of: " , stringify ! ( EventStates ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( EventStates ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const EventStates ) ) . mStates as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( EventStates ) , + "::" , stringify ! ( mStates ) )); + } + impl Clone for EventStates { + fn clone(&self) -> Self { *self } + } + #[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, + ForAnimationOnly = 3, + ForCSSRuleChanges = 4, + } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StyleRuleInclusion { All = 0, DefaultOnly = 1, } + pub const UpdateAnimationsTasks_CSSAnimations: + root::mozilla::UpdateAnimationsTasks = + 1; + pub const UpdateAnimationsTasks_CSSTransitions: + root::mozilla::UpdateAnimationsTasks = + 2; + pub const UpdateAnimationsTasks_EffectProperties: + root::mozilla::UpdateAnimationsTasks = + 4; + pub const UpdateAnimationsTasks_CascadeResults: + root::mozilla::UpdateAnimationsTasks = + 8; + pub type UpdateAnimationsTasks = u8; + pub const ParsingMode_Default: root::mozilla::ParsingMode = 0; + pub const ParsingMode_AllowUnitlessLength: root::mozilla::ParsingMode + = + 1; + pub const ParsingMode_AllowAllNumericValues: + root::mozilla::ParsingMode = + 2; + pub type ParsingMode = u8; + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum InheritTarget { + Text = 0, + FirstLetterContinuation = 1, + PlaceholderFrame = 2, + } + #[repr(u8)] + /** + * Enumeration that represents one of the two supported style system backends. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StyleBackendType { None = 0, Gecko = 1, Servo = 2, } #[repr(C)] #[derive(Debug, Copy)] pub struct ErrorResult { @@ -7898,102 +8113,6 @@ 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], @@ -10964,13 +11083,15 @@ pub mod root { eColorID__moz_mac_menutextselect = 84, eColorID__moz_mac_disabledtoolbartext = 85, eColorID__moz_mac_secondaryhighlight = 86, - eColorID__moz_win_mediatext = 87, - eColorID__moz_win_communicationstext = 88, - eColorID__moz_nativehyperlinktext = 89, - eColorID__moz_comboboxtext = 90, - eColorID__moz_combobox = 91, - eColorID__moz_gtk_info_bar_text = 92, - eColorID_LAST_COLOR = 93, + eColorID__moz_win_accentcolor = 87, + eColorID__moz_win_accentcolortext = 88, + eColorID__moz_win_mediatext = 89, + eColorID__moz_win_communicationstext = 90, + eColorID__moz_nativehyperlinktext = 91, + eColorID__moz_comboboxtext = 92, + eColorID__moz_combobox = 93, + eColorID__moz_gtk_info_bar_text = 94, + eColorID_LAST_COLOR = 95, } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -11000,33 +11121,34 @@ pub mod root { eIntID_TreeScrollLinesMax = 22, eIntID_TabFocusModel = 23, eIntID_ChosenMenuItemsShouldBlink = 24, - eIntID_WindowsDefaultTheme = 25, - eIntID_DWMCompositor = 26, - eIntID_WindowsClassic = 27, - eIntID_WindowsGlass = 28, - eIntID_TouchEnabled = 29, - eIntID_MacGraphiteTheme = 30, - eIntID_MacYosemiteTheme = 31, - eIntID_AlertNotificationOrigin = 32, - eIntID_ScrollToClick = 33, - eIntID_IMERawInputUnderlineStyle = 34, - eIntID_IMESelectedRawTextUnderlineStyle = 35, - eIntID_IMEConvertedTextUnderlineStyle = 36, - eIntID_IMESelectedConvertedTextUnderline = 37, - eIntID_SpellCheckerUnderlineStyle = 38, - eIntID_MenuBarDrag = 39, - eIntID_WindowsThemeIdentifier = 40, - eIntID_OperatingSystemVersionIdentifier = 41, - eIntID_ScrollbarButtonAutoRepeatBehavior = 42, - eIntID_TooltipDelay = 43, - eIntID_SwipeAnimationEnabled = 44, - eIntID_ColorPickerAvailable = 45, - eIntID_PhysicalHomeButton = 46, - eIntID_ScrollbarDisplayOnMouseMove = 47, - eIntID_ScrollbarFadeBeginDelay = 48, - eIntID_ScrollbarFadeDuration = 49, - eIntID_ContextMenuOffsetVertical = 50, - eIntID_ContextMenuOffsetHorizontal = 51, + eIntID_WindowsAccentColorApplies = 25, + eIntID_WindowsDefaultTheme = 26, + eIntID_DWMCompositor = 27, + eIntID_WindowsClassic = 28, + eIntID_WindowsGlass = 29, + eIntID_TouchEnabled = 30, + eIntID_MacGraphiteTheme = 31, + eIntID_MacYosemiteTheme = 32, + eIntID_AlertNotificationOrigin = 33, + eIntID_ScrollToClick = 34, + eIntID_IMERawInputUnderlineStyle = 35, + eIntID_IMESelectedRawTextUnderlineStyle = 36, + eIntID_IMEConvertedTextUnderlineStyle = 37, + eIntID_IMESelectedConvertedTextUnderline = 38, + eIntID_SpellCheckerUnderlineStyle = 39, + eIntID_MenuBarDrag = 40, + eIntID_WindowsThemeIdentifier = 41, + eIntID_OperatingSystemVersionIdentifier = 42, + eIntID_ScrollbarButtonAutoRepeatBehavior = 43, + eIntID_TooltipDelay = 44, + eIntID_SwipeAnimationEnabled = 45, + eIntID_ColorPickerAvailable = 46, + eIntID_PhysicalHomeButton = 47, + eIntID_ScrollbarDisplayOnMouseMove = 48, + eIntID_ScrollbarFadeBeginDelay = 49, + eIntID_ScrollbarFadeDuration = 50, + eIntID_ContextMenuOffsetVertical = 51, + eIntID_ContextMenuOffsetHorizontal = 52, } #[repr(u32)] /** @@ -15701,22 +15823,7 @@ pub mod root { * become 'float', perhaps, in some configurations. */ pub type gfxFloat = f64; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct gfxSize { - pub _bindgen_opaque_blob: [u64; 2usize], - } - pub type gfxSize_Super = [u64; 2usize]; - #[test] - fn bindgen_test_layout_gfxSize() { - assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( - "Size of: " , stringify ! ( gfxSize ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( gfxSize ) )); - } - impl Clone for gfxSize { - fn clone(&self) -> Self { *self } - } + pub type gfxSize = [u64; 2usize]; pub type nsIntRect = root::mozilla::gfx::IntRect; pub const nsStyleUnit_eStyleUnit_MAX: root::nsStyleUnit = nsStyleUnit::eStyleUnit_Calc; @@ -16189,6 +16296,1376 @@ pub mod root { nsEventStatus_eConsumeDoDefault = 2, nsEventStatus_eSentinel = 3, } + #[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)] + #[derive(Debug)] + 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(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -24775,1269 +26252,6 @@ 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)] - #[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)] - #[derive(Debug)] - 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)] @@ -26080,57 +26294,57 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_89 = - _bindgen_ty_89::NODE_TYPE_SPECIFIC_BITS_OFFSET; + 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(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_89 { + pub enum _bindgen_ty_85 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -27069,106 +27283,6 @@ 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], @@ -28577,6 +28691,7 @@ pub mod root { } pub use self::super::root::mozilla::StyleGeometryBox as nsStyleDisplay_StyleGeometryBox; + pub const nsStyleDisplay_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleDisplay() { assert_eq!(::std::mem::size_of::() , 416usize , concat @@ -29761,58 +29876,60 @@ pub mod root { eCSSKeyword__moz_win_media_toolbox = 707, eCSSKeyword__moz_win_communications_toolbox = 708, eCSSKeyword__moz_win_browsertabbar_toolbox = 709, - eCSSKeyword__moz_win_mediatext = 710, - eCSSKeyword__moz_win_communicationstext = 711, - eCSSKeyword__moz_win_glass = 712, - eCSSKeyword__moz_win_borderless_glass = 713, - eCSSKeyword__moz_window_titlebar = 714, - eCSSKeyword__moz_window_titlebar_maximized = 715, - eCSSKeyword__moz_window_frame_left = 716, - eCSSKeyword__moz_window_frame_right = 717, - eCSSKeyword__moz_window_frame_bottom = 718, - eCSSKeyword__moz_window_button_close = 719, - eCSSKeyword__moz_window_button_minimize = 720, - eCSSKeyword__moz_window_button_maximize = 721, - eCSSKeyword__moz_window_button_restore = 722, - eCSSKeyword__moz_window_button_box = 723, - eCSSKeyword__moz_window_button_box_maximized = 724, - eCSSKeyword__moz_mac_help_button = 725, - eCSSKeyword__moz_win_exclude_glass = 726, - eCSSKeyword__moz_mac_vibrancy_light = 727, - eCSSKeyword__moz_mac_vibrancy_dark = 728, - eCSSKeyword__moz_mac_disclosure_button_closed = 729, - eCSSKeyword__moz_mac_disclosure_button_open = 730, - eCSSKeyword__moz_mac_source_list = 731, - eCSSKeyword__moz_mac_source_list_selection = 732, - eCSSKeyword__moz_mac_active_source_list_selection = 733, - eCSSKeyword_alphabetic = 734, - eCSSKeyword_bevel = 735, - eCSSKeyword_butt = 736, - eCSSKeyword_central = 737, - eCSSKeyword_crispedges = 738, - eCSSKeyword_evenodd = 739, - eCSSKeyword_geometricprecision = 740, - eCSSKeyword_hanging = 741, - eCSSKeyword_ideographic = 742, - eCSSKeyword_linearrgb = 743, - eCSSKeyword_mathematical = 744, - eCSSKeyword_miter = 745, - eCSSKeyword_no_change = 746, - eCSSKeyword_non_scaling_stroke = 747, - eCSSKeyword_nonzero = 748, - eCSSKeyword_optimizelegibility = 749, - eCSSKeyword_optimizequality = 750, - eCSSKeyword_optimizespeed = 751, - eCSSKeyword_reset_size = 752, - eCSSKeyword_srgb = 753, - eCSSKeyword_symbolic = 754, - eCSSKeyword_symbols = 755, - eCSSKeyword_text_after_edge = 756, - eCSSKeyword_text_before_edge = 757, - eCSSKeyword_use_script = 758, - eCSSKeyword__moz_crisp_edges = 759, - eCSSKeyword_space = 760, - eCSSKeyword_COUNT = 761, + eCSSKeyword__moz_win_accentcolor = 710, + eCSSKeyword__moz_win_accentcolortext = 711, + eCSSKeyword__moz_win_mediatext = 712, + eCSSKeyword__moz_win_communicationstext = 713, + eCSSKeyword__moz_win_glass = 714, + eCSSKeyword__moz_win_borderless_glass = 715, + eCSSKeyword__moz_window_titlebar = 716, + eCSSKeyword__moz_window_titlebar_maximized = 717, + eCSSKeyword__moz_window_frame_left = 718, + eCSSKeyword__moz_window_frame_right = 719, + eCSSKeyword__moz_window_frame_bottom = 720, + eCSSKeyword__moz_window_button_close = 721, + eCSSKeyword__moz_window_button_minimize = 722, + eCSSKeyword__moz_window_button_maximize = 723, + eCSSKeyword__moz_window_button_restore = 724, + eCSSKeyword__moz_window_button_box = 725, + eCSSKeyword__moz_window_button_box_maximized = 726, + eCSSKeyword__moz_mac_help_button = 727, + eCSSKeyword__moz_win_exclude_glass = 728, + eCSSKeyword__moz_mac_vibrancy_light = 729, + eCSSKeyword__moz_mac_vibrancy_dark = 730, + eCSSKeyword__moz_mac_disclosure_button_closed = 731, + eCSSKeyword__moz_mac_disclosure_button_open = 732, + eCSSKeyword__moz_mac_source_list = 733, + eCSSKeyword__moz_mac_source_list_selection = 734, + eCSSKeyword__moz_mac_active_source_list_selection = 735, + eCSSKeyword_alphabetic = 736, + eCSSKeyword_bevel = 737, + eCSSKeyword_butt = 738, + eCSSKeyword_central = 739, + eCSSKeyword_crispedges = 740, + eCSSKeyword_evenodd = 741, + eCSSKeyword_geometricprecision = 742, + eCSSKeyword_hanging = 743, + eCSSKeyword_ideographic = 744, + eCSSKeyword_linearrgb = 745, + eCSSKeyword_mathematical = 746, + eCSSKeyword_miter = 747, + eCSSKeyword_no_change = 748, + eCSSKeyword_non_scaling_stroke = 749, + eCSSKeyword_nonzero = 750, + eCSSKeyword_optimizelegibility = 751, + eCSSKeyword_optimizequality = 752, + eCSSKeyword_optimizespeed = 753, + eCSSKeyword_reset_size = 754, + eCSSKeyword_srgb = 755, + eCSSKeyword_symbolic = 756, + eCSSKeyword_symbols = 757, + eCSSKeyword_text_after_edge = 758, + eCSSKeyword_text_before_edge = 759, + eCSSKeyword_use_script = 760, + eCSSKeyword__moz_crisp_edges = 761, + eCSSKeyword_space = 762, + eCSSKeyword_COUNT = 763, } pub const nsCSSPropertyID_eCSSProperty_COUNT_no_shorthands: root::nsCSSPropertyID = @@ -33062,6 +33179,7 @@ pub mod root { pub mTextOrientation: u8, pub mColorAdjust: u8, } + pub const nsStyleVisibility_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleVisibility() { assert_eq!(::std::mem::size_of::() , 7usize , @@ -33126,6 +33244,7 @@ pub mod root { pub mScriptSizeMultiplier: f32, pub mLanguage: root::nsCOMPtr, } + pub const nsStyleFont_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleFont() { assert_eq!(::std::mem::size_of::() , 120usize , concat ! @@ -33544,6 +33663,7 @@ pub mod root { pub struct nsStyleColor { pub mColor: root::nscolor, } + pub const nsStyleColor_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleColor() { assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( @@ -33908,6 +34028,7 @@ pub mod root { pub mImage: root::nsStyleImageLayers, pub mBackgroundColor: root::mozilla::StyleComplexColor, } + pub const nsStyleBackground_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleBackground() { assert_eq!(::std::mem::size_of::() , 160usize , @@ -33933,6 +34054,7 @@ pub mod root { pub struct nsStyleMargin { pub mMargin: root::nsStyleSides, } + pub const nsStyleMargin_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleMargin() { assert_eq!(::std::mem::size_of::() , 40usize , concat ! @@ -33950,6 +34072,7 @@ pub mod root { pub struct nsStylePadding { pub mPadding: root::nsStyleSides, } + pub const nsStylePadding_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStylePadding() { assert_eq!(::std::mem::size_of::() , 40usize , concat @@ -34172,6 +34295,7 @@ pub mod root { impl Clone for nsStyleBorder__bindgen_ty_1 { fn clone(&self) -> Self { *self } } + pub const nsStyleBorder_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleBorder() { assert_eq!(::std::mem::size_of::() , 312usize , concat @@ -34270,6 +34394,7 @@ pub mod root { pub mActualOutlineWidth: root::nscoord, pub mTwipsPerPixel: root::nscoord, } + pub const nsStyleOutline_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleOutline() { assert_eq!(::std::mem::size_of::() , 104usize , concat @@ -34347,7 +34472,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_92() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_88() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34358,7 +34483,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_93() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_89() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34377,6 +34502,7 @@ pub mod root { pub mQuotes: root::RefPtr, pub mImageRegion: root::nsRect, } + pub const nsStyleList_kHasFinishStyle: bool = true; extern "C" { #[link_name = "_ZN11nsStyleList14sInitialQuotesE"] pub static mut nsStyleList_sInitialQuotes: @@ -34636,6 +34762,7 @@ pub mod root { pub mGridColumnGap: root::nsStyleCoord, pub mGridRowGap: root::nsStyleCoord, } + pub const nsStylePosition_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStylePosition() { assert_eq!(::std::mem::size_of::() , 520usize , @@ -34909,6 +35036,7 @@ pub mod root { pub mInitialLetterSize: f32, pub mTextDecorationColor: root::mozilla::StyleComplexColor, } + pub const nsStyleTextReset_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleTextReset() { assert_eq!(::std::mem::size_of::() , 80usize , @@ -34990,6 +35118,7 @@ pub mod root { pub mTextShadow: root::RefPtr, pub mTextEmphasisStyleString: ::nsstring::nsStringRepr, } + pub const nsStyleText_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleText() { assert_eq!(::std::mem::size_of::() , 160usize , concat ! @@ -35434,6 +35563,7 @@ pub mod root { pub mLayoutStrategy: u8, pub mSpan: i32, } + pub const nsStyleTable_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleTable() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( @@ -35460,6 +35590,7 @@ pub mod root { pub mCaptionSide: u8, pub mEmptyCells: u8, } + pub const nsStyleTableBorder_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleTableBorder() { assert_eq!(::std::mem::size_of::() , 12usize , @@ -35656,6 +35787,7 @@ pub mod root { pub mIncrements: root::nsTArray, pub mResets: root::nsTArray, } + pub const nsStyleContent_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleContent() { assert_eq!(::std::mem::size_of::() , 24usize , concat @@ -35690,6 +35822,7 @@ pub mod root { pub mSpecifiedWindowTransform: root::RefPtr, pub mWindowTransformOrigin: [root::nsStyleCoord; 2usize], } + pub const nsStyleUIReset_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleUIReset() { assert_eq!(::std::mem::size_of::() , 56usize , concat @@ -35786,6 +35919,7 @@ pub mod root { pub mCursorImages: root::nsTArray, pub mCaretColor: root::mozilla::StyleComplexColor, } + pub const nsStyleUserInterface_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleUserInterface() { assert_eq!(::std::mem::size_of::() , 24usize , @@ -35850,6 +35984,7 @@ pub mod root { pub mBoxPack: root::mozilla::StyleBoxPack, pub mStackSizing: root::mozilla::StyleStackSizing, } + pub const nsStyleXUL_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleXUL() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( @@ -35905,6 +36040,7 @@ pub mod root { pub mColumnRuleWidth: root::nscoord, pub mTwipsPerPixel: root::nscoord, } + pub const nsStyleColumn_kHasFinishStyle: bool = false; pub const nsStyleColumn_kMaxColumnCount: u32 = 1000; #[test] fn bindgen_test_layout_nsStyleColumn() { @@ -36102,6 +36238,7 @@ pub mod root { FILL_OPACITY_SOURCE_SHIFT = 0, STROKE_OPACITY_SOURCE_SHIFT = 2, } + pub const nsStyleSVG_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleSVG() { assert_eq!(::std::mem::size_of::() , 128usize , concat ! ( @@ -36265,6 +36402,7 @@ pub mod root { impl Clone for nsStyleFilter__bindgen_ty_1 { fn clone(&self) -> Self { *self } } + pub const nsStyleFilter_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleFilter() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! @@ -36296,6 +36434,7 @@ pub mod root { pub mVectorEffect: u8, pub mMaskType: u8, } + pub const nsStyleSVGReset_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleSVGReset() { assert_eq!(::std::mem::size_of::() , 192usize , @@ -36361,6 +36500,7 @@ pub mod root { pub struct nsStyleVariables { pub mVariables: root::mozilla::CSSVariableValues, } + pub const nsStyleVariables_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleVariables() { assert_eq!(::std::mem::size_of::() , 56usize , @@ -36385,6 +36525,7 @@ pub mod root { pub mClipFlags: u8, pub mMixBlendMode: u8, } + pub const nsStyleEffects_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleEffects() { assert_eq!(::std::mem::size_of::() , 40usize , concat @@ -37486,48 +37627,48 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_1; + 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_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_91 + 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 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_HAS_SCROLLGRAB: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_HAS_SCROLLGRAB; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_91 = - _bindgen_ty_91::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + 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_HAS_SCROLLGRAB: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_HAS_SCROLLGRAB; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_91 { + pub enum _bindgen_ty_87 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -38116,7 +38257,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_94() { + fn __bindgen_test_layout_IntegralConstant_instantiation_90() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38125,7 +38266,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_95() { + fn __bindgen_test_layout_IntegralConstant_instantiation_91() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38134,7 +38275,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_96() { + fn __bindgen_test_layout_nsCharTraits_instantiation_92() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38145,7 +38286,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_97() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_93() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38156,7 +38297,7 @@ pub mod root { root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_98() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_94() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38167,6 +38308,50 @@ pub mod root { root::nsWritingIterator ) )); } #[test] + fn __bindgen_test_layout_nsCharTraits_instantiation_95() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCharTraits ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCharTraits ) )); + } + #[test] + fn __bindgen_test_layout_nsReadingIterator_instantiation_96() { + assert_eq!(::std::mem::size_of::>() + , 24usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsReadingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsReadingIterator<::std::os::raw::c_char> ) )); + } + #[test] + fn __bindgen_test_layout_nsWritingIterator_instantiation_97() { + assert_eq!(::std::mem::size_of::>() + , 24usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsWritingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsWritingIterator<::std::os::raw::c_char> ) )); + } + #[test] + fn __bindgen_test_layout_nsCharTraits_instantiation_98() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCharTraits ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCharTraits ) )); + } + #[test] fn __bindgen_test_layout_nsCharTraits_instantiation_99() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -38178,51 +38363,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_100() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsReadingIterator<::std::os::raw::c_char> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator<::std::os::raw::c_char> ) )); - } - #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_101() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsWritingIterator<::std::os::raw::c_char> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator<::std::os::raw::c_char> ) )); - } - #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_102() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCharTraits ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCharTraits ) )); - } - #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_103() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCharTraits ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCharTraits ) )); - } - #[test] - fn __bindgen_test_layout__bindgen_ty_id_216140_instantiation_104() { + fn __bindgen_test_layout__bindgen_ty_id_214776_instantiation_100() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38231,7 +38372,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_216176_instantiation_105() { + fn __bindgen_test_layout__bindgen_ty_id_214812_instantiation_101() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38240,7 +38381,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_106() { + fn __bindgen_test_layout_nsTArray_instantiation_102() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38251,7 +38392,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_107() { + fn __bindgen_test_layout_Handle_instantiation_103() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38262,7 +38403,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_108() { + fn __bindgen_test_layout_Handle_instantiation_104() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38273,7 +38414,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_109() { + fn __bindgen_test_layout_Handle_instantiation_105() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38284,7 +38425,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_110() { + fn __bindgen_test_layout_MutableHandle_instantiation_106() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38295,7 +38436,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_111() { + fn __bindgen_test_layout_Rooted_instantiation_107() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38306,7 +38447,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_112() { + fn __bindgen_test_layout_DeletePolicy_instantiation_108() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38317,7 +38458,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_113() { + fn __bindgen_test_layout_nsTArray_instantiation_109() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38328,7 +38469,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_114() { + fn __bindgen_test_layout_nsTArray_instantiation_110() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38339,7 +38480,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_115() { + fn __bindgen_test_layout_nsTArray_instantiation_111() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38350,7 +38491,7 @@ pub mod root { root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_116() { + fn __bindgen_test_layout_nsTArray_instantiation_112() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38361,7 +38502,159 @@ pub mod root { root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_117() { + 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 ! ( @@ -38372,106 +38665,29 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_118() { - 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_119() { - assert_eq!(::std::mem::size_of::() - , 32usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - assert_eq!(::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - } - #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_120() { - assert_eq!(::std::mem::size_of::() - , 32usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - assert_eq!(::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_121() { - assert_eq!(::std::mem::size_of::>() + 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::>() + 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_Handle_instantiation_122() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_129() { + 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_MutableHandle_instantiation_123() { - 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_124() { - 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_125() { - 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_126() { - 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_127() { + fn __bindgen_test_layout_RefPtr_instantiation_130() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38482,7 +38698,119 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_128() { + 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_nsTArray_instantiation_137() { + 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_138() { + assert_eq!(::std::mem::size_of::() + , 32usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + assert_eq!(::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + } + #[test] + fn __bindgen_test_layout_TErrorResult_instantiation_139() { + assert_eq!(::std::mem::size_of::() + , 32usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + assert_eq!(::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_140() { + 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_141() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38493,7 +38821,18 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_129() { + fn __bindgen_test_layout_MutableHandle_instantiation_142() { + 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_143() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38504,7 +38843,62 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + 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 ! ( @@ -38515,7 +38909,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_131() { + fn __bindgen_test_layout_already_AddRefed_instantiation_150() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38526,7 +38920,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_132() { + fn __bindgen_test_layout_already_AddRefed_instantiation_151() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38537,215 +38931,6 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_133() { - 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_134() { - 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_135() { - 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_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_DeletePolicy_instantiation_140() { - 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_141() { - 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_142() { - 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_143() { - 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_144() { - 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_145() { - 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_146() { - 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_147() { - 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_148() { - 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_149() { - 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_150() { - 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_151() { - 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_152() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -38768,7 +38953,216 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_154() { + 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 ! ( @@ -38779,7 +39173,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_155() { + fn __bindgen_test_layout_nsTArray_instantiation_174() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38790,7 +39184,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_156() { + fn __bindgen_test_layout_Heap_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38801,7 +39195,7 @@ pub mod root { root::JS::Heap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_157() { + fn __bindgen_test_layout_Heap_instantiation_176() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38812,7 +39206,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_158() { + fn __bindgen_test_layout_TenuredHeap_instantiation_177() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38823,7 +39217,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_159() { + fn __bindgen_test_layout_already_AddRefed_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38834,7 +39228,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_160() { + fn __bindgen_test_layout_NotNull_instantiation_179() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38847,7 +39241,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_161() { + fn __bindgen_test_layout_nsTArray_instantiation_180() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38860,7 +39254,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_162() { + fn __bindgen_test_layout_RefPtr_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38871,7 +39265,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_163() { + fn __bindgen_test_layout_nsTArray_instantiation_182() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38884,7 +39278,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_164() { + fn __bindgen_test_layout_RefPtr_instantiation_183() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38895,7 +39289,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_165() { + fn __bindgen_test_layout_nsTArray_instantiation_184() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38908,7 +39302,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_166() { + fn __bindgen_test_layout_nsTArray_instantiation_185() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38919,7 +39313,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_167() { + fn __bindgen_test_layout_RefPtr_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38930,7 +39324,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_168() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38941,7 +39335,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_169() { + fn __bindgen_test_layout_nsTArray_instantiation_188() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38952,7 +39346,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_170() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38963,7 +39357,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_171() { + fn __bindgen_test_layout_already_AddRefed_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38974,7 +39368,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_172() { + fn __bindgen_test_layout_already_AddRefed_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38985,7 +39379,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_173() { + fn __bindgen_test_layout_RefPtr_instantiation_192() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38996,7 +39390,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_174() { + fn __bindgen_test_layout_nsTArray_instantiation_193() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39007,7 +39401,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_175() { + fn __bindgen_test_layout_already_AddRefed_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39018,7 +39412,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_176() { + fn __bindgen_test_layout_MutableHandle_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39029,7 +39423,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_177() { + fn __bindgen_test_layout_already_AddRefed_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39040,7 +39434,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_178() { + fn __bindgen_test_layout_already_AddRefed_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39051,7 +39445,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_179() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39062,7 +39456,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_180() { + fn __bindgen_test_layout_RefPtr_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39073,7 +39467,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_181() { + fn __bindgen_test_layout_Handle_instantiation_200() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39084,219 +39478,6 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_182() { - 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_183() { - 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_184() { - 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_185() { - 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_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_nsTArray_instantiation_187() { - 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_Handle_instantiation_188() { - 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_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_UniquePtr_instantiation_190() { - 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_191() { - 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_192() { - 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_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_Handle_instantiation_194() { - 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_195() { - 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_196() { - 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_197() { - 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_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_nsTArray_instantiation_199() { - 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_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_already_AddRefed_instantiation_201() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -39309,549 +39490,28 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_202() { - 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_SupportsWeakPtr_instantiation_203() { - 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_204() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsCOMPtr_instantiation_203() { + 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_nsTArray_instantiation_205() { - 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_206() { - 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_207() { - 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_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_DefaultDelete_instantiation_209() { - 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_210() { - 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_211() { - 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_212() { - 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_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_Handle_instantiation_218() { - 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_219() { - 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_220() { - 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_221() { - assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat - ! ( - "Size of template specialization: " , stringify ! ( - [u64; 31usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 31usize]>() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - [u64; 31usize] ) )); - } - #[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_nsRefPtrHashtable_instantiation_223() { - 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_224() { - 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_225() { - 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_226() { - 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_227() { - 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_228() { - 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_229() { - 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_230() { - 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_231() { - 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_232() { - 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_233() { - 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_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_OwningNonNull_instantiation_235() { - 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_236() { - 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_237() { - 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_238() { - 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_239() { - 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_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_MutableHandle_instantiation_241() { - 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_242() { - 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_243() { - 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_244() { - 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_245() { - 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_246() { - 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_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::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_248() { - 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_249() { - 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_250() { - 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_251() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_204() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39862,282 +39522,42 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_252() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( + fn __bindgen_test_layout_RefPtr_instantiation_205() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey<::std::os::raw::c_void> ) )); - assert_eq!(::std::mem::align_of::>() + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey<::std::os::raw::c_void> ) )); + root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_253() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( + fn __bindgen_test_layout_nsTArray_instantiation_206() { + assert_eq!(::std::mem::size_of::>>() + , 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_254() { - 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_255() { - 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_256() { - 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_257() { - 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_258() { - 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_259() { - 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_260() { - 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_261() { - 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_262() { - 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_263() { - assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( - "Size of template specialization: " , stringify ! ( u32 ) + root::nsTArray> ) )); - assert_eq!(::std::mem::align_of::() , 4usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u32 ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_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_ScaleFactors2D_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_ScaleFactors2D_instantiation_266() { - 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_267() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + assert_eq!(::std::mem::align_of::>>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_268() { - 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_269() { - 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> ) + root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_270() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_207() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_271() { - 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_272() { - 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_nsPIDOMWindow_instantiation_273() { - assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat - ! ( - "Size of template specialization: " , stringify ! ( - [u64; 31usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 31usize]>() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - [u64; 31usize] ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_274() { - 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_275() { - 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_276() { - 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_277() { + fn __bindgen_test_layout_DefaultDelete_instantiation_208() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40148,7 +39568,86 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_278() { + fn __bindgen_test_layout_UniquePtr_instantiation_209() { + 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_210() { + 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_211() { + 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_212() { + 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_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::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_214() { + 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_215() { + 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_216() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40159,62 +39658,93 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_279() { - 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_280() { - 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_281() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_217() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_282() { - 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::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); + root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_283() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_219() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); + root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_284() { + 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_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_SupportsWeakPtr_instantiation_222() { + 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_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_nsTArray_instantiation_224() { + 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_225() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40227,7 +39757,207 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_285() { + fn __bindgen_test_layout_NotNull_instantiation_226() { + 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_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_DefaultDelete_instantiation_228() { + 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_229() { + 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_230() { + 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_231() { + 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_232() { + 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_233() { + 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_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_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_Handle_instantiation_238() { + 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_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::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_240() { + assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 31usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 31usize]>() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + [u64; 31usize] ) )); + } + #[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_nsRefPtrHashtable_instantiation_242() { + 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_243() { + 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_244() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40238,7 +39968,51 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_286() { + fn __bindgen_test_layout_Handle_instantiation_245() { + 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_246() { + 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_247() { + 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_248() { + 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_249() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40249,7 +40023,29 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_287() { + fn __bindgen_test_layout_Handle_instantiation_250() { + 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_251() { + 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_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40260,6 +40056,395 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_253() { + 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_254() { + 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_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_MutableHandle_instantiation_256() { + 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_257() { + 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_258() { + 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_259() { + 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_260() { + 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_261() { + 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_262() { + 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_263() { + 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_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_NotNull_instantiation_266() { + 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_267() { + 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_268() { + 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_269() { + 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_nsPIDOMWindow_instantiation_270() { + assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 31usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 31usize]>() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + [u64; 31usize] ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_271() { + 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_272() { + 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_273() { + 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_274() { + 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_275() { + 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_Rooted_instantiation_276() { + 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_277() { + 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_278() { + 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_279() { + 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_280() { + 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_281() { + 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_282() { + 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_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::>() + , 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_285() { + 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_286() { + 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_287() { + 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_288() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40271,40 +40456,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_289() { - 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_290() { - 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_291() { - 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_292() { + fn __bindgen_test_layout_RefPtr_instantiation_289() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40315,6 +40467,41 @@ pub mod root { root::RefPtr ) )); } #[test] + fn __bindgen_test_layout_RefPtr_instantiation_290() { + 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_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_nsTArray_instantiation_292() { + 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_293() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40326,42 +40513,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_294() { - 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_295() { - 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_296() { - 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_297() { + fn __bindgen_test_layout_already_AddRefed_instantiation_294() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40372,7 +40524,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_298() { + fn __bindgen_test_layout_already_AddRefed_instantiation_295() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40383,7 +40535,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_299() { + fn __bindgen_test_layout_Handle_instantiation_296() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40394,7 +40546,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_300() { + fn __bindgen_test_layout_nsTArray_instantiation_297() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40405,7 +40557,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_301() { + fn __bindgen_test_layout_RefPtr_instantiation_298() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40418,7 +40570,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_302() { + fn __bindgen_test_layout_nsTArray_instantiation_299() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40431,7 +40583,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_303() { + fn __bindgen_test_layout_RefPtr_instantiation_300() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40444,7 +40596,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_304() { + fn __bindgen_test_layout_UniquePtr_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40455,7 +40607,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_305() { + fn __bindgen_test_layout_nsTArray_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40466,7 +40618,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_306() { + fn __bindgen_test_layout_Handle_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40477,7 +40629,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_307() { + fn __bindgen_test_layout_MutableHandle_instantiation_304() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40488,7 +40640,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_308() { + fn __bindgen_test_layout_Handle_instantiation_305() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40499,7 +40651,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_309() { + fn __bindgen_test_layout_MutableHandle_instantiation_306() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40510,7 +40662,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_310() { + fn __bindgen_test_layout_already_AddRefed_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40521,7 +40673,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_311() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_308() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40532,7 +40684,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_312() { + fn __bindgen_test_layout_OwningNonNull_instantiation_309() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40545,7 +40697,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_313() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40556,7 +40708,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_314() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40567,7 +40719,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_315() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40578,7 +40730,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_316() { + fn __bindgen_test_layout_DefaultDelete_instantiation_313() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40589,7 +40741,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_317() { + fn __bindgen_test_layout_already_AddRefed_instantiation_314() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40600,7 +40752,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_318() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40611,6 +40763,39 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_316() { + 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_317() { + 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_318() { + 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_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40623,28 +40808,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_320() { - 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_321() { - 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_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40655,18 +40818,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_323() { - 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_324() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40677,7 +40829,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_325() { + fn __bindgen_test_layout_already_AddRefed_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40688,7 +40840,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_326() { + fn __bindgen_test_layout_DefaultDelete_instantiation_323() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40699,7 +40851,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_327() { + fn __bindgen_test_layout_UniquePtr_instantiation_324() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40710,7 +40862,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_328() { + fn __bindgen_test_layout_DefaultDelete_instantiation_325() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40721,7 +40873,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_329() { + fn __bindgen_test_layout_UniquePtr_instantiation_326() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40732,7 +40884,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_330() { + fn __bindgen_test_layout_already_AddRefed_instantiation_327() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40743,7 +40895,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_331() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_328() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40752,7 +40904,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_332() { + fn __bindgen_test_layout_nsTArray_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40763,7 +40915,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_333() { + fn __bindgen_test_layout_nsTArray_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40774,7 +40926,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_334() { + fn __bindgen_test_layout_already_AddRefed_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40785,7 +40937,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_335() { + fn __bindgen_test_layout_already_AddRefed_instantiation_332() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40796,7 +40948,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_336() { + fn __bindgen_test_layout_Maybe_instantiation_333() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40807,7 +40959,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_337() { + fn __bindgen_test_layout_Maybe_instantiation_334() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40818,7 +40970,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_338() { + fn __bindgen_test_layout_already_AddRefed_instantiation_335() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40829,7 +40981,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_339() { + fn __bindgen_test_layout_already_AddRefed_instantiation_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40840,7 +40992,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_340() { + fn __bindgen_test_layout_DefaultDelete_instantiation_337() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40851,7 +41003,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_341() { + fn __bindgen_test_layout_UniquePtr_instantiation_338() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40862,7 +41014,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_342() { + fn __bindgen_test_layout_DefaultDelete_instantiation_339() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40873,7 +41025,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_343() { + fn __bindgen_test_layout_UniquePtr_instantiation_340() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40884,7 +41036,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_344() { + fn __bindgen_test_layout_already_AddRefed_instantiation_341() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40895,7 +41047,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_345() { + fn __bindgen_test_layout_Maybe_instantiation_342() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40906,7 +41058,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_346() { + fn __bindgen_test_layout_DefaultDelete_instantiation_343() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40917,7 +41069,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_347() { + fn __bindgen_test_layout_DefaultDelete_instantiation_344() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40928,7 +41080,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_348() { + fn __bindgen_test_layout_pair_instantiation_345() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40939,7 +41091,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_349() { + fn __bindgen_test_layout_nsTArray_instantiation_346() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -40954,7 +41106,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_350() { + fn __bindgen_test_layout_already_AddRefed_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40965,7 +41117,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_351() { + fn __bindgen_test_layout_nsTArray_instantiation_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40976,7 +41128,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_352() { + fn __bindgen_test_layout_nsTArray_instantiation_349() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40987,7 +41139,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_353() { + fn __bindgen_test_layout_nsTArray_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40998,7 +41150,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_354() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_351() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41009,7 +41161,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_355() { + fn __bindgen_test_layout_RefPtr_instantiation_352() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41020,7 +41172,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_356() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_353() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41031,7 +41183,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_357() { + fn __bindgen_test_layout_DefaultDelete_instantiation_354() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41042,7 +41194,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_358() { + fn __bindgen_test_layout_UniquePtr_instantiation_355() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41053,7 +41205,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_359() { + fn __bindgen_test_layout_DefaultDelete_instantiation_356() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41064,7 +41216,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_360() { + fn __bindgen_test_layout_UniquePtr_instantiation_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41075,7 +41227,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_361() { + fn __bindgen_test_layout_RefPtr_instantiation_358() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41086,7 +41238,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_362() { + fn __bindgen_test_layout_RefPtr_instantiation_359() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41097,7 +41249,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_363() { + fn __bindgen_test_layout_NonNull_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41110,7 +41262,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_364() { + fn __bindgen_test_layout_NonNull_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41123,7 +41275,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_365() { + fn __bindgen_test_layout_Handle_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41134,7 +41286,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_366() { + fn __bindgen_test_layout_MutableHandle_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41145,7 +41297,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_367() { + fn __bindgen_test_layout_Maybe_instantiation_364() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41156,7 +41308,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_368() { + fn __bindgen_test_layout_Maybe_instantiation_365() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41167,7 +41319,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_369() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_366() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41178,7 +41330,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_370() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_367() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41189,7 +41341,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_371() { + fn __bindgen_test_layout_already_AddRefed_instantiation_368() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41200,7 +41352,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_372() { + fn __bindgen_test_layout_already_AddRefed_instantiation_369() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41211,7 +41363,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_373() { + fn __bindgen_test_layout_nsTArray_instantiation_370() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41222,7 +41374,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_374() { + fn __bindgen_test_layout_nsTArray_instantiation_371() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41233,7 +41385,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_375() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_372() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41244,7 +41396,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_376() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_373() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41257,7 +41409,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_377() { + fn __bindgen_test_layout_already_AddRefed_instantiation_374() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41268,7 +41420,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_378() { + fn __bindgen_test_layout_nsTArray_instantiation_375() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41281,7 +41433,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_379() { + fn __bindgen_test_layout_Handle_instantiation_376() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41292,7 +41444,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_380() { + fn __bindgen_test_layout_Handle_instantiation_377() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41303,7 +41455,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_381() { + fn __bindgen_test_layout_RefPtr_instantiation_378() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41314,6 +41466,37 @@ pub mod root { root::RefPtr ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_379() { + 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_380() { + 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_381() { + 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_382() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41325,15 +41508,13 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_383() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_Sequence_instantiation_383() { + 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::JS::MutableHandle ) )); + u64 ) )); } #[test] fn __bindgen_test_layout_Sequence_instantiation_384() { @@ -41356,22 +41537,26 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_386() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + fn __bindgen_test_layout_Handle_instantiation_386() { + 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 ! ( - u64 ) )); + root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_387() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + fn __bindgen_test_layout_MutableHandle_instantiation_387() { + 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 ! ( - u64 ) )); + root::JS::MutableHandle ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_388() { @@ -41385,7 +41570,18 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_389() { + fn __bindgen_test_layout_MutableHandle_instantiation_389() { + 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_390() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41396,37 +41592,26 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_390() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_391() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_391() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsClassHashtable_instantiation_392() { + assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u64; 6usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 6usize]>() , 8usize , concat ! + ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_392() { - 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 ) )); + [u64; 6usize] ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_393() { @@ -41440,40 +41625,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_394() { - 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_nsClassHashtable_instantiation_395() { - 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_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_nsTArray_instantiation_397() { + fn __bindgen_test_layout_nsTArray_instantiation_394() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41484,7 +41636,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_398() { + fn __bindgen_test_layout_nsTArray_instantiation_395() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41495,7 +41647,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_399() { + fn __bindgen_test_layout_nsTArray_instantiation_396() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41506,7 +41658,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_400() { + fn __bindgen_test_layout_already_AddRefed_instantiation_397() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41517,7 +41669,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_401() { + fn __bindgen_test_layout_Handle_instantiation_398() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41528,7 +41680,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_402() { + fn __bindgen_test_layout_nsTArray_instantiation_399() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41539,7 +41691,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_403() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_400() { 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 7f905879ed2..bc786dafa11 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -1070,17 +1070,10 @@ 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>>, @@ -2337,16 +2330,6 @@ 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 @@ -3174,6 +3157,142 @@ 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, + eSentinel = 3, + } + #[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 } + } + #[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 { @@ -6893,88 +7012,102 @@ pub mod root { impl Clone for ChangesToFlush { fn clone(&self) -> Self { *self } } - /** - * EventStates is the class used to represent the event states of nsIContent - * instances. These states are calculated by IntrinsicState() and - * ContentStatesChanged() has to be called when one of them changes thus - * informing the layout/style engine of the change. - * Event states are associated with pseudo-classes. - */ #[repr(C)] #[derive(Debug, Copy)] - pub struct EventStates { - pub mStates: root::mozilla::EventStates_InternalType, + pub struct CSSPixel { + pub _address: u8, } - pub type EventStates_InternalType = u64; - pub type EventStates_ServoType = u64; #[test] - fn bindgen_test_layout_EventStates() { - assert_eq!(::std::mem::size_of::() , 8usize , concat - ! ( "Size of: " , stringify ! ( EventStates ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( EventStates ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const EventStates ) ) . mStates as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( EventStates ) , - "::" , stringify ! ( mStates ) )); + 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 EventStates { + impl Clone for CSSPixel { fn clone(&self) -> Self { *self } } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRootBehavior { - Normal = 0, - UnstyledChildrenOnly = 1, + #[repr(C)] + #[derive(Debug, Copy)] + pub struct LayoutDevicePixel { + pub _address: u8, } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum TraversalRestyleBehavior { - Normal = 0, - ForNewlyBoundElement = 1, - ForReconstruct = 2, - ForAnimationOnly = 3, - ForCSSRuleChanges = 4, + #[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 ) + )); } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StyleRuleInclusion { All = 0, DefaultOnly = 1, } - pub const UpdateAnimationsTasks_CSSAnimations: - root::mozilla::UpdateAnimationsTasks = - 1; - pub const UpdateAnimationsTasks_CSSTransitions: - root::mozilla::UpdateAnimationsTasks = - 2; - pub const UpdateAnimationsTasks_EffectProperties: - root::mozilla::UpdateAnimationsTasks = - 4; - pub const UpdateAnimationsTasks_CascadeResults: - root::mozilla::UpdateAnimationsTasks = - 8; - pub type UpdateAnimationsTasks = u8; - pub const ParsingMode_Default: root::mozilla::ParsingMode = 0; - pub const ParsingMode_AllowUnitlessLength: root::mozilla::ParsingMode - = - 1; - pub const ParsingMode_AllowAllNumericValues: - root::mozilla::ParsingMode = - 2; - pub type ParsingMode = u8; - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum InheritTarget { - Text = 0, - FirstLetterContinuation = 1, - PlaceholderFrame = 2, + impl Clone for LayoutDevicePixel { + fn clone(&self) -> Self { *self } } - #[repr(u8)] - /** - * Enumeration that represents one of the two supported style system backends. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StyleBackendType { None = 0, Gecko = 1, Servo = 2, } + #[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 @@ -7094,6 +7227,88 @@ pub mod root { * 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 + * ContentStatesChanged() has to be called when one of them changes thus + * informing the layout/style engine of the change. + * Event states are associated with pseudo-classes. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct EventStates { + pub mStates: root::mozilla::EventStates_InternalType, + } + pub type EventStates_InternalType = u64; + pub type EventStates_ServoType = u64; + #[test] + fn bindgen_test_layout_EventStates() { + assert_eq!(::std::mem::size_of::() , 8usize , concat + ! ( "Size of: " , stringify ! ( EventStates ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( EventStates ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const EventStates ) ) . mStates as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( EventStates ) , + "::" , stringify ! ( mStates ) )); + } + impl Clone for EventStates { + fn clone(&self) -> Self { *self } + } + #[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, + ForAnimationOnly = 3, + ForCSSRuleChanges = 4, + } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StyleRuleInclusion { All = 0, DefaultOnly = 1, } + pub const UpdateAnimationsTasks_CSSAnimations: + root::mozilla::UpdateAnimationsTasks = + 1; + pub const UpdateAnimationsTasks_CSSTransitions: + root::mozilla::UpdateAnimationsTasks = + 2; + pub const UpdateAnimationsTasks_EffectProperties: + root::mozilla::UpdateAnimationsTasks = + 4; + pub const UpdateAnimationsTasks_CascadeResults: + root::mozilla::UpdateAnimationsTasks = + 8; + pub type UpdateAnimationsTasks = u8; + pub const ParsingMode_Default: root::mozilla::ParsingMode = 0; + pub const ParsingMode_AllowUnitlessLength: root::mozilla::ParsingMode + = + 1; + pub const ParsingMode_AllowAllNumericValues: + root::mozilla::ParsingMode = + 2; + pub type ParsingMode = u8; + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum InheritTarget { + Text = 0, + FirstLetterContinuation = 1, + PlaceholderFrame = 2, + } + #[repr(u8)] + /** + * Enumeration that represents one of the two supported style system backends. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StyleBackendType { None = 0, Gecko = 1, Servo = 2, } #[repr(C)] #[derive(Debug, Copy)] pub struct MallocAllocPolicy { @@ -7741,102 +7956,6 @@ 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], @@ -10689,13 +10808,15 @@ pub mod root { eColorID__moz_mac_menutextselect = 84, eColorID__moz_mac_disabledtoolbartext = 85, eColorID__moz_mac_secondaryhighlight = 86, - eColorID__moz_win_mediatext = 87, - eColorID__moz_win_communicationstext = 88, - eColorID__moz_nativehyperlinktext = 89, - eColorID__moz_comboboxtext = 90, - eColorID__moz_combobox = 91, - eColorID__moz_gtk_info_bar_text = 92, - eColorID_LAST_COLOR = 93, + eColorID__moz_win_accentcolor = 87, + eColorID__moz_win_accentcolortext = 88, + eColorID__moz_win_mediatext = 89, + eColorID__moz_win_communicationstext = 90, + eColorID__moz_nativehyperlinktext = 91, + eColorID__moz_comboboxtext = 92, + eColorID__moz_combobox = 93, + eColorID__moz_gtk_info_bar_text = 94, + eColorID_LAST_COLOR = 95, } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -10725,33 +10846,34 @@ pub mod root { eIntID_TreeScrollLinesMax = 22, eIntID_TabFocusModel = 23, eIntID_ChosenMenuItemsShouldBlink = 24, - eIntID_WindowsDefaultTheme = 25, - eIntID_DWMCompositor = 26, - eIntID_WindowsClassic = 27, - eIntID_WindowsGlass = 28, - eIntID_TouchEnabled = 29, - eIntID_MacGraphiteTheme = 30, - eIntID_MacYosemiteTheme = 31, - eIntID_AlertNotificationOrigin = 32, - eIntID_ScrollToClick = 33, - eIntID_IMERawInputUnderlineStyle = 34, - eIntID_IMESelectedRawTextUnderlineStyle = 35, - eIntID_IMEConvertedTextUnderlineStyle = 36, - eIntID_IMESelectedConvertedTextUnderline = 37, - eIntID_SpellCheckerUnderlineStyle = 38, - eIntID_MenuBarDrag = 39, - eIntID_WindowsThemeIdentifier = 40, - eIntID_OperatingSystemVersionIdentifier = 41, - eIntID_ScrollbarButtonAutoRepeatBehavior = 42, - eIntID_TooltipDelay = 43, - eIntID_SwipeAnimationEnabled = 44, - eIntID_ColorPickerAvailable = 45, - eIntID_PhysicalHomeButton = 46, - eIntID_ScrollbarDisplayOnMouseMove = 47, - eIntID_ScrollbarFadeBeginDelay = 48, - eIntID_ScrollbarFadeDuration = 49, - eIntID_ContextMenuOffsetVertical = 50, - eIntID_ContextMenuOffsetHorizontal = 51, + eIntID_WindowsAccentColorApplies = 25, + eIntID_WindowsDefaultTheme = 26, + eIntID_DWMCompositor = 27, + eIntID_WindowsClassic = 28, + eIntID_WindowsGlass = 29, + eIntID_TouchEnabled = 30, + eIntID_MacGraphiteTheme = 31, + eIntID_MacYosemiteTheme = 32, + eIntID_AlertNotificationOrigin = 33, + eIntID_ScrollToClick = 34, + eIntID_IMERawInputUnderlineStyle = 35, + eIntID_IMESelectedRawTextUnderlineStyle = 36, + eIntID_IMEConvertedTextUnderlineStyle = 37, + eIntID_IMESelectedConvertedTextUnderline = 38, + eIntID_SpellCheckerUnderlineStyle = 39, + eIntID_MenuBarDrag = 40, + eIntID_WindowsThemeIdentifier = 41, + eIntID_OperatingSystemVersionIdentifier = 42, + eIntID_ScrollbarButtonAutoRepeatBehavior = 43, + eIntID_TooltipDelay = 44, + eIntID_SwipeAnimationEnabled = 45, + eIntID_ColorPickerAvailable = 46, + eIntID_PhysicalHomeButton = 47, + eIntID_ScrollbarDisplayOnMouseMove = 48, + eIntID_ScrollbarFadeBeginDelay = 49, + eIntID_ScrollbarFadeDuration = 50, + eIntID_ContextMenuOffsetVertical = 51, + eIntID_ContextMenuOffsetHorizontal = 52, } #[repr(u32)] /** @@ -15330,22 +15452,7 @@ pub mod root { * become 'float', perhaps, in some configurations. */ pub type gfxFloat = f64; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct gfxSize { - pub _bindgen_opaque_blob: [u64; 2usize], - } - pub type gfxSize_Super = [u64; 2usize]; - #[test] - fn bindgen_test_layout_gfxSize() { - assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( - "Size of: " , stringify ! ( gfxSize ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( gfxSize ) )); - } - impl Clone for gfxSize { - fn clone(&self) -> Self { *self } - } + pub type gfxSize = [u64; 2usize]; pub type nsIntRect = root::mozilla::gfx::IntRect; pub const nsStyleUnit_eStyleUnit_MAX: root::nsStyleUnit = nsStyleUnit::eStyleUnit_Calc; @@ -15818,6 +15925,1363 @@ pub mod root { nsEventStatus_eConsumeDoDefault = 2, nsEventStatus_eSentinel = 3, } + #[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)] + #[derive(Debug)] + 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(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -24251,1256 +25715,6 @@ 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)] - #[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)] - #[derive(Debug)] - 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)] @@ -25536,57 +25750,57 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_84 = - _bindgen_ty_84::NODE_TYPE_SPECIFIC_BITS_OFFSET; + 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(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_84 { + pub enum _bindgen_ty_83 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -26487,106 +26701,6 @@ 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], @@ -27995,6 +28109,7 @@ pub mod root { } pub use self::super::root::mozilla::StyleGeometryBox as nsStyleDisplay_StyleGeometryBox; + pub const nsStyleDisplay_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleDisplay() { assert_eq!(::std::mem::size_of::() , 416usize , concat @@ -29179,58 +29294,60 @@ pub mod root { eCSSKeyword__moz_win_media_toolbox = 707, eCSSKeyword__moz_win_communications_toolbox = 708, eCSSKeyword__moz_win_browsertabbar_toolbox = 709, - eCSSKeyword__moz_win_mediatext = 710, - eCSSKeyword__moz_win_communicationstext = 711, - eCSSKeyword__moz_win_glass = 712, - eCSSKeyword__moz_win_borderless_glass = 713, - eCSSKeyword__moz_window_titlebar = 714, - eCSSKeyword__moz_window_titlebar_maximized = 715, - eCSSKeyword__moz_window_frame_left = 716, - eCSSKeyword__moz_window_frame_right = 717, - eCSSKeyword__moz_window_frame_bottom = 718, - eCSSKeyword__moz_window_button_close = 719, - eCSSKeyword__moz_window_button_minimize = 720, - eCSSKeyword__moz_window_button_maximize = 721, - eCSSKeyword__moz_window_button_restore = 722, - eCSSKeyword__moz_window_button_box = 723, - eCSSKeyword__moz_window_button_box_maximized = 724, - eCSSKeyword__moz_mac_help_button = 725, - eCSSKeyword__moz_win_exclude_glass = 726, - eCSSKeyword__moz_mac_vibrancy_light = 727, - eCSSKeyword__moz_mac_vibrancy_dark = 728, - eCSSKeyword__moz_mac_disclosure_button_closed = 729, - eCSSKeyword__moz_mac_disclosure_button_open = 730, - eCSSKeyword__moz_mac_source_list = 731, - eCSSKeyword__moz_mac_source_list_selection = 732, - eCSSKeyword__moz_mac_active_source_list_selection = 733, - eCSSKeyword_alphabetic = 734, - eCSSKeyword_bevel = 735, - eCSSKeyword_butt = 736, - eCSSKeyword_central = 737, - eCSSKeyword_crispedges = 738, - eCSSKeyword_evenodd = 739, - eCSSKeyword_geometricprecision = 740, - eCSSKeyword_hanging = 741, - eCSSKeyword_ideographic = 742, - eCSSKeyword_linearrgb = 743, - eCSSKeyword_mathematical = 744, - eCSSKeyword_miter = 745, - eCSSKeyword_no_change = 746, - eCSSKeyword_non_scaling_stroke = 747, - eCSSKeyword_nonzero = 748, - eCSSKeyword_optimizelegibility = 749, - eCSSKeyword_optimizequality = 750, - eCSSKeyword_optimizespeed = 751, - eCSSKeyword_reset_size = 752, - eCSSKeyword_srgb = 753, - eCSSKeyword_symbolic = 754, - eCSSKeyword_symbols = 755, - eCSSKeyword_text_after_edge = 756, - eCSSKeyword_text_before_edge = 757, - eCSSKeyword_use_script = 758, - eCSSKeyword__moz_crisp_edges = 759, - eCSSKeyword_space = 760, - eCSSKeyword_COUNT = 761, + eCSSKeyword__moz_win_accentcolor = 710, + eCSSKeyword__moz_win_accentcolortext = 711, + eCSSKeyword__moz_win_mediatext = 712, + eCSSKeyword__moz_win_communicationstext = 713, + eCSSKeyword__moz_win_glass = 714, + eCSSKeyword__moz_win_borderless_glass = 715, + eCSSKeyword__moz_window_titlebar = 716, + eCSSKeyword__moz_window_titlebar_maximized = 717, + eCSSKeyword__moz_window_frame_left = 718, + eCSSKeyword__moz_window_frame_right = 719, + eCSSKeyword__moz_window_frame_bottom = 720, + eCSSKeyword__moz_window_button_close = 721, + eCSSKeyword__moz_window_button_minimize = 722, + eCSSKeyword__moz_window_button_maximize = 723, + eCSSKeyword__moz_window_button_restore = 724, + eCSSKeyword__moz_window_button_box = 725, + eCSSKeyword__moz_window_button_box_maximized = 726, + eCSSKeyword__moz_mac_help_button = 727, + eCSSKeyword__moz_win_exclude_glass = 728, + eCSSKeyword__moz_mac_vibrancy_light = 729, + eCSSKeyword__moz_mac_vibrancy_dark = 730, + eCSSKeyword__moz_mac_disclosure_button_closed = 731, + eCSSKeyword__moz_mac_disclosure_button_open = 732, + eCSSKeyword__moz_mac_source_list = 733, + eCSSKeyword__moz_mac_source_list_selection = 734, + eCSSKeyword__moz_mac_active_source_list_selection = 735, + eCSSKeyword_alphabetic = 736, + eCSSKeyword_bevel = 737, + eCSSKeyword_butt = 738, + eCSSKeyword_central = 739, + eCSSKeyword_crispedges = 740, + eCSSKeyword_evenodd = 741, + eCSSKeyword_geometricprecision = 742, + eCSSKeyword_hanging = 743, + eCSSKeyword_ideographic = 744, + eCSSKeyword_linearrgb = 745, + eCSSKeyword_mathematical = 746, + eCSSKeyword_miter = 747, + eCSSKeyword_no_change = 748, + eCSSKeyword_non_scaling_stroke = 749, + eCSSKeyword_nonzero = 750, + eCSSKeyword_optimizelegibility = 751, + eCSSKeyword_optimizequality = 752, + eCSSKeyword_optimizespeed = 753, + eCSSKeyword_reset_size = 754, + eCSSKeyword_srgb = 755, + eCSSKeyword_symbolic = 756, + eCSSKeyword_symbols = 757, + eCSSKeyword_text_after_edge = 758, + eCSSKeyword_text_before_edge = 759, + eCSSKeyword_use_script = 760, + eCSSKeyword__moz_crisp_edges = 761, + eCSSKeyword_space = 762, + eCSSKeyword_COUNT = 763, } pub const nsCSSPropertyID_eCSSProperty_COUNT_no_shorthands: root::nsCSSPropertyID = @@ -32387,6 +32504,7 @@ pub mod root { pub mTextOrientation: u8, pub mColorAdjust: u8, } + pub const nsStyleVisibility_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleVisibility() { assert_eq!(::std::mem::size_of::() , 7usize , @@ -32451,6 +32569,7 @@ pub mod root { pub mScriptSizeMultiplier: f32, pub mLanguage: root::nsCOMPtr, } + pub const nsStyleFont_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleFont() { assert_eq!(::std::mem::size_of::() , 120usize , concat ! @@ -32869,6 +32988,7 @@ pub mod root { pub struct nsStyleColor { pub mColor: root::nscolor, } + pub const nsStyleColor_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleColor() { assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( @@ -33233,6 +33353,7 @@ pub mod root { pub mImage: root::nsStyleImageLayers, pub mBackgroundColor: root::mozilla::StyleComplexColor, } + pub const nsStyleBackground_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleBackground() { assert_eq!(::std::mem::size_of::() , 160usize , @@ -33258,6 +33379,7 @@ pub mod root { pub struct nsStyleMargin { pub mMargin: root::nsStyleSides, } + pub const nsStyleMargin_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleMargin() { assert_eq!(::std::mem::size_of::() , 40usize , concat ! @@ -33275,6 +33397,7 @@ pub mod root { pub struct nsStylePadding { pub mPadding: root::nsStyleSides, } + pub const nsStylePadding_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStylePadding() { assert_eq!(::std::mem::size_of::() , 40usize , concat @@ -33497,6 +33620,7 @@ pub mod root { impl Clone for nsStyleBorder__bindgen_ty_1 { fn clone(&self) -> Self { *self } } + pub const nsStyleBorder_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleBorder() { assert_eq!(::std::mem::size_of::() , 312usize , concat @@ -33595,6 +33719,7 @@ pub mod root { pub mActualOutlineWidth: root::nscoord, pub mTwipsPerPixel: root::nscoord, } + pub const nsStyleOutline_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleOutline() { assert_eq!(::std::mem::size_of::() , 104usize , concat @@ -33672,7 +33797,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_87() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_86() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33683,7 +33808,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_88() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_87() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33702,6 +33827,7 @@ pub mod root { pub mQuotes: root::RefPtr, pub mImageRegion: root::nsRect, } + pub const nsStyleList_kHasFinishStyle: bool = true; extern "C" { #[link_name = "_ZN11nsStyleList14sInitialQuotesE"] pub static mut nsStyleList_sInitialQuotes: @@ -33961,6 +34087,7 @@ pub mod root { pub mGridColumnGap: root::nsStyleCoord, pub mGridRowGap: root::nsStyleCoord, } + pub const nsStylePosition_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStylePosition() { assert_eq!(::std::mem::size_of::() , 520usize , @@ -34234,6 +34361,7 @@ pub mod root { pub mInitialLetterSize: f32, pub mTextDecorationColor: root::mozilla::StyleComplexColor, } + pub const nsStyleTextReset_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleTextReset() { assert_eq!(::std::mem::size_of::() , 80usize , @@ -34315,6 +34443,7 @@ pub mod root { pub mTextShadow: root::RefPtr, pub mTextEmphasisStyleString: ::nsstring::nsStringRepr, } + pub const nsStyleText_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleText() { assert_eq!(::std::mem::size_of::() , 160usize , concat ! @@ -34759,6 +34888,7 @@ pub mod root { pub mLayoutStrategy: u8, pub mSpan: i32, } + pub const nsStyleTable_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleTable() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( @@ -34785,6 +34915,7 @@ pub mod root { pub mCaptionSide: u8, pub mEmptyCells: u8, } + pub const nsStyleTableBorder_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleTableBorder() { assert_eq!(::std::mem::size_of::() , 12usize , @@ -34981,6 +35112,7 @@ pub mod root { pub mIncrements: root::nsTArray, pub mResets: root::nsTArray, } + pub const nsStyleContent_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleContent() { assert_eq!(::std::mem::size_of::() , 24usize , concat @@ -35015,6 +35147,7 @@ pub mod root { pub mSpecifiedWindowTransform: root::RefPtr, pub mWindowTransformOrigin: [root::nsStyleCoord; 2usize], } + pub const nsStyleUIReset_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleUIReset() { assert_eq!(::std::mem::size_of::() , 56usize , concat @@ -35111,6 +35244,7 @@ pub mod root { pub mCursorImages: root::nsTArray, pub mCaretColor: root::mozilla::StyleComplexColor, } + pub const nsStyleUserInterface_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleUserInterface() { assert_eq!(::std::mem::size_of::() , 24usize , @@ -35175,6 +35309,7 @@ pub mod root { pub mBoxPack: root::mozilla::StyleBoxPack, pub mStackSizing: root::mozilla::StyleStackSizing, } + pub const nsStyleXUL_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleXUL() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( @@ -35230,6 +35365,7 @@ pub mod root { pub mColumnRuleWidth: root::nscoord, pub mTwipsPerPixel: root::nscoord, } + pub const nsStyleColumn_kHasFinishStyle: bool = false; pub const nsStyleColumn_kMaxColumnCount: u32 = 1000; #[test] fn bindgen_test_layout_nsStyleColumn() { @@ -35427,6 +35563,7 @@ pub mod root { FILL_OPACITY_SOURCE_SHIFT = 0, STROKE_OPACITY_SOURCE_SHIFT = 2, } + pub const nsStyleSVG_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleSVG() { assert_eq!(::std::mem::size_of::() , 128usize , concat ! ( @@ -35590,6 +35727,7 @@ pub mod root { impl Clone for nsStyleFilter__bindgen_ty_1 { fn clone(&self) -> Self { *self } } + pub const nsStyleFilter_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleFilter() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! @@ -35621,6 +35759,7 @@ pub mod root { pub mVectorEffect: u8, pub mMaskType: u8, } + pub const nsStyleSVGReset_kHasFinishStyle: bool = true; #[test] fn bindgen_test_layout_nsStyleSVGReset() { assert_eq!(::std::mem::size_of::() , 192usize , @@ -35686,6 +35825,7 @@ pub mod root { pub struct nsStyleVariables { pub mVariables: root::mozilla::CSSVariableValues, } + pub const nsStyleVariables_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleVariables() { assert_eq!(::std::mem::size_of::() , 48usize , @@ -35710,6 +35850,7 @@ pub mod root { pub mClipFlags: u8, pub mMixBlendMode: u8, } + pub const nsStyleEffects_kHasFinishStyle: bool = false; #[test] fn bindgen_test_layout_nsStyleEffects() { assert_eq!(::std::mem::size_of::() , 40usize , concat @@ -36811,48 +36952,48 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_1; + 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_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_86 + 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 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_HAS_SCROLLGRAB: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_HAS_SCROLLGRAB; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_86 = - _bindgen_ty_86::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + 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_HAS_SCROLLGRAB: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_HAS_SCROLLGRAB; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_86 { + pub enum _bindgen_ty_85 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -37441,6 +37582,15 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] + fn __bindgen_test_layout_IntegralConstant_instantiation_88() { + assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( u8 ) + )); + assert_eq!(::std::mem::align_of::() , 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( u8 + ) )); + } + #[test] fn __bindgen_test_layout_IntegralConstant_instantiation_89() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) @@ -37450,16 +37600,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_90() { - assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( u8 ) - )); - assert_eq!(::std::mem::align_of::() , 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( u8 - ) )); - } - #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_91() { + fn __bindgen_test_layout_nsCharTraits_instantiation_90() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37470,7 +37611,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_92() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_91() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37481,7 +37622,7 @@ pub mod root { root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_93() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_92() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37492,7 +37633,7 @@ pub mod root { root::nsWritingIterator ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_94() { + fn __bindgen_test_layout_nsCharTraits_instantiation_93() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37503,7 +37644,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_95() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_94() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37514,7 +37655,7 @@ pub mod root { root::nsReadingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_96() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_95() { assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37525,6 +37666,17 @@ pub mod root { root::nsWritingIterator<::std::os::raw::c_char> ) )); } #[test] + fn __bindgen_test_layout_nsCharTraits_instantiation_96() { + assert_eq!(::std::mem::size_of::() , 1usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCharTraits ) )); + assert_eq!(::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCharTraits ) )); + } + #[test] fn __bindgen_test_layout_nsCharTraits_instantiation_97() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -37536,18 +37688,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_98() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsCharTraits ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCharTraits ) )); - } - #[test] - fn __bindgen_test_layout__bindgen_ty_id_212276_instantiation_99() { + fn __bindgen_test_layout__bindgen_ty_id_211044_instantiation_98() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -37556,7 +37697,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_212312_instantiation_100() { + fn __bindgen_test_layout__bindgen_ty_id_211080_instantiation_99() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -37565,7 +37706,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_101() { + fn __bindgen_test_layout_nsTArray_instantiation_100() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37576,7 +37717,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_102() { + fn __bindgen_test_layout_Handle_instantiation_101() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37587,7 +37728,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_103() { + fn __bindgen_test_layout_Handle_instantiation_102() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37598,7 +37739,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_104() { + fn __bindgen_test_layout_Handle_instantiation_103() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37609,7 +37750,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_105() { + fn __bindgen_test_layout_MutableHandle_instantiation_104() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37620,7 +37761,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_106() { + fn __bindgen_test_layout_Rooted_instantiation_105() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37631,7 +37772,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_107() { + fn __bindgen_test_layout_DeletePolicy_instantiation_106() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37642,7 +37783,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_108() { + fn __bindgen_test_layout_nsTArray_instantiation_107() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37653,7 +37794,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_109() { + fn __bindgen_test_layout_nsTArray_instantiation_108() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37664,6 +37805,17 @@ pub mod root { root::nsTArray ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_109() { + 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_110() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -37675,18 +37827,159 @@ pub mod root { root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_111() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_PointTyped_instantiation_111() { + assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::nsTArray<::std::os::raw::c_uint> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u32; 2usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 2usize]>() , 4usize , concat ! + ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::std::os::raw::c_uint> ) )); + [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_112() { + 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 ! ( @@ -37697,106 +37990,29 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_113() { - 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_114() { - assert_eq!(::std::mem::size_of::() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - assert_eq!(::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - } - #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_115() { - assert_eq!(::std::mem::size_of::() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - assert_eq!(::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::binding_danger::TErrorResult ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_116() { - assert_eq!(::std::mem::size_of::>() + 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::>() + 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_Handle_instantiation_117() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_127() { + 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_MutableHandle_instantiation_118() { - 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_119() { - 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_120() { - 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_121() { - 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_122() { + fn __bindgen_test_layout_RefPtr_instantiation_128() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37807,7 +38023,108 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_123() { + 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_nsTArray_instantiation_134() { + 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_135() { + assert_eq!(::std::mem::size_of::() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + assert_eq!(::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + } + #[test] + fn __bindgen_test_layout_TErrorResult_instantiation_136() { + assert_eq!(::std::mem::size_of::() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + assert_eq!(::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::binding_danger::TErrorResult ) )); + } + #[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_Handle_instantiation_138() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37818,7 +38135,18 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_124() { + fn __bindgen_test_layout_MutableHandle_instantiation_139() { + 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_140() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37829,7 +38157,62 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_125() { + fn __bindgen_test_layout_nsTArray_instantiation_141() { + 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_142() { + 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_143() { + 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_144() { + 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_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_already_AddRefed_instantiation_146() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37840,7 +38223,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_126() { + fn __bindgen_test_layout_already_AddRefed_instantiation_147() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37851,7 +38234,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_127() { + fn __bindgen_test_layout_already_AddRefed_instantiation_148() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37862,7 +38245,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_128() { + fn __bindgen_test_layout_Handle_instantiation_149() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37873,7 +38256,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_129() { + fn __bindgen_test_layout_MutableHandle_instantiation_150() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37884,7 +38267,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_130() { + fn __bindgen_test_layout_MutableHandle_instantiation_151() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37895,7 +38278,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_131() { + fn __bindgen_test_layout_DeletePolicy_instantiation_152() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37906,7 +38289,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_132() { + fn __bindgen_test_layout_UniquePtr_instantiation_153() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37917,7 +38300,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_133() { + fn __bindgen_test_layout_DeletePolicy_instantiation_154() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37928,7 +38311,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_134() { + fn __bindgen_test_layout_UniquePtr_instantiation_155() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37939,7 +38322,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_135() { + fn __bindgen_test_layout_DeletePolicy_instantiation_156() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37950,7 +38333,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_136() { + fn __bindgen_test_layout_UniquePtr_instantiation_157() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37961,7 +38344,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_137() { + fn __bindgen_test_layout_DeletePolicy_instantiation_158() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37972,7 +38355,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_138() { + fn __bindgen_test_layout_UniquePtr_instantiation_159() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37983,7 +38366,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_139() { + fn __bindgen_test_layout_DeletePolicy_instantiation_160() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37994,7 +38377,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_140() { + fn __bindgen_test_layout_UniquePtr_instantiation_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38005,7 +38388,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_iterator_instantiation_141() { + fn __bindgen_test_layout_iterator_instantiation_162() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38016,7 +38399,7 @@ pub mod root { root::std::iterator ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_142() { + fn __bindgen_test_layout_DeletePolicy_instantiation_163() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38027,7 +38410,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_143() { + fn __bindgen_test_layout_UniquePtr_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38038,7 +38421,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_144() { + fn __bindgen_test_layout_DeletePolicy_instantiation_165() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38049,7 +38432,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_145() { + fn __bindgen_test_layout_UniquePtr_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38060,7 +38443,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_146() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_167() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38071,7 +38454,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_147() { + fn __bindgen_test_layout_Handle_instantiation_168() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38082,7 +38465,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_148() { + fn __bindgen_test_layout_MutableHandle_instantiation_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38093,7 +38476,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_149() { + fn __bindgen_test_layout_nsTArray_instantiation_170() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38104,7 +38487,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_150() { + fn __bindgen_test_layout_nsTArray_instantiation_171() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38115,7 +38498,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_151() { + fn __bindgen_test_layout_Heap_instantiation_172() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38126,7 +38509,7 @@ pub mod root { root::JS::Heap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_152() { + fn __bindgen_test_layout_Heap_instantiation_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38137,7 +38520,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_153() { + fn __bindgen_test_layout_TenuredHeap_instantiation_174() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38148,7 +38531,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_154() { + fn __bindgen_test_layout_already_AddRefed_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38159,7 +38542,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_155() { + fn __bindgen_test_layout_NotNull_instantiation_176() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38172,7 +38555,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_156() { + fn __bindgen_test_layout_nsTArray_instantiation_177() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38185,7 +38568,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_157() { + fn __bindgen_test_layout_RefPtr_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38196,7 +38579,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_158() { + fn __bindgen_test_layout_nsTArray_instantiation_179() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38209,7 +38592,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_159() { + fn __bindgen_test_layout_RefPtr_instantiation_180() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38220,7 +38603,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_160() { + fn __bindgen_test_layout_nsTArray_instantiation_181() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38233,7 +38616,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_161() { + fn __bindgen_test_layout_nsTArray_instantiation_182() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38244,7 +38627,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_162() { + fn __bindgen_test_layout_RefPtr_instantiation_183() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38255,7 +38638,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_163() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_184() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38266,7 +38649,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_164() { + fn __bindgen_test_layout_nsTArray_instantiation_185() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38277,7 +38660,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_165() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_186() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38288,7 +38671,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_166() { + fn __bindgen_test_layout_already_AddRefed_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38299,7 +38682,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_167() { + fn __bindgen_test_layout_already_AddRefed_instantiation_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38310,7 +38693,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_168() { + fn __bindgen_test_layout_RefPtr_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38321,7 +38704,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_169() { + fn __bindgen_test_layout_nsTArray_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38332,7 +38715,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_170() { + fn __bindgen_test_layout_already_AddRefed_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38343,7 +38726,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_171() { + fn __bindgen_test_layout_MutableHandle_instantiation_192() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38354,7 +38737,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_172() { + fn __bindgen_test_layout_already_AddRefed_instantiation_193() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38365,7 +38748,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_173() { + fn __bindgen_test_layout_already_AddRefed_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38376,7 +38759,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_174() { + fn __bindgen_test_layout_already_AddRefed_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38387,7 +38770,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_175() { + fn __bindgen_test_layout_RefPtr_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38398,7 +38781,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_176() { + fn __bindgen_test_layout_Handle_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38409,7 +38792,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_177() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38420,7 +38803,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_178() { + fn __bindgen_test_layout_already_AddRefed_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38431,7 +38814,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_179() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_200() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38442,7 +38825,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_180() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_201() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38453,7 +38836,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_181() { + fn __bindgen_test_layout_RefPtr_instantiation_202() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38464,7 +38847,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_182() { + fn __bindgen_test_layout_nsTArray_instantiation_203() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38477,7 +38860,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_183() { + fn __bindgen_test_layout_Handle_instantiation_204() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38488,7 +38871,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_184() { + fn __bindgen_test_layout_DefaultDelete_instantiation_205() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38499,7 +38882,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_185() { + fn __bindgen_test_layout_UniquePtr_instantiation_206() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38510,7 +38893,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_186() { + fn __bindgen_test_layout_already_AddRefed_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38521,7 +38904,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_187() { + fn __bindgen_test_layout_nsTArray_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38532,7 +38915,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_188() { + fn __bindgen_test_layout_Handle_instantiation_209() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38543,7 +38926,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_189() { + fn __bindgen_test_layout_Handle_instantiation_210() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38554,7 +38937,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_190() { + fn __bindgen_test_layout_Handle_instantiation_211() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38565,7 +38948,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_191() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_212() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38578,7 +38961,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_192() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_213() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38589,239 +38972,6 @@ pub mod root { [u64; 5usize] ) )); } #[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_nsTArray_instantiation_194() { - 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_195() { - 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_196() { - 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_197() { - 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_198() { - 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_199() { - 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_200() { - 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_201() { - 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_202() { - 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_203() { - 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_204() { - 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_205() { - 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_206() { - 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_207() { - 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_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_already_AddRefed_instantiation_209() { - 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_210() { - 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_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_Handle_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::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] fn __bindgen_test_layout_Handle_instantiation_214() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -38833,132 +38983,51 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_215() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_215() { + 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<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_216() { - assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat - ! ( + fn __bindgen_test_layout_nsTArray_instantiation_216() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - [u64; 30usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat - ! ( + root::nsTArray<*mut root::nsIContent> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u64; 30usize] ) )); + root::nsTArray<*mut root::nsIContent> ) )); } #[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_nsRefPtrHashtable_instantiation_218() { - 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_219() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_218() { + 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_nsTArray_instantiation_220() { - 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_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_RefPtr_instantiation_222() { - 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_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_nsTArray_instantiation_225() { - 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_226() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_219() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -38967,81 +39036,162 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_227() { - assert_eq!(::std::mem::size_of::>() + 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_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_NotNull_instantiation_222() { + 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_223() { + 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_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_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_nsRefPtrHashKey_instantiation_226() { + assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); + root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_228() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsCOMPtr_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 ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_229() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_228() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); + root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_230() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_229() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_231() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_230() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_232() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_231() { + 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_233() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_232() { + 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_already_AddRefed_instantiation_233() { + 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_234() { @@ -39055,59 +39205,59 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_235() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_235() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::JS::Handle<*mut root::JSObject> ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_236() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - 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::JS::Handle ) )); + root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_237() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_237() { + assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat + ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u64; 30usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat + ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_238() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( + fn __bindgen_test_layout_already_AddRefed_instantiation_238() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( + 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_MutableHandle_instantiation_239() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_239() { + assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u64; 5usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! + ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + [u64; 5usize] ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_240() { @@ -39121,15 +39271,15 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_241() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_241() { + 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<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_242() { @@ -39143,7 +39293,161 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_243() { + fn __bindgen_test_layout_OwningNonNull_instantiation_243() { + assert_eq!(::std::mem::size_of::>() + , 8usize , 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_244() { + assert_eq!(::std::mem::size_of::>() + , 8usize , 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_245() { + assert_eq!(::std::mem::size_of::>() + , 8usize , 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_246() { + 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_247() { + 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_248() { + 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_249() { + 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_250() { + 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_251() { + 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_252() { + 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_253() { + 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_254() { + 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_255() { + 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_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 ! ( @@ -39154,7 +39458,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_244() { + fn __bindgen_test_layout_RefPtr_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39165,7 +39469,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_245() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_259() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39176,7 +39480,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_246() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39187,158 +39491,6 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_247() { - 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_248() { - 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_249() { - 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_250() { - 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_251() { - 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_252() { - 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_253() { - 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_254() { - 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_255() { - 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_256() { - 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_257() { - 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_258() { - 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_259() { - 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_260() { - 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_261() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( diff --git a/components/style/properties/longhand/color.mako.rs b/components/style/properties/longhand/color.mako.rs index 34860cb6e10..554edd8aa4a 100644 --- a/components/style/properties/longhand/color.mako.rs +++ b/components/style/properties/longhand/color.mako.rs @@ -68,6 +68,7 @@ -moz-mac-disabledtoolbartext -moz-mac-secondaryhighlight -moz-menuhover -moz-menuhovertext -moz-menubartext -moz-menubarhovertext -moz-oddtreerow -moz-win-mediatext -moz-win-communicationstext + -moz-win-accentcolor -moz-win-accentcolortext -moz-nativehyperlinktext -moz-comboboxtext -moz-combobox""".split() # These are not parsed but must be serialized