From 3343c829cacfd7489a9e9bd382eed0e804b81b87 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 13:27:13 -0700 Subject: [PATCH 01/16] Update bindings --- .../style/gecko/generated/structs_debug.rs | 4602 ++++++++--------- .../style/gecko/generated/structs_release.rs | 4513 ++++++++-------- 2 files changed, 4387 insertions(+), 4728 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 283f677bdf4..d7009719769 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -1036,16 +1036,6 @@ pub mod root { use self::super::super::root; #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct __is_swappable { - pub _address: u8, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __is_nothrow_swappable { - pub _address: u8, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct pair<_T1, _T2> { pub first: _T1, pub second: _T2, @@ -1054,8 +1044,6 @@ pub mod root { } pub type pair_first_type<_T1> = _T1; pub type pair_second_type<_T2> = _T2; - pub type pair__PCCP = u8; - pub type pair__PCCFP = u8; #[repr(C)] #[derive(Debug, Copy)] pub struct input_iterator_tag { @@ -1075,54 +1063,101 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct iterator { + #[derive(Debug, Copy)] + pub struct forward_iterator_tag { pub _address: u8, } - pub type iterator_iterator_category<_Category> = _Category; - pub type iterator_value_type<_Tp> = _Tp; - pub type iterator_difference_type<_Distance> = _Distance; - pub type iterator_pointer<_Pointer> = _Pointer; - pub type iterator_reference<_Reference> = _Reference; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __iterator_traits { - pub _address: u8, + #[test] + fn bindgen_test_layout_forward_iterator_tag() { + assert_eq!(::std::mem::size_of::() , 1usize + , concat ! ( + "Size of: " , stringify ! ( forward_iterator_tag ) )); + assert_eq! (::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of " , stringify ! ( forward_iterator_tag ) + )); + } + impl Clone for forward_iterator_tag { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct bidirectional_iterator_tag { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_bidirectional_iterator_tag() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of: " , stringify ! ( bidirectional_iterator_tag + ) )); + assert_eq! (::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of " , stringify ! ( + bidirectional_iterator_tag ) )); + } + impl Clone for bidirectional_iterator_tag { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct random_access_iterator_tag { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_random_access_iterator_tag() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of: " , stringify ! ( random_access_iterator_tag + ) )); + assert_eq! (::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of " , stringify ! ( + random_access_iterator_tag ) )); + } + impl Clone for random_access_iterator_tag { + fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct iterator_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>>, + pub struct iterator { + pub _address: u8, } - pub type reverse_iterator___traits_type = root::std::iterator_traits; - pub type reverse_iterator_iterator_type<_Iterator> = _Iterator; + pub type iterator_value_type<_Tp> = _Tp; + pub type iterator_difference_type<_Distance> = _Distance; + pub type iterator_pointer<_Pointer> = _Pointer; + pub type iterator_reference<_Reference> = _Reference; + pub type iterator_iterator_category<_Category> = _Category; + #[repr(C)] + pub struct reverse_iterator<_Iter> { + pub __t: _Iter, + pub current: _Iter, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iter>>, + } + pub type reverse_iterator_iterator_type<_Iter> = _Iter; pub type reverse_iterator_difference_type = - root::std::reverse_iterator___traits_type; - pub type reverse_iterator_pointer = - root::std::reverse_iterator___traits_type; - pub type reverse_iterator_reference = - root::std::reverse_iterator___traits_type; + root::std::iterator_traits; + pub type reverse_iterator_reference = root::std::iterator_traits; + pub type reverse_iterator_pointer = root::std::iterator_traits; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct atomic { } - pub mod chrono { - #[allow(unused_imports)] - use self::super::super::super::root; + pub type atomic___base = u8; + #[repr(C)] + pub struct __bit_const_reference { + pub __seg_: root::std::__bit_const_reference___storage_pointer, + pub __mask_: root::std::__bit_const_reference___storage_type, } + pub type __bit_const_reference___storage_type = [u8; 0usize]; + pub type __bit_const_reference___storage_pointer = [u8; 0usize]; } - pub mod __gnu_cxx { - #[allow(unused_imports)] - use self::super::super::root; - } - pub type __off_t = ::std::os::raw::c_long; - pub type __off64_t = ::std::os::raw::c_long; + pub type __int64_t = ::std::os::raw::c_longlong; + pub type __darwin_off_t = root::__int64_t; pub mod mozilla { #[allow(unused_imports)] use self::super::super::root; @@ -1166,9 +1201,8 @@ pub mod root { root::nsSubstringTuple; pub type nsStringRepr_string_type = ::nsstring::nsStringRepr; pub type nsStringRepr_const_iterator = - root::nsReadingIterator; - pub type nsStringRepr_iterator = - root::nsWritingIterator; + root::nsReadingIterator; + pub type nsStringRepr_iterator = root::nsWritingIterator; pub type nsStringRepr_comparator_type = root::nsStringComparator; pub type nsStringRepr_char_iterator = *mut root::mozilla::detail::nsStringRepr_char_type; @@ -1235,9 +1269,9 @@ pub mod root { root::nsCSubstringTuple; pub type nsCStringRepr_string_type = root::nsCString; pub type nsCStringRepr_const_iterator = - root::nsReadingIterator; + root::nsReadingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_iterator = - root::nsWritingIterator; + root::nsWritingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_comparator_type = root::nsCStringComparator; pub type nsCStringRepr_char_iterator = @@ -1374,7 +1408,7 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct MutexImpl { - pub platformData_: [*mut ::std::os::raw::c_void; 5usize], + pub platformData_: [*mut ::std::os::raw::c_void; 8usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1383,7 +1417,7 @@ pub mod root { } #[test] fn bindgen_test_layout_MutexImpl() { - assert_eq!(::std::mem::size_of::() , 40usize , + assert_eq!(::std::mem::size_of::() , 64usize , concat ! ( "Size of: " , stringify ! ( MutexImpl ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -2307,7 +2341,7 @@ pub mod root { } } #[repr(C)] - #[derive(Debug)] + #[derive(Debug, Copy)] pub struct ThreadSafeAutoRefCnt { pub mValue: u64, } @@ -2328,6 +2362,9 @@ pub mod root { ThreadSafeAutoRefCnt ) , "::" , stringify ! ( mValue ) )); } + impl Clone for ThreadSafeAutoRefCnt { + fn clone(&self) -> Self { *self } + } #[repr(C)] #[derive(Debug)] pub struct OwningNonNull { @@ -5761,7 +5798,19 @@ pub mod root { */ #[repr(C)] #[derive(Debug)] - pub struct FragmentOrElement_nsExtendedDOMSlots { + pub struct FragmentOrElement_nsDOMSlots { + pub _base: root::nsINode_nsSlots, + /** + * The .style attribute (an interface that forwards to the actual + * style rules) + * @see nsGenericHTMLElement::GetStyle + */ + pub mStyle: root::nsCOMPtr, + /** + * The .dataset attribute. + * @see nsGenericHTMLElement::GetDataset + */ + pub mDataset: *mut root::nsDOMStringMap, /** * SMIL Overridde style rules (for SMIL animation of CSS properties) * @see Element::GetSMILOverrideStyle @@ -5772,17 +5821,19 @@ pub mod root { */ pub mSMILOverrideStyleDeclaration: root::RefPtr, /** - * The nearest enclosing content node with a binding that created us. - * @see FragmentOrElement::GetBindingParent - */ - pub mBindingParent: *mut root::nsIContent, - /** - * The controllers of the XUL Element. - */ - pub mControllers: root::nsCOMPtr, - /** - * An object implementing the .labels property for this element. + * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) + * @see FragmentOrElement::GetAttributes */ + pub mAttributeMap: root::RefPtr, + pub __bindgen_anon_1: root::mozilla::dom::FragmentOrElement_nsDOMSlots__bindgen_ty_1, + /** + * An object implementing the .children property for this element. + */ + pub mChildrenList: root::RefPtr, + /** + * An object implementing the .classList property for this element. + */ + pub mClassList: root::RefPtr, pub mLabelsList: root::RefPtr, /** * ShadowRoot bound to the element. @@ -5813,174 +5864,59 @@ pub mod root { * Registered Intersection Observers on the element. */ pub mRegisteredIntersectionObservers: [u64; 6usize], - /** - * For XUL to hold either frameloader or opener. - */ - pub mFrameLoaderOrOpener: root::nsCOMPtr, - } - #[test] - fn bindgen_test_layout_FragmentOrElement_nsExtendedDOMSlots() { - assert_eq!(::std::mem::size_of::() - , 144usize , concat ! ( - "Size of: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mSMILOverrideStyle as * const _ as usize } , - 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mSMILOverrideStyle ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mSMILOverrideStyleDeclaration as * const _ - as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mSMILOverrideStyleDeclaration ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mBindingParent as * const _ as usize } , - 16usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mBindingParent ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mControllers as * const _ as usize } , - 24usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mControllers ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mLabelsList as * const _ as usize } , - 32usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mLabelsList ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mShadowRoot as * const _ as usize } , - 40usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mShadowRoot ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mContainingShadow as * const _ as usize } , - 48usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mContainingShadow ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mDestInsertionPoints as * const _ as usize } - , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mDestInsertionPoints ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mXBLBinding as * const _ as usize } , - 64usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mXBLBinding ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mXBLInsertionParent as * const _ as usize } - , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mXBLInsertionParent ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mCustomElementData as * const _ as usize } , - 80usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mCustomElementData ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mRegisteredIntersectionObservers as * const - _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mRegisteredIntersectionObservers ) - )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mFrameLoaderOrOpener as * const _ as usize } - , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mFrameLoaderOrOpener ) )); } #[repr(C)] - #[derive(Debug)] - pub struct FragmentOrElement_nsDOMSlots { - pub _base: root::nsINode_nsSlots, + #[derive(Debug, Copy)] + pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_1 { /** - * The .style attribute (an interface that forwards to the actual - * style rules) - * @see nsGenericHTMLElement::GetStyle - */ - pub mStyle: root::nsCOMPtr, + * The nearest enclosing content node with a binding that created us. + * @see FragmentOrElement::GetBindingParent + */ + pub mBindingParent: root::__BindgenUnionField<*mut root::nsIContent>, /** - * The .dataset attribute. - * @see nsGenericHTMLElement::GetDataset - */ - pub mDataset: *mut root::nsDOMStringMap, - /** - * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) - * @see FragmentOrElement::GetAttributes - */ - pub mAttributeMap: root::RefPtr, - /** - * An object implementing the .children property for this element. - */ - pub mChildrenList: root::RefPtr, - /** - * An object implementing the .classList property for this element. - */ - pub mClassList: root::RefPtr, - pub mExtendedSlots: root::mozilla::UniquePtr, + * The controllers of the XUL Element. + */ + pub mControllers: root::__BindgenUnionField<*mut root::nsIControllers>, + pub bindgen_union_field: u64, + } + #[test] + fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_1() { + assert_eq!(::std::mem::size_of::() + , 8usize , concat ! ( + "Size of: " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . + mBindingParent as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , + "::" , stringify ! ( mBindingParent ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . + mControllers as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , + "::" , stringify ! ( mControllers ) )); + } + impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_1 { + fn clone(&self) -> Self { *self } } #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() - , 96usize , concat ! ( + , 216usize , concat ! ( "Size of: " , stringify ! ( FragmentOrElement_nsDOMSlots ) )); assert_eq! (::std::mem::align_of::() @@ -6006,7 +5942,23 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mAttributeMap as * const _ as usize } , 64usize + . mSMILOverrideStyle as * const _ as usize } , + 64usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mSMILOverrideStyle ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mSMILOverrideStyleDeclaration as * const _ as + usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mSMILOverrideStyleDeclaration ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mAttributeMap as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -6014,7 +5966,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mChildrenList as * const _ as usize } , 72usize + . mChildrenList as * const _ as usize } , 96usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -6022,7 +5974,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mClassList as * const _ as usize } , 80usize , + . mClassList as * const _ as usize } , 104usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -6030,11 +5982,67 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mExtendedSlots as * const _ as usize } , 88usize - , concat ! ( + . mLabelsList as * const _ as usize } , 112usize , + concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mExtendedSlots ) )); + ! ( mLabelsList ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mShadowRoot as * const _ as usize } , 120usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mShadowRoot ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mContainingShadow as * const _ as usize } , + 128usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mContainingShadow ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mDestInsertionPoints as * const _ as usize } , + 136usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mDestInsertionPoints ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mXBLBinding as * const _ as usize } , 144usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mXBLBinding ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mXBLInsertionParent as * const _ as usize } , + 152usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mXBLInsertionParent ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mCustomElementData as * const _ as usize } , + 160usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mCustomElementData ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mRegisteredIntersectionObservers as * const _ as + usize } , 168usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mRegisteredIntersectionObservers ) )); } extern "C" { #[link_name = @@ -8966,7 +8974,7 @@ pub mod root { } #[test] fn bindgen_test_layout_OffTheBooksMutex() { - assert_eq!(::std::mem::size_of::() , 72usize , + assert_eq!(::std::mem::size_of::() , 96usize , concat ! ( "Size of: " , stringify ! ( OffTheBooksMutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -8974,7 +8982,7 @@ pub mod root { "Alignment of " , stringify ! ( OffTheBooksMutex ) )); assert_eq! (unsafe { & ( * ( 0 as * const OffTheBooksMutex ) ) . - mOwningThread as * const _ as usize } , 64usize , + mOwningThread as * const _ as usize } , 88usize , concat ! ( "Alignment of field: " , stringify ! ( OffTheBooksMutex ) , "::" , stringify ! ( @@ -8992,7 +9000,7 @@ pub mod root { } #[test] fn bindgen_test_layout_Mutex() { - assert_eq!(::std::mem::size_of::() , 72usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 96usize , concat ! ( "Size of: " , stringify ! ( Mutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( Mutex ) )); @@ -10463,8 +10471,6 @@ pub mod root { PropertyStyleAnimationValuePair ) , "::" , stringify ! ( mValue ) )); } - pub type ComputedKeyframeValues = - root::nsTArray; #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_3() { assert_eq!(::std::mem::size_of::() , @@ -11726,196 +11732,194 @@ pub mod root { pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell>, } } + pub type va_list = root::__builtin_va_list; + pub type fpos_t = root::__darwin_off_t; #[repr(C)] #[derive(Debug, Copy)] - pub struct _IO_FILE { - pub _flags: ::std::os::raw::c_int, - pub _IO_read_ptr: *mut ::std::os::raw::c_char, - pub _IO_read_end: *mut ::std::os::raw::c_char, - pub _IO_read_base: *mut ::std::os::raw::c_char, - pub _IO_write_base: *mut ::std::os::raw::c_char, - pub _IO_write_ptr: *mut ::std::os::raw::c_char, - pub _IO_write_end: *mut ::std::os::raw::c_char, - pub _IO_buf_base: *mut ::std::os::raw::c_char, - pub _IO_buf_end: *mut ::std::os::raw::c_char, - pub _IO_save_base: *mut ::std::os::raw::c_char, - pub _IO_backup_base: *mut ::std::os::raw::c_char, - pub _IO_save_end: *mut ::std::os::raw::c_char, - pub _markers: *mut root::_IO_marker, - pub _chain: *mut root::_IO_FILE, - pub _fileno: ::std::os::raw::c_int, - pub _flags2: ::std::os::raw::c_int, - pub _old_offset: root::__off_t, - pub _cur_column: ::std::os::raw::c_ushort, - pub _vtable_offset: ::std::os::raw::c_schar, - pub _shortbuf: [::std::os::raw::c_char; 1usize], - pub _lock: *mut root::_IO_lock_t, - pub _offset: root::__off64_t, - pub __pad1: *mut ::std::os::raw::c_void, - pub __pad2: *mut ::std::os::raw::c_void, - pub __pad3: *mut ::std::os::raw::c_void, - pub __pad4: *mut ::std::os::raw::c_void, - pub __pad5: usize, - pub _mode: ::std::os::raw::c_int, - pub _unused2: [::std::os::raw::c_char; 20usize], + pub struct __sbuf { + pub _base: *mut ::std::os::raw::c_uchar, + pub _size: ::std::os::raw::c_int, } #[test] - fn bindgen_test_layout__IO_FILE() { - assert_eq!(::std::mem::size_of::<_IO_FILE>() , 216usize , concat ! ( - "Size of: " , stringify ! ( _IO_FILE ) )); - assert_eq! (::std::mem::align_of::<_IO_FILE>() , 8usize , concat ! ( - "Alignment of " , stringify ! ( _IO_FILE ) )); + fn bindgen_test_layout___sbuf() { + assert_eq!(::std::mem::size_of::<__sbuf>() , 16usize , concat ! ( + "Size of: " , stringify ! ( __sbuf ) )); + assert_eq! (::std::mem::align_of::<__sbuf>() , 8usize , concat ! ( + "Alignment of " , stringify ! ( __sbuf ) )); assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _flags as * const _ as + & ( * ( 0 as * const __sbuf ) ) . _base as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _flags ) )); + "Alignment of field: " , stringify ! ( __sbuf ) , "::" , + stringify ! ( _base ) )); assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_ptr as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_read_ptr ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_end as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_read_end ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_base as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_read_base ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_base as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_write_base ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_ptr as * - const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_write_ptr ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_end as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_write_end ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_base as * - const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_buf_base ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_end as * const - _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_buf_end ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_save_base as * - const _ as usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_save_base ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_backup_base as * - const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_backup_base ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _IO_save_end as * - const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _IO_save_end ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _markers as * const _ - as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _markers ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _chain as * const _ as - usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _chain ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _fileno as * const _ - as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _fileno ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _flags2 as * const _ - as usize } , 116usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _flags2 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _old_offset as * const - _ as usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _old_offset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _cur_column as * const - _ as usize } , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _cur_column ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _vtable_offset as * - const _ as usize } , 130usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _vtable_offset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _shortbuf as * const _ - as usize } , 131usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _shortbuf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _lock as * const _ as - usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _lock ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _offset as * const _ - as usize } , 144usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _offset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . __pad1 as * const _ as - usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( __pad1 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . __pad2 as * const _ as - usize } , 160usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( __pad2 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . __pad3 as * const _ as - usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( __pad3 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . __pad4 as * const _ as - usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( __pad4 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . __pad5 as * const _ as - usize } , 184usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( __pad5 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _mode as * const _ as - usize } , 192usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _mode ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_FILE ) ) . _unused2 as * const _ - as usize } , 196usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , - stringify ! ( _unused2 ) )); + & ( * ( 0 as * const __sbuf ) ) . _size as * const _ as + usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( __sbuf ) , "::" , + stringify ! ( _size ) )); } - impl Clone for _IO_FILE { + impl Clone for __sbuf { fn clone(&self) -> Self { *self } } - pub type FILE = root::_IO_FILE; - pub type va_list = root::__builtin_va_list; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct __sFILEX { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct __sFILE { + pub _p: *mut ::std::os::raw::c_uchar, + pub _r: ::std::os::raw::c_int, + pub _w: ::std::os::raw::c_int, + pub _flags: ::std::os::raw::c_short, + pub _file: ::std::os::raw::c_short, + pub _bf: root::__sbuf, + pub _lbfsize: ::std::os::raw::c_int, + pub _cookie: *mut ::std::os::raw::c_void, + pub _close: ::std::option::Option ::std::os::raw::c_int>, + pub _read: ::std::option::Option ::std::os::raw::c_int>, + pub _seek: ::std::option::Option root::fpos_t>, + pub _write: ::std::option::Option ::std::os::raw::c_int>, + pub _ub: root::__sbuf, + pub _extra: *mut root::__sFILEX, + pub _ur: ::std::os::raw::c_int, + pub _ubuf: [::std::os::raw::c_uchar; 3usize], + pub _nbuf: [::std::os::raw::c_uchar; 1usize], + pub _lb: root::__sbuf, + pub _blksize: ::std::os::raw::c_int, + pub _offset: root::fpos_t, + } + #[test] + fn bindgen_test_layout___sFILE() { + assert_eq!(::std::mem::size_of::<__sFILE>() , 152usize , concat ! ( + "Size of: " , stringify ! ( __sFILE ) )); + assert_eq! (::std::mem::align_of::<__sFILE>() , 8usize , concat ! ( + "Alignment of " , stringify ! ( __sFILE ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _p as * const _ as + usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _p ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _r as * const _ as + usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _r ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _w as * const _ as + usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _w ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _flags as * const _ as + usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _flags ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _file as * const _ as + usize } , 18usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _file ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _bf as * const _ as + usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _bf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _lbfsize as * const _ + as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _lbfsize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _cookie as * const _ as + usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _cookie ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _close as * const _ as + usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _close ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _read as * const _ as + usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _read ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _seek as * const _ as + usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _seek ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _write as * const _ as + usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _write ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _ub as * const _ as + usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _ub ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _extra as * const _ as + usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _extra ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _ur as * const _ as + usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _ur ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _ubuf as * const _ as + usize } , 116usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _ubuf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _nbuf as * const _ as + usize } , 119usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _nbuf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _lb as * const _ as + usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _lb ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _blksize as * const _ + as usize } , 136usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _blksize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const __sFILE ) ) . _offset as * const _ as + usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + stringify ! ( _offset ) )); + } + impl Clone for __sFILE { + fn clone(&self) -> Self { *self } + } + pub type FILE = root::__sFILE; #[repr(C)] #[derive(Debug, Copy)] pub struct InfallibleAllocPolicy { @@ -12472,39 +12476,6 @@ pub mod root { NS_OK_NO_NAME_CLAUSE_HANDLED = 7864354, } pub type nsrefcnt = root::MozRefCountType; - pub type _IO_lock_t = ::std::os::raw::c_void; - #[repr(C)] - #[derive(Debug, Copy)] - pub struct _IO_marker { - pub _next: *mut root::_IO_marker, - pub _sbuf: *mut root::_IO_FILE, - pub _pos: ::std::os::raw::c_int, - } - #[test] - fn bindgen_test_layout__IO_marker() { - assert_eq!(::std::mem::size_of::<_IO_marker>() , 24usize , concat ! ( - "Size of: " , stringify ! ( _IO_marker ) )); - assert_eq! (::std::mem::align_of::<_IO_marker>() , 8usize , concat ! ( - "Alignment of " , stringify ! ( _IO_marker ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_marker ) ) . _next as * const _ - as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_marker ) , "::" - , stringify ! ( _next ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_marker ) ) . _sbuf as * const _ - as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_marker ) , "::" - , stringify ! ( _sbuf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const _IO_marker ) ) . _pos as * const _ as - usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( _IO_marker ) , "::" - , stringify ! ( _pos ) )); - } - impl Clone for _IO_marker { - fn clone(&self) -> Self { *self } - } #[repr(C)] pub struct nsQueryFrame__bindgen_vtable(::std::os::raw::c_void); #[repr(C)] @@ -14870,11 +14841,6 @@ pub mod root { AutoSetAsyncStackForNewCalls ) , "::" , stringify ! ( oldAsyncCallIsExplicit ) )); } - pub type WarningReporter = - ::std::option::Option; #[repr(C)] #[derive(Debug)] pub struct AutoHideScriptedCaller { @@ -15036,141 +15002,6 @@ pub mod root { pub struct JSCompartment { _unused: [u8; 0], } - /** - * Describes a single error or warning that occurs in the execution of script. - */ - #[repr(C)] - pub struct JSErrorReport { - pub _base: root::JSErrorBase, - pub linebuf_: *const u16, - pub linebufLength_: usize, - pub tokenOffset_: usize, - pub notes: root::mozilla::UniquePtr, - pub flags: ::std::os::raw::c_uint, - pub exnType: i16, - pub _bitfield_1: u8, - pub __bindgen_padding_0: u8, - } - #[test] - fn bindgen_test_layout_JSErrorReport() { - assert_eq!(::std::mem::size_of::() , 72usize , concat ! - ( "Size of: " , stringify ! ( JSErrorReport ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( JSErrorReport ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebuf_ as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebuf_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebufLength_ as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebufLength_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . tokenOffset_ as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( tokenOffset_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . notes as * const - _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( notes ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . flags as * const - _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( flags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . exnType as * - const _ as usize } , 68usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( exnType ) )); - } - impl JSErrorReport { - #[inline] - pub fn isMuted(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u8; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_isMuted(&mut self, val: bool) { - let mask = 1u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn ownsLinebuf_(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u8; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_ownsLinebuf_(&mut self, val: bool) { - let mask = 2u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(isMuted: bool, ownsLinebuf_: bool) -> u8 { - ({ ({ 0 } | ((isMuted as u8 as u8) << 0usize) & (1u64 as u8)) } | - ((ownsLinebuf_ as u8 as u8) << 1usize) & (2u64 as u8)) - } - } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct JSRuntime { @@ -16075,7 +15906,7 @@ pub mod root { #[derive(Debug)] pub struct gfxFontFeatureValueSet_ValueList { pub name: ::nsstring::nsStringRepr, - pub featureSelectors: root::nsTArray, + pub featureSelectors: root::nsTArray<::std::os::raw::c_uint>, } #[test] fn bindgen_test_layout_gfxFontFeatureValueSet_ValueList() { @@ -16180,7 +16011,7 @@ pub mod root { pub struct gfxFontFeatureValueSet_FeatureValueHashEntry { pub _base: root::PLDHashEntryHdr, pub mKey: root::gfxFontFeatureValueSet_FeatureValueHashKey, - pub mValues: root::nsTArray, + pub mValues: root::nsTArray<::std::os::raw::c_uint>, } pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyType = *const root::gfxFontFeatureValueSet_FeatureValueHashKey; @@ -16290,7 +16121,7 @@ pub mod root { pub alternateValues: root::nsTArray, pub featureValueLookup: root::RefPtr, pub fontFeatureSettings: root::nsTArray, - pub fontVariationSettings: root::nsTArray, + pub fontVariationSettings: root::nsTArray, pub languageOverride: u32, } #[test] @@ -18323,7 +18154,7 @@ pub mod root { * count is 1. */ #[repr(C)] - #[derive(Debug)] + #[derive(Debug, Copy)] pub struct nsStringBuffer { pub mRefCount: u32, pub mStorageSize: u32, @@ -18345,6 +18176,9 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStringBuffer ) , "::" , stringify ! ( mStorageSize ) )); } + impl Clone for nsStringBuffer { + fn clone(&self) -> Self { *self } + } #[repr(C)] #[derive(Debug, Copy)] pub struct nsIAtom { @@ -20112,7 +19946,7 @@ pub mod root { pub mUpgradeInsecurePreloads: bool, pub mHSTSPrimingURIList: [u64; 6usize], pub mDocumentContainer: u64, - pub mCharacterSet: root::mozilla::NotNull<*const root::nsIDocument_Encoding>, + pub mCharacterSet: root::mozilla::NotNull<*const root::mozilla::Encoding>, pub mCharacterSetSource: i32, pub mParentDocument: *mut root::nsIDocument, pub mCachedRootElement: *mut root::mozilla::dom::Element, @@ -20170,7 +20004,7 @@ pub mod root { */ pub mFrameRequestCallbackCounter: i32, pub mStaticCloneCount: u32, - pub mBlockedTrackingNodes: root::nsTArray, + pub mBlockedTrackingNodes: root::nsTArray>, pub mWindow: *mut root::nsPIDOMWindowInner, pub mCachedEncoder: root::nsCOMPtr, pub mFrameRequestCallbacks: root::nsTArray, @@ -26748,7 +26582,7 @@ pub mod root { pub _base_1: root::nsWrapperCache, pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, - pub mContent: root::nsCOMPtr, + pub mContent: root::nsCOMPtr, /** * Cache of Attrs. */ @@ -26897,57 +26731,57 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_83 = - _bindgen_ty_83::NODE_TYPE_SPECIFIC_BITS_OFFSET; + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_EDITABLE; + pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_83 { + pub enum _bindgen_ty_18 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -32233,7 +32067,7 @@ pub mod root { pub mRefCnt: root::nsAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, pub mBehaviour: root::mozilla::UniquePtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mListener: *mut root::imgINotificationObserver, pub mLoadGroup: root::nsCOMPtr, pub mLoadFlags: root::nsLoadFlags, @@ -33465,7 +33299,7 @@ pub mod root { pub _mOwningThread: root::nsAutoOwningThread, pub mLoader: *mut root::imgLoader, pub mRequest: root::nsCOMPtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mCurrentURI: root::nsCOMPtr, pub mLoadingPrincipal: root::nsCOMPtr, pub mPrincipal: root::nsCOMPtr, @@ -33492,8 +33326,8 @@ pub mod root { pub mImageErrorCode: root::nsresult, pub mBoostCategoriesRequested: u32, pub mMutex: root::mozilla::Mutex, - pub mProgressTracker: root::RefPtr, - pub mImage: root::RefPtr, + pub mProgressTracker: root::RefPtr, + pub mImage: root::RefPtr, pub _bitfield_1: u8, pub __bindgen_padding_0: [u8; 7usize], } @@ -33507,7 +33341,7 @@ pub mod root { pub type imgRequest_HasThreadSafeRefCnt = root::mozilla::TrueType; #[test] fn bindgen_test_layout_imgRequest() { - assert_eq!(::std::mem::size_of::() , 424usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 448usize , concat ! ( "Size of: " , stringify ! ( imgRequest ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( imgRequest ) )); @@ -35080,7 +34914,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_86() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35091,7 +34925,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_87() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37393,7 +37227,7 @@ pub mod root { root::nsTArray>; pub type RawGeckoKeyframeList = root::nsTArray; pub type RawGeckoComputedKeyframeValuesList = - root::nsTArray; + root::nsTArray>; pub type RawGeckoStyleAnimationList = root::nsStyleAutoArray; pub type RawGeckoFontFaceRuleList = @@ -38240,46 +38074,46 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_85 + root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_20 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_85 = - _bindgen_ty_85::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; + pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_PENDING_RESTYLE_FLAGS; + pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; + pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_ALL_RESTYLE_FLAGS; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_85 { + pub enum _bindgen_ty_20 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -38829,22 +38663,6 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy)] - pub struct _bindgen_ty_29 { - pub _address: u8, - } - impl Clone for _bindgen_ty_29 { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct _bindgen_ty_30 { - pub _address: u8, - } - impl Clone for _bindgen_ty_30 { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] pub struct __va_list_tag { pub gp_offset: ::std::os::raw::c_uint, pub fp_offset: ::std::os::raw::c_uint, @@ -38883,7 +38701,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_88() { + fn __bindgen_test_layout_IntegralConstant_instantiation_23() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38892,7 +38710,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_89() { + fn __bindgen_test_layout_IntegralConstant_instantiation_24() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38901,7 +38719,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_90() { + fn __bindgen_test_layout_nsCharTraits_instantiation_25() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38912,33 +38730,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_91() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsReadingIterator_instantiation_26() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsReadingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_92() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsWritingIterator_instantiation_27() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsWritingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_93() { + fn __bindgen_test_layout_nsCharTraits_instantiation_28() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38949,33 +38763,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_94() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsReadingIterator_instantiation_29() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsReadingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_95() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsWritingIterator_instantiation_30() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsWritingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_96() { + fn __bindgen_test_layout_nsCharTraits_instantiation_31() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38986,7 +38796,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_97() { + fn __bindgen_test_layout_nsCharTraits_instantiation_32() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38997,7 +38807,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_191636_instantiation_98() { + fn __bindgen_test_layout__bindgen_ty_id_189154_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39006,7 +38816,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_191672_instantiation_99() { + fn __bindgen_test_layout__bindgen_ty_id_189190_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39015,7 +38825,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_100() { + fn __bindgen_test_layout_nsTArray_instantiation_35() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39026,7 +38836,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_101() { + fn __bindgen_test_layout_Handle_instantiation_36() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39037,7 +38847,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_102() { + fn __bindgen_test_layout_Handle_instantiation_37() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39048,7 +38858,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_103() { + fn __bindgen_test_layout_Handle_instantiation_38() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39059,7 +38869,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_104() { + fn __bindgen_test_layout_MutableHandle_instantiation_39() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39070,7 +38880,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_105() { + fn __bindgen_test_layout_Rooted_instantiation_40() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39081,7 +38891,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_106() { + fn __bindgen_test_layout_DeletePolicy_instantiation_41() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39092,7 +38902,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_107() { + fn __bindgen_test_layout_nsTArray_instantiation_42() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39103,7 +38913,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_108() { + fn __bindgen_test_layout_nsTArray_instantiation_43() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39114,29 +38924,29 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_109() { - assert_eq!(::std::mem::size_of::>() , 8usize , - concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_44() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , - concat ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_110() { - assert_eq!(::std::mem::size_of::>() , 8usize , - concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_45() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , - concat ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_111() { + fn __bindgen_test_layout_PointTyped_instantiation_46() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39147,7 +38957,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_112() { + fn __bindgen_test_layout_IntPointTyped_instantiation_47() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39158,7 +38968,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_SizeTyped_instantiation_113() { + fn __bindgen_test_layout_SizeTyped_instantiation_48() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39169,7 +38979,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_114() { + fn __bindgen_test_layout_RectTyped_instantiation_49() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39180,7 +38990,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_115() { + fn __bindgen_test_layout_IntPointTyped_instantiation_50() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39191,7 +39001,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntSizeTyped_instantiation_116() { + fn __bindgen_test_layout_IntSizeTyped_instantiation_51() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39202,7 +39012,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_117() { + fn __bindgen_test_layout_IntRectTyped_instantiation_52() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39213,7 +39023,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_MarginTyped_instantiation_118() { + fn __bindgen_test_layout_MarginTyped_instantiation_53() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39224,7 +39034,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_119() { + fn __bindgen_test_layout_RectTyped_instantiation_54() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39235,7 +39045,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_120() { + fn __bindgen_test_layout_IntRectTyped_instantiation_55() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39246,7 +39056,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactor_instantiation_121() { + fn __bindgen_test_layout_ScaleFactor_instantiation_56() { assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( u32 ) )); @@ -39255,7 +39065,7 @@ pub mod root { u32 ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_122() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_57() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39266,7 +39076,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_123() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_58() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39277,7 +39087,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_124() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_59() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39288,7 +39098,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_125() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_60() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39299,7 +39109,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_126() { + fn __bindgen_test_layout_already_AddRefed_instantiation_61() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39310,7 +39120,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_127() { + fn __bindgen_test_layout_already_AddRefed_instantiation_62() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39321,7 +39131,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_128() { + fn __bindgen_test_layout_RefPtr_instantiation_63() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39332,7 +39142,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_129() { + fn __bindgen_test_layout_nsTArray_instantiation_64() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39345,7 +39155,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_130() { + fn __bindgen_test_layout_RefPtr_instantiation_65() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39356,7 +39166,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_131() { + fn __bindgen_test_layout_nsTArray_instantiation_66() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39369,7 +39179,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_WeakPtr_instantiation_132() { + fn __bindgen_test_layout_WeakPtr_instantiation_67() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -39378,7 +39188,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_133() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_68() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39389,7 +39199,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_134() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_69() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39400,7 +39210,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_135() { + fn __bindgen_test_layout_nsTArray_instantiation_70() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39411,7 +39221,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_136() { + fn __bindgen_test_layout_TErrorResult_instantiation_71() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39422,7 +39232,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_137() { + fn __bindgen_test_layout_TErrorResult_instantiation_72() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39433,7 +39243,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_138() { + fn __bindgen_test_layout_already_AddRefed_instantiation_73() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39444,7 +39254,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_139() { + fn __bindgen_test_layout_Handle_instantiation_74() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39455,7 +39265,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_140() { + fn __bindgen_test_layout_MutableHandle_instantiation_75() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39466,6 +39276,731 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_76() { + 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_77() { + 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_78() { + 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_79() { + 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_80() { + 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_81() { + 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_82() { + 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_83() { + 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_84() { + 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_85() { + 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_86() { + 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_87() { + 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_88() { + 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_89() { + 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_90() { + 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_91() { + 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_92() { + 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_93() { + 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_94() { + 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_95() { + 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_96() { + 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_97() { + 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_98() { + 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_99() { + 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_100() { + 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_101() { + 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_102() { + 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_103() { + 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_104() { + 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_105() { + 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_106() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_107() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_Heap_instantiation_108() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Heap ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Heap ) )); + } + #[test] + fn __bindgen_test_layout_Heap_instantiation_109() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Heap<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Heap<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_TenuredHeap_instantiation_110() { + assert_eq!(::std::mem::size_of::() , 8usize , + concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::TenuredHeap ) )); + assert_eq!(::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::TenuredHeap ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_111() { + 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_112() { + 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_113() { + 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_114() { + 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_115() { + 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_116() { + 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_117() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_118() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_119() { + 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_120() { + 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_121() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_122() { + 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_already_AddRefed_instantiation_123() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_124() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_125() { + 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_126() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_127() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_128() { + 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_already_AddRefed_instantiation_129() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + 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_131() { + 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_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_Handle_instantiation_133() { + 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_134() { + 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_135() { + 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_136() { + 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_137() { + 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_138() { + 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_139() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_140() { + 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_141() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -39477,48 +40012,48 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_142() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_DefaultDelete_instantiation_142() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_143() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_UniquePtr_instantiation_143() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_144() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_144() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_145() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsTArray_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 ! ( + 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_146() { @@ -39532,576 +40067,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_147() { - 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_148() { - 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_149() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_150() { - 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_151() { - 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_152() { - 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_153() { - 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_154() { - 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_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_iterator_instantiation_163() { - 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_164() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_165() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_166() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - assert_eq!(::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_167() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_168() { - 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_169() { - 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_170() { - 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_171() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_172() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_Heap_instantiation_173() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Heap ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Heap ) )); - } - #[test] - fn __bindgen_test_layout_Heap_instantiation_174() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Heap<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Heap<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_175() { - assert_eq!(::std::mem::size_of::() , 8usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::TenuredHeap ) )); - assert_eq!(::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::TenuredHeap ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_176() { - 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_177() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_178() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> - ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_179() { - 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_180() { - 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_181() { - 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_182() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_183() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_184() { - 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_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_nsTArray_instantiation_186() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_187() { - 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_already_AddRefed_instantiation_188() { - 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_189() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_190() { - 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_191() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_192() { - 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_MutableHandle_instantiation_193() { - 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_already_AddRefed_instantiation_194() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_195() { - 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_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_RefPtr_instantiation_197() { - 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_198() { + fn __bindgen_test_layout_Handle_instantiation_147() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40112,75 +40078,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[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_already_AddRefed_instantiation_200() { - 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_201() { - 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_202() { - 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_203() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_204() { - 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_205() { + fn __bindgen_test_layout_Handle_instantiation_148() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40191,84 +40089,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_206() { - 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_207() { - 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_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_nsTArray_instantiation_209() { - 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_210() { - 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_211() { - 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_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_nsRefPtrHashKey_instantiation_213() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_149() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40281,7 +40102,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_214() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_150() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40292,7 +40113,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_215() { + fn __bindgen_test_layout_Handle_instantiation_151() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40303,7 +40124,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_216() { + fn __bindgen_test_layout_nsTArray_instantiation_152() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40314,7 +40135,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_217() { + fn __bindgen_test_layout_nsTArray_instantiation_153() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40325,7 +40146,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_218() { + fn __bindgen_test_layout_already_AddRefed_instantiation_154() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40336,7 +40157,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_219() { + fn __bindgen_test_layout_already_AddRefed_instantiation_155() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40347,7 +40168,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_220() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_156() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40356,7 +40177,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_221() { + fn __bindgen_test_layout_already_AddRefed_instantiation_157() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40367,7 +40188,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_222() { + fn __bindgen_test_layout_nsTArray_instantiation_158() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40378,33 +40199,33 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_223() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_159() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_224() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_160() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_225() { + fn __bindgen_test_layout_already_AddRefed_instantiation_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40415,7 +40236,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_226() { + fn __bindgen_test_layout_DefaultDelete_instantiation_162() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40426,7 +40247,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_227() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_163() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40437,7 +40258,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_228() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40448,7 +40269,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_229() { + fn __bindgen_test_layout_nsTArray_instantiation_165() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40459,7 +40280,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_230() { + fn __bindgen_test_layout_already_AddRefed_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40470,7 +40291,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_231() { + fn __bindgen_test_layout_already_AddRefed_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40481,7 +40302,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_232() { + fn __bindgen_test_layout_already_AddRefed_instantiation_168() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40492,7 +40313,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_233() { + fn __bindgen_test_layout_already_AddRefed_instantiation_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40503,7 +40324,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_234() { + fn __bindgen_test_layout_already_AddRefed_instantiation_170() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40514,7 +40335,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_235() { + fn __bindgen_test_layout_Handle_instantiation_171() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40525,7 +40346,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_236() { + fn __bindgen_test_layout_Handle_instantiation_172() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40536,7 +40357,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_237() { + fn __bindgen_test_layout_Handle_instantiation_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40547,7 +40368,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_238() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_174() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40558,7 +40379,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_239() { + fn __bindgen_test_layout_already_AddRefed_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40569,7 +40390,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_240() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_176() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40580,7 +40401,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_241() { + fn __bindgen_test_layout_Handle_instantiation_177() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40591,7 +40412,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_242() { + fn __bindgen_test_layout_nsTArray_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40602,7 +40423,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_243() { + fn __bindgen_test_layout_Handle_instantiation_179() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40613,7 +40434,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_244() { + fn __bindgen_test_layout_OwningNonNull_instantiation_180() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40624,7 +40445,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_245() { + fn __bindgen_test_layout_OwningNonNull_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40635,7 +40456,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_246() { + fn __bindgen_test_layout_OwningNonNull_instantiation_182() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40646,7 +40467,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_247() { + fn __bindgen_test_layout_Handle_instantiation_183() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40657,7 +40478,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_248() { + fn __bindgen_test_layout_Handle_instantiation_184() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40668,7 +40489,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_249() { + fn __bindgen_test_layout_Handle_instantiation_185() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40679,7 +40500,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_250() { + fn __bindgen_test_layout_MutableHandle_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40690,7 +40511,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_251() { + fn __bindgen_test_layout_Handle_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40701,7 +40522,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_252() { + fn __bindgen_test_layout_MutableHandle_instantiation_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40712,7 +40533,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_253() { + fn __bindgen_test_layout_Handle_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40723,7 +40544,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_254() { + fn __bindgen_test_layout_MutableHandle_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40734,7 +40555,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_255() { + fn __bindgen_test_layout_Handle_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40745,7 +40566,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_256() { + fn __bindgen_test_layout_Handle_instantiation_192() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40756,7 +40577,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_257() { + fn __bindgen_test_layout_Handle_instantiation_193() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40767,7 +40588,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_258() { + fn __bindgen_test_layout_MutableHandle_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40778,7 +40599,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_259() { + fn __bindgen_test_layout_RefPtr_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40789,7 +40610,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_260() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40800,7 +40621,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_261() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40811,7 +40632,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_262() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40822,7 +40643,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_263() { + fn __bindgen_test_layout_already_AddRefed_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40833,17 +40654,731 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_264() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_200() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_201() { + 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_202() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_203() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "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_204() { + 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_205() { + 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_206() { + 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_207() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_208() { + 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_209() { + 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_210() { + 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_211() { + 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_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_nsCOMPtr_instantiation_213() { + 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_214() { + 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_215() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_216() { + 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_217() { + 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_218() { + 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_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_MutableHandle_instantiation_220() { + 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_221() { + 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_222() { + 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_223() { + 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_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_RefPtr_instantiation_225() { + 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_226() { + 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_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_already_AddRefed_instantiation_228() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_229() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_230() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_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_RefPtr_instantiation_232() { + 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_233() { + 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_234() { + 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_UniquePtr_instantiation_235() { + 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_nsTArray_instantiation_236() { + 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_237() { + 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_238() { + 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_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_MutableHandle_instantiation_240() { + 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_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_nsDataHashtable_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_OwningNonNull_instantiation_243() { + 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_nsRefPtrHashKey_instantiation_244() { + 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_nsRefPtrHashKey_instantiation_245() { + 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_246() { + 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_DefaultDelete_instantiation_247() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_248() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_249() { + assert_eq!(::std::mem::size_of::>() + , 40usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsMainThreadPtrHolder ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsMainThreadPtrHolder ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_250() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_251() { + 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_252() { + 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_253() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_254() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsPtrHashKey_instantiation_255() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_256() { + 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_257() { + 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_258() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_259() { + 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_260() { + 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_261() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_262() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_263() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_264() { + 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_265() { @@ -40858,307 +41393,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_266() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_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_nsPIDOMWindow_instantiation_268() { - 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_269() { - 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_270() { - 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_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_DefaultDelete_instantiation_272() { - 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_273() { - 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_274() { - 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_275() { - 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_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_nsCOMPtr_instantiation_277() { - 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_278() { - 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_279() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_280() { - 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_281() { - 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_282() { - 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_283() { - 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_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_nsTArray_instantiation_285() { - 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_286() { - 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_287() { - 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_288() { - 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_289() { - 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_290() { - 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_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_already_AddRefed_instantiation_292() { - 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_293() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41169,420 +41403,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_294() { - 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_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_nsTArray_instantiation_297() { - 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_298() { - 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_UniquePtr_instantiation_299() { - 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_nsTArray_instantiation_300() { - 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_301() { - 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_302() { - 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_303() { - 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_304() { - 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_305() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_306() { - 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_OwningNonNull_instantiation_307() { - 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_nsRefPtrHashKey_instantiation_308() { - 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_nsRefPtrHashKey_instantiation_309() { - 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_310() { - 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_DefaultDelete_instantiation_311() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_312() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_313() { - assert_eq!(::std::mem::size_of::>() - , 40usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_314() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_315() { - 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_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_nsPtrHashKey_instantiation_319() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_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_DefaultDelete_instantiation_321() { - 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_322() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_323() { - 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_324() { - 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_325() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_326() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_327() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_328() { - 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_329() { - 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_330() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Maybe_instantiation_331() { + fn __bindgen_test_layout_Maybe_instantiation_267() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41593,7 +41414,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_332() { + fn __bindgen_test_layout_Maybe_instantiation_268() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41604,7 +41425,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_333() { + fn __bindgen_test_layout_already_AddRefed_instantiation_269() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41615,7 +41436,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_334() { + fn __bindgen_test_layout_already_AddRefed_instantiation_270() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41626,7 +41447,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_335() { + fn __bindgen_test_layout_DefaultDelete_instantiation_271() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41637,7 +41458,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_336() { + fn __bindgen_test_layout_UniquePtr_instantiation_272() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41648,7 +41469,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_337() { + fn __bindgen_test_layout_DefaultDelete_instantiation_273() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41659,7 +41480,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_338() { + fn __bindgen_test_layout_UniquePtr_instantiation_274() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41670,7 +41491,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_339() { + fn __bindgen_test_layout_already_AddRefed_instantiation_275() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41681,7 +41502,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_340() { + fn __bindgen_test_layout_Maybe_instantiation_276() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41692,7 +41513,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_341() { + fn __bindgen_test_layout_DefaultDelete_instantiation_277() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41703,7 +41524,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_342() { + fn __bindgen_test_layout_DefaultDelete_instantiation_278() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41714,7 +41535,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_343() { + fn __bindgen_test_layout_pair_instantiation_279() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41725,7 +41546,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_344() { + fn __bindgen_test_layout_nsTArray_instantiation_280() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -41740,7 +41561,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_345() { + fn __bindgen_test_layout_already_AddRefed_instantiation_281() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41751,7 +41572,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_346() { + fn __bindgen_test_layout_nsTArray_instantiation_282() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41762,7 +41583,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_347() { + fn __bindgen_test_layout_nsTArray_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41773,7 +41594,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_348() { + fn __bindgen_test_layout_nsTArray_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41784,7 +41605,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_349() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_285() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41795,7 +41616,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_350() { + fn __bindgen_test_layout_RefPtr_instantiation_286() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41806,7 +41627,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_351() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_287() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41817,7 +41638,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_352() { + fn __bindgen_test_layout_DefaultDelete_instantiation_288() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41828,7 +41649,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_353() { + fn __bindgen_test_layout_UniquePtr_instantiation_289() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41839,7 +41660,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_354() { + fn __bindgen_test_layout_DefaultDelete_instantiation_290() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41850,7 +41671,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_355() { + fn __bindgen_test_layout_UniquePtr_instantiation_291() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41861,7 +41682,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_356() { + fn __bindgen_test_layout_RefPtr_instantiation_292() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41872,7 +41693,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_357() { + fn __bindgen_test_layout_RefPtr_instantiation_293() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41883,7 +41704,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_358() { + fn __bindgen_test_layout_NonNull_instantiation_294() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41896,7 +41717,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_359() { + fn __bindgen_test_layout_NonNull_instantiation_295() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41909,7 +41730,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_360() { + fn __bindgen_test_layout_Handle_instantiation_296() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41920,7 +41741,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_361() { + fn __bindgen_test_layout_MutableHandle_instantiation_297() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41931,7 +41752,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_362() { + fn __bindgen_test_layout_Maybe_instantiation_298() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41942,7 +41763,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_363() { + fn __bindgen_test_layout_Maybe_instantiation_299() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41953,7 +41774,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_364() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_300() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41964,7 +41785,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_365() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41975,7 +41796,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_366() { + fn __bindgen_test_layout_already_AddRefed_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41986,7 +41807,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_367() { + fn __bindgen_test_layout_already_AddRefed_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41997,7 +41818,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_368() { + fn __bindgen_test_layout_nsTArray_instantiation_304() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42008,7 +41829,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_369() { + fn __bindgen_test_layout_nsTArray_instantiation_305() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42019,7 +41840,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_370() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_306() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42030,7 +41851,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_371() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42043,18 +41864,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_372() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_373() { + fn __bindgen_test_layout_already_AddRefed_instantiation_308() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42065,7 +41875,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_374() { + fn __bindgen_test_layout_nsTArray_instantiation_309() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42078,7 +41888,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_375() { + fn __bindgen_test_layout_Handle_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42089,7 +41899,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_376() { + fn __bindgen_test_layout_Handle_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42100,7 +41910,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_377() { + fn __bindgen_test_layout_RefPtr_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42111,7 +41921,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_378() { + fn __bindgen_test_layout_Handle_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42122,7 +41932,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_379() { + fn __bindgen_test_layout_MutableHandle_instantiation_314() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42133,7 +41943,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_380() { + fn __bindgen_test_layout_Sequence_instantiation_315() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42142,7 +41952,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_381() { + fn __bindgen_test_layout_Handle_instantiation_316() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42153,7 +41963,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_382() { + fn __bindgen_test_layout_Sequence_instantiation_317() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42162,7 +41972,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_383() { + fn __bindgen_test_layout_Sequence_instantiation_318() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42171,7 +41981,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_384() { + fn __bindgen_test_layout_Handle_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42182,7 +41992,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_385() { + fn __bindgen_test_layout_Handle_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42193,7 +42003,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_386() { + fn __bindgen_test_layout_MutableHandle_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42204,7 +42014,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_387() { + fn __bindgen_test_layout_Handle_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42215,7 +42025,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_388() { + fn __bindgen_test_layout_MutableHandle_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42226,7 +42036,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_389() { + fn __bindgen_test_layout_Handle_instantiation_324() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42237,7 +42047,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_390() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_325() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42248,7 +42058,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_391() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_326() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42259,7 +42069,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_392() { + fn __bindgen_test_layout_Handle_instantiation_327() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42270,7 +42080,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_393() { + fn __bindgen_test_layout_nsTArray_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42281,7 +42091,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_394() { + fn __bindgen_test_layout_nsTArray_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42292,7 +42102,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_395() { + fn __bindgen_test_layout_nsTArray_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42303,7 +42113,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_396() { + fn __bindgen_test_layout_already_AddRefed_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42314,7 +42124,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_397() { + fn __bindgen_test_layout_Handle_instantiation_332() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42325,7 +42135,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_398() { + fn __bindgen_test_layout_nsTArray_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42336,7 +42146,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_399() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_334() { 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 4da90f6597e..8747b5cd3f0 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -1036,16 +1036,6 @@ pub mod root { use self::super::super::root; #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct __is_swappable { - pub _address: u8, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __is_nothrow_swappable { - pub _address: u8, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct pair<_T1, _T2> { pub first: _T1, pub second: _T2, @@ -1054,8 +1044,6 @@ pub mod root { } pub type pair_first_type<_T1> = _T1; pub type pair_second_type<_T2> = _T2; - pub type pair__PCCP = u8; - pub type pair__PCCFP = u8; #[repr(C)] #[derive(Debug, Copy)] pub struct input_iterator_tag { @@ -1075,47 +1063,98 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct iterator { + #[derive(Debug, Copy)] + pub struct forward_iterator_tag { pub _address: u8, } - pub type iterator_iterator_category<_Category> = _Category; - pub type iterator_value_type<_Tp> = _Tp; - pub type iterator_difference_type<_Distance> = _Distance; - pub type iterator_pointer<_Pointer> = _Pointer; - pub type iterator_reference<_Reference> = _Reference; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __iterator_traits { - pub _address: u8, + #[test] + fn bindgen_test_layout_forward_iterator_tag() { + assert_eq!(::std::mem::size_of::() , 1usize + , concat ! ( + "Size of: " , stringify ! ( forward_iterator_tag ) )); + assert_eq! (::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of " , stringify ! ( forward_iterator_tag ) + )); + } + impl Clone for forward_iterator_tag { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct bidirectional_iterator_tag { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_bidirectional_iterator_tag() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of: " , stringify ! ( bidirectional_iterator_tag + ) )); + assert_eq! (::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of " , stringify ! ( + bidirectional_iterator_tag ) )); + } + impl Clone for bidirectional_iterator_tag { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct random_access_iterator_tag { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_random_access_iterator_tag() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of: " , stringify ! ( random_access_iterator_tag + ) )); + assert_eq! (::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of " , stringify ! ( + random_access_iterator_tag ) )); + } + impl Clone for random_access_iterator_tag { + fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct iterator_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>>, + pub struct iterator { + pub _address: u8, } - pub type reverse_iterator___traits_type = root::std::iterator_traits; - pub type reverse_iterator_iterator_type<_Iterator> = _Iterator; + pub type iterator_value_type<_Tp> = _Tp; + pub type iterator_difference_type<_Distance> = _Distance; + pub type iterator_pointer<_Pointer> = _Pointer; + pub type iterator_reference<_Reference> = _Reference; + pub type iterator_iterator_category<_Category> = _Category; + #[repr(C)] + pub struct reverse_iterator<_Iter> { + pub __t: _Iter, + pub current: _Iter, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iter>>, + } + pub type reverse_iterator_iterator_type<_Iter> = _Iter; pub type reverse_iterator_difference_type = - root::std::reverse_iterator___traits_type; - pub type reverse_iterator_pointer = - root::std::reverse_iterator___traits_type; - pub type reverse_iterator_reference = - root::std::reverse_iterator___traits_type; + root::std::iterator_traits; + pub type reverse_iterator_reference = root::std::iterator_traits; + pub type reverse_iterator_pointer = root::std::iterator_traits; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct atomic { } - } - pub mod __gnu_cxx { - #[allow(unused_imports)] - use self::super::super::root; + pub type atomic___base = u8; + #[repr(C)] + pub struct __bit_const_reference { + pub __seg_: root::std::__bit_const_reference___storage_pointer, + pub __mask_: root::std::__bit_const_reference___storage_type, + } + pub type __bit_const_reference___storage_type = [u8; 0usize]; + pub type __bit_const_reference___storage_pointer = [u8; 0usize]; } pub mod mozilla { #[allow(unused_imports)] @@ -1160,9 +1199,8 @@ pub mod root { root::nsSubstringTuple; pub type nsStringRepr_string_type = ::nsstring::nsStringRepr; pub type nsStringRepr_const_iterator = - root::nsReadingIterator; - pub type nsStringRepr_iterator = - root::nsWritingIterator; + root::nsReadingIterator; + pub type nsStringRepr_iterator = root::nsWritingIterator; pub type nsStringRepr_comparator_type = root::nsStringComparator; pub type nsStringRepr_char_iterator = *mut root::mozilla::detail::nsStringRepr_char_type; @@ -1229,9 +1267,9 @@ pub mod root { root::nsCSubstringTuple; pub type nsCStringRepr_string_type = root::nsCString; pub type nsCStringRepr_const_iterator = - root::nsReadingIterator; + root::nsReadingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_iterator = - root::nsWritingIterator; + root::nsWritingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_comparator_type = root::nsCStringComparator; pub type nsCStringRepr_char_iterator = @@ -1316,7 +1354,7 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct MutexImpl { - pub platformData_: [*mut ::std::os::raw::c_void; 5usize], + pub platformData_: [*mut ::std::os::raw::c_void; 8usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1325,7 +1363,7 @@ pub mod root { } #[test] fn bindgen_test_layout_MutexImpl() { - assert_eq!(::std::mem::size_of::() , 40usize , + assert_eq!(::std::mem::size_of::() , 64usize , concat ! ( "Size of: " , stringify ! ( MutexImpl ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -2202,7 +2240,7 @@ pub mod root { } } #[repr(C)] - #[derive(Debug)] + #[derive(Debug, Copy)] pub struct ThreadSafeAutoRefCnt { pub mValue: u64, } @@ -2223,6 +2261,9 @@ pub mod root { ThreadSafeAutoRefCnt ) , "::" , stringify ! ( mValue ) )); } + impl Clone for ThreadSafeAutoRefCnt { + fn clone(&self) -> Self { *self } + } #[repr(C)] #[derive(Debug)] pub struct OwningNonNull { @@ -5635,7 +5676,19 @@ pub mod root { */ #[repr(C)] #[derive(Debug)] - pub struct FragmentOrElement_nsExtendedDOMSlots { + pub struct FragmentOrElement_nsDOMSlots { + pub _base: root::nsINode_nsSlots, + /** + * The .style attribute (an interface that forwards to the actual + * style rules) + * @see nsGenericHTMLElement::GetStyle + */ + pub mStyle: root::nsCOMPtr, + /** + * The .dataset attribute. + * @see nsGenericHTMLElement::GetDataset + */ + pub mDataset: *mut root::nsDOMStringMap, /** * SMIL Overridde style rules (for SMIL animation of CSS properties) * @see Element::GetSMILOverrideStyle @@ -5646,17 +5699,19 @@ pub mod root { */ pub mSMILOverrideStyleDeclaration: root::RefPtr, /** - * The nearest enclosing content node with a binding that created us. - * @see FragmentOrElement::GetBindingParent - */ - pub mBindingParent: *mut root::nsIContent, - /** - * The controllers of the XUL Element. - */ - pub mControllers: root::nsCOMPtr, - /** - * An object implementing the .labels property for this element. + * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) + * @see FragmentOrElement::GetAttributes */ + pub mAttributeMap: root::RefPtr, + pub __bindgen_anon_1: root::mozilla::dom::FragmentOrElement_nsDOMSlots__bindgen_ty_1, + /** + * An object implementing the .children property for this element. + */ + pub mChildrenList: root::RefPtr, + /** + * An object implementing the .classList property for this element. + */ + pub mClassList: root::RefPtr, pub mLabelsList: root::RefPtr, /** * ShadowRoot bound to the element. @@ -5687,174 +5742,59 @@ pub mod root { * Registered Intersection Observers on the element. */ pub mRegisteredIntersectionObservers: [u64; 5usize], - /** - * For XUL to hold either frameloader or opener. - */ - pub mFrameLoaderOrOpener: root::nsCOMPtr, - } - #[test] - fn bindgen_test_layout_FragmentOrElement_nsExtendedDOMSlots() { - assert_eq!(::std::mem::size_of::() - , 136usize , concat ! ( - "Size of: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) )); - assert_eq! (::std::mem::align_of::() - , 8usize , concat ! ( - "Alignment of " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mSMILOverrideStyle as * const _ as usize } , - 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mSMILOverrideStyle ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mSMILOverrideStyleDeclaration as * const _ - as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mSMILOverrideStyleDeclaration ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mBindingParent as * const _ as usize } , - 16usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mBindingParent ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mControllers as * const _ as usize } , - 24usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mControllers ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mLabelsList as * const _ as usize } , - 32usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mLabelsList ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mShadowRoot as * const _ as usize } , - 40usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mShadowRoot ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mContainingShadow as * const _ as usize } , - 48usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mContainingShadow ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mDestInsertionPoints as * const _ as usize } - , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mDestInsertionPoints ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mXBLBinding as * const _ as usize } , - 64usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mXBLBinding ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mXBLInsertionParent as * const _ as usize } - , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mXBLInsertionParent ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mCustomElementData as * const _ as usize } , - 80usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mCustomElementData ) )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mRegisteredIntersectionObservers as * const - _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mRegisteredIntersectionObservers ) - )); - assert_eq! (unsafe { - & ( - * ( - 0 as * const FragmentOrElement_nsExtendedDOMSlots - ) ) . mFrameLoaderOrOpener as * const _ as usize } - , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsExtendedDOMSlots ) , "::" , - stringify ! ( mFrameLoaderOrOpener ) )); } #[repr(C)] - #[derive(Debug)] - pub struct FragmentOrElement_nsDOMSlots { - pub _base: root::nsINode_nsSlots, + #[derive(Debug, Copy)] + pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_1 { /** - * The .style attribute (an interface that forwards to the actual - * style rules) - * @see nsGenericHTMLElement::GetStyle - */ - pub mStyle: root::nsCOMPtr, + * The nearest enclosing content node with a binding that created us. + * @see FragmentOrElement::GetBindingParent + */ + pub mBindingParent: root::__BindgenUnionField<*mut root::nsIContent>, /** - * The .dataset attribute. - * @see nsGenericHTMLElement::GetDataset - */ - pub mDataset: *mut root::nsDOMStringMap, - /** - * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) - * @see FragmentOrElement::GetAttributes - */ - pub mAttributeMap: root::RefPtr, - /** - * An object implementing the .children property for this element. - */ - pub mChildrenList: root::RefPtr, - /** - * An object implementing the .classList property for this element. - */ - pub mClassList: root::RefPtr, - pub mExtendedSlots: root::mozilla::UniquePtr, + * The controllers of the XUL Element. + */ + pub mControllers: root::__BindgenUnionField<*mut root::nsIControllers>, + pub bindgen_union_field: u64, + } + #[test] + fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_1() { + assert_eq!(::std::mem::size_of::() + , 8usize , concat ! ( + "Size of: " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . + mBindingParent as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , + "::" , stringify ! ( mBindingParent ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . + mControllers as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , + "::" , stringify ! ( mControllers ) )); + } + impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_1 { + fn clone(&self) -> Self { *self } } #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() - , 96usize , concat ! ( + , 208usize , concat ! ( "Size of: " , stringify ! ( FragmentOrElement_nsDOMSlots ) )); assert_eq! (::std::mem::align_of::() @@ -5880,7 +5820,23 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mAttributeMap as * const _ as usize } , 64usize + . mSMILOverrideStyle as * const _ as usize } , + 64usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mSMILOverrideStyle ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mSMILOverrideStyleDeclaration as * const _ as + usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mSMILOverrideStyleDeclaration ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mAttributeMap as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5888,7 +5844,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mChildrenList as * const _ as usize } , 72usize + . mChildrenList as * const _ as usize } , 96usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5896,7 +5852,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mClassList as * const _ as usize } , 80usize , + . mClassList as * const _ as usize } , 104usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5904,11 +5860,67 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mExtendedSlots as * const _ as usize } , 88usize - , concat ! ( + . mLabelsList as * const _ as usize } , 112usize , + concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mExtendedSlots ) )); + ! ( mLabelsList ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mShadowRoot as * const _ as usize } , 120usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mShadowRoot ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mContainingShadow as * const _ as usize } , + 128usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mContainingShadow ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mDestInsertionPoints as * const _ as usize } , + 136usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mDestInsertionPoints ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mXBLBinding as * const _ as usize } , 144usize , + concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mXBLBinding ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mXBLInsertionParent as * const _ as usize } , + 152usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mXBLInsertionParent ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mCustomElementData as * const _ as usize } , + 160usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mCustomElementData ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) + . mRegisteredIntersectionObservers as * const _ as + usize } , 168usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsDOMSlots ) , "::" , stringify + ! ( mRegisteredIntersectionObservers ) )); } extern "C" { #[link_name = @@ -8706,7 +8718,7 @@ pub mod root { } #[test] fn bindgen_test_layout_OffTheBooksMutex() { - assert_eq!(::std::mem::size_of::() , 40usize , + assert_eq!(::std::mem::size_of::() , 64usize , concat ! ( "Size of: " , stringify ! ( OffTheBooksMutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -8725,7 +8737,7 @@ pub mod root { } #[test] fn bindgen_test_layout_Mutex() { - assert_eq!(::std::mem::size_of::() , 40usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 64usize , concat ! ( "Size of: " , stringify ! ( Mutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( Mutex ) )); @@ -10196,8 +10208,6 @@ pub mod root { PropertyStyleAnimationValuePair ) , "::" , stringify ! ( mValue ) )); } - pub type ComputedKeyframeValues = - root::nsTArray; #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_3() { assert_eq!(::std::mem::size_of::() , @@ -14366,11 +14376,6 @@ pub mod root { AutoSetAsyncStackForNewCalls ) , "::" , stringify ! ( oldAsyncCallIsExplicit ) )); } - pub type WarningReporter = - ::std::option::Option; #[repr(C)] #[derive(Debug)] pub struct AutoHideScriptedCaller { @@ -14524,141 +14529,6 @@ pub mod root { pub struct JSCompartment { _unused: [u8; 0], } - /** - * Describes a single error or warning that occurs in the execution of script. - */ - #[repr(C)] - pub struct JSErrorReport { - pub _base: root::JSErrorBase, - pub linebuf_: *const u16, - pub linebufLength_: usize, - pub tokenOffset_: usize, - pub notes: root::mozilla::UniquePtr, - pub flags: ::std::os::raw::c_uint, - pub exnType: i16, - pub _bitfield_1: u8, - pub __bindgen_padding_0: u8, - } - #[test] - fn bindgen_test_layout_JSErrorReport() { - assert_eq!(::std::mem::size_of::() , 72usize , concat ! - ( "Size of: " , stringify ! ( JSErrorReport ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( JSErrorReport ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebuf_ as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebuf_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebufLength_ as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebufLength_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . tokenOffset_ as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( tokenOffset_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . notes as * const - _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( notes ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . flags as * const - _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( flags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . exnType as * - const _ as usize } , 68usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( exnType ) )); - } - impl JSErrorReport { - #[inline] - pub fn isMuted(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u8; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_isMuted(&mut self, val: bool) { - let mask = 1u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn ownsLinebuf_(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u8; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_ownsLinebuf_(&mut self, val: bool) { - let mask = 2u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(isMuted: bool, ownsLinebuf_: bool) -> u8 { - ({ ({ 0 } | ((isMuted as u8 as u8) << 0usize) & (1u64 as u8)) } | - ((ownsLinebuf_ as u8 as u8) << 1usize) & (2u64 as u8)) - } - } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct JSRuntime { @@ -15711,7 +15581,7 @@ pub mod root { #[derive(Debug)] pub struct gfxFontFeatureValueSet_ValueList { pub name: ::nsstring::nsStringRepr, - pub featureSelectors: root::nsTArray, + pub featureSelectors: root::nsTArray<::std::os::raw::c_uint>, } #[test] fn bindgen_test_layout_gfxFontFeatureValueSet_ValueList() { @@ -15816,7 +15686,7 @@ pub mod root { pub struct gfxFontFeatureValueSet_FeatureValueHashEntry { pub _base: root::PLDHashEntryHdr, pub mKey: root::gfxFontFeatureValueSet_FeatureValueHashKey, - pub mValues: root::nsTArray, + pub mValues: root::nsTArray<::std::os::raw::c_uint>, } pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyType = *const root::gfxFontFeatureValueSet_FeatureValueHashKey; @@ -15919,7 +15789,7 @@ pub mod root { pub alternateValues: root::nsTArray, pub featureValueLookup: root::RefPtr, pub fontFeatureSettings: root::nsTArray, - pub fontVariationSettings: root::nsTArray, + pub fontVariationSettings: root::nsTArray, pub languageOverride: u32, } #[test] @@ -17939,7 +17809,7 @@ pub mod root { * count is 1. */ #[repr(C)] - #[derive(Debug)] + #[derive(Debug, Copy)] pub struct nsStringBuffer { pub mRefCount: u32, pub mStorageSize: u32, @@ -17961,6 +17831,9 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStringBuffer ) , "::" , stringify ! ( mStorageSize ) )); } + impl Clone for nsStringBuffer { + fn clone(&self) -> Self { *self } + } #[repr(C)] #[derive(Debug, Copy)] pub struct nsIAtom { @@ -19706,7 +19579,7 @@ pub mod root { pub mUpgradeInsecurePreloads: bool, pub mHSTSPrimingURIList: [u64; 5usize], pub mDocumentContainer: u64, - pub mCharacterSet: root::mozilla::NotNull<*const root::nsIDocument_Encoding>, + pub mCharacterSet: root::mozilla::NotNull<*const root::mozilla::Encoding>, pub mCharacterSetSource: i32, pub mParentDocument: *mut root::nsIDocument, pub mCachedRootElement: *mut root::mozilla::dom::Element, @@ -19759,7 +19632,7 @@ pub mod root { */ pub mFrameRequestCallbackCounter: i32, pub mStaticCloneCount: u32, - pub mBlockedTrackingNodes: root::nsTArray, + pub mBlockedTrackingNodes: root::nsTArray, pub mWindow: *mut root::nsPIDOMWindowInner, pub mCachedEncoder: root::nsCOMPtr, pub mFrameRequestCallbacks: root::nsTArray, @@ -26353,57 +26226,57 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_77 = - _bindgen_ty_77::NODE_TYPE_SPECIFIC_BITS_OFFSET; + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_EDITABLE; + pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_18 = + _bindgen_ty_18::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_77 { + pub enum _bindgen_ty_18 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -31650,7 +31523,7 @@ pub mod root { pub _base_4: root::nsITimedChannel, pub mRefCnt: root::nsAutoRefCnt, pub mBehaviour: root::mozilla::UniquePtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mListener: *mut root::imgINotificationObserver, pub mLoadGroup: root::nsCOMPtr, pub mLoadFlags: root::nsLoadFlags, @@ -32790,7 +32663,7 @@ pub mod root { pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, pub mLoader: *mut root::imgLoader, pub mRequest: root::nsCOMPtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mCurrentURI: root::nsCOMPtr, pub mLoadingPrincipal: root::nsCOMPtr, pub mPrincipal: root::nsCOMPtr, @@ -32817,8 +32690,8 @@ pub mod root { pub mImageErrorCode: root::nsresult, pub mBoostCategoriesRequested: u32, pub mMutex: root::mozilla::Mutex, - pub mProgressTracker: root::RefPtr, - pub mImage: root::RefPtr, + pub mProgressTracker: root::RefPtr, + pub mImage: root::RefPtr, pub _bitfield_1: u8, pub __bindgen_padding_0: [u8; 7usize], } @@ -32832,7 +32705,7 @@ pub mod root { pub type imgRequest_HasThreadSafeRefCnt = root::mozilla::TrueType; #[test] fn bindgen_test_layout_imgRequest() { - assert_eq!(::std::mem::size_of::() , 384usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 408usize , concat ! ( "Size of: " , stringify ! ( imgRequest ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( imgRequest ) )); @@ -34405,7 +34278,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_80() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34416,7 +34289,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_81() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -36718,7 +36591,7 @@ pub mod root { root::nsTArray>; pub type RawGeckoKeyframeList = root::nsTArray; pub type RawGeckoComputedKeyframeValuesList = - root::nsTArray; + root::nsTArray>; pub type RawGeckoStyleAnimationList = root::nsStyleAutoArray; pub type RawGeckoFontFaceRuleList = @@ -37565,46 +37438,46 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_79 + root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_20 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_79 = - _bindgen_ty_79::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; + pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_PENDING_RESTYLE_FLAGS; + pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; + pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_ALL_RESTYLE_FLAGS; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_20 = + _bindgen_ty_20::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_79 { + pub enum _bindgen_ty_20 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -38154,22 +38027,6 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy)] - pub struct _bindgen_ty_29 { - pub _address: u8, - } - impl Clone for _bindgen_ty_29 { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct _bindgen_ty_30 { - pub _address: u8, - } - impl Clone for _bindgen_ty_30 { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] pub struct __va_list_tag { pub gp_offset: ::std::os::raw::c_uint, pub fp_offset: ::std::os::raw::c_uint, @@ -38208,7 +38065,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_82() { + fn __bindgen_test_layout_IntegralConstant_instantiation_23() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38217,7 +38074,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_83() { + fn __bindgen_test_layout_IntegralConstant_instantiation_24() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38226,7 +38083,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_84() { + fn __bindgen_test_layout_nsCharTraits_instantiation_25() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38237,33 +38094,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_85() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsReadingIterator_instantiation_26() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsReadingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_86() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsWritingIterator_instantiation_27() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsWritingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_87() { + fn __bindgen_test_layout_nsCharTraits_instantiation_28() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38274,33 +38127,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_88() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsReadingIterator_instantiation_29() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsReadingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_89() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsWritingIterator_instantiation_30() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsWritingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_90() { + fn __bindgen_test_layout_nsCharTraits_instantiation_31() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38311,7 +38160,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_91() { + fn __bindgen_test_layout_nsCharTraits_instantiation_32() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38322,7 +38171,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187558_instantiation_92() { + fn __bindgen_test_layout__bindgen_ty_id_186813_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38331,7 +38180,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187594_instantiation_93() { + fn __bindgen_test_layout__bindgen_ty_id_186849_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38340,7 +38189,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_94() { + fn __bindgen_test_layout_nsTArray_instantiation_35() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38351,7 +38200,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_95() { + fn __bindgen_test_layout_Handle_instantiation_36() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38362,7 +38211,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_96() { + fn __bindgen_test_layout_Handle_instantiation_37() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38373,7 +38222,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_97() { + fn __bindgen_test_layout_Handle_instantiation_38() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38384,7 +38233,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_98() { + fn __bindgen_test_layout_MutableHandle_instantiation_39() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38395,7 +38244,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_99() { + fn __bindgen_test_layout_Rooted_instantiation_40() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38406,6 +38255,655 @@ pub mod root { [u64; 3usize] ) )); } #[test] + fn __bindgen_test_layout_DeletePolicy_instantiation_41() { + 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_nsTArray_instantiation_42() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_43() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_44() { + 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_45() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + } + #[test] + fn __bindgen_test_layout_PointTyped_instantiation_46() { + 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_47() { + 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_48() { + 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_49() { + 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_50() { + 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_51() { + 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_52() { + 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_53() { + 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_54() { + 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_55() { + 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_56() { + 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_57() { + 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_58() { + 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_59() { + 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_60() { + assert_eq!(::std::mem::size_of::() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::BaseTimeDuration ) )); + assert_eq!(::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::BaseTimeDuration ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_61() { + 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_62() { + 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_63() { + 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_64() { + 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_65() { + 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_66() { + 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_67() { + 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_68() { + 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_69() { + 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_70() { + 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_71() { + 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_72() { + 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_73() { + 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_74() { + 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_75() { + 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_76() { + 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_77() { + 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_78() { + 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_79() { + 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_80() { + 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_81() { + 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_82() { + 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_83() { + 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_84() { + 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_85() { + 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_86() { + 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_87() { + 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_88() { + 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_89() { + 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_90() { + 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_91() { + 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_92() { + 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_93() { + 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_94() { + 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_95() { + 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_96() { + 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_97() { + 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_98() { + 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_99() { + 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_100() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -38417,236 +38915,143 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_101() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_102() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_UniquePtr_instantiation_101() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_103() { - assert_eq!(::std::mem::size_of::>() , 8usize , + fn __bindgen_test_layout_nsCOMPtr_instantiation_102() { + 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_103() { + 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_104() { + 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_105() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_106() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_Heap_instantiation_107() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Heap ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Heap ) )); + } + #[test] + fn __bindgen_test_layout_Heap_instantiation_108() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Heap<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Heap<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_TenuredHeap_instantiation_109() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , + root::JS::TenuredHeap ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_104() { - assert_eq!(::std::mem::size_of::>() , 8usize , - concat ! ( + fn __bindgen_test_layout_already_AddRefed_instantiation_110() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , - concat ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_105() { - assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! - ( + fn __bindgen_test_layout_NotNull_instantiation_111() { + 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_106() { - 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_107() { - 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_108() { - 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_109() { - 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_110() { - 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_111() { - 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_112() { - 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_113() { - 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_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_ScaleFactor_instantiation_115() { - assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( - "Size of template specialization: " , stringify ! ( u32 ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); - assert_eq!(::std::mem::align_of::() , 4usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u32 ) )); - } - #[test] - fn __bindgen_test_layout_ScaleFactors2D_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_ScaleFactors2D_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_ScaleFactors2D_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_BaseTimeDuration_instantiation_119() { - assert_eq!(::std::mem::size_of::() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::BaseTimeDuration ) )); - assert_eq!(::std::mem::align_of::() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::BaseTimeDuration ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_120() { - 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 ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_121() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_112() { + assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::nsTArray> + ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_122() { + fn __bindgen_test_layout_RefPtr_instantiation_113() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38657,7 +39062,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_123() { + fn __bindgen_test_layout_nsTArray_instantiation_114() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38670,6 +39075,107 @@ pub mod root { )); } #[test] + fn __bindgen_test_layout_RefPtr_instantiation_115() { + 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_116() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_117() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_118() { + 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_119() { + 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_120() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_121() { + 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_already_AddRefed_instantiation_122() { + 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_123() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] fn __bindgen_test_layout_RefPtr_instantiation_124() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -38682,80 +39188,80 @@ pub mod root { } #[test] fn __bindgen_test_layout_nsTArray_instantiation_125() { - assert_eq!(::std::mem::size_of::>>() + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); + root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_WeakPtr_instantiation_126() { - 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_127() { - 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_128() { - 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_129() { - 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_130() { - 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_131() { - 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_MutableHandle_instantiation_127() { + 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_already_AddRefed_instantiation_128() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_129() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + 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_131() { + 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_132() { @@ -38769,48 +39275,48 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_133() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_133() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_134() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_134() { + 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_135() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsCOMPtr_instantiation_135() { + 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 ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_136() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsCOMPtr_instantiation_136() { + 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_RefPtr_instantiation_137() { @@ -38824,7 +39330,31 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_138() { + fn __bindgen_test_layout_nsTArray_instantiation_138() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_139() { + 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_140() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38835,7 +39365,51 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_139() { + fn __bindgen_test_layout_DefaultDelete_instantiation_141() { + 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_142() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_143() { + 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_144() { + 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_145() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38846,7 +39420,86 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_140() { + fn __bindgen_test_layout_Handle_instantiation_146() { + 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_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_nsRefPtrHashKey_instantiation_148() { + 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_149() { + 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_150() { + 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_151() { + 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_152() { + 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_153() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38857,7 +39510,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_141() { + fn __bindgen_test_layout_already_AddRefed_instantiation_154() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38868,216 +39521,97 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_142() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_155() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_143() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_156() { + 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_MutableHandle_instantiation_144() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_157() { + 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_158() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_145() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_159() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_146() { - 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_147() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_160() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_148() { - assert_eq!(::std::mem::size_of::() , 1usize , - concat ! ( + fn __bindgen_test_layout_DefaultDelete_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 ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::DeletePolicy ) )); + root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_149() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_162() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_150() { - 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_151() { - 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_152() { - 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_153() { - 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_154() { - 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_155() { - 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_156() { - 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_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_nsCOMPtr_instantiation_161() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_163() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39088,202 +39622,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_162() { - 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_163() { - 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_164() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_165() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_Heap_instantiation_166() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Heap ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Heap ) )); - } - #[test] - fn __bindgen_test_layout_Heap_instantiation_167() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Heap<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Heap<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_168() { - assert_eq!(::std::mem::size_of::() , 8usize , - concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::TenuredHeap ) )); - assert_eq!(::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::TenuredHeap ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_169() { - 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_170() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_171() { - 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_172() { - 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_173() { - 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_174() { - 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_175() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_176() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_177() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_178() { - 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_179() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39294,125 +39633,290 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_180() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( + fn __bindgen_test_layout_already_AddRefed_instantiation_165() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - 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::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_166() { + 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_167() { + 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_168() { + 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_169() { + 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_170() { + 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_171() { + 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_172() { + 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_173() { + assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 30usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); + [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_181() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_174() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_182() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_175() { + assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - 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::already_AddRefed ) )); + [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_183() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_176() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - 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::RefPtr ) )); + root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_184() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_177() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - 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::nsTArray<*mut root::nsIDocument_Element> ) )); + root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_185() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_178() { + 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_MutableHandle_instantiation_186() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_OwningNonNull_instantiation_179() { + 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::>() + root::mozilla::OwningNonNull ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle<*mut root::JSObject> ) )); + root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_187() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_OwningNonNull_instantiation_180() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::OwningNonNull ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_188() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_OwningNonNull_instantiation_181() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::OwningNonNull ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_189() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_182() { + 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 ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_190() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_183() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_184() { + 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_185() { + 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_186() { + 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_187() { + 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_188() { + 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_189() { + 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_190() { + 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_191() { @@ -39426,18 +39930,62 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_192() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_192() { + 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_193() { + fn __bindgen_test_layout_MutableHandle_instantiation_193() { + 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_194() { + 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_195() { + 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_196() { + 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_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39448,64 +39996,108 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_194() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - 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::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_NotNull_instantiation_199() { + 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_200() { + 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_201() { + 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_202() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_203() { + assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 30usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); + [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_195() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_MutableHandle_instantiation_204() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); + root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_196() { - assert_eq!(::std::mem::size_of::>>() + fn __bindgen_test_layout_MutableHandle_instantiation_205() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); + root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_197() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_206() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + root::already_AddRefed ) )); } #[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_DefaultDelete_instantiation_199() { + fn __bindgen_test_layout_DefaultDelete_instantiation_207() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39516,86 +40108,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_200() { - 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_201() { - 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_202() { - 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_203() { - 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_204() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_205() { - 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_206() { - 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_207() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_208() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39606,152 +40119,40 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_208() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_Rooted_instantiation_209() { + assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u64; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 3usize]>() , 8usize , concat ! + ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_209() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_Rooted_instantiation_210() { + assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! + ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + [u64; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 3usize]>() , 8usize , concat ! + ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIContent> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_210() { - 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> ) )); + [u64; 3usize] ) )); } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_211() { - assert_eq!(::std::mem::size_of::>() + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_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_SupportsWeakPtr_instantiation_213() { - 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_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_nsTArray_instantiation_215() { - 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_216() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_217() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_218() { - 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_219() { - 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_220() { - 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_221() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_212() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39762,59 +40163,162 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_222() { - assert_eq!(::std::mem::size_of::>() , + fn __bindgen_test_layout_nsCOMPtr_instantiation_213() { + 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_214() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_215() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_223() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_216() { + 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 ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_224() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_MutableHandle_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::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_225() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_218() { + 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_226() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_MutableHandle_instantiation_219() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::MutableHandle ) )); + } + #[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_Handle_instantiation_221() { + 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_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_RefPtr_instantiation_223() { + 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_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_RefPtr_instantiation_226() { + 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_227() { @@ -39828,15 +40332,15 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_228() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_228() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::already_AddRefed ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_229() { @@ -39850,59 +40354,65 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_230() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_230() { + assert_eq!(::std::mem::size_of::>() , 8usize , + concat ! ( "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , + concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_231() { - assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat - ! ( + fn __bindgen_test_layout_RefPtr_instantiation_231() { + 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::RefPtr + ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u64; 30usize] ) )); + root::RefPtr + ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_232() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_232() { + assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::nsTArray> + ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_233() { - assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! - ( + fn __bindgen_test_layout_RefPtr_instantiation_233() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! - ( + root::RefPtr + ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u64; 5usize] ) )); + root::RefPtr + ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_234() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_UniquePtr_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::>() + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); + root::mozilla::UniquePtr ) )); } #[test] fn __bindgen_test_layout_nsTArray_instantiation_235() { @@ -39917,50 +40427,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_Handle_instantiation_236() { - 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_237() { - 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_238() { - 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_239() { - 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_240() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39971,7 +40437,18 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_241() { + fn __bindgen_test_layout_MutableHandle_instantiation_237() { + 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_238() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39982,18 +40459,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_242() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_243() { + fn __bindgen_test_layout_MutableHandle_instantiation_239() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40004,163 +40470,7 @@ pub mod root { 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 ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_247() { - 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_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_Handle_instantiation_249() { - 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_250() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_251() { - 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_252() { - 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_253() { - 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_254() { - 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_255() { - 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_256() { - 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_257() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> - ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_258() { + fn __bindgen_test_layout_already_AddRefed_instantiation_240() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40171,84 +40481,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_259() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_260() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_261() { - assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat - ! ( - "Size of template specialization: " , stringify ! ( - [u64; 30usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - [u64; 30usize] ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_262() { - 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_263() { - 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_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_DefaultDelete_instantiation_265() { - 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_266() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_241() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40259,380 +40492,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_267() { - 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_268() { - 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_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_nsCOMPtr_instantiation_270() { - 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_271() { - 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_272() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) - )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) - )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_273() { - 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_274() { - 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_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_Handle_instantiation_276() { - 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_277() { - 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_278() { - 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_279() { - 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_280() { - 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_281() { - 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_282() { - 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_283() { - 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_284() { - 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_285() { - 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_286() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_Handle_instantiation_287() { - 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_288() { - 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_289() { - 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_290() { - 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_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_UniquePtr_instantiation_292() { - 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_nsTArray_instantiation_293() { - 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_294() { - 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_295() { - 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_296() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_297() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::MutableHandle ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_298() { - 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_nsDataHashtable_instantiation_299() { - 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_OwningNonNull_instantiation_300() { + fn __bindgen_test_layout_OwningNonNull_instantiation_242() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40645,7 +40505,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_301() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_243() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40656,7 +40516,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_302() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_244() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40667,7 +40527,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_303() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_245() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40678,7 +40538,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_304() { + fn __bindgen_test_layout_DefaultDelete_instantiation_246() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40689,7 +40549,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_305() { + fn __bindgen_test_layout_already_AddRefed_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40700,7 +40560,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_306() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40711,7 +40571,7 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_307() { + fn __bindgen_test_layout_already_AddRefed_instantiation_249() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40722,7 +40582,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_308() { + fn __bindgen_test_layout_already_AddRefed_instantiation_250() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40733,7 +40593,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_309() { + fn __bindgen_test_layout_already_AddRefed_instantiation_251() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40744,7 +40604,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_310() { + fn __bindgen_test_layout_already_AddRefed_instantiation_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40755,7 +40615,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_311() { + fn __bindgen_test_layout_already_AddRefed_instantiation_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40766,7 +40626,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_312() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_254() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40777,7 +40637,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_313() { + fn __bindgen_test_layout_already_AddRefed_instantiation_255() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40788,7 +40648,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_314() { + fn __bindgen_test_layout_DefaultDelete_instantiation_256() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40799,7 +40659,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_315() { + fn __bindgen_test_layout_UniquePtr_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40810,7 +40670,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_316() { + fn __bindgen_test_layout_DefaultDelete_instantiation_258() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40821,7 +40681,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_317() { + fn __bindgen_test_layout_UniquePtr_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40832,7 +40692,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_318() { + fn __bindgen_test_layout_already_AddRefed_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40843,7 +40703,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_319() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_261() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40852,7 +40712,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_320() { + fn __bindgen_test_layout_nsTArray_instantiation_262() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40863,7 +40723,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_321() { + fn __bindgen_test_layout_nsTArray_instantiation_263() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40874,7 +40734,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_322() { + fn __bindgen_test_layout_already_AddRefed_instantiation_264() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40885,7 +40745,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_323() { + fn __bindgen_test_layout_already_AddRefed_instantiation_265() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40896,7 +40756,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_324() { + fn __bindgen_test_layout_Maybe_instantiation_266() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40907,7 +40767,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_325() { + fn __bindgen_test_layout_Maybe_instantiation_267() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40918,7 +40778,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_326() { + fn __bindgen_test_layout_already_AddRefed_instantiation_268() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40929,7 +40789,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_327() { + fn __bindgen_test_layout_already_AddRefed_instantiation_269() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40940,7 +40800,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_328() { + fn __bindgen_test_layout_DefaultDelete_instantiation_270() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40951,7 +40811,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_329() { + fn __bindgen_test_layout_UniquePtr_instantiation_271() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40962,7 +40822,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_330() { + fn __bindgen_test_layout_DefaultDelete_instantiation_272() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40973,7 +40833,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_331() { + fn __bindgen_test_layout_UniquePtr_instantiation_273() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40984,7 +40844,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_332() { + fn __bindgen_test_layout_already_AddRefed_instantiation_274() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40995,7 +40855,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_333() { + fn __bindgen_test_layout_Maybe_instantiation_275() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41006,7 +40866,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_334() { + fn __bindgen_test_layout_DefaultDelete_instantiation_276() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41017,7 +40877,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_335() { + fn __bindgen_test_layout_DefaultDelete_instantiation_277() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41028,7 +40888,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_336() { + fn __bindgen_test_layout_pair_instantiation_278() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41039,7 +40899,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_337() { + fn __bindgen_test_layout_nsTArray_instantiation_279() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -41054,7 +40914,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_338() { + fn __bindgen_test_layout_already_AddRefed_instantiation_280() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41065,7 +40925,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_339() { + fn __bindgen_test_layout_nsTArray_instantiation_281() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41076,7 +40936,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_340() { + fn __bindgen_test_layout_nsTArray_instantiation_282() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41087,7 +40947,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_341() { + fn __bindgen_test_layout_nsTArray_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41098,7 +40958,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_342() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_284() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41109,7 +40969,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_343() { + fn __bindgen_test_layout_RefPtr_instantiation_285() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41120,7 +40980,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_344() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_286() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41131,7 +40991,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_345() { + fn __bindgen_test_layout_DefaultDelete_instantiation_287() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41142,7 +41002,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_346() { + fn __bindgen_test_layout_UniquePtr_instantiation_288() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41153,7 +41013,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_347() { + fn __bindgen_test_layout_DefaultDelete_instantiation_289() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41164,7 +41024,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_348() { + fn __bindgen_test_layout_UniquePtr_instantiation_290() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41175,7 +41035,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_349() { + fn __bindgen_test_layout_RefPtr_instantiation_291() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41186,7 +41046,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_350() { + fn __bindgen_test_layout_RefPtr_instantiation_292() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41197,7 +41057,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_351() { + fn __bindgen_test_layout_NonNull_instantiation_293() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41210,7 +41070,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_352() { + fn __bindgen_test_layout_NonNull_instantiation_294() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41223,7 +41083,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_353() { + fn __bindgen_test_layout_Handle_instantiation_295() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41234,7 +41094,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_354() { + fn __bindgen_test_layout_MutableHandle_instantiation_296() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41245,7 +41105,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_355() { + fn __bindgen_test_layout_Maybe_instantiation_297() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41256,7 +41116,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_356() { + fn __bindgen_test_layout_Maybe_instantiation_298() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41267,7 +41127,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_357() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_299() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41278,7 +41138,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_358() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_300() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41289,7 +41149,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_359() { + fn __bindgen_test_layout_already_AddRefed_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41300,7 +41160,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_360() { + fn __bindgen_test_layout_already_AddRefed_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41311,7 +41171,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_361() { + fn __bindgen_test_layout_nsTArray_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41322,7 +41182,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_362() { + fn __bindgen_test_layout_nsTArray_instantiation_304() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41333,7 +41193,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_363() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_305() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41344,7 +41204,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_364() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_306() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41357,18 +41217,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_365() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_366() { + fn __bindgen_test_layout_already_AddRefed_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41379,7 +41228,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_367() { + fn __bindgen_test_layout_nsTArray_instantiation_308() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41392,7 +41241,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_368() { + fn __bindgen_test_layout_Handle_instantiation_309() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41403,7 +41252,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_369() { + fn __bindgen_test_layout_Handle_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41414,7 +41263,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_370() { + fn __bindgen_test_layout_RefPtr_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41425,7 +41274,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_371() { + fn __bindgen_test_layout_Handle_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41436,7 +41285,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_372() { + fn __bindgen_test_layout_MutableHandle_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41447,7 +41296,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_373() { + fn __bindgen_test_layout_Sequence_instantiation_314() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41456,7 +41305,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_374() { + fn __bindgen_test_layout_Handle_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41467,7 +41316,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_375() { + fn __bindgen_test_layout_Sequence_instantiation_316() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41476,7 +41325,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_376() { + fn __bindgen_test_layout_Sequence_instantiation_317() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41485,7 +41334,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_377() { + fn __bindgen_test_layout_Handle_instantiation_318() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41496,7 +41345,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_378() { + fn __bindgen_test_layout_Handle_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41507,7 +41356,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_379() { + fn __bindgen_test_layout_MutableHandle_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41518,7 +41367,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_380() { + fn __bindgen_test_layout_Handle_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41529,7 +41378,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_381() { + fn __bindgen_test_layout_MutableHandle_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41540,7 +41389,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_382() { + fn __bindgen_test_layout_Handle_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41551,7 +41400,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_383() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_324() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41562,7 +41411,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_384() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_325() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41573,7 +41422,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_385() { + fn __bindgen_test_layout_Handle_instantiation_326() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41584,7 +41433,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_386() { + fn __bindgen_test_layout_nsTArray_instantiation_327() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41595,7 +41444,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_387() { + fn __bindgen_test_layout_nsTArray_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41606,7 +41455,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_388() { + fn __bindgen_test_layout_nsTArray_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41617,7 +41466,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_389() { + fn __bindgen_test_layout_already_AddRefed_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41628,7 +41477,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_390() { + fn __bindgen_test_layout_Handle_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41639,7 +41488,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_391() { + fn __bindgen_test_layout_nsTArray_instantiation_332() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41650,7 +41499,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_392() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( From 4c5cc89f3917e1a51bc791987c3aa5cdee007cfc Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:30 -0700 Subject: [PATCH 02/16] stylo: Create C++-side ServoComputedValues --- .../style/gecko/generated/structs_debug.rs | 5839 +++++++++-------- .../style/gecko/generated/structs_release.rs | 5839 +++++++++-------- 2 files changed, 6080 insertions(+), 5598 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index d7009719769..04e2dab249c 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -9,6 +9,10 @@ use data::ElementData; pub type ServoUnsafeCell = ::std::cell::UnsafeCell; pub type ServoCell = ::std::cell::Cell; pub type ServoNodeData = AtomicRefCell; +pub type ServoWritingMode = ::logical_geometry::WritingMode; +pub type ServoFontComputationData = ::properties::FontComputationData; +pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; +pub type ServoVisitedStyle = Option<::stylearc::Arc>; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -7598,6 +7602,243 @@ pub mod root { FirstLetterContinuation = 1, PlaceholderFrame = 2, } + /** + * We want C++ to be abe to read the style struct fields of ComputedValues + * so we define this type on the C++ side and use the bindgenned version + * on the Rust side. + * + * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy + * impl. This will fail because the bindgenned version contains owned types. Opt out. + * + *
+ */ + #[repr(C)] + #[derive(Debug)] + pub struct ServoComputedValues2 { + pub Font: *mut root::nsStyleFont, + pub Color: *mut root::nsStyleColor, + pub List: *mut root::nsStyleList, + pub Text: *mut root::nsStyleText, + pub Visibility: *mut root::nsStyleVisibility, + pub UserInterface: *mut root::nsStyleUserInterface, + pub TableBorder: *mut root::nsStyleTableBorder, + pub SVG: *mut root::nsStyleSVG, + pub Variables: *mut root::nsStyleVariables, + pub Background: *mut root::nsStyleBackground, + pub Position: *mut root::nsStylePosition, + pub TextReset: *mut root::nsStyleTextReset, + pub Display: *mut root::nsStyleDisplay, + pub Content: *mut root::nsStyleContent, + pub UIReset: *mut root::nsStyleUIReset, + pub Table: *mut root::nsStyleTable, + pub Margin: *mut root::nsStyleMargin, + pub Padding: *mut root::nsStylePadding, + pub Border: *mut root::nsStyleBorder, + pub Outline: *mut root::nsStyleOutline, + pub XUL: *mut root::nsStyleXUL, + pub SVGReset: *mut root::nsStyleSVGReset, + pub Column: *mut root::nsStyleColumn, + pub Effects: *mut root::nsStyleEffects, + pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, + pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, + pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, + pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, + } + #[test] + fn bindgen_test_layout_ServoComputedValues2() { + assert_eq!(::std::mem::size_of::() , + 224usize , concat ! ( + "Size of: " , stringify ! ( ServoComputedValues2 ) )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( ServoComputedValues2 ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Font + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Font ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Color + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Color ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . List + as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( List ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Text + as * const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Text ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Visibility as * const _ as usize } , 32usize , concat + ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + Visibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + UserInterface as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + UserInterface ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + TableBorder as * const _ as usize } , 48usize , concat + ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + TableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . SVG as + * const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( SVG ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Variables as * const _ as usize } , 64usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + Variables ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Background as * const _ as usize } , 72usize , concat + ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + Background ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Position as * const _ as usize } , 80usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Position + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + TextReset as * const _ as usize } , 88usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + TextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Display as * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Display + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Content as * const _ as usize } , 104usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Content + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + UIReset as * const _ as usize } , 112usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( UIReset + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Table + as * const _ as usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Table ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Margin + as * const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Margin ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Padding as * const _ as usize } , 136usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Padding + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Border + as * const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Border ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Outline as * const _ as usize } , 152usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Outline + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . XUL as + * const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( XUL ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + SVGReset as * const _ as usize } , 168usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( SVGReset + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Column + as * const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Column ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Effects as * const _ as usize } , 184usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Effects + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + custom_properties as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + custom_properties ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + writing_mode as * const _ as usize } , 200usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + writing_mode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + font_computation_data as * const _ as usize } , + 204usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + font_computation_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + visited_style as * const _ as usize } , 216usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + visited_style ) )); + } #[repr(u8)] /** * Enumeration that represents one of the two supported style system backends. @@ -18100,6 +18341,2151 @@ pub mod root { (16384u64 as u16)) } } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleFont { + pub mFont: root::nsFont, + pub mSize: root::nscoord, + pub mGenericID: u8, + pub mScriptLevel: i8, + pub mMathVariant: u8, + pub mMathDisplay: u8, + pub mMinFontSizeRatio: u8, + pub mExplicitLanguage: bool, + pub mAllowZoom: bool, + pub mScriptUnconstrainedSize: root::nscoord, + pub mScriptMinSize: root::nscoord, + 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 ! + ( "Size of: " , stringify ! ( nsStyleFont ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleFont ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mFont as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mFont ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mSize as * const _ + as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mGenericID as * + const _ as usize } , 92usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mGenericID ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mScriptLevel as * + const _ as usize } , 93usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptLevel ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mMathVariant as * + const _ as usize } , 94usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mMathVariant ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mMathDisplay as * + const _ as usize } , 95usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mMathDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mMinFontSizeRatio + as * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mMinFontSizeRatio ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mExplicitLanguage + as * const _ as usize } , 97usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mExplicitLanguage ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mAllowZoom as * + const _ as usize } , 98usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mAllowZoom ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . + mScriptUnconstrainedSize as * const _ as usize } , + 100usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptUnconstrainedSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mScriptMinSize as * + const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptMinSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . + mScriptSizeMultiplier as * const _ as usize } , 108usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptSizeMultiplier ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mLanguage as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mLanguage ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 ! ( + "Size of: " , stringify ! ( nsStyleColor ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColor ) ) . mColor as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColor ) , + "::" , stringify ! ( mColor ) )); + } + #[test] + fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + } + #[test] + fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleList { + pub mListStylePosition: u8, + pub mListStyleImage: root::RefPtr, + pub mCounterStyle: root::mozilla::CounterStylePtr, + pub mQuotes: root::RefPtr, + pub mImageRegion: root::nsRect, + } + pub const nsStyleList_kHasFinishStyle: bool = true; + extern "C" { + #[link_name = "_ZN11nsStyleList14sInitialQuotesE"] + pub static mut nsStyleList_sInitialQuotes: + root::mozilla::StaticRefPtr; + } + extern "C" { + #[link_name = "_ZN11nsStyleList11sNoneQuotesE"] + pub static mut nsStyleList_sNoneQuotes: + root::mozilla::StaticRefPtr; + } + #[test] + fn bindgen_test_layout_nsStyleList() { + assert_eq!(::std::mem::size_of::() , 48usize , concat ! ( + "Size of: " , stringify ! ( nsStyleList ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleList ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mListStylePosition + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mListStylePosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mListStyleImage as + * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mListStyleImage ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mCounterStyle as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mCounterStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mQuotes as * const + _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mQuotes ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mImageRegion as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mImageRegion ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleText { + pub mTextAlign: u8, + pub mTextAlignLast: u8, + pub _bitfield_1: u8, + pub mTextJustify: root::mozilla::StyleTextJustify, + pub mTextTransform: u8, + pub mWhiteSpace: root::mozilla::StyleWhiteSpace, + pub mWordBreak: u8, + pub mOverflowWrap: u8, + pub mHyphens: root::mozilla::StyleHyphens, + pub mRubyAlign: u8, + pub mRubyPosition: u8, + pub mTextSizeAdjust: u8, + pub mTextCombineUpright: u8, + pub mControlCharacterVisibility: u8, + pub mTextEmphasisPosition: u8, + pub mTextEmphasisStyle: u8, + pub mTextRendering: u8, + pub mTextEmphasisColor: root::mozilla::StyleComplexColor, + pub mWebkitTextFillColor: root::mozilla::StyleComplexColor, + pub mWebkitTextStrokeColor: root::mozilla::StyleComplexColor, + pub mTabSize: root::nsStyleCoord, + pub mWordSpacing: root::nsStyleCoord, + pub mLetterSpacing: root::nsStyleCoord, + pub mLineHeight: root::nsStyleCoord, + pub mTextIndent: root::nsStyleCoord, + pub mWebkitTextStrokeWidth: root::nscoord, + 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 ! + ( "Size of: " , stringify ! ( nsStyleText ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleText ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextAlign as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextAlignLast as * + const _ as usize } , 1usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextAlignLast ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextJustify as * + const _ as usize } , 3usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextJustify ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextTransform as * + const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextTransform ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mWhiteSpace as * + const _ as usize } , 5usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWhiteSpace ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mWordBreak as * + const _ as usize } , 6usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWordBreak ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mOverflowWrap as * + const _ as usize } , 7usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mOverflowWrap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mHyphens as * const + _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mHyphens ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mRubyAlign as * + const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mRubyAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mRubyPosition as * + const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mRubyPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextSizeAdjust as + * const _ as usize } , 11usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextSizeAdjust ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextCombineUpright + as * const _ as usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextCombineUpright ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mControlCharacterVisibility as * const _ as usize } , + 13usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mControlCharacterVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mTextEmphasisPosition as * const _ as usize } , 14usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisStyle + as * const _ as usize } , 15usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextRendering as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextRendering ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisColor + as * const _ as usize } , 20usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mWebkitTextFillColor as * const _ as usize } , 28usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWebkitTextFillColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mWebkitTextStrokeColor as * const _ as usize } , 36usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWebkitTextStrokeColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTabSize as * const + _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTabSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mWordSpacing as * + const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWordSpacing ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mLetterSpacing as * + const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mLetterSpacing ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mLineHeight as * + const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mLineHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextIndent as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextIndent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mWebkitTextStrokeWidth as * const _ as usize } , 128usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWebkitTextStrokeWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextShadow as * + const _ as usize } , 136usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextShadow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mTextEmphasisStyleString as * const _ as usize } , + 144usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisStyleString ) )); + } + impl nsStyleText { + #[inline] + pub fn mTextAlignTrue(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1u64 as u8; + let val = (unit_field_val & mask) >> 0usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mTextAlignTrue(&mut self, val: bool) { + let mask = 1u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 0usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mTextAlignLastTrue(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2u64 as u8; + let val = (unit_field_val & mask) >> 1usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mTextAlignLastTrue(&mut self, val: bool) { + let mask = 2u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 1usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn new_bitfield_1(mTextAlignTrue: bool, mTextAlignLastTrue: bool) + -> u8 { + ({ + ({ 0 } | + ((mTextAlignTrue as u8 as u8) << 0usize) & (1u64 as u8)) + } | ((mTextAlignLastTrue as u8 as u8) << 1usize) & (2u64 as u8)) + } + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleVisibility { + pub mImageOrientation: root::nsStyleImageOrientation, + pub mDirection: u8, + pub mVisible: u8, + pub mImageRendering: u8, + pub mWritingMode: u8, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleVisibility ) + )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . + mImageOrientation as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mImageOrientation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mDirection as + * const _ as usize } , 1usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mDirection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mVisible as * + const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mVisible ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . + mImageRendering as * const _ as usize } , 3usize , concat + ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mImageRendering ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mWritingMode + as * const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mWritingMode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . + mTextOrientation as * const _ as usize } , 5usize , concat + ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mTextOrientation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mColorAdjust + as * const _ as usize } , 6usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mColorAdjust ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleUserInterface { + pub mUserInput: root::mozilla::StyleUserInput, + pub mUserModify: root::mozilla::StyleUserModify, + pub mUserFocus: root::mozilla::StyleUserFocus, + pub mPointerEvents: u8, + pub mCursor: u8, + 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 , + concat ! ( + "Size of: " , stringify ! ( nsStyleUserInterface ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleUserInterface ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserInput + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mUserInput ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mUserModify as * const _ as usize } , 1usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mUserModify + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserFocus + as * const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mUserFocus ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mPointerEvents as * const _ as usize } , 3usize , concat ! + ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( + mPointerEvents ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . mCursor as + * const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mCursor ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mCursorImages as * const _ as usize } , 8usize , concat ! + ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( + mCursorImages ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mCaretColor as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mCaretColor + ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleTableBorder { + pub mBorderSpacingCol: root::nscoord, + pub mBorderSpacingRow: root::nscoord, + pub mBorderCollapse: u8, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleTableBorder ) + )); + assert_eq! (::std::mem::align_of::() , 4usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleTableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . + mBorderSpacingCol as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mBorderSpacingCol ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . + mBorderSpacingRow as * const _ as usize } , 4usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mBorderSpacingRow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . + mBorderCollapse as * const _ as usize } , 8usize , concat + ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mBorderCollapse ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . mCaptionSide + as * const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mCaptionSide ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . mEmptyCells + as * const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mEmptyCells ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleSVG { + pub mFill: root::nsStyleSVGPaint, + pub mStroke: root::nsStyleSVGPaint, + pub mMarkerEnd: root::RefPtr, + pub mMarkerMid: root::RefPtr, + pub mMarkerStart: root::RefPtr, + pub mStrokeDasharray: root::nsTArray, + pub mContextProps: root::nsTArray>, + pub mStrokeDashoffset: root::nsStyleCoord, + pub mStrokeWidth: root::nsStyleCoord, + pub mFillOpacity: f32, + pub mStrokeMiterlimit: f32, + pub mStrokeOpacity: f32, + pub mClipRule: root::mozilla::StyleFillRule, + pub mColorInterpolation: u8, + pub mColorInterpolationFilters: u8, + pub mFillRule: root::mozilla::StyleFillRule, + pub mPaintOrder: u8, + pub mShapeRendering: u8, + pub mStrokeLinecap: u8, + pub mStrokeLinejoin: u8, + pub mTextAnchor: u8, + pub mContextPropsBits: u8, + pub mContextFlags: u8, + } + pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_MASK; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_MASK; + pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_DASHARRAY_CONTEXT; + pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_DASHOFFSET_CONTEXT; + pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: root::nsStyleSVG__bindgen_ty_1 + = + nsStyleSVG__bindgen_ty_1::STROKE_WIDTH_CONTEXT; + pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_SHIFT; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_SHIFT; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsStyleSVG__bindgen_ty_1 { + FILL_OPACITY_SOURCE_MASK = 3, + STROKE_OPACITY_SOURCE_MASK = 12, + STROKE_DASHARRAY_CONTEXT = 16, + STROKE_DASHOFFSET_CONTEXT = 32, + STROKE_WIDTH_CONTEXT = 64, + 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 ! ( + "Size of: " , stringify ! ( nsStyleSVG ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of " , stringify ! ( nsStyleSVG ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mFill as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mFill ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStroke as * const _ + as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStroke ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerEnd as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mMarkerEnd ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerMid as * + const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mMarkerMid ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerStart as * + const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mMarkerStart ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDasharray as + * const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeDasharray ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mContextProps as * + const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mContextProps ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDashoffset as + * const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeDashoffset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeWidth as * + const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mFillOpacity as * + const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mFillOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeMiterlimit as + * const _ as usize } , 108usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeMiterlimit ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeOpacity as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mClipRule as * const + _ as usize } , 116usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mClipRule ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mColorInterpolation + as * const _ as usize } , 117usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mColorInterpolation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . + mColorInterpolationFilters as * const _ as usize } , + 118usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mColorInterpolationFilters ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mFillRule as * const + _ as usize } , 119usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mFillRule ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mPaintOrder as * + const _ as usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mPaintOrder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mShapeRendering as * + const _ as usize } , 121usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mShapeRendering ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinecap as * + const _ as usize } , 122usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeLinecap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinejoin as * + const _ as usize } , 123usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeLinejoin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mTextAnchor as * + const _ as usize } , 124usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mTextAnchor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mContextPropsBits as + * const _ as usize } , 125usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mContextPropsBits ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mContextFlags as * + const _ as usize } , 126usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mContextFlags ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleVariables ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleVariables ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVariables ) ) . mVariables as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVariables ) + , "::" , stringify ! ( mVariables ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleBackground { + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleBackground ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleBackground ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBackground ) ) . mImage as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBackground ) + , "::" , stringify ! ( mImage ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBackground ) ) . + mBackgroundColor as * const _ as usize } , 152usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBackground ) + , "::" , stringify ! ( mBackgroundColor ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStylePosition { + pub mObjectPosition: root::mozilla::Position, + pub mOffset: root::nsStyleSides, + pub mWidth: root::nsStyleCoord, + pub mMinWidth: root::nsStyleCoord, + pub mMaxWidth: root::nsStyleCoord, + pub mHeight: root::nsStyleCoord, + pub mMinHeight: root::nsStyleCoord, + pub mMaxHeight: root::nsStyleCoord, + pub mFlexBasis: root::nsStyleCoord, + pub mGridAutoColumnsMin: root::nsStyleCoord, + pub mGridAutoColumnsMax: root::nsStyleCoord, + pub mGridAutoRowsMin: root::nsStyleCoord, + pub mGridAutoRowsMax: root::nsStyleCoord, + pub mGridAutoFlow: u8, + pub mBoxSizing: root::mozilla::StyleBoxSizing, + pub mAlignContent: u16, + pub mAlignItems: u8, + pub mAlignSelf: u8, + pub mJustifyContent: u16, + pub mJustifyItems: u8, + pub mJustifySelf: u8, + pub mFlexDirection: u8, + pub mFlexWrap: u8, + pub mObjectFit: u8, + pub mOrder: i32, + pub mFlexGrow: f32, + pub mFlexShrink: f32, + pub mZIndex: root::nsStyleCoord, + pub mGridTemplateColumns: root::nsStyleGridTemplate, + pub mGridTemplateRows: root::nsStyleGridTemplate, + pub mGridTemplateAreas: root::RefPtr, + pub mGridColumnStart: root::nsStyleGridLine, + pub mGridColumnEnd: root::nsStyleGridLine, + pub mGridRowStart: root::nsStyleGridLine, + pub mGridRowEnd: root::nsStyleGridLine, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStylePosition ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStylePosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mObjectPosition + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mObjectPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mOffset as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mOffset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mWidth as * + const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMinWidth as * + const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMinWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMaxWidth as * + const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMaxWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mHeight as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMinHeight as * + const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMinHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMaxHeight as * + const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMaxHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexBasis as * + const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexBasis ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoColumnsMin as * const _ as usize } , 176usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoColumnsMin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoColumnsMax as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoColumnsMax ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoRowsMin as * const _ as usize } , 208usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoRowsMin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoRowsMax as * const _ as usize } , 224usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoRowsMax ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridAutoFlow + as * const _ as usize } , 240usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoFlow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mBoxSizing as * + const _ as usize } , 241usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mBoxSizing ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mAlignContent + as * const _ as usize } , 242usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mAlignContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mAlignItems as + * const _ as usize } , 244usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mAlignItems ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mAlignSelf as * + const _ as usize } , 245usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mAlignSelf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mJustifyContent + as * const _ as usize } , 246usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mJustifyContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mJustifyItems + as * const _ as usize } , 248usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mJustifyItems ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mJustifySelf as + * const _ as usize } , 249usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mJustifySelf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexDirection + as * const _ as usize } , 250usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexDirection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexWrap as * + const _ as usize } , 251usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexWrap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mObjectFit as * + const _ as usize } , 252usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mObjectFit ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mOrder as * + const _ as usize } , 256usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mOrder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexGrow as * + const _ as usize } , 260usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexGrow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexShrink as + * const _ as usize } , 264usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexShrink ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mZIndex as * + const _ as usize } , 272usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mZIndex ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridTemplateColumns as * const _ as usize } , 288usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridTemplateColumns ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridTemplateRows as * const _ as usize } , 336usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridTemplateRows ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridTemplateAreas as * const _ as usize } , 384usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridTemplateAreas ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridColumnStart as * const _ as usize } , 392usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridColumnStart ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnEnd + as * const _ as usize } , 416usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridColumnEnd ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridRowStart + as * const _ as usize } , 440usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridRowStart ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridRowEnd as + * const _ as usize } , 464usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridRowEnd ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnGap + as * const _ as usize } , 488usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridColumnGap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridRowGap as + * const _ as usize } , 504usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridRowGap ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleTextReset { + pub mTextOverflow: root::nsStyleTextOverflow, + pub mTextDecorationLine: u8, + pub mTextDecorationStyle: u8, + pub mUnicodeBidi: u8, + pub mInitialLetterSink: root::nscoord, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleTextReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleTextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . mTextOverflow + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextOverflow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mTextDecorationLine as * const _ as usize } , 56usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextDecorationLine ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mTextDecorationStyle as * const _ as usize } , 57usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextDecorationStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . mUnicodeBidi + as * const _ as usize } , 58usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mUnicodeBidi ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mInitialLetterSink as * const _ as usize } , 60usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mInitialLetterSink ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mInitialLetterSize as * const _ as usize } , 64usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mInitialLetterSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mTextDecorationColor as * const _ as usize } , 68usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextDecorationColor ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleDisplay { + pub mBinding: root::BindingHolder, + pub mDisplay: root::mozilla::StyleDisplay, + pub mOriginalDisplay: root::mozilla::StyleDisplay, + pub mContain: u8, + pub mAppearance: u8, + pub mPosition: u8, + pub mFloat: root::mozilla::StyleFloat, + pub mOriginalFloat: root::mozilla::StyleFloat, + pub mBreakType: root::mozilla::StyleClear, + pub mBreakInside: u8, + pub mBreakBefore: bool, + pub mBreakAfter: bool, + pub mOverflowX: u8, + pub mOverflowY: u8, + pub mOverflowClipBox: u8, + pub mResize: u8, + pub mOrient: root::mozilla::StyleOrient, + pub mIsolation: u8, + pub mTopLayer: u8, + pub mWillChangeBitField: u8, + pub mWillChange: root::nsCOMArray, + pub mTouchAction: u8, + pub mScrollBehavior: u8, + pub mScrollSnapTypeX: u8, + pub mScrollSnapTypeY: u8, + pub mScrollSnapPointsX: root::nsStyleCoord, + pub mScrollSnapPointsY: root::nsStyleCoord, + pub mScrollSnapDestination: root::mozilla::Position, + pub mScrollSnapCoordinate: root::nsTArray, + pub mBackfaceVisibility: u8, + pub mTransformStyle: u8, + pub mTransformBox: root::nsStyleDisplay_StyleGeometryBox, + pub mSpecifiedTransform: root::RefPtr, + pub mTransformOrigin: [root::nsStyleCoord; 3usize], + pub mChildPerspective: root::nsStyleCoord, + pub mPerspectiveOrigin: [root::nsStyleCoord; 2usize], + pub mVerticalAlign: root::nsStyleCoord, + pub mTransitions: root::nsStyleAutoArray, + pub mTransitionTimingFunctionCount: u32, + pub mTransitionDurationCount: u32, + pub mTransitionDelayCount: u32, + pub mTransitionPropertyCount: u32, + pub mAnimations: root::nsStyleAutoArray, + pub mAnimationTimingFunctionCount: u32, + pub mAnimationDurationCount: u32, + pub mAnimationDelayCount: u32, + pub mAnimationNameCount: u32, + pub mAnimationDirectionCount: u32, + pub mAnimationFillModeCount: u32, + pub mAnimationPlayStateCount: u32, + pub mAnimationIterationCountCount: u32, + pub mShapeOutside: root::mozilla::StyleShapeSource, + } + 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 + ! ( "Size of: " , stringify ! ( nsStyleDisplay ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBinding as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBinding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mDisplay as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalDisplay + as * const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOriginalDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mContain as * + const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mContain ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mAppearance as * + const _ as usize } , 11usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAppearance ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mPosition as * + const _ as usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mFloat as * + const _ as usize } , 13usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mFloat ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalFloat + as * const _ as usize } , 14usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOriginalFloat ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakType as * + const _ as usize } , 15usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakType ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakInside as + * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakInside ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakBefore as + * const _ as usize } , 17usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakBefore ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakAfter as * + const _ as usize } , 18usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakAfter ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowX as * + const _ as usize } , 19usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOverflowX ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowY as * + const _ as usize } , 20usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOverflowY ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowClipBox + as * const _ as usize } , 21usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOverflowClipBox ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mResize as * + const _ as usize } , 22usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mResize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOrient as * + const _ as usize } , 23usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOrient ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mIsolation as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mIsolation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTopLayer as * + const _ as usize } , 25usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTopLayer ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mWillChangeBitField as * const _ as usize } , 26usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mWillChangeBitField ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mWillChange as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mWillChange ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTouchAction as + * const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTouchAction ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollBehavior + as * const _ as usize } , 41usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollBehavior ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeX + as * const _ as usize } , 42usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapTypeX ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeY + as * const _ as usize } , 43usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapTypeY ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapPointsX as * const _ as usize } , 48usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapPointsX ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapPointsY as * const _ as usize } , 64usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapPointsY ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapDestination as * const _ as usize } , 80usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapDestination ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapCoordinate as * const _ as usize } , 104usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapCoordinate ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mBackfaceVisibility as * const _ as usize } , 112usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBackfaceVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformStyle + as * const _ as usize } , 113usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransformStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformBox as + * const _ as usize } , 114usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransformBox ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mSpecifiedTransform as * const _ as usize } , 120usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mSpecifiedTransform ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformOrigin + as * const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransformOrigin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mChildPerspective as * const _ as usize } , 176usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mChildPerspective ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mPerspectiveOrigin as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mPerspectiveOrigin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mVerticalAlign + as * const _ as usize } , 224usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mVerticalAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransitions as + * const _ as usize } , 240usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitions ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionTimingFunctionCount as * const _ as usize } , + 288usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionTimingFunctionCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionDurationCount as * const _ as usize } , + 292usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionDurationCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionDelayCount as * const _ as usize } , 296usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionDelayCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionPropertyCount as * const _ as usize } , + 300usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionPropertyCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mAnimations as * + const _ as usize } , 304usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimations ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationTimingFunctionCount as * const _ as usize } , + 368usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationTimingFunctionCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationDurationCount as * const _ as usize } , 372usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationDurationCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationDelayCount as * const _ as usize } , 376usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationDelayCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationNameCount as * const _ as usize } , 380usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationNameCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationDirectionCount as * const _ as usize } , + 384usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationDirectionCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationFillModeCount as * const _ as usize } , 388usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationFillModeCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationPlayStateCount as * const _ as usize } , + 392usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationPlayStateCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationIterationCountCount as * const _ as usize } , + 396usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationIterationCountCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mShapeOutside as + * const _ as usize } , 400usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mShapeOutside ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleContent { + pub mContents: root::nsTArray, + 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 + ! ( "Size of: " , stringify ! ( nsStyleContent ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContent ) ) . mContents as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContent ) , + "::" , stringify ! ( mContents ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContent ) ) . mIncrements as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContent ) , + "::" , stringify ! ( mIncrements ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContent ) ) . mResets as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContent ) , + "::" , stringify ! ( mResets ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleUIReset { + pub mUserSelect: root::mozilla::StyleUserSelect, + pub mForceBrokenImageIcon: u8, + pub mIMEMode: u8, + pub mWindowDragging: root::mozilla::StyleWindowDragging, + pub mWindowShadow: u8, + pub mWindowOpacity: f32, + 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 + ! ( "Size of: " , stringify ! ( nsStyleUIReset ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleUIReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mUserSelect as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mUserSelect ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . + mForceBrokenImageIcon as * const _ as usize } , 1usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mForceBrokenImageIcon ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mIMEMode as * + const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mIMEMode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowDragging + as * const _ as usize } , 3usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowDragging ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowShadow as + * const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowShadow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowOpacity + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . + mSpecifiedWindowTransform as * const _ as usize } , + 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mSpecifiedWindowTransform ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . + mWindowTransformOrigin as * const _ as usize } , 24usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowTransformOrigin ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleTable { + 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 ! ( + "Size of: " , stringify ! ( nsStyleTable ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTable ) ) . mLayoutStrategy as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTable ) , + "::" , stringify ! ( mLayoutStrategy ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTable ) ) . mSpan as * const _ + as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTable ) , + "::" , stringify ! ( mSpan ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 ! + ( "Size of: " , stringify ! ( nsStyleMargin ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleMargin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleMargin ) ) . mMargin as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleMargin ) , + "::" , stringify ! ( mMargin ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 + ! ( "Size of: " , stringify ! ( nsStylePadding ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStylePadding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePadding ) ) . mPadding as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePadding ) , + "::" , stringify ! ( mPadding ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleBorder { + pub mBorderColors: *mut *mut root::nsBorderColors, + pub mBorderRadius: root::nsStyleCorners, + pub mBorderImageSource: root::nsStyleImage, + pub mBorderImageSlice: root::nsStyleSides, + pub mBorderImageWidth: root::nsStyleSides, + pub mBorderImageOutset: root::nsStyleSides, + pub mBorderImageFill: u8, + pub mBorderImageRepeatH: u8, + pub mBorderImageRepeatV: u8, + pub mFloatEdge: root::mozilla::StyleFloatEdge, + pub mBoxDecorationBreak: root::mozilla::StyleBoxDecorationBreak, + pub mBorderStyle: [u8; 4usize], + pub __bindgen_anon_1: root::nsStyleBorder__bindgen_ty_1, + pub mComputedBorder: root::nsMargin, + pub mBorder: root::nsMargin, + pub mTwipsPerPixel: root::nscoord, + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsStyleBorder__bindgen_ty_1 { + pub __bindgen_anon_1: root::__BindgenUnionField, + pub mBorderColor: root::__BindgenUnionField<[root::mozilla::StyleComplexColor; 4usize]>, + pub bindgen_union_field: [u32; 8usize], + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { + pub mBorderTopColor: root::mozilla::StyleComplexColor, + pub mBorderRightColor: root::mozilla::StyleComplexColor, + pub mBorderBottomColor: root::mozilla::StyleComplexColor, + pub mBorderLeftColor: root::mozilla::StyleComplexColor, + } + #[test] + fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1__bindgen_ty_1() { + assert_eq!(::std::mem::size_of::() + , 32usize , concat ! ( + "Size of: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); + assert_eq! (::std::mem::align_of::() + , 4usize , concat ! ( + "Alignment of " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderTopColor as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderTopColor ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderRightColor as * const _ as usize } , 8usize , + concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderRightColor ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderBottomColor as * const _ as usize } , 16usize + , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderBottomColor ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderLeftColor as * const _ as usize } , 24usize , + concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderLeftColor ) )); + } + impl Clone for nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { + fn clone(&self) -> Self { *self } + } + #[test] + fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1() { + assert_eq!(::std::mem::size_of::() , + 32usize , concat ! ( + "Size of: " , stringify ! ( nsStyleBorder__bindgen_ty_1 ) + )); + assert_eq! (::std::mem::align_of::() , + 4usize , concat ! ( + "Alignment of " , stringify ! ( + nsStyleBorder__bindgen_ty_1 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder__bindgen_ty_1 ) ) . + mBorderColor as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1 ) , "::" , stringify ! ( + mBorderColor ) )); + } + 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 + ! ( "Size of: " , stringify ! ( nsStyleBorder ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderColors as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderColors ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderRadius as + * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderRadius ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageSource as * const _ as usize } , 80usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageSource ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageSlice + as * const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageSlice ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageWidth + as * const _ as usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageOutset as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageOutset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageFill + as * const _ as usize } , 232usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageFill ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageRepeatH as * const _ as usize } , 233usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageRepeatH ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageRepeatV as * const _ as usize } , 234usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageRepeatV ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mFloatEdge as * + const _ as usize } , 235usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mFloatEdge ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBoxDecorationBreak as * const _ as usize } , 236usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBoxDecorationBreak ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderStyle as * + const _ as usize } , 237usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mComputedBorder + as * const _ as usize } , 276usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mComputedBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorder as * + const _ as usize } , 292usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mTwipsPerPixel as + * const _ as usize } , 308usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mTwipsPerPixel ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleOutline { + pub mOutlineRadius: root::nsStyleCorners, + pub mOutlineWidth: root::nscoord, + pub mOutlineOffset: root::nscoord, + pub mOutlineColor: root::mozilla::StyleComplexColor, + pub mOutlineStyle: u8, + 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 + ! ( "Size of: " , stringify ! ( nsStyleOutline ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleOutline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineRadius + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineRadius ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineWidth as + * const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineOffset + as * const _ as usize } , 76usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineOffset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineColor as + * const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineStyle as + * const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . + mActualOutlineWidth as * const _ as usize } , 92usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mActualOutlineWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mTwipsPerPixel + as * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mTwipsPerPixel ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleXUL { + pub mBoxFlex: f32, + pub mBoxOrdinal: u32, + pub mBoxAlign: root::mozilla::StyleBoxAlign, + pub mBoxDirection: root::mozilla::StyleBoxDirection, + pub mBoxOrient: root::mozilla::StyleBoxOrient, + 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 ! ( + "Size of: " , stringify ! ( nsStyleXUL ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! ( + "Alignment of " , stringify ! ( nsStyleXUL ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxFlex as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxFlex ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrdinal as * + const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxOrdinal ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxAlign as * const + _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxDirection as * + const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxDirection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrient as * + const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxOrient ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxPack as * const + _ as usize } , 11usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxPack ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mStackSizing as * + const _ as usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mStackSizing ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleSVGReset { + pub mMask: root::nsStyleImageLayers, + pub mClipPath: root::mozilla::StyleShapeSource, + pub mStopColor: root::nscolor, + pub mFloodColor: root::nscolor, + pub mLightingColor: root::nscolor, + pub mStopOpacity: f32, + pub mFloodOpacity: f32, + pub mDominantBaseline: u8, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleSVGReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleSVGReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mMask as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mMask ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mClipPath as * + const _ as usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mClipPath ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopColor as * + const _ as usize } , 168usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mStopColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodColor as + * const _ as usize } , 172usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mFloodColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mLightingColor + as * const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mLightingColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopOpacity as + * const _ as usize } , 180usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mStopOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodOpacity + as * const _ as usize } , 184usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mFloodOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . + mDominantBaseline as * const _ as usize } , 188usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mDominantBaseline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mVectorEffect + as * const _ as usize } , 189usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mVectorEffect ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mMaskType as * + const _ as usize } , 190usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mMaskType ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleColumn { + pub mColumnCount: u32, + pub mColumnWidth: root::nsStyleCoord, + pub mColumnGap: root::nsStyleCoord, + pub mColumnRuleColor: root::mozilla::StyleComplexColor, + pub mColumnRuleStyle: u8, + pub mColumnFill: u8, + pub mColumnSpan: u8, + 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() { + assert_eq!(::std::mem::size_of::() , 64usize , concat ! + ( "Size of: " , stringify ! ( nsStyleColumn ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleColumn ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnCount as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnWidth as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnGap as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnGap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleColor + as * const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnRuleColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleStyle + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnRuleStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnFill as * + const _ as usize } , 49usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnFill ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnSpan as * + const _ as usize } , 50usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnSpan ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleWidth + as * const _ as usize } , 52usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnRuleWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mTwipsPerPixel as + * const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mTwipsPerPixel ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleEffects { + pub mFilters: root::nsTArray, + pub mBoxShadow: root::RefPtr, + pub mClip: root::nsRect, + pub mOpacity: f32, + 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 + ! ( "Size of: " , stringify ! ( nsStyleEffects ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleEffects ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mFilters as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mFilters ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mBoxShadow as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mBoxShadow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mClip as * const + _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mClip ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mOpacity as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mClipFlags as * + const _ as usize } , 36usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mClipFlags ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mMixBlendMode as + * const _ as usize } , 37usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mMixBlendMode ) )); + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -29076,353 +31462,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] - pub struct nsStyleDisplay { - pub mBinding: root::BindingHolder, - pub mDisplay: root::mozilla::StyleDisplay, - pub mOriginalDisplay: root::mozilla::StyleDisplay, - pub mContain: u8, - pub mAppearance: u8, - pub mPosition: u8, - pub mFloat: root::mozilla::StyleFloat, - pub mOriginalFloat: root::mozilla::StyleFloat, - pub mBreakType: root::mozilla::StyleClear, - pub mBreakInside: u8, - pub mBreakBefore: bool, - pub mBreakAfter: bool, - pub mOverflowX: u8, - pub mOverflowY: u8, - pub mOverflowClipBox: u8, - pub mResize: u8, - pub mOrient: root::mozilla::StyleOrient, - pub mIsolation: u8, - pub mTopLayer: u8, - pub mWillChangeBitField: u8, - pub mWillChange: root::nsCOMArray, - pub mTouchAction: u8, - pub mScrollBehavior: u8, - pub mScrollSnapTypeX: u8, - pub mScrollSnapTypeY: u8, - pub mScrollSnapPointsX: root::nsStyleCoord, - pub mScrollSnapPointsY: root::nsStyleCoord, - pub mScrollSnapDestination: root::mozilla::Position, - pub mScrollSnapCoordinate: root::nsTArray, - pub mBackfaceVisibility: u8, - pub mTransformStyle: u8, - pub mTransformBox: root::nsStyleDisplay_StyleGeometryBox, - pub mSpecifiedTransform: root::RefPtr, - pub mTransformOrigin: [root::nsStyleCoord; 3usize], - pub mChildPerspective: root::nsStyleCoord, - pub mPerspectiveOrigin: [root::nsStyleCoord; 2usize], - pub mVerticalAlign: root::nsStyleCoord, - pub mTransitions: root::nsStyleAutoArray, - pub mTransitionTimingFunctionCount: u32, - pub mTransitionDurationCount: u32, - pub mTransitionDelayCount: u32, - pub mTransitionPropertyCount: u32, - pub mAnimations: root::nsStyleAutoArray, - pub mAnimationTimingFunctionCount: u32, - pub mAnimationDurationCount: u32, - pub mAnimationDelayCount: u32, - pub mAnimationNameCount: u32, - pub mAnimationDirectionCount: u32, - pub mAnimationFillModeCount: u32, - pub mAnimationPlayStateCount: u32, - pub mAnimationIterationCountCount: u32, - pub mShapeOutside: root::mozilla::StyleShapeSource, - } - 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 - ! ( "Size of: " , stringify ! ( nsStyleDisplay ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBinding as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBinding ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mDisplay as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalDisplay - as * const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOriginalDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mContain as * - const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mContain ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mAppearance as * - const _ as usize } , 11usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAppearance ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mPosition as * - const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mFloat as * - const _ as usize } , 13usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mFloat ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalFloat - as * const _ as usize } , 14usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOriginalFloat ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakType as * - const _ as usize } , 15usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakInside as - * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakInside ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakBefore as - * const _ as usize } , 17usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakBefore ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakAfter as * - const _ as usize } , 18usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakAfter ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowX as * - const _ as usize } , 19usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOverflowX ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowY as * - const _ as usize } , 20usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOverflowY ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowClipBox - as * const _ as usize } , 21usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOverflowClipBox ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mResize as * - const _ as usize } , 22usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mResize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOrient as * - const _ as usize } , 23usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOrient ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mIsolation as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mIsolation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTopLayer as * - const _ as usize } , 25usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTopLayer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mWillChangeBitField as * const _ as usize } , 26usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mWillChangeBitField ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mWillChange as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mWillChange ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTouchAction as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTouchAction ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollBehavior - as * const _ as usize } , 41usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollBehavior ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeX - as * const _ as usize } , 42usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapTypeX ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeY - as * const _ as usize } , 43usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapTypeY ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapPointsX as * const _ as usize } , 48usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapPointsX ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapPointsY as * const _ as usize } , 64usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapPointsY ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapDestination as * const _ as usize } , 80usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapDestination ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapCoordinate as * const _ as usize } , 104usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapCoordinate ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mBackfaceVisibility as * const _ as usize } , 112usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBackfaceVisibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformStyle - as * const _ as usize } , 113usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransformStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformBox as - * const _ as usize } , 114usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransformBox ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mSpecifiedTransform as * const _ as usize } , 120usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mSpecifiedTransform ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformOrigin - as * const _ as usize } , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransformOrigin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mChildPerspective as * const _ as usize } , 176usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mChildPerspective ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mPerspectiveOrigin as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mPerspectiveOrigin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mVerticalAlign - as * const _ as usize } , 224usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mVerticalAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransitions as - * const _ as usize } , 240usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitions ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionTimingFunctionCount as * const _ as usize } , - 288usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionTimingFunctionCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionDurationCount as * const _ as usize } , - 292usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionDurationCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionDelayCount as * const _ as usize } , 296usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionDelayCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionPropertyCount as * const _ as usize } , - 300usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionPropertyCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mAnimations as * - const _ as usize } , 304usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimations ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationTimingFunctionCount as * const _ as usize } , - 368usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationTimingFunctionCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationDurationCount as * const _ as usize } , 372usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationDurationCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationDelayCount as * const _ as usize } , 376usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationDelayCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationNameCount as * const _ as usize } , 380usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationNameCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationDirectionCount as * const _ as usize } , - 384usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationDirectionCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationFillModeCount as * const _ as usize } , 388usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationFillModeCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationPlayStateCount as * const _ as usize } , - 392usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationPlayStateCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationIterationCountCount as * const _ as usize } , - 396usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationIterationCountCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mShapeOutside as - * const _ as usize } , 400usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mShapeOutside ) )); - } - #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nsBidi { _unused: [u8; 0], @@ -33612,157 +35651,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleVisibility { - pub mImageOrientation: root::nsStyleImageOrientation, - pub mDirection: u8, - pub mVisible: u8, - pub mImageRendering: u8, - pub mWritingMode: u8, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleVisibility ) - )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleVisibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . - mImageOrientation as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mImageOrientation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mDirection as - * const _ as usize } , 1usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mDirection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mVisible as * - const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mVisible ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . - mImageRendering as * const _ as usize } , 3usize , concat - ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mImageRendering ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mWritingMode - as * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mWritingMode ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . - mTextOrientation as * const _ as usize } , 5usize , concat - ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mTextOrientation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mColorAdjust - as * const _ as usize } , 6usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mColorAdjust ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleFont { - pub mFont: root::nsFont, - pub mSize: root::nscoord, - pub mGenericID: u8, - pub mScriptLevel: i8, - pub mMathVariant: u8, - pub mMathDisplay: u8, - pub mMinFontSizeRatio: u8, - pub mExplicitLanguage: bool, - pub mAllowZoom: bool, - pub mScriptUnconstrainedSize: root::nscoord, - pub mScriptMinSize: root::nscoord, - 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 ! - ( "Size of: " , stringify ! ( nsStyleFont ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleFont ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mFont as * const _ - as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mFont ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mSize as * const _ - as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mGenericID as * - const _ as usize } , 92usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mGenericID ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mScriptLevel as * - const _ as usize } , 93usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptLevel ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mMathVariant as * - const _ as usize } , 94usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mMathVariant ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mMathDisplay as * - const _ as usize } , 95usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mMathDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mMinFontSizeRatio - as * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mMinFontSizeRatio ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mExplicitLanguage - as * const _ as usize } , 97usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mExplicitLanguage ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mAllowZoom as * - const _ as usize } , 98usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mAllowZoom ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . - mScriptUnconstrainedSize as * const _ as usize } , - 100usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptUnconstrainedSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mScriptMinSize as * - const _ as usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptMinSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . - mScriptSizeMultiplier as * const _ as usize } , 108usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptSizeMultiplier ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mLanguage as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mLanguage ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleGradientStop { pub mLocation: root::nsStyleCoord, pub mColor: root::nscolor, @@ -34102,24 +35990,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - 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 ! ( - "Size of: " , stringify ! ( nsStyleColor ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColor ) ) . mColor as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColor ) , - "::" , stringify ! ( mColor ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleImageLayers { pub mAttachmentCount: u32, pub mClipCount: u32, @@ -34466,69 +36336,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleBackground { - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleBackground ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleBackground ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBackground ) ) . mImage as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBackground ) - , "::" , stringify ! ( mImage ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBackground ) ) . - mBackgroundColor as * const _ as usize } , 152usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBackground ) - , "::" , stringify ! ( mBackgroundColor ) )); - } - #[repr(C)] - #[derive(Debug)] - 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 ! - ( "Size of: " , stringify ! ( nsStyleMargin ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleMargin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleMargin ) ) . mMargin as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleMargin ) , - "::" , stringify ! ( mMargin ) )); - } - #[repr(C)] - #[derive(Debug)] - 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 - ! ( "Size of: " , stringify ! ( nsStylePadding ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStylePadding ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePadding ) ) . mPadding as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePadding ) , - "::" , stringify ! ( mPadding ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsBorderColors { pub mNext: *mut root::nsBorderColors, pub mColor: root::nscolor, @@ -34636,250 +36443,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsCSSShadowArray ) , "::" , stringify ! ( mArray ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleBorder { - pub mBorderColors: *mut *mut root::nsBorderColors, - pub mBorderRadius: root::nsStyleCorners, - pub mBorderImageSource: root::nsStyleImage, - pub mBorderImageSlice: root::nsStyleSides, - pub mBorderImageWidth: root::nsStyleSides, - pub mBorderImageOutset: root::nsStyleSides, - pub mBorderImageFill: u8, - pub mBorderImageRepeatH: u8, - pub mBorderImageRepeatV: u8, - pub mFloatEdge: root::mozilla::StyleFloatEdge, - pub mBoxDecorationBreak: root::mozilla::StyleBoxDecorationBreak, - pub mBorderStyle: [u8; 4usize], - pub __bindgen_anon_1: root::nsStyleBorder__bindgen_ty_1, - pub mComputedBorder: root::nsMargin, - pub mBorder: root::nsMargin, - pub mTwipsPerPixel: root::nscoord, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsStyleBorder__bindgen_ty_1 { - pub __bindgen_anon_1: root::__BindgenUnionField, - pub mBorderColor: root::__BindgenUnionField<[root::mozilla::StyleComplexColor; 4usize]>, - pub bindgen_union_field: [u32; 8usize], - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { - pub mBorderTopColor: root::mozilla::StyleComplexColor, - pub mBorderRightColor: root::mozilla::StyleComplexColor, - pub mBorderBottomColor: root::mozilla::StyleComplexColor, - pub mBorderLeftColor: root::mozilla::StyleComplexColor, - } - #[test] - fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1__bindgen_ty_1() { - assert_eq!(::std::mem::size_of::() - , 32usize , concat ! ( - "Size of: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); - assert_eq! (::std::mem::align_of::() - , 4usize , concat ! ( - "Alignment of " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderTopColor as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderTopColor ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderRightColor as * const _ as usize } , 8usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderRightColor ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderBottomColor as * const _ as usize } , 16usize - , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderBottomColor ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderLeftColor as * const _ as usize } , 24usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderLeftColor ) )); - } - impl Clone for nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { - fn clone(&self) -> Self { *self } - } - #[test] - fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1() { - assert_eq!(::std::mem::size_of::() , - 32usize , concat ! ( - "Size of: " , stringify ! ( nsStyleBorder__bindgen_ty_1 ) - )); - assert_eq! (::std::mem::align_of::() , - 4usize , concat ! ( - "Alignment of " , stringify ! ( - nsStyleBorder__bindgen_ty_1 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder__bindgen_ty_1 ) ) . - mBorderColor as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1 ) , "::" , stringify ! ( - mBorderColor ) )); - } - 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 - ! ( "Size of: " , stringify ! ( nsStyleBorder ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderColors as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderColors ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderRadius as - * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderRadius ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageSource as * const _ as usize } , 80usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageSource ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageSlice - as * const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageSlice ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageWidth - as * const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageOutset as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageOutset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageFill - as * const _ as usize } , 232usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageFill ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageRepeatH as * const _ as usize } , 233usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageRepeatH ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageRepeatV as * const _ as usize } , 234usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageRepeatV ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mFloatEdge as * - const _ as usize } , 235usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mFloatEdge ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBoxDecorationBreak as * const _ as usize } , 236usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBoxDecorationBreak ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderStyle as * - const _ as usize } , 237usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mComputedBorder - as * const _ as usize } , 276usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mComputedBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorder as * - const _ as usize } , 292usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mTwipsPerPixel as - * const _ as usize } , 308usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mTwipsPerPixel ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleOutline { - pub mOutlineRadius: root::nsStyleCorners, - pub mOutlineWidth: root::nscoord, - pub mOutlineOffset: root::nscoord, - pub mOutlineColor: root::mozilla::StyleComplexColor, - pub mOutlineStyle: u8, - 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 - ! ( "Size of: " , stringify ! ( nsStyleOutline ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleOutline ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineRadius - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineRadius ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineWidth as - * const _ as usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineOffset - as * const _ as usize } , 76usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineColor as - * const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineStyle as - * const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . - mActualOutlineWidth as * const _ as usize } , 92usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mActualOutlineWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mTwipsPerPixel - as * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mTwipsPerPixel ) )); - } /** * An object that allows sharing of arrays that store 'quotes' property * values. This is particularly important for inheritance, where we want @@ -34913,80 +36476,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStyleQuoteValues ) , "::" , stringify ! ( mQuotePairs ) )); } - #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - } - #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleList { - pub mListStylePosition: u8, - pub mListStyleImage: root::RefPtr, - pub mCounterStyle: root::mozilla::CounterStylePtr, - pub mQuotes: root::RefPtr, - pub mImageRegion: root::nsRect, - } - pub const nsStyleList_kHasFinishStyle: bool = true; - extern "C" { - #[link_name = "_ZN11nsStyleList14sInitialQuotesE"] - pub static mut nsStyleList_sInitialQuotes: - root::mozilla::StaticRefPtr; - } - extern "C" { - #[link_name = "_ZN11nsStyleList11sNoneQuotesE"] - pub static mut nsStyleList_sNoneQuotes: - root::mozilla::StaticRefPtr; - } - #[test] - fn bindgen_test_layout_nsStyleList() { - assert_eq!(::std::mem::size_of::() , 48usize , concat ! ( - "Size of: " , stringify ! ( nsStyleList ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleList ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mListStylePosition - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mListStylePosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mListStyleImage as - * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mListStyleImage ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mCounterStyle as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mCounterStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mQuotes as * const - _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mQuotes ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mImageRegion as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mImageRegion ) )); - } #[repr(C)] #[derive(Debug)] pub struct nsStyleGridLine { @@ -35165,250 +36654,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStylePosition { - pub mObjectPosition: root::mozilla::Position, - pub mOffset: root::nsStyleSides, - pub mWidth: root::nsStyleCoord, - pub mMinWidth: root::nsStyleCoord, - pub mMaxWidth: root::nsStyleCoord, - pub mHeight: root::nsStyleCoord, - pub mMinHeight: root::nsStyleCoord, - pub mMaxHeight: root::nsStyleCoord, - pub mFlexBasis: root::nsStyleCoord, - pub mGridAutoColumnsMin: root::nsStyleCoord, - pub mGridAutoColumnsMax: root::nsStyleCoord, - pub mGridAutoRowsMin: root::nsStyleCoord, - pub mGridAutoRowsMax: root::nsStyleCoord, - pub mGridAutoFlow: u8, - pub mBoxSizing: root::mozilla::StyleBoxSizing, - pub mAlignContent: u16, - pub mAlignItems: u8, - pub mAlignSelf: u8, - pub mJustifyContent: u16, - pub mJustifyItems: u8, - pub mJustifySelf: u8, - pub mFlexDirection: u8, - pub mFlexWrap: u8, - pub mObjectFit: u8, - pub mOrder: i32, - pub mFlexGrow: f32, - pub mFlexShrink: f32, - pub mZIndex: root::nsStyleCoord, - pub mGridTemplateColumns: root::nsStyleGridTemplate, - pub mGridTemplateRows: root::nsStyleGridTemplate, - pub mGridTemplateAreas: root::RefPtr, - pub mGridColumnStart: root::nsStyleGridLine, - pub mGridColumnEnd: root::nsStyleGridLine, - pub mGridRowStart: root::nsStyleGridLine, - pub mGridRowEnd: root::nsStyleGridLine, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStylePosition ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStylePosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mObjectPosition - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mObjectPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mOffset as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mWidth as * - const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMinWidth as * - const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMinWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMaxWidth as * - const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMaxWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mHeight as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMinHeight as * - const _ as usize } , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMinHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMaxHeight as * - const _ as usize } , 144usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMaxHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexBasis as * - const _ as usize } , 160usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexBasis ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoColumnsMin as * const _ as usize } , 176usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoColumnsMin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoColumnsMax as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoColumnsMax ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoRowsMin as * const _ as usize } , 208usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoRowsMin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoRowsMax as * const _ as usize } , 224usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoRowsMax ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridAutoFlow - as * const _ as usize } , 240usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoFlow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mBoxSizing as * - const _ as usize } , 241usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mBoxSizing ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mAlignContent - as * const _ as usize } , 242usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mAlignContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mAlignItems as - * const _ as usize } , 244usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mAlignItems ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mAlignSelf as * - const _ as usize } , 245usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mAlignSelf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mJustifyContent - as * const _ as usize } , 246usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mJustifyContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mJustifyItems - as * const _ as usize } , 248usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mJustifyItems ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mJustifySelf as - * const _ as usize } , 249usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mJustifySelf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexDirection - as * const _ as usize } , 250usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexDirection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexWrap as * - const _ as usize } , 251usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexWrap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mObjectFit as * - const _ as usize } , 252usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mObjectFit ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mOrder as * - const _ as usize } , 256usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mOrder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexGrow as * - const _ as usize } , 260usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexGrow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexShrink as - * const _ as usize } , 264usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexShrink ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mZIndex as * - const _ as usize } , 272usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mZIndex ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridTemplateColumns as * const _ as usize } , 288usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridTemplateColumns ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridTemplateRows as * const _ as usize } , 336usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridTemplateRows ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridTemplateAreas as * const _ as usize } , 384usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridTemplateAreas ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridColumnStart as * const _ as usize } , 392usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridColumnStart ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnEnd - as * const _ as usize } , 416usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridColumnEnd ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridRowStart - as * const _ as usize } , 440usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridRowStart ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridRowEnd as - * const _ as usize } , 464usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridRowEnd ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnGap - as * const _ as usize } , 488usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridColumnGap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridRowGap as - * const _ as usize } , 504usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridRowGap ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleTextOverflowSide { pub mString: ::nsstring::nsStringRepr, pub mType: u8, @@ -35468,334 +36713,6 @@ pub mod root { ) , "::" , stringify ! ( mLogicalDirections ) )); } #[repr(C)] - #[derive(Debug)] - pub struct nsStyleTextReset { - pub mTextOverflow: root::nsStyleTextOverflow, - pub mTextDecorationLine: u8, - pub mTextDecorationStyle: u8, - pub mUnicodeBidi: u8, - pub mInitialLetterSink: root::nscoord, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleTextReset ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleTextReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . mTextOverflow - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextOverflow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mTextDecorationLine as * const _ as usize } , 56usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextDecorationLine ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mTextDecorationStyle as * const _ as usize } , 57usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextDecorationStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . mUnicodeBidi - as * const _ as usize } , 58usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mUnicodeBidi ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mInitialLetterSink as * const _ as usize } , 60usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mInitialLetterSink ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mInitialLetterSize as * const _ as usize } , 64usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mInitialLetterSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mTextDecorationColor as * const _ as usize } , 68usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextDecorationColor ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleText { - pub mTextAlign: u8, - pub mTextAlignLast: u8, - pub _bitfield_1: u8, - pub mTextJustify: root::mozilla::StyleTextJustify, - pub mTextTransform: u8, - pub mWhiteSpace: root::mozilla::StyleWhiteSpace, - pub mWordBreak: u8, - pub mOverflowWrap: u8, - pub mHyphens: root::mozilla::StyleHyphens, - pub mRubyAlign: u8, - pub mRubyPosition: u8, - pub mTextSizeAdjust: u8, - pub mTextCombineUpright: u8, - pub mControlCharacterVisibility: u8, - pub mTextEmphasisPosition: u8, - pub mTextEmphasisStyle: u8, - pub mTextRendering: u8, - pub mTextEmphasisColor: root::mozilla::StyleComplexColor, - pub mWebkitTextFillColor: root::mozilla::StyleComplexColor, - pub mWebkitTextStrokeColor: root::mozilla::StyleComplexColor, - pub mTabSize: root::nsStyleCoord, - pub mWordSpacing: root::nsStyleCoord, - pub mLetterSpacing: root::nsStyleCoord, - pub mLineHeight: root::nsStyleCoord, - pub mTextIndent: root::nsStyleCoord, - pub mWebkitTextStrokeWidth: root::nscoord, - 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 ! - ( "Size of: " , stringify ! ( nsStyleText ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleText ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextAlign as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextAlignLast as * - const _ as usize } , 1usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextAlignLast ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextJustify as * - const _ as usize } , 3usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextJustify ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextTransform as * - const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextTransform ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mWhiteSpace as * - const _ as usize } , 5usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWhiteSpace ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mWordBreak as * - const _ as usize } , 6usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWordBreak ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mOverflowWrap as * - const _ as usize } , 7usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mOverflowWrap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mHyphens as * const - _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mHyphens ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mRubyAlign as * - const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mRubyAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mRubyPosition as * - const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mRubyPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextSizeAdjust as - * const _ as usize } , 11usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextSizeAdjust ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextCombineUpright - as * const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextCombineUpright ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mControlCharacterVisibility as * const _ as usize } , - 13usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mControlCharacterVisibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mTextEmphasisPosition as * const _ as usize } , 14usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisStyle - as * const _ as usize } , 15usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextRendering as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextRendering ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisColor - as * const _ as usize } , 20usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mWebkitTextFillColor as * const _ as usize } , 28usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWebkitTextFillColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mWebkitTextStrokeColor as * const _ as usize } , 36usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWebkitTextStrokeColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTabSize as * const - _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTabSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mWordSpacing as * - const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWordSpacing ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mLetterSpacing as * - const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mLetterSpacing ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mLineHeight as * - const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mLineHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextIndent as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextIndent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mWebkitTextStrokeWidth as * const _ as usize } , 128usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWebkitTextStrokeWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextShadow as * - const _ as usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextShadow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mTextEmphasisStyleString as * const _ as usize } , - 144usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisStyleString ) )); - } - impl nsStyleText { - #[inline] - pub fn mTextAlignTrue(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u8; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mTextAlignTrue(&mut self, val: bool) { - let mask = 1u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mTextAlignLastTrue(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u8; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mTextAlignLastTrue(&mut self, val: bool) { - let mask = 2u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(mTextAlignTrue: bool, mTextAlignLastTrue: bool) - -> u8 { - ({ - ({ 0 } | - ((mTextAlignTrue as u8 as u8) << 0usize) & (1u64 as u8)) - } | ((mTextAlignLastTrue as u8 as u8) << 1usize) & (2u64 as u8)) - } - } - #[repr(C)] #[derive(Debug, Copy)] pub struct nsStyleImageOrientation { pub mOrientation: u8, @@ -35999,77 +36916,6 @@ pub mod root { "Alignment of field: " , stringify ! ( BindingHolder ) , "::" , stringify ! ( mPtr ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleTable { - 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 ! ( - "Size of: " , stringify ! ( nsStyleTable ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleTable ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTable ) ) . mLayoutStrategy as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTable ) , - "::" , stringify ! ( mLayoutStrategy ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTable ) ) . mSpan as * const _ - as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTable ) , - "::" , stringify ! ( mSpan ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleTableBorder { - pub mBorderSpacingCol: root::nscoord, - pub mBorderSpacingRow: root::nscoord, - pub mBorderCollapse: u8, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleTableBorder ) - )); - assert_eq! (::std::mem::align_of::() , 4usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleTableBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . - mBorderSpacingCol as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mBorderSpacingCol ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . - mBorderSpacingRow as * const _ as usize } , 4usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mBorderSpacingRow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . - mBorderCollapse as * const _ as usize } , 8usize , concat - ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mBorderCollapse ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . mCaptionSide - as * const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mCaptionSide ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . mEmptyCells - as * const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mEmptyCells ) )); - } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsStyleContentType { @@ -36224,99 +37070,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleContent { - pub mContents: root::nsTArray, - 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 - ! ( "Size of: " , stringify ! ( nsStyleContent ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContent ) ) . mContents as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContent ) , - "::" , stringify ! ( mContents ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContent ) ) . mIncrements as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContent ) , - "::" , stringify ! ( mIncrements ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContent ) ) . mResets as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContent ) , - "::" , stringify ! ( mResets ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleUIReset { - pub mUserSelect: root::mozilla::StyleUserSelect, - pub mForceBrokenImageIcon: u8, - pub mIMEMode: u8, - pub mWindowDragging: root::mozilla::StyleWindowDragging, - pub mWindowShadow: u8, - pub mWindowOpacity: f32, - 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 - ! ( "Size of: " , stringify ! ( nsStyleUIReset ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleUIReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mUserSelect as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mUserSelect ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . - mForceBrokenImageIcon as * const _ as usize } , 1usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mForceBrokenImageIcon ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mIMEMode as * - const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mIMEMode ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowDragging - as * const _ as usize } , 3usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowDragging ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowShadow as - * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowShadow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowOpacity - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . - mSpecifiedWindowTransform as * const _ as usize } , - 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mSpecifiedWindowTransform ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . - mWindowTransformOrigin as * const _ as usize } , 24usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowTransformOrigin ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsCursorImage { pub mHaveHotspot: bool, pub mHotspotX: f32, @@ -36350,192 +37103,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsCursorImage ) , "::" , stringify ! ( mImage ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleUserInterface { - pub mUserInput: root::mozilla::StyleUserInput, - pub mUserModify: root::mozilla::StyleUserModify, - pub mUserFocus: root::mozilla::StyleUserFocus, - pub mPointerEvents: u8, - pub mCursor: u8, - 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 , - concat ! ( - "Size of: " , stringify ! ( nsStyleUserInterface ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleUserInterface ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserInput - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mUserInput ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mUserModify as * const _ as usize } , 1usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mUserModify - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserFocus - as * const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mUserFocus ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mPointerEvents as * const _ as usize } , 3usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( - mPointerEvents ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . mCursor as - * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mCursor ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mCursorImages as * const _ as usize } , 8usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( - mCursorImages ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mCaretColor as * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mCaretColor - ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleXUL { - pub mBoxFlex: f32, - pub mBoxOrdinal: u32, - pub mBoxAlign: root::mozilla::StyleBoxAlign, - pub mBoxDirection: root::mozilla::StyleBoxDirection, - pub mBoxOrient: root::mozilla::StyleBoxOrient, - 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 ! ( - "Size of: " , stringify ! ( nsStyleXUL ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! ( - "Alignment of " , stringify ! ( nsStyleXUL ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxFlex as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxFlex ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrdinal as * - const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxOrdinal ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxAlign as * const - _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxDirection as * - const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxDirection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrient as * - const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxOrient ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxPack as * const - _ as usize } , 11usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxPack ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mStackSizing as * - const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mStackSizing ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleColumn { - pub mColumnCount: u32, - pub mColumnWidth: root::nsStyleCoord, - pub mColumnGap: root::nsStyleCoord, - pub mColumnRuleColor: root::mozilla::StyleComplexColor, - pub mColumnRuleStyle: u8, - pub mColumnFill: u8, - pub mColumnSpan: u8, - 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() { - assert_eq!(::std::mem::size_of::() , 64usize , concat ! - ( "Size of: " , stringify ! ( nsStyleColumn ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleColumn ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnCount as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnWidth as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnGap as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnGap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleColor - as * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnRuleColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleStyle - as * const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnRuleStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnFill as * - const _ as usize } , 49usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnFill ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnSpan as * - const _ as usize } , 50usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnSpan ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleWidth - as * const _ as usize } , 52usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnRuleWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mTwipsPerPixel as - * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mTwipsPerPixel ) )); - } #[repr(u8)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsStyleSVGPaintType { @@ -36623,189 +37190,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleSVG { - pub mFill: root::nsStyleSVGPaint, - pub mStroke: root::nsStyleSVGPaint, - pub mMarkerEnd: root::RefPtr, - pub mMarkerMid: root::RefPtr, - pub mMarkerStart: root::RefPtr, - pub mStrokeDasharray: root::nsTArray, - pub mContextProps: root::nsTArray>, - pub mStrokeDashoffset: root::nsStyleCoord, - pub mStrokeWidth: root::nsStyleCoord, - pub mFillOpacity: f32, - pub mStrokeMiterlimit: f32, - pub mStrokeOpacity: f32, - pub mClipRule: root::mozilla::StyleFillRule, - pub mColorInterpolation: u8, - pub mColorInterpolationFilters: u8, - pub mFillRule: root::mozilla::StyleFillRule, - pub mPaintOrder: u8, - pub mShapeRendering: u8, - pub mStrokeLinecap: u8, - pub mStrokeLinejoin: u8, - pub mTextAnchor: u8, - pub mContextPropsBits: u8, - pub mContextFlags: u8, - } - pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHARRAY_CONTEXT; - pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHOFFSET_CONTEXT; - pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: root::nsStyleSVG__bindgen_ty_1 - = - nsStyleSVG__bindgen_ty_1::STROKE_WIDTH_CONTEXT; - pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_SHIFT; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_SHIFT; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsStyleSVG__bindgen_ty_1 { - FILL_OPACITY_SOURCE_MASK = 3, - STROKE_OPACITY_SOURCE_MASK = 12, - STROKE_DASHARRAY_CONTEXT = 16, - STROKE_DASHOFFSET_CONTEXT = 32, - STROKE_WIDTH_CONTEXT = 64, - 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 ! ( - "Size of: " , stringify ! ( nsStyleSVG ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( nsStyleSVG ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mFill as * const _ - as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mFill ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStroke as * const _ - as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStroke ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerEnd as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mMarkerEnd ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerMid as * - const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mMarkerMid ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerStart as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mMarkerStart ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDasharray as - * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeDasharray ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mContextProps as * - const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mContextProps ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDashoffset as - * const _ as usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeDashoffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeWidth as * - const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mFillOpacity as * - const _ as usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mFillOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeMiterlimit as - * const _ as usize } , 108usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeMiterlimit ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeOpacity as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mClipRule as * const - _ as usize } , 116usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mClipRule ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mColorInterpolation - as * const _ as usize } , 117usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mColorInterpolation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . - mColorInterpolationFilters as * const _ as usize } , - 118usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mColorInterpolationFilters ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mFillRule as * const - _ as usize } , 119usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mFillRule ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mPaintOrder as * - const _ as usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mPaintOrder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mShapeRendering as * - const _ as usize } , 121usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mShapeRendering ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinecap as * - const _ as usize } , 122usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeLinecap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinejoin as * - const _ as usize } , 123usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeLinejoin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mTextAnchor as * - const _ as usize } , 124usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mTextAnchor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mContextPropsBits as - * const _ as usize } , 125usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mContextPropsBits ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mContextFlags as * - const _ as usize } , 126usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mContextFlags ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleFilter { pub mType: u32, pub mFilterParameter: root::nsStyleCoord, @@ -36862,149 +37246,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStyleFilter ) , "::" , stringify ! ( mFilterParameter ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleSVGReset { - pub mMask: root::nsStyleImageLayers, - pub mClipPath: root::mozilla::StyleShapeSource, - pub mStopColor: root::nscolor, - pub mFloodColor: root::nscolor, - pub mLightingColor: root::nscolor, - pub mStopOpacity: f32, - pub mFloodOpacity: f32, - pub mDominantBaseline: u8, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleSVGReset ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleSVGReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mMask as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mMask ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mClipPath as * - const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mClipPath ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopColor as * - const _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mStopColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodColor as - * const _ as usize } , 172usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mFloodColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mLightingColor - as * const _ as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mLightingColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopOpacity as - * const _ as usize } , 180usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mStopOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodOpacity - as * const _ as usize } , 184usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mFloodOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . - mDominantBaseline as * const _ as usize } , 188usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mDominantBaseline ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mVectorEffect - as * const _ as usize } , 189usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mVectorEffect ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mMaskType as * - const _ as usize } , 190usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mMaskType ) )); - } - #[repr(C)] - #[derive(Debug)] - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleVariables ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleVariables ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVariables ) ) . mVariables as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVariables ) - , "::" , stringify ! ( mVariables ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleEffects { - pub mFilters: root::nsTArray, - pub mBoxShadow: root::RefPtr, - pub mClip: root::nsRect, - pub mOpacity: f32, - 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 - ! ( "Size of: " , stringify ! ( nsStyleEffects ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleEffects ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mFilters as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mFilters ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mBoxShadow as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mBoxShadow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mClip as * const - _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mClip ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mOpacity as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mClipFlags as * - const _ as usize } , 36usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mClipFlags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mMixBlendMode as - * const _ as usize } , 37usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mMixBlendMode ) )); - } /** * These *_Simple types are used to map Gecko types to layout-equivalent but * simpler Rust types, to aid Rust binding generation. @@ -38807,7 +39048,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189154_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_189479_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38816,7 +39057,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189190_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_189515_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39210,7 +39451,40 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_70() { + fn __bindgen_test_layout_already_AddRefed_instantiation_70() { + 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_71() { + 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_72() { + 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_73() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39221,7 +39495,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_71() { + fn __bindgen_test_layout_TErrorResult_instantiation_74() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39232,7 +39506,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_72() { + fn __bindgen_test_layout_TErrorResult_instantiation_75() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39243,7 +39517,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_73() { + fn __bindgen_test_layout_already_AddRefed_instantiation_76() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39254,7 +39528,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_74() { + fn __bindgen_test_layout_Handle_instantiation_77() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39265,7 +39539,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_75() { + fn __bindgen_test_layout_MutableHandle_instantiation_78() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39276,7 +39550,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_76() { + fn __bindgen_test_layout_Handle_instantiation_79() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39287,7 +39561,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_77() { + fn __bindgen_test_layout_nsTArray_instantiation_80() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39298,39 +39572,6 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_78() { - 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_79() { - 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_80() { - 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_81() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -39342,7 +39583,40 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_82() { + fn __bindgen_test_layout_RefPtr_instantiation_82() { + 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_83() { + 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_84() { + 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_85() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39353,7 +39627,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_83() { + fn __bindgen_test_layout_already_AddRefed_instantiation_86() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39364,7 +39638,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_84() { + fn __bindgen_test_layout_already_AddRefed_instantiation_87() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39375,7 +39649,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_85() { + fn __bindgen_test_layout_Handle_instantiation_88() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39386,7 +39660,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_86() { + fn __bindgen_test_layout_MutableHandle_instantiation_89() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39397,7 +39671,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_87() { + fn __bindgen_test_layout_MutableHandle_instantiation_90() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39408,7 +39682,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_88() { + fn __bindgen_test_layout_DeletePolicy_instantiation_91() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39419,7 +39693,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_89() { + fn __bindgen_test_layout_UniquePtr_instantiation_92() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39430,7 +39704,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_90() { + fn __bindgen_test_layout_DeletePolicy_instantiation_93() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39441,7 +39715,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_91() { + fn __bindgen_test_layout_UniquePtr_instantiation_94() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39452,7 +39726,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_92() { + fn __bindgen_test_layout_DeletePolicy_instantiation_95() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39463,7 +39737,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_93() { + fn __bindgen_test_layout_UniquePtr_instantiation_96() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39474,7 +39748,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_94() { + fn __bindgen_test_layout_DeletePolicy_instantiation_97() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39485,7 +39759,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_95() { + fn __bindgen_test_layout_UniquePtr_instantiation_98() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39496,39 +39770,6 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_96() { - 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_97() { - 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_98() { - 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_99() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -39551,7 +39792,18 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_101() { + fn __bindgen_test_layout_iterator_instantiation_101() { + 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_102() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39562,7 +39814,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_102() { + fn __bindgen_test_layout_UniquePtr_instantiation_103() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39573,7 +39825,29 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_103() { + fn __bindgen_test_layout_DeletePolicy_instantiation_104() { + 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_105() { + 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_106() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39584,7 +39858,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_104() { + fn __bindgen_test_layout_Handle_instantiation_107() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39595,7 +39869,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_105() { + fn __bindgen_test_layout_MutableHandle_instantiation_108() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39606,7 +39880,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_106() { + fn __bindgen_test_layout_nsTArray_instantiation_109() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39617,7 +39891,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_107() { + fn __bindgen_test_layout_nsTArray_instantiation_110() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39628,7 +39902,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_108() { + fn __bindgen_test_layout_Heap_instantiation_111() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39639,7 +39913,7 @@ pub mod root { root::JS::Heap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_109() { + fn __bindgen_test_layout_Heap_instantiation_112() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39650,7 +39924,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_110() { + fn __bindgen_test_layout_TenuredHeap_instantiation_113() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39661,7 +39935,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_111() { + fn __bindgen_test_layout_already_AddRefed_instantiation_114() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39672,7 +39946,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_112() { + fn __bindgen_test_layout_NotNull_instantiation_115() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39685,7 +39959,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_113() { + fn __bindgen_test_layout_nsTArray_instantiation_116() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39698,7 +39972,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_114() { + fn __bindgen_test_layout_RefPtr_instantiation_117() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39709,44 +39983,44 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_115() { - 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_116() { - 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_117() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] fn __bindgen_test_layout_nsTArray_instantiation_118() { + 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_119() { + 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_120() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_121() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39757,7 +40031,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_119() { + fn __bindgen_test_layout_RefPtr_instantiation_122() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39768,7 +40042,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_120() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_123() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39779,7 +40053,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_121() { + fn __bindgen_test_layout_nsTArray_instantiation_124() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39790,7 +40064,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_122() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_125() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39801,7 +40075,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_123() { + fn __bindgen_test_layout_already_AddRefed_instantiation_126() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39812,7 +40086,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_124() { + fn __bindgen_test_layout_already_AddRefed_instantiation_127() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39823,7 +40097,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_125() { + fn __bindgen_test_layout_RefPtr_instantiation_128() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39834,7 +40108,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_126() { + fn __bindgen_test_layout_nsTArray_instantiation_129() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39845,7 +40119,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_127() { + fn __bindgen_test_layout_already_AddRefed_instantiation_130() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39856,7 +40130,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_128() { + fn __bindgen_test_layout_MutableHandle_instantiation_131() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39867,7 +40141,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_129() { + fn __bindgen_test_layout_already_AddRefed_instantiation_132() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39878,7 +40152,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + fn __bindgen_test_layout_already_AddRefed_instantiation_133() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39889,7 +40163,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_131() { + fn __bindgen_test_layout_already_AddRefed_instantiation_134() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39900,7 +40174,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_132() { + fn __bindgen_test_layout_RefPtr_instantiation_135() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39911,7 +40185,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_133() { + fn __bindgen_test_layout_Handle_instantiation_136() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39922,7 +40196,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_134() { + fn __bindgen_test_layout_already_AddRefed_instantiation_137() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39933,7 +40207,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_135() { + fn __bindgen_test_layout_already_AddRefed_instantiation_138() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39944,7 +40218,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_136() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_139() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39955,7 +40229,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_137() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_140() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39966,7 +40240,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_138() { + fn __bindgen_test_layout_RefPtr_instantiation_141() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39977,7 +40251,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_139() { + fn __bindgen_test_layout_nsTArray_instantiation_142() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39990,7 +40264,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_140() { + fn __bindgen_test_layout_nsTArray_instantiation_143() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40001,7 +40275,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_141() { + fn __bindgen_test_layout_Handle_instantiation_144() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40012,7 +40286,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_142() { + fn __bindgen_test_layout_DefaultDelete_instantiation_145() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40023,7 +40297,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_143() { + fn __bindgen_test_layout_UniquePtr_instantiation_146() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40034,7 +40308,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_144() { + fn __bindgen_test_layout_already_AddRefed_instantiation_147() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40045,7 +40319,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_145() { + fn __bindgen_test_layout_nsTArray_instantiation_148() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40056,7 +40330,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_146() { + fn __bindgen_test_layout_Handle_instantiation_149() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40067,7 +40341,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_147() { + fn __bindgen_test_layout_Handle_instantiation_150() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40078,41 +40352,6 @@ pub mod root { 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_nsRefPtrHashKey_instantiation_149() { - 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_150() { - 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_151() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40124,7 +40363,42 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_152() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_152() { + 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_153() { + 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_154() { + 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_155() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40135,7 +40409,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_153() { + fn __bindgen_test_layout_nsTArray_instantiation_156() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40146,7 +40420,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_154() { + fn __bindgen_test_layout_already_AddRefed_instantiation_157() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40157,7 +40431,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_155() { + fn __bindgen_test_layout_already_AddRefed_instantiation_158() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40168,7 +40442,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_156() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_159() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40177,7 +40451,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_157() { + fn __bindgen_test_layout_already_AddRefed_instantiation_160() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40188,7 +40462,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_158() { + fn __bindgen_test_layout_nsTArray_instantiation_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40199,7 +40473,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_159() { + fn __bindgen_test_layout_NotNull_instantiation_162() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40212,7 +40486,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_160() { + fn __bindgen_test_layout_NotNull_instantiation_163() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40225,7 +40499,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_161() { + fn __bindgen_test_layout_already_AddRefed_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40236,7 +40510,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_162() { + fn __bindgen_test_layout_DefaultDelete_instantiation_165() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40247,7 +40521,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_163() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40258,7 +40532,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_164() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40269,7 +40543,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_165() { + fn __bindgen_test_layout_nsTArray_instantiation_168() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40280,7 +40554,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_166() { + fn __bindgen_test_layout_already_AddRefed_instantiation_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40291,39 +40565,6 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_167() { - 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_168() { - 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_169() { - 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_170() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40335,7 +40576,40 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_171() { + fn __bindgen_test_layout_already_AddRefed_instantiation_171() { + 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_172() { + 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_173() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Handle_instantiation_174() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40346,7 +40620,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_172() { + fn __bindgen_test_layout_Handle_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40357,7 +40631,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_173() { + fn __bindgen_test_layout_Handle_instantiation_176() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40368,7 +40642,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_174() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_177() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40379,7 +40653,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_175() { + fn __bindgen_test_layout_already_AddRefed_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40390,7 +40664,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_176() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_179() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40401,7 +40675,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_177() { + fn __bindgen_test_layout_Handle_instantiation_180() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40412,7 +40686,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_178() { + fn __bindgen_test_layout_nsTArray_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40423,7 +40697,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_179() { + fn __bindgen_test_layout_Handle_instantiation_182() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40434,7 +40708,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_180() { + fn __bindgen_test_layout_OwningNonNull_instantiation_183() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40445,7 +40719,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_181() { + fn __bindgen_test_layout_OwningNonNull_instantiation_184() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40456,7 +40730,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_182() { + fn __bindgen_test_layout_OwningNonNull_instantiation_185() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40467,7 +40741,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_183() { + fn __bindgen_test_layout_Handle_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40478,7 +40752,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_184() { + fn __bindgen_test_layout_Handle_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40489,7 +40763,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_185() { + fn __bindgen_test_layout_Handle_instantiation_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40500,7 +40774,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_186() { + fn __bindgen_test_layout_MutableHandle_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40511,7 +40785,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_187() { + fn __bindgen_test_layout_Handle_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40522,7 +40796,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_188() { + fn __bindgen_test_layout_MutableHandle_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40533,40 +40807,29 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_189() { - 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_190() { - 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_191() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] fn __bindgen_test_layout_Handle_instantiation_192() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_193() { + 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_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40577,7 +40840,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_193() { + fn __bindgen_test_layout_Handle_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40588,7 +40851,18 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_194() { + fn __bindgen_test_layout_Handle_instantiation_196() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::JS::Handle<*mut root::JSObject> ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40599,7 +40873,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_195() { + fn __bindgen_test_layout_RefPtr_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40610,7 +40884,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_196() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40621,7 +40895,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_197() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_200() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40632,7 +40906,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_198() { + fn __bindgen_test_layout_already_AddRefed_instantiation_201() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40643,7 +40917,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_199() { + fn __bindgen_test_layout_already_AddRefed_instantiation_202() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40654,7 +40928,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_200() { + fn __bindgen_test_layout_NotNull_instantiation_203() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40667,7 +40941,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_201() { + fn __bindgen_test_layout_already_AddRefed_instantiation_204() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40678,7 +40952,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_202() { + fn __bindgen_test_layout_already_AddRefed_instantiation_205() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40689,7 +40963,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_203() { + fn __bindgen_test_layout_already_AddRefed_instantiation_206() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40700,7 +40974,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_204() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_207() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40711,7 +40985,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_205() { + fn __bindgen_test_layout_MutableHandle_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40722,7 +40996,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_206() { + fn __bindgen_test_layout_MutableHandle_instantiation_209() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40733,7 +41007,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_207() { + fn __bindgen_test_layout_already_AddRefed_instantiation_210() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40744,7 +41018,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_208() { + fn __bindgen_test_layout_DefaultDelete_instantiation_211() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40755,7 +41029,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_209() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_212() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40766,7 +41040,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_210() { + fn __bindgen_test_layout_Rooted_instantiation_213() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40777,7 +41051,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_211() { + fn __bindgen_test_layout_Rooted_instantiation_214() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40788,7 +41062,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_212() { + fn __bindgen_test_layout_already_AddRefed_instantiation_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40799,7 +41073,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_213() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_216() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40810,7 +41084,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_214() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_217() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40821,7 +41095,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_215() { + fn __bindgen_test_layout_NotNull_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40834,7 +41108,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_216() { + fn __bindgen_test_layout_nsTArray_instantiation_219() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40845,7 +41119,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_217() { + fn __bindgen_test_layout_Handle_instantiation_220() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40856,7 +41130,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_218() { + fn __bindgen_test_layout_MutableHandle_instantiation_221() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40867,39 +41141,6 @@ pub mod root { root::JS::MutableHandle ) )); } #[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_MutableHandle_instantiation_220() { - 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_221() { - 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_222() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40911,7 +41152,40 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_223() { + fn __bindgen_test_layout_MutableHandle_instantiation_223() { + 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_224() { + 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_225() { + 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_226() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40922,41 +41196,6 @@ pub mod root { root::RefPtr ) )); } #[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_RefPtr_instantiation_225() { - 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_226() { - 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_227() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40968,7 +41207,42 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_228() { + fn __bindgen_test_layout_RefPtr_instantiation_228() { + 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_229() { + 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_230() { + 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_231() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40979,7 +41253,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_229() { + fn __bindgen_test_layout_already_AddRefed_instantiation_232() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40990,7 +41264,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_230() { + fn __bindgen_test_layout_Handle_instantiation_233() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41001,7 +41275,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_231() { + fn __bindgen_test_layout_nsTArray_instantiation_234() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41012,7 +41286,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_232() { + fn __bindgen_test_layout_RefPtr_instantiation_235() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41025,7 +41299,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_233() { + fn __bindgen_test_layout_nsTArray_instantiation_236() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41038,7 +41312,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_234() { + fn __bindgen_test_layout_RefPtr_instantiation_237() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41051,7 +41325,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_235() { + fn __bindgen_test_layout_UniquePtr_instantiation_238() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41062,7 +41336,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_236() { + fn __bindgen_test_layout_nsTArray_instantiation_239() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41073,7 +41347,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_237() { + fn __bindgen_test_layout_Handle_instantiation_240() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41084,7 +41358,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_238() { + fn __bindgen_test_layout_MutableHandle_instantiation_241() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41095,7 +41369,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_239() { + fn __bindgen_test_layout_Handle_instantiation_242() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41106,7 +41380,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_240() { + fn __bindgen_test_layout_MutableHandle_instantiation_243() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41117,7 +41391,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_241() { + fn __bindgen_test_layout_already_AddRefed_instantiation_244() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41128,7 +41402,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_242() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_245() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41139,7 +41413,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_243() { + fn __bindgen_test_layout_OwningNonNull_instantiation_246() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41152,7 +41426,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_244() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41163,7 +41437,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_245() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41174,7 +41448,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_246() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_249() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41185,7 +41459,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_247() { + fn __bindgen_test_layout_DefaultDelete_instantiation_250() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41196,7 +41470,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_248() { + fn __bindgen_test_layout_already_AddRefed_instantiation_251() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41207,7 +41481,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_249() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_252() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41218,39 +41492,6 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_250() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_251() { - 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_252() { - 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_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41263,136 +41504,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_254() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_255() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_256() { - 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_257() { - 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_258() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_259() { - 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_260() { - 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_261() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_262() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_263() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_264() { - 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_265() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_266() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41403,40 +41514,51 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_267() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_Maybe_instantiation_268() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_269() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_255() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_270() { + fn __bindgen_test_layout_already_AddRefed_instantiation_256() { + 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_257() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsPtrHashKey_instantiation_258() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41447,7 +41569,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_271() { + fn __bindgen_test_layout_DefaultDelete_instantiation_260() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41458,15 +41580,134 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_272() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_UniquePtr_instantiation_261() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_262() { + 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_263() { + 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_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_SupportsWeakPtr_instantiation_265() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_266() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_267() { + 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_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_Maybe_instantiation_269() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_Maybe_instantiation_270() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_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_DefaultDelete_instantiation_273() { @@ -41491,7 +41732,29 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_275() { + fn __bindgen_test_layout_DefaultDelete_instantiation_275() { + 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_276() { + 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_277() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41502,7 +41765,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_276() { + fn __bindgen_test_layout_Maybe_instantiation_278() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41513,7 +41776,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_277() { + fn __bindgen_test_layout_DefaultDelete_instantiation_279() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41524,7 +41787,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_278() { + fn __bindgen_test_layout_DefaultDelete_instantiation_280() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41535,7 +41798,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_279() { + fn __bindgen_test_layout_pair_instantiation_281() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41546,7 +41809,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_280() { + fn __bindgen_test_layout_nsTArray_instantiation_282() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -41561,18 +41824,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_281() { - 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_282() { + fn __bindgen_test_layout_nsTArray_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41583,17 +41835,6 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_283() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] fn __bindgen_test_layout_nsTArray_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41605,15 +41846,15 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_285() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_285() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); + root::nsTArray ) )); } #[test] fn __bindgen_test_layout_RefPtr_instantiation_286() { diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 8747b5cd3f0..f2249e141ec 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -9,6 +9,10 @@ use data::ElementData; pub type ServoUnsafeCell = ::std::cell::UnsafeCell; pub type ServoCell = ::std::cell::Cell; pub type ServoNodeData = AtomicRefCell; +pub type ServoWritingMode = ::logical_geometry::WritingMode; +pub type ServoFontComputationData = ::properties::FontComputationData; +pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; +pub type ServoVisitedStyle = Option<::stylearc::Arc>; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -7450,6 +7454,243 @@ pub mod root { FirstLetterContinuation = 1, PlaceholderFrame = 2, } + /** + * We want C++ to be abe to read the style struct fields of ComputedValues + * so we define this type on the C++ side and use the bindgenned version + * on the Rust side. + * + * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy + * impl. This will fail because the bindgenned version contains owned types. Opt out. + * + *
+ */ + #[repr(C)] + #[derive(Debug)] + pub struct ServoComputedValues2 { + pub Font: *mut root::nsStyleFont, + pub Color: *mut root::nsStyleColor, + pub List: *mut root::nsStyleList, + pub Text: *mut root::nsStyleText, + pub Visibility: *mut root::nsStyleVisibility, + pub UserInterface: *mut root::nsStyleUserInterface, + pub TableBorder: *mut root::nsStyleTableBorder, + pub SVG: *mut root::nsStyleSVG, + pub Variables: *mut root::nsStyleVariables, + pub Background: *mut root::nsStyleBackground, + pub Position: *mut root::nsStylePosition, + pub TextReset: *mut root::nsStyleTextReset, + pub Display: *mut root::nsStyleDisplay, + pub Content: *mut root::nsStyleContent, + pub UIReset: *mut root::nsStyleUIReset, + pub Table: *mut root::nsStyleTable, + pub Margin: *mut root::nsStyleMargin, + pub Padding: *mut root::nsStylePadding, + pub Border: *mut root::nsStyleBorder, + pub Outline: *mut root::nsStyleOutline, + pub XUL: *mut root::nsStyleXUL, + pub SVGReset: *mut root::nsStyleSVGReset, + pub Column: *mut root::nsStyleColumn, + pub Effects: *mut root::nsStyleEffects, + pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, + pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, + pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, + pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, + } + #[test] + fn bindgen_test_layout_ServoComputedValues2() { + assert_eq!(::std::mem::size_of::() , + 224usize , concat ! ( + "Size of: " , stringify ! ( ServoComputedValues2 ) )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( ServoComputedValues2 ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Font + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Font ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Color + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Color ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . List + as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( List ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Text + as * const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Text ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Visibility as * const _ as usize } , 32usize , concat + ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + Visibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + UserInterface as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + UserInterface ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + TableBorder as * const _ as usize } , 48usize , concat + ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + TableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . SVG as + * const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( SVG ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Variables as * const _ as usize } , 64usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + Variables ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Background as * const _ as usize } , 72usize , concat + ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + Background ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Position as * const _ as usize } , 80usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Position + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + TextReset as * const _ as usize } , 88usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + TextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Display as * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Display + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Content as * const _ as usize } , 104usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Content + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + UIReset as * const _ as usize } , 112usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( UIReset + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Table + as * const _ as usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Table ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Margin + as * const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Margin ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Padding as * const _ as usize } , 136usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Padding + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Border + as * const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Border ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Outline as * const _ as usize } , 152usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Outline + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . XUL as + * const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( XUL ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + SVGReset as * const _ as usize } , 168usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( SVGReset + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . Column + as * const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Column ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + Effects as * const _ as usize } , 184usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( Effects + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + custom_properties as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + custom_properties ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + writing_mode as * const _ as usize } , 200usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + writing_mode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + font_computation_data as * const _ as usize } , + 204usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + font_computation_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . + visited_style as * const _ as usize } , 216usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( + visited_style ) )); + } #[repr(u8)] /** * Enumeration that represents one of the two supported style system backends. @@ -17755,6 +17996,2151 @@ pub mod root { (16384u64 as u16)) } } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleFont { + pub mFont: root::nsFont, + pub mSize: root::nscoord, + pub mGenericID: u8, + pub mScriptLevel: i8, + pub mMathVariant: u8, + pub mMathDisplay: u8, + pub mMinFontSizeRatio: u8, + pub mExplicitLanguage: bool, + pub mAllowZoom: bool, + pub mScriptUnconstrainedSize: root::nscoord, + pub mScriptMinSize: root::nscoord, + 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 ! + ( "Size of: " , stringify ! ( nsStyleFont ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleFont ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mFont as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mFont ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mSize as * const _ + as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mGenericID as * + const _ as usize } , 92usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mGenericID ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mScriptLevel as * + const _ as usize } , 93usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptLevel ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mMathVariant as * + const _ as usize } , 94usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mMathVariant ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mMathDisplay as * + const _ as usize } , 95usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mMathDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mMinFontSizeRatio + as * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mMinFontSizeRatio ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mExplicitLanguage + as * const _ as usize } , 97usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mExplicitLanguage ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mAllowZoom as * + const _ as usize } , 98usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mAllowZoom ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . + mScriptUnconstrainedSize as * const _ as usize } , + 100usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptUnconstrainedSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mScriptMinSize as * + const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptMinSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . + mScriptSizeMultiplier as * const _ as usize } , 108usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mScriptSizeMultiplier ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleFont ) ) . mLanguage as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleFont ) , + "::" , stringify ! ( mLanguage ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 ! ( + "Size of: " , stringify ! ( nsStyleColor ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColor ) ) . mColor as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColor ) , + "::" , stringify ! ( mColor ) )); + } + #[test] + fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + } + #[test] + fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::StaticRefPtr ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleList { + pub mListStylePosition: u8, + pub mListStyleImage: root::RefPtr, + pub mCounterStyle: root::mozilla::CounterStylePtr, + pub mQuotes: root::RefPtr, + pub mImageRegion: root::nsRect, + } + pub const nsStyleList_kHasFinishStyle: bool = true; + extern "C" { + #[link_name = "_ZN11nsStyleList14sInitialQuotesE"] + pub static mut nsStyleList_sInitialQuotes: + root::mozilla::StaticRefPtr; + } + extern "C" { + #[link_name = "_ZN11nsStyleList11sNoneQuotesE"] + pub static mut nsStyleList_sNoneQuotes: + root::mozilla::StaticRefPtr; + } + #[test] + fn bindgen_test_layout_nsStyleList() { + assert_eq!(::std::mem::size_of::() , 48usize , concat ! ( + "Size of: " , stringify ! ( nsStyleList ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleList ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mListStylePosition + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mListStylePosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mListStyleImage as + * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mListStyleImage ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mCounterStyle as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mCounterStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mQuotes as * const + _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mQuotes ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleList ) ) . mImageRegion as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleList ) , + "::" , stringify ! ( mImageRegion ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleText { + pub mTextAlign: u8, + pub mTextAlignLast: u8, + pub _bitfield_1: u8, + pub mTextJustify: root::mozilla::StyleTextJustify, + pub mTextTransform: u8, + pub mWhiteSpace: root::mozilla::StyleWhiteSpace, + pub mWordBreak: u8, + pub mOverflowWrap: u8, + pub mHyphens: root::mozilla::StyleHyphens, + pub mRubyAlign: u8, + pub mRubyPosition: u8, + pub mTextSizeAdjust: u8, + pub mTextCombineUpright: u8, + pub mControlCharacterVisibility: u8, + pub mTextEmphasisPosition: u8, + pub mTextEmphasisStyle: u8, + pub mTextRendering: u8, + pub mTextEmphasisColor: root::mozilla::StyleComplexColor, + pub mWebkitTextFillColor: root::mozilla::StyleComplexColor, + pub mWebkitTextStrokeColor: root::mozilla::StyleComplexColor, + pub mTabSize: root::nsStyleCoord, + pub mWordSpacing: root::nsStyleCoord, + pub mLetterSpacing: root::nsStyleCoord, + pub mLineHeight: root::nsStyleCoord, + pub mTextIndent: root::nsStyleCoord, + pub mWebkitTextStrokeWidth: root::nscoord, + 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 ! + ( "Size of: " , stringify ! ( nsStyleText ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleText ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextAlign as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextAlignLast as * + const _ as usize } , 1usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextAlignLast ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextJustify as * + const _ as usize } , 3usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextJustify ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextTransform as * + const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextTransform ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mWhiteSpace as * + const _ as usize } , 5usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWhiteSpace ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mWordBreak as * + const _ as usize } , 6usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWordBreak ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mOverflowWrap as * + const _ as usize } , 7usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mOverflowWrap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mHyphens as * const + _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mHyphens ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mRubyAlign as * + const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mRubyAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mRubyPosition as * + const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mRubyPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextSizeAdjust as + * const _ as usize } , 11usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextSizeAdjust ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextCombineUpright + as * const _ as usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextCombineUpright ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mControlCharacterVisibility as * const _ as usize } , + 13usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mControlCharacterVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mTextEmphasisPosition as * const _ as usize } , 14usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisStyle + as * const _ as usize } , 15usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextRendering as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextRendering ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisColor + as * const _ as usize } , 20usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mWebkitTextFillColor as * const _ as usize } , 28usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWebkitTextFillColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mWebkitTextStrokeColor as * const _ as usize } , 36usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWebkitTextStrokeColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTabSize as * const + _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTabSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mWordSpacing as * + const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWordSpacing ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mLetterSpacing as * + const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mLetterSpacing ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mLineHeight as * + const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mLineHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextIndent as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextIndent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mWebkitTextStrokeWidth as * const _ as usize } , 128usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mWebkitTextStrokeWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . mTextShadow as * + const _ as usize } , 136usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextShadow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleText ) ) . + mTextEmphasisStyleString as * const _ as usize } , + 144usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleText ) , + "::" , stringify ! ( mTextEmphasisStyleString ) )); + } + impl nsStyleText { + #[inline] + pub fn mTextAlignTrue(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 1u64 as u8; + let val = (unit_field_val & mask) >> 0usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mTextAlignTrue(&mut self, val: bool) { + let mask = 1u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 0usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn mTextAlignLastTrue(&self) -> bool { + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + let mask = 2u64 as u8; + let val = (unit_field_val & mask) >> 1usize; + unsafe { ::std::mem::transmute(val as u8) } + } + #[inline] + pub fn set_mTextAlignLastTrue(&mut self, val: bool) { + let mask = 2u64 as u8; + let val = val as u8 as u8; + let mut unit_field_val: u8 = + unsafe { ::std::mem::uninitialized() }; + unsafe { + ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ + as *const u8, + &mut unit_field_val as *mut u8 + as *mut u8, + ::std::mem::size_of::()) + }; + unit_field_val &= !mask; + unit_field_val |= (val << 1usize) & mask; + unsafe { + ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as + *const u8, + &mut self._bitfield_1 as + *mut _ as *mut u8, + ::std::mem::size_of::()); + } + } + #[inline] + pub fn new_bitfield_1(mTextAlignTrue: bool, mTextAlignLastTrue: bool) + -> u8 { + ({ + ({ 0 } | + ((mTextAlignTrue as u8 as u8) << 0usize) & (1u64 as u8)) + } | ((mTextAlignLastTrue as u8 as u8) << 1usize) & (2u64 as u8)) + } + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleVisibility { + pub mImageOrientation: root::nsStyleImageOrientation, + pub mDirection: u8, + pub mVisible: u8, + pub mImageRendering: u8, + pub mWritingMode: u8, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleVisibility ) + )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . + mImageOrientation as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mImageOrientation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mDirection as + * const _ as usize } , 1usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mDirection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mVisible as * + const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mVisible ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . + mImageRendering as * const _ as usize } , 3usize , concat + ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mImageRendering ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mWritingMode + as * const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mWritingMode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . + mTextOrientation as * const _ as usize } , 5usize , concat + ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mTextOrientation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVisibility ) ) . mColorAdjust + as * const _ as usize } , 6usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVisibility ) + , "::" , stringify ! ( mColorAdjust ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleUserInterface { + pub mUserInput: root::mozilla::StyleUserInput, + pub mUserModify: root::mozilla::StyleUserModify, + pub mUserFocus: root::mozilla::StyleUserFocus, + pub mPointerEvents: u8, + pub mCursor: u8, + 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 , + concat ! ( + "Size of: " , stringify ! ( nsStyleUserInterface ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleUserInterface ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserInput + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mUserInput ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mUserModify as * const _ as usize } , 1usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mUserModify + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserFocus + as * const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mUserFocus ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mPointerEvents as * const _ as usize } , 3usize , concat ! + ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( + mPointerEvents ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . mCursor as + * const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mCursor ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mCursorImages as * const _ as usize } , 8usize , concat ! + ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( + mCursorImages ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUserInterface ) ) . + mCaretColor as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleUserInterface ) , "::" , stringify ! ( mCaretColor + ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleTableBorder { + pub mBorderSpacingCol: root::nscoord, + pub mBorderSpacingRow: root::nscoord, + pub mBorderCollapse: u8, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleTableBorder ) + )); + assert_eq! (::std::mem::align_of::() , 4usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleTableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . + mBorderSpacingCol as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mBorderSpacingCol ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . + mBorderSpacingRow as * const _ as usize } , 4usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mBorderSpacingRow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . + mBorderCollapse as * const _ as usize } , 8usize , concat + ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mBorderCollapse ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . mCaptionSide + as * const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mCaptionSide ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTableBorder ) ) . mEmptyCells + as * const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTableBorder + ) , "::" , stringify ! ( mEmptyCells ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleSVG { + pub mFill: root::nsStyleSVGPaint, + pub mStroke: root::nsStyleSVGPaint, + pub mMarkerEnd: root::RefPtr, + pub mMarkerMid: root::RefPtr, + pub mMarkerStart: root::RefPtr, + pub mStrokeDasharray: root::nsTArray, + pub mContextProps: root::nsTArray, + pub mStrokeDashoffset: root::nsStyleCoord, + pub mStrokeWidth: root::nsStyleCoord, + pub mFillOpacity: f32, + pub mStrokeMiterlimit: f32, + pub mStrokeOpacity: f32, + pub mClipRule: root::mozilla::StyleFillRule, + pub mColorInterpolation: u8, + pub mColorInterpolationFilters: u8, + pub mFillRule: root::mozilla::StyleFillRule, + pub mPaintOrder: u8, + pub mShapeRendering: u8, + pub mStrokeLinecap: u8, + pub mStrokeLinejoin: u8, + pub mTextAnchor: u8, + pub mContextPropsBits: u8, + pub mContextFlags: u8, + } + pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_MASK; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_MASK; + pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_DASHARRAY_CONTEXT; + pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_DASHOFFSET_CONTEXT; + pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: root::nsStyleSVG__bindgen_ty_1 + = + nsStyleSVG__bindgen_ty_1::STROKE_WIDTH_CONTEXT; + pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_SHIFT; + pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: + root::nsStyleSVG__bindgen_ty_1 = + nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_SHIFT; + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsStyleSVG__bindgen_ty_1 { + FILL_OPACITY_SOURCE_MASK = 3, + STROKE_OPACITY_SOURCE_MASK = 12, + STROKE_DASHARRAY_CONTEXT = 16, + STROKE_DASHOFFSET_CONTEXT = 32, + STROKE_WIDTH_CONTEXT = 64, + 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 ! ( + "Size of: " , stringify ! ( nsStyleSVG ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of " , stringify ! ( nsStyleSVG ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mFill as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mFill ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStroke as * const _ + as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStroke ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerEnd as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mMarkerEnd ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerMid as * + const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mMarkerMid ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerStart as * + const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mMarkerStart ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDasharray as + * const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeDasharray ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mContextProps as * + const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mContextProps ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDashoffset as + * const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeDashoffset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeWidth as * + const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mFillOpacity as * + const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mFillOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeMiterlimit as + * const _ as usize } , 108usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeMiterlimit ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeOpacity as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mClipRule as * const + _ as usize } , 116usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mClipRule ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mColorInterpolation + as * const _ as usize } , 117usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mColorInterpolation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . + mColorInterpolationFilters as * const _ as usize } , + 118usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mColorInterpolationFilters ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mFillRule as * const + _ as usize } , 119usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mFillRule ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mPaintOrder as * + const _ as usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mPaintOrder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mShapeRendering as * + const _ as usize } , 121usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mShapeRendering ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinecap as * + const _ as usize } , 122usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeLinecap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinejoin as * + const _ as usize } , 123usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mStrokeLinejoin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mTextAnchor as * + const _ as usize } , 124usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mTextAnchor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mContextPropsBits as + * const _ as usize } , 125usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mContextPropsBits ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVG ) ) . mContextFlags as * + const _ as usize } , 126usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" + , stringify ! ( mContextFlags ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleVariables ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleVariables ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleVariables ) ) . mVariables as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleVariables ) + , "::" , stringify ! ( mVariables ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleBackground { + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleBackground ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleBackground ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBackground ) ) . mImage as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBackground ) + , "::" , stringify ! ( mImage ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBackground ) ) . + mBackgroundColor as * const _ as usize } , 152usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBackground ) + , "::" , stringify ! ( mBackgroundColor ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStylePosition { + pub mObjectPosition: root::mozilla::Position, + pub mOffset: root::nsStyleSides, + pub mWidth: root::nsStyleCoord, + pub mMinWidth: root::nsStyleCoord, + pub mMaxWidth: root::nsStyleCoord, + pub mHeight: root::nsStyleCoord, + pub mMinHeight: root::nsStyleCoord, + pub mMaxHeight: root::nsStyleCoord, + pub mFlexBasis: root::nsStyleCoord, + pub mGridAutoColumnsMin: root::nsStyleCoord, + pub mGridAutoColumnsMax: root::nsStyleCoord, + pub mGridAutoRowsMin: root::nsStyleCoord, + pub mGridAutoRowsMax: root::nsStyleCoord, + pub mGridAutoFlow: u8, + pub mBoxSizing: root::mozilla::StyleBoxSizing, + pub mAlignContent: u16, + pub mAlignItems: u8, + pub mAlignSelf: u8, + pub mJustifyContent: u16, + pub mJustifyItems: u8, + pub mJustifySelf: u8, + pub mFlexDirection: u8, + pub mFlexWrap: u8, + pub mObjectFit: u8, + pub mOrder: i32, + pub mFlexGrow: f32, + pub mFlexShrink: f32, + pub mZIndex: root::nsStyleCoord, + pub mGridTemplateColumns: root::nsStyleGridTemplate, + pub mGridTemplateRows: root::nsStyleGridTemplate, + pub mGridTemplateAreas: root::RefPtr, + pub mGridColumnStart: root::nsStyleGridLine, + pub mGridColumnEnd: root::nsStyleGridLine, + pub mGridRowStart: root::nsStyleGridLine, + pub mGridRowEnd: root::nsStyleGridLine, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStylePosition ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStylePosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mObjectPosition + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mObjectPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mOffset as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mOffset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mWidth as * + const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMinWidth as * + const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMinWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMaxWidth as * + const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMaxWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mHeight as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMinHeight as * + const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMinHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mMaxHeight as * + const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mMaxHeight ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexBasis as * + const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexBasis ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoColumnsMin as * const _ as usize } , 176usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoColumnsMin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoColumnsMax as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoColumnsMax ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoRowsMin as * const _ as usize } , 208usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoRowsMin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridAutoRowsMax as * const _ as usize } , 224usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoRowsMax ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridAutoFlow + as * const _ as usize } , 240usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridAutoFlow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mBoxSizing as * + const _ as usize } , 241usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mBoxSizing ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mAlignContent + as * const _ as usize } , 242usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mAlignContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mAlignItems as + * const _ as usize } , 244usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mAlignItems ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mAlignSelf as * + const _ as usize } , 245usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mAlignSelf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mJustifyContent + as * const _ as usize } , 246usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mJustifyContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mJustifyItems + as * const _ as usize } , 248usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mJustifyItems ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mJustifySelf as + * const _ as usize } , 249usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mJustifySelf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexDirection + as * const _ as usize } , 250usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexDirection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexWrap as * + const _ as usize } , 251usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexWrap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mObjectFit as * + const _ as usize } , 252usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mObjectFit ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mOrder as * + const _ as usize } , 256usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mOrder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexGrow as * + const _ as usize } , 260usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexGrow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mFlexShrink as + * const _ as usize } , 264usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mFlexShrink ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mZIndex as * + const _ as usize } , 272usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mZIndex ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridTemplateColumns as * const _ as usize } , 288usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridTemplateColumns ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridTemplateRows as * const _ as usize } , 336usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridTemplateRows ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridTemplateAreas as * const _ as usize } , 384usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridTemplateAreas ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . + mGridColumnStart as * const _ as usize } , 392usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridColumnStart ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnEnd + as * const _ as usize } , 416usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridColumnEnd ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridRowStart + as * const _ as usize } , 440usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridRowStart ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridRowEnd as + * const _ as usize } , 464usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridRowEnd ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnGap + as * const _ as usize } , 488usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridColumnGap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePosition ) ) . mGridRowGap as + * const _ as usize } , 504usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePosition ) , + "::" , stringify ! ( mGridRowGap ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleTextReset { + pub mTextOverflow: root::nsStyleTextOverflow, + pub mTextDecorationLine: u8, + pub mTextDecorationStyle: u8, + pub mUnicodeBidi: u8, + pub mInitialLetterSink: root::nscoord, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleTextReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleTextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . mTextOverflow + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextOverflow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mTextDecorationLine as * const _ as usize } , 56usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextDecorationLine ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mTextDecorationStyle as * const _ as usize } , 57usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextDecorationStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . mUnicodeBidi + as * const _ as usize } , 58usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mUnicodeBidi ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mInitialLetterSink as * const _ as usize } , 60usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mInitialLetterSink ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mInitialLetterSize as * const _ as usize } , 64usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mInitialLetterSize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTextReset ) ) . + mTextDecorationColor as * const _ as usize } , 68usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTextReset ) + , "::" , stringify ! ( mTextDecorationColor ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleDisplay { + pub mBinding: root::BindingHolder, + pub mDisplay: root::mozilla::StyleDisplay, + pub mOriginalDisplay: root::mozilla::StyleDisplay, + pub mContain: u8, + pub mAppearance: u8, + pub mPosition: u8, + pub mFloat: root::mozilla::StyleFloat, + pub mOriginalFloat: root::mozilla::StyleFloat, + pub mBreakType: root::mozilla::StyleClear, + pub mBreakInside: u8, + pub mBreakBefore: bool, + pub mBreakAfter: bool, + pub mOverflowX: u8, + pub mOverflowY: u8, + pub mOverflowClipBox: u8, + pub mResize: u8, + pub mOrient: root::mozilla::StyleOrient, + pub mIsolation: u8, + pub mTopLayer: u8, + pub mWillChangeBitField: u8, + pub mWillChange: root::nsCOMArray, + pub mTouchAction: u8, + pub mScrollBehavior: u8, + pub mScrollSnapTypeX: u8, + pub mScrollSnapTypeY: u8, + pub mScrollSnapPointsX: root::nsStyleCoord, + pub mScrollSnapPointsY: root::nsStyleCoord, + pub mScrollSnapDestination: root::mozilla::Position, + pub mScrollSnapCoordinate: root::nsTArray, + pub mBackfaceVisibility: u8, + pub mTransformStyle: u8, + pub mTransformBox: root::nsStyleDisplay_StyleGeometryBox, + pub mSpecifiedTransform: root::RefPtr, + pub mTransformOrigin: [root::nsStyleCoord; 3usize], + pub mChildPerspective: root::nsStyleCoord, + pub mPerspectiveOrigin: [root::nsStyleCoord; 2usize], + pub mVerticalAlign: root::nsStyleCoord, + pub mTransitions: root::nsStyleAutoArray, + pub mTransitionTimingFunctionCount: u32, + pub mTransitionDurationCount: u32, + pub mTransitionDelayCount: u32, + pub mTransitionPropertyCount: u32, + pub mAnimations: root::nsStyleAutoArray, + pub mAnimationTimingFunctionCount: u32, + pub mAnimationDurationCount: u32, + pub mAnimationDelayCount: u32, + pub mAnimationNameCount: u32, + pub mAnimationDirectionCount: u32, + pub mAnimationFillModeCount: u32, + pub mAnimationPlayStateCount: u32, + pub mAnimationIterationCountCount: u32, + pub mShapeOutside: root::mozilla::StyleShapeSource, + } + 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 + ! ( "Size of: " , stringify ! ( nsStyleDisplay ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBinding as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBinding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mDisplay as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalDisplay + as * const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOriginalDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mContain as * + const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mContain ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mAppearance as * + const _ as usize } , 11usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAppearance ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mPosition as * + const _ as usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mFloat as * + const _ as usize } , 13usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mFloat ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalFloat + as * const _ as usize } , 14usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOriginalFloat ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakType as * + const _ as usize } , 15usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakType ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakInside as + * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakInside ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakBefore as + * const _ as usize } , 17usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakBefore ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakAfter as * + const _ as usize } , 18usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBreakAfter ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowX as * + const _ as usize } , 19usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOverflowX ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowY as * + const _ as usize } , 20usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOverflowY ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowClipBox + as * const _ as usize } , 21usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOverflowClipBox ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mResize as * + const _ as usize } , 22usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mResize ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mOrient as * + const _ as usize } , 23usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mOrient ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mIsolation as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mIsolation ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTopLayer as * + const _ as usize } , 25usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTopLayer ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mWillChangeBitField as * const _ as usize } , 26usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mWillChangeBitField ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mWillChange as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mWillChange ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTouchAction as + * const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTouchAction ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollBehavior + as * const _ as usize } , 41usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollBehavior ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeX + as * const _ as usize } , 42usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapTypeX ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeY + as * const _ as usize } , 43usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapTypeY ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapPointsX as * const _ as usize } , 48usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapPointsX ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapPointsY as * const _ as usize } , 64usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapPointsY ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapDestination as * const _ as usize } , 80usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapDestination ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mScrollSnapCoordinate as * const _ as usize } , 104usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mScrollSnapCoordinate ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mBackfaceVisibility as * const _ as usize } , 112usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mBackfaceVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformStyle + as * const _ as usize } , 113usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransformStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformBox as + * const _ as usize } , 114usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransformBox ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mSpecifiedTransform as * const _ as usize } , 120usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mSpecifiedTransform ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformOrigin + as * const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransformOrigin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mChildPerspective as * const _ as usize } , 176usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mChildPerspective ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mPerspectiveOrigin as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mPerspectiveOrigin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mVerticalAlign + as * const _ as usize } , 224usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mVerticalAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mTransitions as + * const _ as usize } , 240usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitions ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionTimingFunctionCount as * const _ as usize } , + 288usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionTimingFunctionCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionDurationCount as * const _ as usize } , + 292usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionDurationCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionDelayCount as * const _ as usize } , 296usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionDelayCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mTransitionPropertyCount as * const _ as usize } , + 300usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mTransitionPropertyCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mAnimations as * + const _ as usize } , 304usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimations ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationTimingFunctionCount as * const _ as usize } , + 368usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationTimingFunctionCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationDurationCount as * const _ as usize } , 372usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationDurationCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationDelayCount as * const _ as usize } , 376usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationDelayCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationNameCount as * const _ as usize } , 380usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationNameCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationDirectionCount as * const _ as usize } , + 384usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationDirectionCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationFillModeCount as * const _ as usize } , 388usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationFillModeCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationPlayStateCount as * const _ as usize } , + 392usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationPlayStateCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . + mAnimationIterationCountCount as * const _ as usize } , + 396usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mAnimationIterationCountCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleDisplay ) ) . mShapeOutside as + * const _ as usize } , 400usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleDisplay ) , + "::" , stringify ! ( mShapeOutside ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleContent { + pub mContents: root::nsTArray, + 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 + ! ( "Size of: " , stringify ! ( nsStyleContent ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContent ) ) . mContents as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContent ) , + "::" , stringify ! ( mContents ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContent ) ) . mIncrements as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContent ) , + "::" , stringify ! ( mIncrements ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContent ) ) . mResets as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContent ) , + "::" , stringify ! ( mResets ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleUIReset { + pub mUserSelect: root::mozilla::StyleUserSelect, + pub mForceBrokenImageIcon: u8, + pub mIMEMode: u8, + pub mWindowDragging: root::mozilla::StyleWindowDragging, + pub mWindowShadow: u8, + pub mWindowOpacity: f32, + 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 + ! ( "Size of: " , stringify ! ( nsStyleUIReset ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleUIReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mUserSelect as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mUserSelect ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . + mForceBrokenImageIcon as * const _ as usize } , 1usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mForceBrokenImageIcon ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mIMEMode as * + const _ as usize } , 2usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mIMEMode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowDragging + as * const _ as usize } , 3usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowDragging ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowShadow as + * const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowShadow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowOpacity + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . + mSpecifiedWindowTransform as * const _ as usize } , + 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mSpecifiedWindowTransform ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleUIReset ) ) . + mWindowTransformOrigin as * const _ as usize } , 24usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleUIReset ) , + "::" , stringify ! ( mWindowTransformOrigin ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleTable { + 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 ! ( + "Size of: " , stringify ! ( nsStyleTable ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( nsStyleTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTable ) ) . mLayoutStrategy as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTable ) , + "::" , stringify ! ( mLayoutStrategy ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleTable ) ) . mSpan as * const _ + as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleTable ) , + "::" , stringify ! ( mSpan ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 ! + ( "Size of: " , stringify ! ( nsStyleMargin ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleMargin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleMargin ) ) . mMargin as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleMargin ) , + "::" , stringify ! ( mMargin ) )); + } + #[repr(C)] + #[derive(Debug)] + 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 + ! ( "Size of: " , stringify ! ( nsStylePadding ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStylePadding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStylePadding ) ) . mPadding as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStylePadding ) , + "::" , stringify ! ( mPadding ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleBorder { + pub mBorderColors: *mut *mut root::nsBorderColors, + pub mBorderRadius: root::nsStyleCorners, + pub mBorderImageSource: root::nsStyleImage, + pub mBorderImageSlice: root::nsStyleSides, + pub mBorderImageWidth: root::nsStyleSides, + pub mBorderImageOutset: root::nsStyleSides, + pub mBorderImageFill: u8, + pub mBorderImageRepeatH: u8, + pub mBorderImageRepeatV: u8, + pub mFloatEdge: root::mozilla::StyleFloatEdge, + pub mBoxDecorationBreak: root::mozilla::StyleBoxDecorationBreak, + pub mBorderStyle: [u8; 4usize], + pub __bindgen_anon_1: root::nsStyleBorder__bindgen_ty_1, + pub mComputedBorder: root::nsMargin, + pub mBorder: root::nsMargin, + pub mTwipsPerPixel: root::nscoord, + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsStyleBorder__bindgen_ty_1 { + pub __bindgen_anon_1: root::__BindgenUnionField, + pub mBorderColor: root::__BindgenUnionField<[root::mozilla::StyleComplexColor; 4usize]>, + pub bindgen_union_field: [u32; 8usize], + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { + pub mBorderTopColor: root::mozilla::StyleComplexColor, + pub mBorderRightColor: root::mozilla::StyleComplexColor, + pub mBorderBottomColor: root::mozilla::StyleComplexColor, + pub mBorderLeftColor: root::mozilla::StyleComplexColor, + } + #[test] + fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1__bindgen_ty_1() { + assert_eq!(::std::mem::size_of::() + , 32usize , concat ! ( + "Size of: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); + assert_eq! (::std::mem::align_of::() + , 4usize , concat ! ( + "Alignment of " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderTopColor as * const _ as usize } , 0usize , + concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderTopColor ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderRightColor as * const _ as usize } , 8usize , + concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderRightColor ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderBottomColor as * const _ as usize } , 16usize + , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderBottomColor ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 + ) ) . mBorderLeftColor as * const _ as usize } , 24usize , + concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , + stringify ! ( mBorderLeftColor ) )); + } + impl Clone for nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { + fn clone(&self) -> Self { *self } + } + #[test] + fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1() { + assert_eq!(::std::mem::size_of::() , + 32usize , concat ! ( + "Size of: " , stringify ! ( nsStyleBorder__bindgen_ty_1 ) + )); + assert_eq! (::std::mem::align_of::() , + 4usize , concat ! ( + "Alignment of " , stringify ! ( + nsStyleBorder__bindgen_ty_1 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder__bindgen_ty_1 ) ) . + mBorderColor as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + nsStyleBorder__bindgen_ty_1 ) , "::" , stringify ! ( + mBorderColor ) )); + } + 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 + ! ( "Size of: " , stringify ! ( nsStyleBorder ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderColors as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderColors ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderRadius as + * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderRadius ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageSource as * const _ as usize } , 80usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageSource ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageSlice + as * const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageSlice ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageWidth + as * const _ as usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageOutset as * const _ as usize } , 192usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageOutset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageFill + as * const _ as usize } , 232usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageFill ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageRepeatH as * const _ as usize } , 233usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageRepeatH ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBorderImageRepeatV as * const _ as usize } , 234usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderImageRepeatV ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mFloatEdge as * + const _ as usize } , 235usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mFloatEdge ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . + mBoxDecorationBreak as * const _ as usize } , 236usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBoxDecorationBreak ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorderStyle as * + const _ as usize } , 237usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorderStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mComputedBorder + as * const _ as usize } , 276usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mComputedBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mBorder as * + const _ as usize } , 292usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleBorder ) ) . mTwipsPerPixel as + * const _ as usize } , 308usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleBorder ) , + "::" , stringify ! ( mTwipsPerPixel ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleOutline { + pub mOutlineRadius: root::nsStyleCorners, + pub mOutlineWidth: root::nscoord, + pub mOutlineOffset: root::nscoord, + pub mOutlineColor: root::mozilla::StyleComplexColor, + pub mOutlineStyle: u8, + 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 + ! ( "Size of: " , stringify ! ( nsStyleOutline ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleOutline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineRadius + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineRadius ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineWidth as + * const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineOffset + as * const _ as usize } , 76usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineOffset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineColor as + * const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineStyle as + * const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mOutlineStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . + mActualOutlineWidth as * const _ as usize } , 92usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mActualOutlineWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleOutline ) ) . mTwipsPerPixel + as * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleOutline ) , + "::" , stringify ! ( mTwipsPerPixel ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleXUL { + pub mBoxFlex: f32, + pub mBoxOrdinal: u32, + pub mBoxAlign: root::mozilla::StyleBoxAlign, + pub mBoxDirection: root::mozilla::StyleBoxDirection, + pub mBoxOrient: root::mozilla::StyleBoxOrient, + 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 ! ( + "Size of: " , stringify ! ( nsStyleXUL ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! ( + "Alignment of " , stringify ! ( nsStyleXUL ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxFlex as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxFlex ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrdinal as * + const _ as usize } , 4usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxOrdinal ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxAlign as * const + _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxAlign ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxDirection as * + const _ as usize } , 9usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxDirection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrient as * + const _ as usize } , 10usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxOrient ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mBoxPack as * const + _ as usize } , 11usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mBoxPack ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleXUL ) ) . mStackSizing as * + const _ as usize } , 12usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" + , stringify ! ( mStackSizing ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleSVGReset { + pub mMask: root::nsStyleImageLayers, + pub mClipPath: root::mozilla::StyleShapeSource, + pub mStopColor: root::nscolor, + pub mFloodColor: root::nscolor, + pub mLightingColor: root::nscolor, + pub mStopOpacity: f32, + pub mFloodOpacity: f32, + pub mDominantBaseline: u8, + 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 , + concat ! ( "Size of: " , stringify ! ( nsStyleSVGReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsStyleSVGReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mMask as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mMask ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mClipPath as * + const _ as usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mClipPath ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopColor as * + const _ as usize } , 168usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mStopColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodColor as + * const _ as usize } , 172usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mFloodColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mLightingColor + as * const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mLightingColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopOpacity as + * const _ as usize } , 180usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mStopOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodOpacity + as * const _ as usize } , 184usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mFloodOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . + mDominantBaseline as * const _ as usize } , 188usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mDominantBaseline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mVectorEffect + as * const _ as usize } , 189usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mVectorEffect ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleSVGReset ) ) . mMaskType as * + const _ as usize } , 190usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , + "::" , stringify ! ( mMaskType ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleColumn { + pub mColumnCount: u32, + pub mColumnWidth: root::nsStyleCoord, + pub mColumnGap: root::nsStyleCoord, + pub mColumnRuleColor: root::mozilla::StyleComplexColor, + pub mColumnRuleStyle: u8, + pub mColumnFill: u8, + pub mColumnSpan: u8, + 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() { + assert_eq!(::std::mem::size_of::() , 64usize , concat ! + ( "Size of: " , stringify ! ( nsStyleColumn ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleColumn ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnCount as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnCount ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnWidth as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnGap as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnGap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleColor + as * const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnRuleColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleStyle + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnRuleStyle ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnFill as * + const _ as usize } , 49usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnFill ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnSpan as * + const _ as usize } , 50usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnSpan ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleWidth + as * const _ as usize } , 52usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mColumnRuleWidth ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleColumn ) ) . mTwipsPerPixel as + * const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleColumn ) , + "::" , stringify ! ( mTwipsPerPixel ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct nsStyleEffects { + pub mFilters: root::nsTArray, + pub mBoxShadow: root::RefPtr, + pub mClip: root::nsRect, + pub mOpacity: f32, + 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 + ! ( "Size of: " , stringify ! ( nsStyleEffects ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleEffects ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mFilters as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mFilters ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mBoxShadow as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mBoxShadow ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mClip as * const + _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mClip ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mOpacity as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mOpacity ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mClipFlags as * + const _ as usize } , 36usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mClipFlags ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleEffects ) ) . mMixBlendMode as + * const _ as usize } , 37usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleEffects ) , + "::" , stringify ! ( mMixBlendMode ) )); + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -28533,353 +30919,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] - pub struct nsStyleDisplay { - pub mBinding: root::BindingHolder, - pub mDisplay: root::mozilla::StyleDisplay, - pub mOriginalDisplay: root::mozilla::StyleDisplay, - pub mContain: u8, - pub mAppearance: u8, - pub mPosition: u8, - pub mFloat: root::mozilla::StyleFloat, - pub mOriginalFloat: root::mozilla::StyleFloat, - pub mBreakType: root::mozilla::StyleClear, - pub mBreakInside: u8, - pub mBreakBefore: bool, - pub mBreakAfter: bool, - pub mOverflowX: u8, - pub mOverflowY: u8, - pub mOverflowClipBox: u8, - pub mResize: u8, - pub mOrient: root::mozilla::StyleOrient, - pub mIsolation: u8, - pub mTopLayer: u8, - pub mWillChangeBitField: u8, - pub mWillChange: root::nsCOMArray, - pub mTouchAction: u8, - pub mScrollBehavior: u8, - pub mScrollSnapTypeX: u8, - pub mScrollSnapTypeY: u8, - pub mScrollSnapPointsX: root::nsStyleCoord, - pub mScrollSnapPointsY: root::nsStyleCoord, - pub mScrollSnapDestination: root::mozilla::Position, - pub mScrollSnapCoordinate: root::nsTArray, - pub mBackfaceVisibility: u8, - pub mTransformStyle: u8, - pub mTransformBox: root::nsStyleDisplay_StyleGeometryBox, - pub mSpecifiedTransform: root::RefPtr, - pub mTransformOrigin: [root::nsStyleCoord; 3usize], - pub mChildPerspective: root::nsStyleCoord, - pub mPerspectiveOrigin: [root::nsStyleCoord; 2usize], - pub mVerticalAlign: root::nsStyleCoord, - pub mTransitions: root::nsStyleAutoArray, - pub mTransitionTimingFunctionCount: u32, - pub mTransitionDurationCount: u32, - pub mTransitionDelayCount: u32, - pub mTransitionPropertyCount: u32, - pub mAnimations: root::nsStyleAutoArray, - pub mAnimationTimingFunctionCount: u32, - pub mAnimationDurationCount: u32, - pub mAnimationDelayCount: u32, - pub mAnimationNameCount: u32, - pub mAnimationDirectionCount: u32, - pub mAnimationFillModeCount: u32, - pub mAnimationPlayStateCount: u32, - pub mAnimationIterationCountCount: u32, - pub mShapeOutside: root::mozilla::StyleShapeSource, - } - 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 - ! ( "Size of: " , stringify ! ( nsStyleDisplay ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBinding as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBinding ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mDisplay as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalDisplay - as * const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOriginalDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mContain as * - const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mContain ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mAppearance as * - const _ as usize } , 11usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAppearance ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mPosition as * - const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mFloat as * - const _ as usize } , 13usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mFloat ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOriginalFloat - as * const _ as usize } , 14usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOriginalFloat ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakType as * - const _ as usize } , 15usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakInside as - * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakInside ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakBefore as - * const _ as usize } , 17usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakBefore ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mBreakAfter as * - const _ as usize } , 18usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBreakAfter ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowX as * - const _ as usize } , 19usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOverflowX ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowY as * - const _ as usize } , 20usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOverflowY ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOverflowClipBox - as * const _ as usize } , 21usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOverflowClipBox ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mResize as * - const _ as usize } , 22usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mResize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mOrient as * - const _ as usize } , 23usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mOrient ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mIsolation as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mIsolation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTopLayer as * - const _ as usize } , 25usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTopLayer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mWillChangeBitField as * const _ as usize } , 26usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mWillChangeBitField ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mWillChange as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mWillChange ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTouchAction as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTouchAction ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollBehavior - as * const _ as usize } , 41usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollBehavior ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeX - as * const _ as usize } , 42usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapTypeX ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mScrollSnapTypeY - as * const _ as usize } , 43usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapTypeY ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapPointsX as * const _ as usize } , 48usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapPointsX ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapPointsY as * const _ as usize } , 64usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapPointsY ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapDestination as * const _ as usize } , 80usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapDestination ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mScrollSnapCoordinate as * const _ as usize } , 104usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mScrollSnapCoordinate ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mBackfaceVisibility as * const _ as usize } , 112usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mBackfaceVisibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformStyle - as * const _ as usize } , 113usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransformStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformBox as - * const _ as usize } , 114usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransformBox ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mSpecifiedTransform as * const _ as usize } , 120usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mSpecifiedTransform ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransformOrigin - as * const _ as usize } , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransformOrigin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mChildPerspective as * const _ as usize } , 176usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mChildPerspective ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mPerspectiveOrigin as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mPerspectiveOrigin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mVerticalAlign - as * const _ as usize } , 224usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mVerticalAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mTransitions as - * const _ as usize } , 240usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitions ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionTimingFunctionCount as * const _ as usize } , - 288usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionTimingFunctionCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionDurationCount as * const _ as usize } , - 292usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionDurationCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionDelayCount as * const _ as usize } , 296usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionDelayCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mTransitionPropertyCount as * const _ as usize } , - 300usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mTransitionPropertyCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mAnimations as * - const _ as usize } , 304usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimations ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationTimingFunctionCount as * const _ as usize } , - 368usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationTimingFunctionCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationDurationCount as * const _ as usize } , 372usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationDurationCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationDelayCount as * const _ as usize } , 376usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationDelayCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationNameCount as * const _ as usize } , 380usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationNameCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationDirectionCount as * const _ as usize } , - 384usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationDirectionCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationFillModeCount as * const _ as usize } , 388usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationFillModeCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationPlayStateCount as * const _ as usize } , - 392usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationPlayStateCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . - mAnimationIterationCountCount as * const _ as usize } , - 396usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mAnimationIterationCountCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleDisplay ) ) . mShapeOutside as - * const _ as usize } , 400usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleDisplay ) , - "::" , stringify ! ( mShapeOutside ) )); - } - #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nsBidi { _unused: [u8; 0], @@ -32976,157 +35015,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleVisibility { - pub mImageOrientation: root::nsStyleImageOrientation, - pub mDirection: u8, - pub mVisible: u8, - pub mImageRendering: u8, - pub mWritingMode: u8, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleVisibility ) - )); - assert_eq! (::std::mem::align_of::() , 1usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleVisibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . - mImageOrientation as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mImageOrientation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mDirection as - * const _ as usize } , 1usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mDirection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mVisible as * - const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mVisible ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . - mImageRendering as * const _ as usize } , 3usize , concat - ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mImageRendering ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mWritingMode - as * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mWritingMode ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . - mTextOrientation as * const _ as usize } , 5usize , concat - ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mTextOrientation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVisibility ) ) . mColorAdjust - as * const _ as usize } , 6usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVisibility ) - , "::" , stringify ! ( mColorAdjust ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleFont { - pub mFont: root::nsFont, - pub mSize: root::nscoord, - pub mGenericID: u8, - pub mScriptLevel: i8, - pub mMathVariant: u8, - pub mMathDisplay: u8, - pub mMinFontSizeRatio: u8, - pub mExplicitLanguage: bool, - pub mAllowZoom: bool, - pub mScriptUnconstrainedSize: root::nscoord, - pub mScriptMinSize: root::nscoord, - 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 ! - ( "Size of: " , stringify ! ( nsStyleFont ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleFont ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mFont as * const _ - as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mFont ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mSize as * const _ - as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mGenericID as * - const _ as usize } , 92usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mGenericID ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mScriptLevel as * - const _ as usize } , 93usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptLevel ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mMathVariant as * - const _ as usize } , 94usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mMathVariant ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mMathDisplay as * - const _ as usize } , 95usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mMathDisplay ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mMinFontSizeRatio - as * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mMinFontSizeRatio ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mExplicitLanguage - as * const _ as usize } , 97usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mExplicitLanguage ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mAllowZoom as * - const _ as usize } , 98usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mAllowZoom ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . - mScriptUnconstrainedSize as * const _ as usize } , - 100usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptUnconstrainedSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mScriptMinSize as * - const _ as usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptMinSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . - mScriptSizeMultiplier as * const _ as usize } , 108usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mScriptSizeMultiplier ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleFont ) ) . mLanguage as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleFont ) , - "::" , stringify ! ( mLanguage ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleGradientStop { pub mLocation: root::nsStyleCoord, pub mColor: root::nscolor, @@ -33466,24 +35354,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - 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 ! ( - "Size of: " , stringify ! ( nsStyleColor ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColor ) ) . mColor as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColor ) , - "::" , stringify ! ( mColor ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleImageLayers { pub mAttachmentCount: u32, pub mClipCount: u32, @@ -33830,69 +35700,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleBackground { - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleBackground ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleBackground ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBackground ) ) . mImage as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBackground ) - , "::" , stringify ! ( mImage ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBackground ) ) . - mBackgroundColor as * const _ as usize } , 152usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBackground ) - , "::" , stringify ! ( mBackgroundColor ) )); - } - #[repr(C)] - #[derive(Debug)] - 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 ! - ( "Size of: " , stringify ! ( nsStyleMargin ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleMargin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleMargin ) ) . mMargin as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleMargin ) , - "::" , stringify ! ( mMargin ) )); - } - #[repr(C)] - #[derive(Debug)] - 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 - ! ( "Size of: " , stringify ! ( nsStylePadding ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStylePadding ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePadding ) ) . mPadding as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePadding ) , - "::" , stringify ! ( mPadding ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsBorderColors { pub mNext: *mut root::nsBorderColors, pub mColor: root::nscolor, @@ -34000,250 +35807,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsCSSShadowArray ) , "::" , stringify ! ( mArray ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleBorder { - pub mBorderColors: *mut *mut root::nsBorderColors, - pub mBorderRadius: root::nsStyleCorners, - pub mBorderImageSource: root::nsStyleImage, - pub mBorderImageSlice: root::nsStyleSides, - pub mBorderImageWidth: root::nsStyleSides, - pub mBorderImageOutset: root::nsStyleSides, - pub mBorderImageFill: u8, - pub mBorderImageRepeatH: u8, - pub mBorderImageRepeatV: u8, - pub mFloatEdge: root::mozilla::StyleFloatEdge, - pub mBoxDecorationBreak: root::mozilla::StyleBoxDecorationBreak, - pub mBorderStyle: [u8; 4usize], - pub __bindgen_anon_1: root::nsStyleBorder__bindgen_ty_1, - pub mComputedBorder: root::nsMargin, - pub mBorder: root::nsMargin, - pub mTwipsPerPixel: root::nscoord, - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsStyleBorder__bindgen_ty_1 { - pub __bindgen_anon_1: root::__BindgenUnionField, - pub mBorderColor: root::__BindgenUnionField<[root::mozilla::StyleComplexColor; 4usize]>, - pub bindgen_union_field: [u32; 8usize], - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { - pub mBorderTopColor: root::mozilla::StyleComplexColor, - pub mBorderRightColor: root::mozilla::StyleComplexColor, - pub mBorderBottomColor: root::mozilla::StyleComplexColor, - pub mBorderLeftColor: root::mozilla::StyleComplexColor, - } - #[test] - fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1__bindgen_ty_1() { - assert_eq!(::std::mem::size_of::() - , 32usize , concat ! ( - "Size of: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); - assert_eq! (::std::mem::align_of::() - , 4usize , concat ! ( - "Alignment of " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderTopColor as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderTopColor ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderRightColor as * const _ as usize } , 8usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderRightColor ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderBottomColor as * const _ as usize } , 16usize - , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderBottomColor ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const nsStyleBorder__bindgen_ty_1__bindgen_ty_1 - ) ) . mBorderLeftColor as * const _ as usize } , 24usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1__bindgen_ty_1 ) , "::" , - stringify ! ( mBorderLeftColor ) )); - } - impl Clone for nsStyleBorder__bindgen_ty_1__bindgen_ty_1 { - fn clone(&self) -> Self { *self } - } - #[test] - fn bindgen_test_layout_nsStyleBorder__bindgen_ty_1() { - assert_eq!(::std::mem::size_of::() , - 32usize , concat ! ( - "Size of: " , stringify ! ( nsStyleBorder__bindgen_ty_1 ) - )); - assert_eq! (::std::mem::align_of::() , - 4usize , concat ! ( - "Alignment of " , stringify ! ( - nsStyleBorder__bindgen_ty_1 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder__bindgen_ty_1 ) ) . - mBorderColor as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleBorder__bindgen_ty_1 ) , "::" , stringify ! ( - mBorderColor ) )); - } - 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 - ! ( "Size of: " , stringify ! ( nsStyleBorder ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderColors as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderColors ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderRadius as - * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderRadius ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageSource as * const _ as usize } , 80usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageSource ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageSlice - as * const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageSlice ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageWidth - as * const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageOutset as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageOutset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderImageFill - as * const _ as usize } , 232usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageFill ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageRepeatH as * const _ as usize } , 233usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageRepeatH ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBorderImageRepeatV as * const _ as usize } , 234usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderImageRepeatV ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mFloatEdge as * - const _ as usize } , 235usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mFloatEdge ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . - mBoxDecorationBreak as * const _ as usize } , 236usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBoxDecorationBreak ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorderStyle as * - const _ as usize } , 237usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorderStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mComputedBorder - as * const _ as usize } , 276usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mComputedBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mBorder as * - const _ as usize } , 292usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleBorder ) ) . mTwipsPerPixel as - * const _ as usize } , 308usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleBorder ) , - "::" , stringify ! ( mTwipsPerPixel ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleOutline { - pub mOutlineRadius: root::nsStyleCorners, - pub mOutlineWidth: root::nscoord, - pub mOutlineOffset: root::nscoord, - pub mOutlineColor: root::mozilla::StyleComplexColor, - pub mOutlineStyle: u8, - 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 - ! ( "Size of: " , stringify ! ( nsStyleOutline ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleOutline ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineRadius - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineRadius ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineWidth as - * const _ as usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineOffset - as * const _ as usize } , 76usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineColor as - * const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mOutlineStyle as - * const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mOutlineStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . - mActualOutlineWidth as * const _ as usize } , 92usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mActualOutlineWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleOutline ) ) . mTwipsPerPixel - as * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleOutline ) , - "::" , stringify ! ( mTwipsPerPixel ) )); - } /** * An object that allows sharing of arrays that store 'quotes' property * values. This is particularly important for inheritance, where we want @@ -34277,80 +35840,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStyleQuoteValues ) , "::" , stringify ! ( mQuotePairs ) )); } - #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - } - #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::StaticRefPtr ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleList { - pub mListStylePosition: u8, - pub mListStyleImage: root::RefPtr, - pub mCounterStyle: root::mozilla::CounterStylePtr, - pub mQuotes: root::RefPtr, - pub mImageRegion: root::nsRect, - } - pub const nsStyleList_kHasFinishStyle: bool = true; - extern "C" { - #[link_name = "_ZN11nsStyleList14sInitialQuotesE"] - pub static mut nsStyleList_sInitialQuotes: - root::mozilla::StaticRefPtr; - } - extern "C" { - #[link_name = "_ZN11nsStyleList11sNoneQuotesE"] - pub static mut nsStyleList_sNoneQuotes: - root::mozilla::StaticRefPtr; - } - #[test] - fn bindgen_test_layout_nsStyleList() { - assert_eq!(::std::mem::size_of::() , 48usize , concat ! ( - "Size of: " , stringify ! ( nsStyleList ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleList ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mListStylePosition - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mListStylePosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mListStyleImage as - * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mListStyleImage ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mCounterStyle as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mCounterStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mQuotes as * const - _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mQuotes ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleList ) ) . mImageRegion as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleList ) , - "::" , stringify ! ( mImageRegion ) )); - } #[repr(C)] #[derive(Debug)] pub struct nsStyleGridLine { @@ -34529,250 +36018,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStylePosition { - pub mObjectPosition: root::mozilla::Position, - pub mOffset: root::nsStyleSides, - pub mWidth: root::nsStyleCoord, - pub mMinWidth: root::nsStyleCoord, - pub mMaxWidth: root::nsStyleCoord, - pub mHeight: root::nsStyleCoord, - pub mMinHeight: root::nsStyleCoord, - pub mMaxHeight: root::nsStyleCoord, - pub mFlexBasis: root::nsStyleCoord, - pub mGridAutoColumnsMin: root::nsStyleCoord, - pub mGridAutoColumnsMax: root::nsStyleCoord, - pub mGridAutoRowsMin: root::nsStyleCoord, - pub mGridAutoRowsMax: root::nsStyleCoord, - pub mGridAutoFlow: u8, - pub mBoxSizing: root::mozilla::StyleBoxSizing, - pub mAlignContent: u16, - pub mAlignItems: u8, - pub mAlignSelf: u8, - pub mJustifyContent: u16, - pub mJustifyItems: u8, - pub mJustifySelf: u8, - pub mFlexDirection: u8, - pub mFlexWrap: u8, - pub mObjectFit: u8, - pub mOrder: i32, - pub mFlexGrow: f32, - pub mFlexShrink: f32, - pub mZIndex: root::nsStyleCoord, - pub mGridTemplateColumns: root::nsStyleGridTemplate, - pub mGridTemplateRows: root::nsStyleGridTemplate, - pub mGridTemplateAreas: root::RefPtr, - pub mGridColumnStart: root::nsStyleGridLine, - pub mGridColumnEnd: root::nsStyleGridLine, - pub mGridRowStart: root::nsStyleGridLine, - pub mGridRowEnd: root::nsStyleGridLine, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStylePosition ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStylePosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mObjectPosition - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mObjectPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mOffset as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mWidth as * - const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMinWidth as * - const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMinWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMaxWidth as * - const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMaxWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mHeight as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMinHeight as * - const _ as usize } , 128usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMinHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mMaxHeight as * - const _ as usize } , 144usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mMaxHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexBasis as * - const _ as usize } , 160usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexBasis ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoColumnsMin as * const _ as usize } , 176usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoColumnsMin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoColumnsMax as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoColumnsMax ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoRowsMin as * const _ as usize } , 208usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoRowsMin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridAutoRowsMax as * const _ as usize } , 224usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoRowsMax ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridAutoFlow - as * const _ as usize } , 240usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridAutoFlow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mBoxSizing as * - const _ as usize } , 241usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mBoxSizing ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mAlignContent - as * const _ as usize } , 242usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mAlignContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mAlignItems as - * const _ as usize } , 244usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mAlignItems ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mAlignSelf as * - const _ as usize } , 245usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mAlignSelf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mJustifyContent - as * const _ as usize } , 246usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mJustifyContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mJustifyItems - as * const _ as usize } , 248usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mJustifyItems ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mJustifySelf as - * const _ as usize } , 249usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mJustifySelf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexDirection - as * const _ as usize } , 250usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexDirection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexWrap as * - const _ as usize } , 251usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexWrap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mObjectFit as * - const _ as usize } , 252usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mObjectFit ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mOrder as * - const _ as usize } , 256usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mOrder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexGrow as * - const _ as usize } , 260usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexGrow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mFlexShrink as - * const _ as usize } , 264usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mFlexShrink ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mZIndex as * - const _ as usize } , 272usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mZIndex ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridTemplateColumns as * const _ as usize } , 288usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridTemplateColumns ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridTemplateRows as * const _ as usize } , 336usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridTemplateRows ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridTemplateAreas as * const _ as usize } , 384usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridTemplateAreas ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . - mGridColumnStart as * const _ as usize } , 392usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridColumnStart ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnEnd - as * const _ as usize } , 416usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridColumnEnd ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridRowStart - as * const _ as usize } , 440usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridRowStart ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridRowEnd as - * const _ as usize } , 464usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridRowEnd ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridColumnGap - as * const _ as usize } , 488usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridColumnGap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStylePosition ) ) . mGridRowGap as - * const _ as usize } , 504usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStylePosition ) , - "::" , stringify ! ( mGridRowGap ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleTextOverflowSide { pub mString: ::nsstring::nsStringRepr, pub mType: u8, @@ -34832,334 +36077,6 @@ pub mod root { ) , "::" , stringify ! ( mLogicalDirections ) )); } #[repr(C)] - #[derive(Debug)] - pub struct nsStyleTextReset { - pub mTextOverflow: root::nsStyleTextOverflow, - pub mTextDecorationLine: u8, - pub mTextDecorationStyle: u8, - pub mUnicodeBidi: u8, - pub mInitialLetterSink: root::nscoord, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleTextReset ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleTextReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . mTextOverflow - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextOverflow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mTextDecorationLine as * const _ as usize } , 56usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextDecorationLine ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mTextDecorationStyle as * const _ as usize } , 57usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextDecorationStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . mUnicodeBidi - as * const _ as usize } , 58usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mUnicodeBidi ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mInitialLetterSink as * const _ as usize } , 60usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mInitialLetterSink ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mInitialLetterSize as * const _ as usize } , 64usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mInitialLetterSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTextReset ) ) . - mTextDecorationColor as * const _ as usize } , 68usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTextReset ) - , "::" , stringify ! ( mTextDecorationColor ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleText { - pub mTextAlign: u8, - pub mTextAlignLast: u8, - pub _bitfield_1: u8, - pub mTextJustify: root::mozilla::StyleTextJustify, - pub mTextTransform: u8, - pub mWhiteSpace: root::mozilla::StyleWhiteSpace, - pub mWordBreak: u8, - pub mOverflowWrap: u8, - pub mHyphens: root::mozilla::StyleHyphens, - pub mRubyAlign: u8, - pub mRubyPosition: u8, - pub mTextSizeAdjust: u8, - pub mTextCombineUpright: u8, - pub mControlCharacterVisibility: u8, - pub mTextEmphasisPosition: u8, - pub mTextEmphasisStyle: u8, - pub mTextRendering: u8, - pub mTextEmphasisColor: root::mozilla::StyleComplexColor, - pub mWebkitTextFillColor: root::mozilla::StyleComplexColor, - pub mWebkitTextStrokeColor: root::mozilla::StyleComplexColor, - pub mTabSize: root::nsStyleCoord, - pub mWordSpacing: root::nsStyleCoord, - pub mLetterSpacing: root::nsStyleCoord, - pub mLineHeight: root::nsStyleCoord, - pub mTextIndent: root::nsStyleCoord, - pub mWebkitTextStrokeWidth: root::nscoord, - 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 ! - ( "Size of: " , stringify ! ( nsStyleText ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleText ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextAlign as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextAlignLast as * - const _ as usize } , 1usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextAlignLast ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextJustify as * - const _ as usize } , 3usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextJustify ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextTransform as * - const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextTransform ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mWhiteSpace as * - const _ as usize } , 5usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWhiteSpace ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mWordBreak as * - const _ as usize } , 6usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWordBreak ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mOverflowWrap as * - const _ as usize } , 7usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mOverflowWrap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mHyphens as * const - _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mHyphens ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mRubyAlign as * - const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mRubyAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mRubyPosition as * - const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mRubyPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextSizeAdjust as - * const _ as usize } , 11usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextSizeAdjust ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextCombineUpright - as * const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextCombineUpright ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mControlCharacterVisibility as * const _ as usize } , - 13usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mControlCharacterVisibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mTextEmphasisPosition as * const _ as usize } , 14usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisStyle - as * const _ as usize } , 15usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextRendering as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextRendering ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextEmphasisColor - as * const _ as usize } , 20usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mWebkitTextFillColor as * const _ as usize } , 28usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWebkitTextFillColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mWebkitTextStrokeColor as * const _ as usize } , 36usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWebkitTextStrokeColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTabSize as * const - _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTabSize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mWordSpacing as * - const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWordSpacing ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mLetterSpacing as * - const _ as usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mLetterSpacing ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mLineHeight as * - const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mLineHeight ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextIndent as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextIndent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mWebkitTextStrokeWidth as * const _ as usize } , 128usize - , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mWebkitTextStrokeWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . mTextShadow as * - const _ as usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextShadow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleText ) ) . - mTextEmphasisStyleString as * const _ as usize } , - 144usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleText ) , - "::" , stringify ! ( mTextEmphasisStyleString ) )); - } - impl nsStyleText { - #[inline] - pub fn mTextAlignTrue(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u8; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mTextAlignTrue(&mut self, val: bool) { - let mask = 1u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn mTextAlignLastTrue(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u8; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_mTextAlignLastTrue(&mut self, val: bool) { - let mask = 2u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(mTextAlignTrue: bool, mTextAlignLastTrue: bool) - -> u8 { - ({ - ({ 0 } | - ((mTextAlignTrue as u8 as u8) << 0usize) & (1u64 as u8)) - } | ((mTextAlignLastTrue as u8 as u8) << 1usize) & (2u64 as u8)) - } - } - #[repr(C)] #[derive(Debug, Copy)] pub struct nsStyleImageOrientation { pub mOrientation: u8, @@ -35363,77 +36280,6 @@ pub mod root { "Alignment of field: " , stringify ! ( BindingHolder ) , "::" , stringify ! ( mPtr ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleTable { - 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 ! ( - "Size of: " , stringify ! ( nsStyleTable ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! - ( "Alignment of " , stringify ! ( nsStyleTable ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTable ) ) . mLayoutStrategy as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTable ) , - "::" , stringify ! ( mLayoutStrategy ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTable ) ) . mSpan as * const _ - as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTable ) , - "::" , stringify ! ( mSpan ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleTableBorder { - pub mBorderSpacingCol: root::nscoord, - pub mBorderSpacingRow: root::nscoord, - pub mBorderCollapse: u8, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleTableBorder ) - )); - assert_eq! (::std::mem::align_of::() , 4usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleTableBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . - mBorderSpacingCol as * const _ as usize } , 0usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mBorderSpacingCol ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . - mBorderSpacingRow as * const _ as usize } , 4usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mBorderSpacingRow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . - mBorderCollapse as * const _ as usize } , 8usize , concat - ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mBorderCollapse ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . mCaptionSide - as * const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mCaptionSide ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleTableBorder ) ) . mEmptyCells - as * const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleTableBorder - ) , "::" , stringify ! ( mEmptyCells ) )); - } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsStyleContentType { @@ -35588,99 +36434,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleContent { - pub mContents: root::nsTArray, - 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 - ! ( "Size of: " , stringify ! ( nsStyleContent ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleContent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContent ) ) . mContents as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContent ) , - "::" , stringify ! ( mContents ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContent ) ) . mIncrements as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContent ) , - "::" , stringify ! ( mIncrements ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContent ) ) . mResets as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContent ) , - "::" , stringify ! ( mResets ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleUIReset { - pub mUserSelect: root::mozilla::StyleUserSelect, - pub mForceBrokenImageIcon: u8, - pub mIMEMode: u8, - pub mWindowDragging: root::mozilla::StyleWindowDragging, - pub mWindowShadow: u8, - pub mWindowOpacity: f32, - 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 - ! ( "Size of: " , stringify ! ( nsStyleUIReset ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleUIReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mUserSelect as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mUserSelect ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . - mForceBrokenImageIcon as * const _ as usize } , 1usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mForceBrokenImageIcon ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mIMEMode as * - const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mIMEMode ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowDragging - as * const _ as usize } , 3usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowDragging ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowShadow as - * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowShadow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . mWindowOpacity - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . - mSpecifiedWindowTransform as * const _ as usize } , - 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mSpecifiedWindowTransform ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUIReset ) ) . - mWindowTransformOrigin as * const _ as usize } , 24usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleUIReset ) , - "::" , stringify ! ( mWindowTransformOrigin ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsCursorImage { pub mHaveHotspot: bool, pub mHotspotX: f32, @@ -35714,192 +36467,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsCursorImage ) , "::" , stringify ! ( mImage ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleUserInterface { - pub mUserInput: root::mozilla::StyleUserInput, - pub mUserModify: root::mozilla::StyleUserModify, - pub mUserFocus: root::mozilla::StyleUserFocus, - pub mPointerEvents: u8, - pub mCursor: u8, - 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 , - concat ! ( - "Size of: " , stringify ! ( nsStyleUserInterface ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleUserInterface ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserInput - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mUserInput ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mUserModify as * const _ as usize } , 1usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mUserModify - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . mUserFocus - as * const _ as usize } , 2usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mUserFocus ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mPointerEvents as * const _ as usize } , 3usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( - mPointerEvents ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . mCursor as - * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mCursor ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mCursorImages as * const _ as usize } , 8usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( - mCursorImages ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleUserInterface ) ) . - mCaretColor as * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsStyleUserInterface ) , "::" , stringify ! ( mCaretColor - ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleXUL { - pub mBoxFlex: f32, - pub mBoxOrdinal: u32, - pub mBoxAlign: root::mozilla::StyleBoxAlign, - pub mBoxDirection: root::mozilla::StyleBoxDirection, - pub mBoxOrient: root::mozilla::StyleBoxOrient, - 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 ! ( - "Size of: " , stringify ! ( nsStyleXUL ) )); - assert_eq! (::std::mem::align_of::() , 4usize , concat ! ( - "Alignment of " , stringify ! ( nsStyleXUL ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxFlex as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxFlex ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrdinal as * - const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxOrdinal ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxAlign as * const - _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxAlign ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxDirection as * - const _ as usize } , 9usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxDirection ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxOrient as * - const _ as usize } , 10usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxOrient ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mBoxPack as * const - _ as usize } , 11usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mBoxPack ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleXUL ) ) . mStackSizing as * - const _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleXUL ) , "::" - , stringify ! ( mStackSizing ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleColumn { - pub mColumnCount: u32, - pub mColumnWidth: root::nsStyleCoord, - pub mColumnGap: root::nsStyleCoord, - pub mColumnRuleColor: root::mozilla::StyleComplexColor, - pub mColumnRuleStyle: u8, - pub mColumnFill: u8, - pub mColumnSpan: u8, - 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() { - assert_eq!(::std::mem::size_of::() , 64usize , concat ! - ( "Size of: " , stringify ! ( nsStyleColumn ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleColumn ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnCount as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnWidth as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnGap as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnGap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleColor - as * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnRuleColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleStyle - as * const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnRuleStyle ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnFill as * - const _ as usize } , 49usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnFill ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnSpan as * - const _ as usize } , 50usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnSpan ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mColumnRuleWidth - as * const _ as usize } , 52usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mColumnRuleWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleColumn ) ) . mTwipsPerPixel as - * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleColumn ) , - "::" , stringify ! ( mTwipsPerPixel ) )); - } #[repr(u8)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsStyleSVGPaintType { @@ -35987,189 +36554,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct nsStyleSVG { - pub mFill: root::nsStyleSVGPaint, - pub mStroke: root::nsStyleSVGPaint, - pub mMarkerEnd: root::RefPtr, - pub mMarkerMid: root::RefPtr, - pub mMarkerStart: root::RefPtr, - pub mStrokeDasharray: root::nsTArray, - pub mContextProps: root::nsTArray, - pub mStrokeDashoffset: root::nsStyleCoord, - pub mStrokeWidth: root::nsStyleCoord, - pub mFillOpacity: f32, - pub mStrokeMiterlimit: f32, - pub mStrokeOpacity: f32, - pub mClipRule: root::mozilla::StyleFillRule, - pub mColorInterpolation: u8, - pub mColorInterpolationFilters: u8, - pub mFillRule: root::mozilla::StyleFillRule, - pub mPaintOrder: u8, - pub mShapeRendering: u8, - pub mStrokeLinecap: u8, - pub mStrokeLinejoin: u8, - pub mTextAnchor: u8, - pub mContextPropsBits: u8, - pub mContextFlags: u8, - } - pub const nsStyleSVG_FILL_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_MASK: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_MASK; - pub const nsStyleSVG_STROKE_DASHARRAY_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHARRAY_CONTEXT; - pub const nsStyleSVG_STROKE_DASHOFFSET_CONTEXT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_DASHOFFSET_CONTEXT; - pub const nsStyleSVG_STROKE_WIDTH_CONTEXT: root::nsStyleSVG__bindgen_ty_1 - = - nsStyleSVG__bindgen_ty_1::STROKE_WIDTH_CONTEXT; - pub const nsStyleSVG_FILL_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::FILL_OPACITY_SOURCE_SHIFT; - pub const nsStyleSVG_STROKE_OPACITY_SOURCE_SHIFT: - root::nsStyleSVG__bindgen_ty_1 = - nsStyleSVG__bindgen_ty_1::STROKE_OPACITY_SOURCE_SHIFT; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsStyleSVG__bindgen_ty_1 { - FILL_OPACITY_SOURCE_MASK = 3, - STROKE_OPACITY_SOURCE_MASK = 12, - STROKE_DASHARRAY_CONTEXT = 16, - STROKE_DASHOFFSET_CONTEXT = 32, - STROKE_WIDTH_CONTEXT = 64, - 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 ! ( - "Size of: " , stringify ! ( nsStyleSVG ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( nsStyleSVG ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mFill as * const _ - as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mFill ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStroke as * const _ - as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStroke ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerEnd as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mMarkerEnd ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerMid as * - const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mMarkerMid ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mMarkerStart as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mMarkerStart ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDasharray as - * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeDasharray ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mContextProps as * - const _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mContextProps ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeDashoffset as - * const _ as usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeDashoffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeWidth as * - const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeWidth ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mFillOpacity as * - const _ as usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mFillOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeMiterlimit as - * const _ as usize } , 108usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeMiterlimit ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeOpacity as * - const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mClipRule as * const - _ as usize } , 116usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mClipRule ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mColorInterpolation - as * const _ as usize } , 117usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mColorInterpolation ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . - mColorInterpolationFilters as * const _ as usize } , - 118usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mColorInterpolationFilters ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mFillRule as * const - _ as usize } , 119usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mFillRule ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mPaintOrder as * - const _ as usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mPaintOrder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mShapeRendering as * - const _ as usize } , 121usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mShapeRendering ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinecap as * - const _ as usize } , 122usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeLinecap ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mStrokeLinejoin as * - const _ as usize } , 123usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mStrokeLinejoin ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mTextAnchor as * - const _ as usize } , 124usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mTextAnchor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mContextPropsBits as - * const _ as usize } , 125usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mContextPropsBits ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVG ) ) . mContextFlags as * - const _ as usize } , 126usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVG ) , "::" - , stringify ! ( mContextFlags ) )); - } - #[repr(C)] - #[derive(Debug)] pub struct nsStyleFilter { pub mType: u32, pub mFilterParameter: root::nsStyleCoord, @@ -36226,149 +36610,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStyleFilter ) , "::" , stringify ! ( mFilterParameter ) )); } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleSVGReset { - pub mMask: root::nsStyleImageLayers, - pub mClipPath: root::mozilla::StyleShapeSource, - pub mStopColor: root::nscolor, - pub mFloodColor: root::nscolor, - pub mLightingColor: root::nscolor, - pub mStopOpacity: f32, - pub mFloodOpacity: f32, - pub mDominantBaseline: u8, - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleSVGReset ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleSVGReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mMask as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mMask ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mClipPath as * - const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mClipPath ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopColor as * - const _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mStopColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodColor as - * const _ as usize } , 172usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mFloodColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mLightingColor - as * const _ as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mLightingColor ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mStopOpacity as - * const _ as usize } , 180usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mStopOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mFloodOpacity - as * const _ as usize } , 184usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mFloodOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . - mDominantBaseline as * const _ as usize } , 188usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mDominantBaseline ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mVectorEffect - as * const _ as usize } , 189usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mVectorEffect ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleSVGReset ) ) . mMaskType as * - const _ as usize } , 190usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleSVGReset ) , - "::" , stringify ! ( mMaskType ) )); - } - #[repr(C)] - #[derive(Debug)] - 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 , - concat ! ( "Size of: " , stringify ! ( nsStyleVariables ) - )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( nsStyleVariables ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleVariables ) ) . mVariables as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleVariables ) - , "::" , stringify ! ( mVariables ) )); - } - #[repr(C)] - #[derive(Debug)] - pub struct nsStyleEffects { - pub mFilters: root::nsTArray, - pub mBoxShadow: root::RefPtr, - pub mClip: root::nsRect, - pub mOpacity: f32, - 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 - ! ( "Size of: " , stringify ! ( nsStyleEffects ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsStyleEffects ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mFilters as * - const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mFilters ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mBoxShadow as * - const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mBoxShadow ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mClip as * const - _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mClip ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mOpacity as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mOpacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mClipFlags as * - const _ as usize } , 36usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mClipFlags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleEffects ) ) . mMixBlendMode as - * const _ as usize } , 37usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleEffects ) , - "::" , stringify ! ( mMixBlendMode ) )); - } /** * These *_Simple types are used to map Gecko types to layout-equivalent but * simpler Rust types, to aid Rust binding generation. @@ -38171,7 +38412,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_186813_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_187138_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38180,7 +38421,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_186849_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_187174_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38563,7 +38804,40 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_69() { + fn __bindgen_test_layout_already_AddRefed_instantiation_69() { + 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_70() { + 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_71() { + 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_72() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38574,7 +38848,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_70() { + fn __bindgen_test_layout_TErrorResult_instantiation_73() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38585,7 +38859,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_71() { + fn __bindgen_test_layout_TErrorResult_instantiation_74() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38596,7 +38870,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_72() { + fn __bindgen_test_layout_already_AddRefed_instantiation_75() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38607,7 +38881,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_73() { + fn __bindgen_test_layout_Handle_instantiation_76() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38618,7 +38892,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_74() { + fn __bindgen_test_layout_MutableHandle_instantiation_77() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38629,7 +38903,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_75() { + fn __bindgen_test_layout_Handle_instantiation_78() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38640,7 +38914,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_76() { + fn __bindgen_test_layout_nsTArray_instantiation_79() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38651,39 +38925,6 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_77() { - 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_78() { - 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_79() { - 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_80() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -38695,7 +38936,40 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_81() { + fn __bindgen_test_layout_RefPtr_instantiation_81() { + 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_82() { + 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_83() { + 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_84() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38706,7 +38980,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_82() { + fn __bindgen_test_layout_already_AddRefed_instantiation_85() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38717,7 +38991,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_83() { + fn __bindgen_test_layout_already_AddRefed_instantiation_86() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38728,7 +39002,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_84() { + fn __bindgen_test_layout_Handle_instantiation_87() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38739,7 +39013,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_85() { + fn __bindgen_test_layout_MutableHandle_instantiation_88() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38750,7 +39024,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_86() { + fn __bindgen_test_layout_MutableHandle_instantiation_89() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38761,7 +39035,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_87() { + fn __bindgen_test_layout_DeletePolicy_instantiation_90() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38772,7 +39046,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_88() { + fn __bindgen_test_layout_UniquePtr_instantiation_91() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38783,7 +39057,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_89() { + fn __bindgen_test_layout_DeletePolicy_instantiation_92() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38794,7 +39068,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_90() { + fn __bindgen_test_layout_UniquePtr_instantiation_93() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38805,7 +39079,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_91() { + fn __bindgen_test_layout_DeletePolicy_instantiation_94() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38816,7 +39090,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_92() { + fn __bindgen_test_layout_UniquePtr_instantiation_95() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38827,7 +39101,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_93() { + fn __bindgen_test_layout_DeletePolicy_instantiation_96() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38838,7 +39112,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_94() { + fn __bindgen_test_layout_UniquePtr_instantiation_97() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38849,39 +39123,6 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_95() { - 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_96() { - 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_97() { - 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_98() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -38904,7 +39145,18 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_100() { + fn __bindgen_test_layout_iterator_instantiation_100() { + 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_101() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38915,7 +39167,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_101() { + fn __bindgen_test_layout_UniquePtr_instantiation_102() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38926,7 +39178,29 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_102() { + fn __bindgen_test_layout_DeletePolicy_instantiation_103() { + 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_104() { + 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_105() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38937,7 +39211,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_103() { + fn __bindgen_test_layout_Handle_instantiation_106() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38948,7 +39222,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_104() { + fn __bindgen_test_layout_MutableHandle_instantiation_107() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38959,7 +39233,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_105() { + fn __bindgen_test_layout_nsTArray_instantiation_108() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38970,7 +39244,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_106() { + fn __bindgen_test_layout_nsTArray_instantiation_109() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38981,7 +39255,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_107() { + fn __bindgen_test_layout_Heap_instantiation_110() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38992,7 +39266,7 @@ pub mod root { root::JS::Heap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_108() { + fn __bindgen_test_layout_Heap_instantiation_111() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39003,7 +39277,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_109() { + fn __bindgen_test_layout_TenuredHeap_instantiation_112() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39014,7 +39288,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_110() { + fn __bindgen_test_layout_already_AddRefed_instantiation_113() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39025,7 +39299,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_111() { + fn __bindgen_test_layout_NotNull_instantiation_114() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39038,7 +39312,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_112() { + fn __bindgen_test_layout_nsTArray_instantiation_115() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39051,7 +39325,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_113() { + fn __bindgen_test_layout_RefPtr_instantiation_116() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39062,44 +39336,44 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_114() { - 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_115() { - 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_116() { - assert_eq!(::std::mem::size_of::>>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - assert_eq!(::std::mem::align_of::>>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray> ) - )); - } - #[test] fn __bindgen_test_layout_nsTArray_instantiation_117() { + 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_118() { + 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_119() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_120() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39110,7 +39384,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_118() { + fn __bindgen_test_layout_RefPtr_instantiation_121() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39121,7 +39395,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_119() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_122() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39132,7 +39406,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_120() { + fn __bindgen_test_layout_nsTArray_instantiation_123() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39143,7 +39417,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_121() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_124() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39154,7 +39428,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_122() { + fn __bindgen_test_layout_already_AddRefed_instantiation_125() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39165,7 +39439,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_123() { + fn __bindgen_test_layout_already_AddRefed_instantiation_126() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39176,7 +39450,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_124() { + fn __bindgen_test_layout_RefPtr_instantiation_127() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39187,7 +39461,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_125() { + fn __bindgen_test_layout_nsTArray_instantiation_128() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39198,7 +39472,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_126() { + fn __bindgen_test_layout_already_AddRefed_instantiation_129() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39209,7 +39483,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_127() { + fn __bindgen_test_layout_MutableHandle_instantiation_130() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39220,7 +39494,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_128() { + fn __bindgen_test_layout_already_AddRefed_instantiation_131() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39231,7 +39505,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_129() { + fn __bindgen_test_layout_already_AddRefed_instantiation_132() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39242,7 +39516,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + fn __bindgen_test_layout_already_AddRefed_instantiation_133() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39253,7 +39527,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_131() { + fn __bindgen_test_layout_RefPtr_instantiation_134() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39264,7 +39538,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_132() { + fn __bindgen_test_layout_Handle_instantiation_135() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39275,7 +39549,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_133() { + fn __bindgen_test_layout_already_AddRefed_instantiation_136() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39286,7 +39560,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_134() { + fn __bindgen_test_layout_already_AddRefed_instantiation_137() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39297,7 +39571,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_135() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_138() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39308,7 +39582,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_136() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_139() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39319,7 +39593,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_137() { + fn __bindgen_test_layout_RefPtr_instantiation_140() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39330,7 +39604,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_138() { + fn __bindgen_test_layout_nsTArray_instantiation_141() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39343,7 +39617,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_139() { + fn __bindgen_test_layout_nsTArray_instantiation_142() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39354,7 +39628,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_140() { + fn __bindgen_test_layout_Handle_instantiation_143() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39365,7 +39639,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_141() { + fn __bindgen_test_layout_DefaultDelete_instantiation_144() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39376,7 +39650,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_142() { + fn __bindgen_test_layout_UniquePtr_instantiation_145() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39387,7 +39661,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_143() { + fn __bindgen_test_layout_already_AddRefed_instantiation_146() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39398,7 +39672,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_144() { + fn __bindgen_test_layout_nsTArray_instantiation_147() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39409,7 +39683,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_145() { + fn __bindgen_test_layout_Handle_instantiation_148() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39420,7 +39694,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_146() { + fn __bindgen_test_layout_Handle_instantiation_149() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39431,41 +39705,6 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[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_nsRefPtrHashKey_instantiation_148() { - 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_149() { - 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_150() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -39477,7 +39716,42 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_151() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_151() { + 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_152() { + 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_153() { + 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_154() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39488,7 +39762,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_152() { + fn __bindgen_test_layout_nsTArray_instantiation_155() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39499,7 +39773,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_153() { + fn __bindgen_test_layout_already_AddRefed_instantiation_156() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39510,7 +39784,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_154() { + fn __bindgen_test_layout_already_AddRefed_instantiation_157() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39521,7 +39795,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_155() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_158() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -39530,7 +39804,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_156() { + fn __bindgen_test_layout_already_AddRefed_instantiation_159() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39541,7 +39815,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_157() { + fn __bindgen_test_layout_nsTArray_instantiation_160() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39552,7 +39826,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_158() { + fn __bindgen_test_layout_NotNull_instantiation_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39565,7 +39839,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_159() { + fn __bindgen_test_layout_NotNull_instantiation_162() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39578,7 +39852,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_160() { + fn __bindgen_test_layout_already_AddRefed_instantiation_163() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39589,7 +39863,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_161() { + fn __bindgen_test_layout_DefaultDelete_instantiation_164() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39600,7 +39874,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_162() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_165() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39611,7 +39885,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_163() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_166() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39622,7 +39896,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_164() { + fn __bindgen_test_layout_nsTArray_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39633,7 +39907,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_165() { + fn __bindgen_test_layout_already_AddRefed_instantiation_168() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39644,39 +39918,6 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_166() { - 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_167() { - 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_168() { - 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_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -39688,7 +39929,40 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_170() { + fn __bindgen_test_layout_already_AddRefed_instantiation_170() { + 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_171() { + 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_172() { + 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_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39699,7 +39973,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_171() { + fn __bindgen_test_layout_Handle_instantiation_174() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39710,7 +39984,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_172() { + fn __bindgen_test_layout_Handle_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39721,7 +39995,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_173() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_176() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39732,7 +40006,7 @@ pub mod root { [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_174() { + fn __bindgen_test_layout_already_AddRefed_instantiation_177() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39743,7 +40017,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_175() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_178() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39754,7 +40028,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_176() { + fn __bindgen_test_layout_Handle_instantiation_179() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39765,7 +40039,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_177() { + fn __bindgen_test_layout_nsTArray_instantiation_180() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39776,7 +40050,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_178() { + fn __bindgen_test_layout_Handle_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39787,7 +40061,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_179() { + fn __bindgen_test_layout_OwningNonNull_instantiation_182() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39798,7 +40072,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_180() { + fn __bindgen_test_layout_OwningNonNull_instantiation_183() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39809,7 +40083,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_181() { + fn __bindgen_test_layout_OwningNonNull_instantiation_184() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39820,7 +40094,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_182() { + fn __bindgen_test_layout_Handle_instantiation_185() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39831,7 +40105,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_183() { + fn __bindgen_test_layout_Handle_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39842,7 +40116,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_184() { + fn __bindgen_test_layout_Handle_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39853,7 +40127,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_185() { + fn __bindgen_test_layout_MutableHandle_instantiation_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39864,7 +40138,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_186() { + fn __bindgen_test_layout_Handle_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39875,7 +40149,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_187() { + fn __bindgen_test_layout_MutableHandle_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39886,40 +40160,29 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_188() { - 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_189() { - 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_190() { - 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_191() { + 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_192() { + 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_193() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39930,7 +40193,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_192() { + fn __bindgen_test_layout_Handle_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39941,7 +40204,18 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_193() { + 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_MutableHandle_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39952,7 +40226,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_194() { + fn __bindgen_test_layout_RefPtr_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39963,7 +40237,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_195() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_198() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39974,7 +40248,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_196() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39985,7 +40259,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_197() { + fn __bindgen_test_layout_already_AddRefed_instantiation_200() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39996,7 +40270,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_198() { + fn __bindgen_test_layout_already_AddRefed_instantiation_201() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40007,7 +40281,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_199() { + fn __bindgen_test_layout_NotNull_instantiation_202() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40020,7 +40294,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_200() { + fn __bindgen_test_layout_already_AddRefed_instantiation_203() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40031,7 +40305,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_201() { + fn __bindgen_test_layout_already_AddRefed_instantiation_204() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40042,7 +40316,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_202() { + fn __bindgen_test_layout_already_AddRefed_instantiation_205() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40053,7 +40327,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_203() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_206() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40064,7 +40338,7 @@ pub mod root { [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_204() { + fn __bindgen_test_layout_MutableHandle_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40075,7 +40349,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_205() { + fn __bindgen_test_layout_MutableHandle_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40086,7 +40360,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_206() { + fn __bindgen_test_layout_already_AddRefed_instantiation_209() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40097,7 +40371,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_207() { + fn __bindgen_test_layout_DefaultDelete_instantiation_210() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40108,7 +40382,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_208() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_211() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40119,7 +40393,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_209() { + fn __bindgen_test_layout_Rooted_instantiation_212() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40130,7 +40404,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_210() { + fn __bindgen_test_layout_Rooted_instantiation_213() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40141,7 +40415,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_211() { + fn __bindgen_test_layout_already_AddRefed_instantiation_214() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40152,7 +40426,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_212() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_215() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40163,7 +40437,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_213() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_216() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40174,7 +40448,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_214() { + fn __bindgen_test_layout_NotNull_instantiation_217() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40187,7 +40461,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_215() { + fn __bindgen_test_layout_nsTArray_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40198,7 +40472,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_216() { + fn __bindgen_test_layout_Handle_instantiation_219() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40209,7 +40483,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_217() { + fn __bindgen_test_layout_MutableHandle_instantiation_220() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40220,39 +40494,6 @@ pub mod root { root::JS::MutableHandle ) )); } #[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_MutableHandle_instantiation_219() { - 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_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_Handle_instantiation_221() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40264,7 +40505,40 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_222() { + fn __bindgen_test_layout_MutableHandle_instantiation_222() { + 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_223() { + 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_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_RefPtr_instantiation_225() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40275,41 +40549,6 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_223() { - 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_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_RefPtr_instantiation_226() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40321,7 +40560,42 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_227() { + 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_already_AddRefed_instantiation_230() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40332,7 +40606,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_228() { + fn __bindgen_test_layout_already_AddRefed_instantiation_231() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40343,7 +40617,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_229() { + fn __bindgen_test_layout_Handle_instantiation_232() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40354,7 +40628,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_230() { + fn __bindgen_test_layout_nsTArray_instantiation_233() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40365,7 +40639,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_231() { + fn __bindgen_test_layout_RefPtr_instantiation_234() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40378,7 +40652,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_232() { + fn __bindgen_test_layout_nsTArray_instantiation_235() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40391,7 +40665,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_233() { + fn __bindgen_test_layout_RefPtr_instantiation_236() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40404,7 +40678,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_234() { + fn __bindgen_test_layout_UniquePtr_instantiation_237() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40415,7 +40689,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_235() { + fn __bindgen_test_layout_nsTArray_instantiation_238() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40426,7 +40700,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_236() { + fn __bindgen_test_layout_Handle_instantiation_239() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40437,7 +40711,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_237() { + fn __bindgen_test_layout_MutableHandle_instantiation_240() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40448,7 +40722,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_238() { + fn __bindgen_test_layout_Handle_instantiation_241() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40459,7 +40733,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_239() { + fn __bindgen_test_layout_MutableHandle_instantiation_242() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40470,7 +40744,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_240() { + fn __bindgen_test_layout_already_AddRefed_instantiation_243() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40481,7 +40755,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_241() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_244() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40492,7 +40766,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_242() { + fn __bindgen_test_layout_OwningNonNull_instantiation_245() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40505,7 +40779,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_243() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_246() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40516,7 +40790,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_244() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40527,7 +40801,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_245() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_248() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40538,7 +40812,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_246() { + fn __bindgen_test_layout_DefaultDelete_instantiation_249() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40549,7 +40823,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_247() { + fn __bindgen_test_layout_already_AddRefed_instantiation_250() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40560,7 +40834,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_248() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_251() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40571,39 +40845,6 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_249() { - 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_250() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_251() { - 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_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40616,136 +40857,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_253() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_254() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_255() { - 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_256() { - 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_257() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_258() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_259() { - 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_260() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_261() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_262() { - assert_eq!(::std::mem::size_of::>() , - 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - assert_eq!(::std::mem::align_of::>() , - 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray<::nsstring::nsStringRepr> ) )); - } - #[test] - fn __bindgen_test_layout_nsTArray_instantiation_263() { - 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_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 ! ( @@ -40756,40 +40867,51 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_266() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_Maybe_instantiation_267() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_268() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_254() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_269() { + fn __bindgen_test_layout_already_AddRefed_instantiation_255() { + 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_256() { + 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_257() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40800,7 +40922,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_270() { + fn __bindgen_test_layout_DefaultDelete_instantiation_259() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40811,15 +40933,134 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_271() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_UniquePtr_instantiation_260() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_261() { + 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_262() { + 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_263() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_264() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_265() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_266() { + 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_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_Maybe_instantiation_268() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_Maybe_instantiation_269() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_270() { + 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_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_DefaultDelete_instantiation_272() { @@ -40844,7 +41085,29 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_274() { + 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_UniquePtr_instantiation_275() { + 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_276() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40855,7 +41118,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_275() { + fn __bindgen_test_layout_Maybe_instantiation_277() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40866,7 +41129,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_276() { + fn __bindgen_test_layout_DefaultDelete_instantiation_278() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40877,7 +41140,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_277() { + fn __bindgen_test_layout_DefaultDelete_instantiation_279() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40888,7 +41151,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_278() { + fn __bindgen_test_layout_pair_instantiation_280() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40899,7 +41162,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_279() { + fn __bindgen_test_layout_nsTArray_instantiation_281() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -40914,18 +41177,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_280() { - 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_281() { + fn __bindgen_test_layout_nsTArray_instantiation_282() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40936,17 +41188,6 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_282() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] fn __bindgen_test_layout_nsTArray_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40958,15 +41199,15 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_284() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( + fn __bindgen_test_layout_nsTArray_instantiation_284() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); + root::nsTArray ) )); } #[test] fn __bindgen_test_layout_RefPtr_instantiation_285() { From d1c235d7b70b8a0273dd0e4eb422256267faeb1c Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:34 -0700 Subject: [PATCH 03/16] stylo: Add RawOffsetArc --- components/servo_arc/lib.rs | 91 +++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index ff4074767f8..dacd0cebd2a 100644 --- a/components/servo_arc/lib.rs +++ b/components/servo_arc/lib.rs @@ -637,6 +637,8 @@ impl ThinArc { let result = f(&transient); // Forget the transient Arc to leave the refcount untouched. + // XXXManishearth this can be removed when unions stabilize, + // since then NoDrop becomes zero overhead mem::forget(transient); // Forward the result. @@ -700,6 +702,95 @@ impl PartialEq for ThinArc impl Eq for ThinArc {} +/// An Arc, except it holds a pointer to the T instead of to the +/// entire ArcInner. +/// +/// ```text +/// Arc RawOffsetArc +/// | | +/// v v +/// --------------------- +/// | RefCount | T (data) | [ArcInner] +/// --------------------- +/// ``` +/// +/// This means that this is a direct pointer to +/// its contained data (and can be read from by both C++ and Rust), +/// but we can also convert it to a "regular" Arc by removing the offset +pub struct RawOffsetArc { + ptr: NonZeroPtrMut, +} + +unsafe impl Send for RawOffsetArc {} +unsafe impl Sync for RawOffsetArc {} + +impl Deref for RawOffsetArc { + type Target = T; + fn deref(&self) -> &Self::Target { + unsafe { &*self.ptr.ptr() } + } +} + +impl Clone for RawOffsetArc { + fn clone(&self) -> Self { + RawOffsetArc::with_arc(self, |a| Arc::into_raw_offset(a.clone())) + } +} + +impl Drop for RawOffsetArc { + fn drop(&mut self) { + let _ = Arc::from_raw_offset(RawOffsetArc { ptr: self.ptr.clone() }); + } +} + + +impl fmt::Debug for RawOffsetArc { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fmt::Debug::fmt(&**self, f) + } +} + +impl RawOffsetArc { + /// Temporarily converts |self| into a bonafide Arc and exposes it to the + /// provided callback. The refcount is not modified. + #[inline(always)] + pub fn with_arc(&self, f: F) -> U + where F: FnOnce(&Arc) -> U + { + // Synthesize transient Arc, which never touches the refcount of the ArcInner. + let transient = unsafe { NoDrop::new(Arc::from_raw(self.ptr.ptr())) }; + + // Expose the transient Arc to the callback, which may clone it if it wants. + let result = f(&transient); + + // Forget the transient Arc to leave the refcount untouched. + // XXXManishearth this can be removed when unions stabilize, + // since then NoDrop becomes zero overhead + mem::forget(transient); + + // Forward the result. + result + } +} + +impl Arc { + /// Converts an Arc into a RawOffsetArc. This consumes the Arc, so the refcount + /// is not modified. + pub fn into_raw_offset(a: Self) -> RawOffsetArc { + RawOffsetArc { + ptr: NonZeroPtrMut::new(Arc::into_raw(a) as *mut T), + } + } + + /// Converts a RawOffsetArc into an Arc. This consumes the RawOffsetArc, so the refcount + /// is not modified. + pub fn from_raw_offset(a: RawOffsetArc) -> Self { + let ptr = a.ptr.ptr(); + mem::forget(a); + unsafe { Arc::from_raw(ptr) } + } +} + #[cfg(test)] mod tests { use std::clone::Clone; From d52f04d105d46ec8d9ca99e15694a67a43bd6a05 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:37 -0700 Subject: [PATCH 04/16] stylo: Use RawOffsetArc in ComputedValues --- .../style/gecko/generated/structs_debug.rs | 53 ++++++++++--------- .../style/gecko/generated/structs_release.rs | 53 ++++++++++--------- 2 files changed, 54 insertions(+), 52 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 04e2dab249c..ef3f7dbe87e 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -13,6 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -7615,30 +7616,30 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct ServoComputedValues2 { - pub Font: *mut root::nsStyleFont, - pub Color: *mut root::nsStyleColor, - pub List: *mut root::nsStyleList, - pub Text: *mut root::nsStyleText, - pub Visibility: *mut root::nsStyleVisibility, - pub UserInterface: *mut root::nsStyleUserInterface, - pub TableBorder: *mut root::nsStyleTableBorder, - pub SVG: *mut root::nsStyleSVG, - pub Variables: *mut root::nsStyleVariables, - pub Background: *mut root::nsStyleBackground, - pub Position: *mut root::nsStylePosition, - pub TextReset: *mut root::nsStyleTextReset, - pub Display: *mut root::nsStyleDisplay, - pub Content: *mut root::nsStyleContent, - pub UIReset: *mut root::nsStyleUIReset, - pub Table: *mut root::nsStyleTable, - pub Margin: *mut root::nsStyleMargin, - pub Padding: *mut root::nsStylePadding, - pub Border: *mut root::nsStyleBorder, - pub Outline: *mut root::nsStyleOutline, - pub XUL: *mut root::nsStyleXUL, - pub SVGReset: *mut root::nsStyleSVGReset, - pub Column: *mut root::nsStyleColumn, - pub Effects: *mut root::nsStyleEffects, + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Variables: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, @@ -39048,7 +39049,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189479_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_189482_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39057,7 +39058,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189515_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_189518_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index f2249e141ec..4fde7c30529 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -13,6 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -7467,30 +7468,30 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct ServoComputedValues2 { - pub Font: *mut root::nsStyleFont, - pub Color: *mut root::nsStyleColor, - pub List: *mut root::nsStyleList, - pub Text: *mut root::nsStyleText, - pub Visibility: *mut root::nsStyleVisibility, - pub UserInterface: *mut root::nsStyleUserInterface, - pub TableBorder: *mut root::nsStyleTableBorder, - pub SVG: *mut root::nsStyleSVG, - pub Variables: *mut root::nsStyleVariables, - pub Background: *mut root::nsStyleBackground, - pub Position: *mut root::nsStylePosition, - pub TextReset: *mut root::nsStyleTextReset, - pub Display: *mut root::nsStyleDisplay, - pub Content: *mut root::nsStyleContent, - pub UIReset: *mut root::nsStyleUIReset, - pub Table: *mut root::nsStyleTable, - pub Margin: *mut root::nsStyleMargin, - pub Padding: *mut root::nsStylePadding, - pub Border: *mut root::nsStyleBorder, - pub Outline: *mut root::nsStyleOutline, - pub XUL: *mut root::nsStyleXUL, - pub SVGReset: *mut root::nsStyleSVGReset, - pub Column: *mut root::nsStyleColumn, - pub Effects: *mut root::nsStyleEffects, + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Variables: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, @@ -38412,7 +38413,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187138_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_187141_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38421,7 +38422,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187174_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_187177_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); From 5d7874303793ddfe78217b83db343f7706c78ad2 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:41 -0700 Subject: [PATCH 05/16] stylo: Replace real ComputedValues with bindgenned ComputedValues2 --- components/servo_arc/lib.rs | 20 + .../style/gecko/generated/structs_debug.rs | 542 ++++++++++++++++-- .../style/gecko/generated/structs_release.rs | 542 ++++++++++++++++-- components/style/properties/gecko.mako.rs | 70 +-- .../style/properties/properties.mako.rs | 28 +- 5 files changed, 1041 insertions(+), 161 deletions(-) diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index dacd0cebd2a..6d031802961 100644 --- a/components/servo_arc/lib.rs +++ b/components/servo_arc/lib.rs @@ -771,11 +771,30 @@ impl RawOffsetArc { // Forward the result. result } + + /// If uniquely owned, provide a mutable reference + /// Else create a copy, and mutate that + pub fn make_mut(&mut self) -> &mut T where T: Clone { + unsafe { + // extract the RawOffsetArc as an owned variable + let this = ptr::read(self); + // treat it as a real Arc + let mut arc = Arc::from_raw_offset(this); + // obtain the mutable reference. Cast away the lifetime + // This may mutate `arc` + let ret = Arc::make_mut(&mut arc) as *mut _; + // Store the possibly-mutated arc back inside, after converting + // it to a RawOffsetArc again + ptr::write(self, Arc::into_raw_offset(arc)); + &mut *ret + } + } } impl Arc { /// Converts an Arc into a RawOffsetArc. This consumes the Arc, so the refcount /// is not modified. + #[inline] pub fn into_raw_offset(a: Self) -> RawOffsetArc { RawOffsetArc { ptr: NonZeroPtrMut::new(Arc::into_raw(a) as *mut T), @@ -784,6 +803,7 @@ impl Arc { /// Converts a RawOffsetArc into an Arc. This consumes the RawOffsetArc, so the refcount /// is not modified. + #[inline] pub fn from_raw_offset(a: RawOffsetArc) -> Self { let ptr = a.ptr.ptr(); mem::forget(a); diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index ef3f7dbe87e..9c3c06c4fa9 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -12,7 +12,9 @@ pub type ServoNodeData = AtomicRefCell; pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; +pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] @@ -7603,6 +7605,429 @@ pub mod root { FirstLetterContinuation = 1, PlaceholderFrame = 2, } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoFont { + pub gecko: root::nsStyleFont, + } + #[test] + fn bindgen_test_layout_GeckoFont() { + assert_eq!(::std::mem::size_of::() , 120usize , concat + ! ( "Size of: " , stringify ! ( GeckoFont ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( GeckoFont ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoFont ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoFont ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoColor { + pub gecko: root::nsStyleColor, + } + #[test] + fn bindgen_test_layout_GeckoColor() { + assert_eq!(::std::mem::size_of::() , 4usize , concat ! + ( "Size of: " , stringify ! ( GeckoColor ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat + ! ( "Alignment of " , stringify ! ( GeckoColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoColor ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoColor ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoList { + pub gecko: root::nsStyleList, + } + #[test] + fn bindgen_test_layout_GeckoList() { + assert_eq!(::std::mem::size_of::() , 48usize , concat ! + ( "Size of: " , stringify ! ( GeckoList ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( GeckoList ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoList ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoList ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoText { + pub gecko: root::nsStyleText, + } + #[test] + fn bindgen_test_layout_GeckoText() { + assert_eq!(::std::mem::size_of::() , 160usize , concat + ! ( "Size of: " , stringify ! ( GeckoText ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( GeckoText ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoText ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoText ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoVisibility { + pub gecko: root::nsStyleVisibility, + } + #[test] + fn bindgen_test_layout_GeckoVisibility() { + assert_eq!(::std::mem::size_of::() , 7usize , + concat ! ( + "Size of: " , stringify ! ( GeckoVisibility ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoVisibility ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoVisibility + ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoUserInterface { + pub gecko: root::nsStyleUserInterface, + } + #[test] + fn bindgen_test_layout_GeckoUserInterface() { + assert_eq!(::std::mem::size_of::() , 24usize , + concat ! ( + "Size of: " , stringify ! ( GeckoUserInterface ) )); + assert_eq! (::std::mem::align_of::() , 8usize + , concat ! ( + "Alignment of " , stringify ! ( GeckoUserInterface ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoUserInterface ) ) . gecko as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + GeckoUserInterface ) , "::" , stringify ! ( gecko ) + )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoTableBorder { + pub gecko: root::nsStyleTableBorder, + } + #[test] + fn bindgen_test_layout_GeckoTableBorder() { + assert_eq!(::std::mem::size_of::() , 12usize , + concat ! ( + "Size of: " , stringify ! ( GeckoTableBorder ) )); + assert_eq! (::std::mem::align_of::() , 4usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoTableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoTableBorder ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + GeckoTableBorder ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoSVG { + pub gecko: root::nsStyleSVG, + } + #[test] + fn bindgen_test_layout_GeckoSVG() { + assert_eq!(::std::mem::size_of::() , 128usize , concat ! + ( "Size of: " , stringify ! ( GeckoSVG ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( GeckoSVG ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoSVG ) ) . gecko as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoSVG ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoBackground { + pub gecko: root::nsStyleBackground, + } + #[test] + fn bindgen_test_layout_GeckoBackground() { + assert_eq!(::std::mem::size_of::() , 160usize , + concat ! ( + "Size of: " , stringify ! ( GeckoBackground ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoBackground ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoBackground ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoBackground + ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoPosition { + pub gecko: root::nsStylePosition, + } + #[test] + fn bindgen_test_layout_GeckoPosition() { + assert_eq!(::std::mem::size_of::() , 520usize , + concat ! ( "Size of: " , stringify ! ( GeckoPosition ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoPosition ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoPosition ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoTextReset { + pub gecko: root::nsStyleTextReset, + } + #[test] + fn bindgen_test_layout_GeckoTextReset() { + assert_eq!(::std::mem::size_of::() , 80usize , + concat ! ( "Size of: " , stringify ! ( GeckoTextReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoTextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoTextReset ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoTextReset + ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoDisplay { + pub gecko: root::nsStyleDisplay, + } + #[test] + fn bindgen_test_layout_GeckoDisplay() { + assert_eq!(::std::mem::size_of::() , 416usize , + concat ! ( "Size of: " , stringify ! ( GeckoDisplay ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoDisplay ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoDisplay ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoContent { + pub gecko: root::nsStyleContent, + } + #[test] + fn bindgen_test_layout_GeckoContent() { + assert_eq!(::std::mem::size_of::() , 24usize , + concat ! ( "Size of: " , stringify ! ( GeckoContent ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoContent ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoContent ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoUIReset { + pub gecko: root::nsStyleUIReset, + } + #[test] + fn bindgen_test_layout_GeckoUIReset() { + assert_eq!(::std::mem::size_of::() , 56usize , + concat ! ( "Size of: " , stringify ! ( GeckoUIReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoUIReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoUIReset ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoUIReset ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoTable { + pub gecko: root::nsStyleTable, + } + #[test] + fn bindgen_test_layout_GeckoTable() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( "Size of: " , stringify ! ( GeckoTable ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat + ! ( "Alignment of " , stringify ! ( GeckoTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoTable ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoTable ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoMargin { + pub gecko: root::nsStyleMargin, + } + #[test] + fn bindgen_test_layout_GeckoMargin() { + assert_eq!(::std::mem::size_of::() , 40usize , concat + ! ( "Size of: " , stringify ! ( GeckoMargin ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoMargin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoMargin ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoMargin ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoPadding { + pub gecko: root::nsStylePadding, + } + #[test] + fn bindgen_test_layout_GeckoPadding() { + assert_eq!(::std::mem::size_of::() , 40usize , + concat ! ( "Size of: " , stringify ! ( GeckoPadding ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoPadding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoPadding ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoPadding ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoBorder { + pub gecko: root::nsStyleBorder, + } + #[test] + fn bindgen_test_layout_GeckoBorder() { + assert_eq!(::std::mem::size_of::() , 312usize , + concat ! ( "Size of: " , stringify ! ( GeckoBorder ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoBorder ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoBorder ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoOutline { + pub gecko: root::nsStyleOutline, + } + #[test] + fn bindgen_test_layout_GeckoOutline() { + assert_eq!(::std::mem::size_of::() , 104usize , + concat ! ( "Size of: " , stringify ! ( GeckoOutline ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoOutline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoOutline ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoOutline ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoXUL { + pub gecko: root::nsStyleXUL, + } + #[test] + fn bindgen_test_layout_GeckoXUL() { + assert_eq!(::std::mem::size_of::() , 16usize , concat ! + ( "Size of: " , stringify ! ( GeckoXUL ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( GeckoXUL ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoXUL ) ) . gecko as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoXUL ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoSVGReset { + pub gecko: root::nsStyleSVGReset, + } + #[test] + fn bindgen_test_layout_GeckoSVGReset() { + assert_eq!(::std::mem::size_of::() , 192usize , + concat ! ( "Size of: " , stringify ! ( GeckoSVGReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoSVGReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoSVGReset ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoSVGReset ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoColumn { + pub gecko: root::nsStyleColumn, + } + #[test] + fn bindgen_test_layout_GeckoColumn() { + assert_eq!(::std::mem::size_of::() , 64usize , concat + ! ( "Size of: " , stringify ! ( GeckoColumn ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoColumn ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoColumn ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoColumn ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoEffects { + pub gecko: root::nsStyleEffects, + } + #[test] + fn bindgen_test_layout_GeckoEffects() { + assert_eq!(::std::mem::size_of::() , 40usize , + concat ! ( "Size of: " , stringify ! ( GeckoEffects ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoEffects ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoEffects ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoEffects ) + , "::" , stringify ! ( gecko ) )); + } /** * We want C++ to be abe to read the style struct fields of ComputedValues * so we define this type on the C++ side and use the bindgenned version @@ -7616,39 +8041,46 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct ServoComputedValues2 { - pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, - pub List: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Variables: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, - pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, + /// The rule node representing the ordered list of rules matched for this + /// node. Can be None for default values and text nodes. This is + /// essentially an optimization to avoid referencing the root rule node. + pub rules: ::gecko_bindings::structs::ServoRuleNode, + /// The element's computed values if visited, only computed if there's a + /// relevant link for this element. A element's "relevant link" is the + /// element being matched if it is a link or the nearest ancestor link. pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, + pub flags: ::gecko_bindings::structs::ServoComputedValueFlags, } #[test] fn bindgen_test_layout_ServoComputedValues2() { assert_eq!(::std::mem::size_of::() , - 224usize , concat ! ( + 232usize , concat ! ( "Size of: " , stringify ! ( ServoComputedValues2 ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( @@ -7707,120 +8139,112 @@ pub mod root { )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Variables as * const _ as usize } , 64usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - Variables ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Background as * const _ as usize } , 72usize , concat + Background as * const _ as usize } , 64usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Background ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Position as * const _ as usize } , 80usize , concat ! + Position as * const _ as usize } , 72usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Position ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - TextReset as * const _ as usize } , 88usize , concat ! + TextReset as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( TextReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Display as * const _ as usize } , 96usize , concat ! ( + Display as * const _ as usize } , 88usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Display ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Content as * const _ as usize } , 104usize , concat ! - ( + Content as * const _ as usize } , 96usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Content ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - UIReset as * const _ as usize } , 112usize , concat ! + UIReset as * const _ as usize } , 104usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( UIReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Table - as * const _ as usize } , 120usize , concat ! ( + as * const _ as usize } , 112usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Table ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Margin - as * const _ as usize } , 128usize , concat ! ( + as * const _ as usize } , 120usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Margin ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Padding as * const _ as usize } , 136usize , concat ! + Padding as * const _ as usize } , 128usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Padding ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Border - as * const _ as usize } , 144usize , concat ! ( + as * const _ as usize } , 136usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Border ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Outline as * const _ as usize } , 152usize , concat ! + Outline as * const _ as usize } , 144usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Outline ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . XUL as - * const _ as usize } , 160usize , concat ! ( + * const _ as usize } , 152usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( XUL ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - SVGReset as * const _ as usize } , 168usize , concat ! + SVGReset as * const _ as usize } , 160usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( SVGReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Column - as * const _ as usize } , 176usize , concat ! ( + as * const _ as usize } , 168usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Column ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Effects as * const _ as usize } , 184usize , concat ! + Effects as * const _ as usize } , 176usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Effects ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - custom_properties as * const _ as usize } , 192usize , + custom_properties as * const _ as usize } , 184usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( custom_properties ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - writing_mode as * const _ as usize } , 200usize , + writing_mode as * const _ as usize } , 192usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( @@ -7828,10 +8252,16 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . font_computation_data as * const _ as usize } , - 204usize , concat ! ( + 196usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( font_computation_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . rules + as * const _ as usize } , 208usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( rules ) + )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . visited_style as * const _ as usize } , 216usize , @@ -7839,6 +8269,12 @@ pub mod root { "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( visited_style ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . flags + as * const _ as usize } , 224usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( flags ) + )); } #[repr(u8)] /** @@ -39049,7 +39485,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189482_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_189816_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39058,7 +39494,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189518_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_189852_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 4fde7c30529..b85f5b652cf 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -12,7 +12,9 @@ pub type ServoNodeData = AtomicRefCell; pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; +pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] @@ -7455,6 +7457,429 @@ pub mod root { FirstLetterContinuation = 1, PlaceholderFrame = 2, } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoFont { + pub gecko: root::nsStyleFont, + } + #[test] + fn bindgen_test_layout_GeckoFont() { + assert_eq!(::std::mem::size_of::() , 120usize , concat + ! ( "Size of: " , stringify ! ( GeckoFont ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( GeckoFont ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoFont ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoFont ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoColor { + pub gecko: root::nsStyleColor, + } + #[test] + fn bindgen_test_layout_GeckoColor() { + assert_eq!(::std::mem::size_of::() , 4usize , concat ! + ( "Size of: " , stringify ! ( GeckoColor ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat + ! ( "Alignment of " , stringify ! ( GeckoColor ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoColor ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoColor ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoList { + pub gecko: root::nsStyleList, + } + #[test] + fn bindgen_test_layout_GeckoList() { + assert_eq!(::std::mem::size_of::() , 48usize , concat ! + ( "Size of: " , stringify ! ( GeckoList ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( GeckoList ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoList ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoList ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoText { + pub gecko: root::nsStyleText, + } + #[test] + fn bindgen_test_layout_GeckoText() { + assert_eq!(::std::mem::size_of::() , 160usize , concat + ! ( "Size of: " , stringify ! ( GeckoText ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( GeckoText ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoText ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoText ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoVisibility { + pub gecko: root::nsStyleVisibility, + } + #[test] + fn bindgen_test_layout_GeckoVisibility() { + assert_eq!(::std::mem::size_of::() , 7usize , + concat ! ( + "Size of: " , stringify ! ( GeckoVisibility ) )); + assert_eq! (::std::mem::align_of::() , 1usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoVisibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoVisibility ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoVisibility + ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoUserInterface { + pub gecko: root::nsStyleUserInterface, + } + #[test] + fn bindgen_test_layout_GeckoUserInterface() { + assert_eq!(::std::mem::size_of::() , 24usize , + concat ! ( + "Size of: " , stringify ! ( GeckoUserInterface ) )); + assert_eq! (::std::mem::align_of::() , 8usize + , concat ! ( + "Alignment of " , stringify ! ( GeckoUserInterface ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoUserInterface ) ) . gecko as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + GeckoUserInterface ) , "::" , stringify ! ( gecko ) + )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoTableBorder { + pub gecko: root::nsStyleTableBorder, + } + #[test] + fn bindgen_test_layout_GeckoTableBorder() { + assert_eq!(::std::mem::size_of::() , 12usize , + concat ! ( + "Size of: " , stringify ! ( GeckoTableBorder ) )); + assert_eq! (::std::mem::align_of::() , 4usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoTableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoTableBorder ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + GeckoTableBorder ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoSVG { + pub gecko: root::nsStyleSVG, + } + #[test] + fn bindgen_test_layout_GeckoSVG() { + assert_eq!(::std::mem::size_of::() , 128usize , concat ! + ( "Size of: " , stringify ! ( GeckoSVG ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( GeckoSVG ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoSVG ) ) . gecko as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoSVG ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoBackground { + pub gecko: root::nsStyleBackground, + } + #[test] + fn bindgen_test_layout_GeckoBackground() { + assert_eq!(::std::mem::size_of::() , 160usize , + concat ! ( + "Size of: " , stringify ! ( GeckoBackground ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoBackground ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoBackground ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoBackground + ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoPosition { + pub gecko: root::nsStylePosition, + } + #[test] + fn bindgen_test_layout_GeckoPosition() { + assert_eq!(::std::mem::size_of::() , 520usize , + concat ! ( "Size of: " , stringify ! ( GeckoPosition ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoPosition ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoPosition ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoPosition ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoTextReset { + pub gecko: root::nsStyleTextReset, + } + #[test] + fn bindgen_test_layout_GeckoTextReset() { + assert_eq!(::std::mem::size_of::() , 80usize , + concat ! ( "Size of: " , stringify ! ( GeckoTextReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoTextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoTextReset ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoTextReset + ) , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoDisplay { + pub gecko: root::nsStyleDisplay, + } + #[test] + fn bindgen_test_layout_GeckoDisplay() { + assert_eq!(::std::mem::size_of::() , 416usize , + concat ! ( "Size of: " , stringify ! ( GeckoDisplay ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoDisplay ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoDisplay ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoDisplay ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoContent { + pub gecko: root::nsStyleContent, + } + #[test] + fn bindgen_test_layout_GeckoContent() { + assert_eq!(::std::mem::size_of::() , 24usize , + concat ! ( "Size of: " , stringify ! ( GeckoContent ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoContent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoContent ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoContent ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoUIReset { + pub gecko: root::nsStyleUIReset, + } + #[test] + fn bindgen_test_layout_GeckoUIReset() { + assert_eq!(::std::mem::size_of::() , 56usize , + concat ! ( "Size of: " , stringify ! ( GeckoUIReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoUIReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoUIReset ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoUIReset ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoTable { + pub gecko: root::nsStyleTable, + } + #[test] + fn bindgen_test_layout_GeckoTable() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( "Size of: " , stringify ! ( GeckoTable ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat + ! ( "Alignment of " , stringify ! ( GeckoTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoTable ) ) . gecko as * const + _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoTable ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoMargin { + pub gecko: root::nsStyleMargin, + } + #[test] + fn bindgen_test_layout_GeckoMargin() { + assert_eq!(::std::mem::size_of::() , 40usize , concat + ! ( "Size of: " , stringify ! ( GeckoMargin ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoMargin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoMargin ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoMargin ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoPadding { + pub gecko: root::nsStylePadding, + } + #[test] + fn bindgen_test_layout_GeckoPadding() { + assert_eq!(::std::mem::size_of::() , 40usize , + concat ! ( "Size of: " , stringify ! ( GeckoPadding ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoPadding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoPadding ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoPadding ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoBorder { + pub gecko: root::nsStyleBorder, + } + #[test] + fn bindgen_test_layout_GeckoBorder() { + assert_eq!(::std::mem::size_of::() , 312usize , + concat ! ( "Size of: " , stringify ! ( GeckoBorder ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoBorder ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoBorder ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoOutline { + pub gecko: root::nsStyleOutline, + } + #[test] + fn bindgen_test_layout_GeckoOutline() { + assert_eq!(::std::mem::size_of::() , 104usize , + concat ! ( "Size of: " , stringify ! ( GeckoOutline ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoOutline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoOutline ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoOutline ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoXUL { + pub gecko: root::nsStyleXUL, + } + #[test] + fn bindgen_test_layout_GeckoXUL() { + assert_eq!(::std::mem::size_of::() , 16usize , concat ! + ( "Size of: " , stringify ! ( GeckoXUL ) )); + assert_eq! (::std::mem::align_of::() , 4usize , concat ! + ( "Alignment of " , stringify ! ( GeckoXUL ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoXUL ) ) . gecko as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoXUL ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoSVGReset { + pub gecko: root::nsStyleSVGReset, + } + #[test] + fn bindgen_test_layout_GeckoSVGReset() { + assert_eq!(::std::mem::size_of::() , 192usize , + concat ! ( "Size of: " , stringify ! ( GeckoSVGReset ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoSVGReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoSVGReset ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoSVGReset ) + , "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoColumn { + pub gecko: root::nsStyleColumn, + } + #[test] + fn bindgen_test_layout_GeckoColumn() { + assert_eq!(::std::mem::size_of::() , 64usize , concat + ! ( "Size of: " , stringify ! ( GeckoColumn ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoColumn ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoColumn ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoColumn ) , + "::" , stringify ! ( gecko ) )); + } + #[repr(C)] + #[derive(Debug)] + pub struct GeckoEffects { + pub gecko: root::nsStyleEffects, + } + #[test] + fn bindgen_test_layout_GeckoEffects() { + assert_eq!(::std::mem::size_of::() , 40usize , + concat ! ( "Size of: " , stringify ! ( GeckoEffects ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( GeckoEffects ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const GeckoEffects ) ) . gecko as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( GeckoEffects ) + , "::" , stringify ! ( gecko ) )); + } /** * We want C++ to be abe to read the style struct fields of ComputedValues * so we define this type on the C++ side and use the bindgenned version @@ -7468,39 +7893,46 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct ServoComputedValues2 { - pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, - pub List: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Variables: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, - pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, + /// The rule node representing the ordered list of rules matched for this + /// node. Can be None for default values and text nodes. This is + /// essentially an optimization to avoid referencing the root rule node. + pub rules: ::gecko_bindings::structs::ServoRuleNode, + /// The element's computed values if visited, only computed if there's a + /// relevant link for this element. A element's "relevant link" is the + /// element being matched if it is a link or the nearest ancestor link. pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, + pub flags: ::gecko_bindings::structs::ServoComputedValueFlags, } #[test] fn bindgen_test_layout_ServoComputedValues2() { assert_eq!(::std::mem::size_of::() , - 224usize , concat ! ( + 232usize , concat ! ( "Size of: " , stringify ! ( ServoComputedValues2 ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( @@ -7559,120 +7991,112 @@ pub mod root { )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Variables as * const _ as usize } , 64usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - Variables ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Background as * const _ as usize } , 72usize , concat + Background as * const _ as usize } , 64usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Background ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Position as * const _ as usize } , 80usize , concat ! + Position as * const _ as usize } , 72usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Position ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - TextReset as * const _ as usize } , 88usize , concat ! + TextReset as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( TextReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Display as * const _ as usize } , 96usize , concat ! ( + Display as * const _ as usize } , 88usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Display ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Content as * const _ as usize } , 104usize , concat ! - ( + Content as * const _ as usize } , 96usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Content ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - UIReset as * const _ as usize } , 112usize , concat ! + UIReset as * const _ as usize } , 104usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( UIReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Table - as * const _ as usize } , 120usize , concat ! ( + as * const _ as usize } , 112usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Table ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Margin - as * const _ as usize } , 128usize , concat ! ( + as * const _ as usize } , 120usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Margin ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Padding as * const _ as usize } , 136usize , concat ! + Padding as * const _ as usize } , 128usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Padding ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Border - as * const _ as usize } , 144usize , concat ! ( + as * const _ as usize } , 136usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Border ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Outline as * const _ as usize } , 152usize , concat ! + Outline as * const _ as usize } , 144usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Outline ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . XUL as - * const _ as usize } , 160usize , concat ! ( + * const _ as usize } , 152usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( XUL ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - SVGReset as * const _ as usize } , 168usize , concat ! + SVGReset as * const _ as usize } , 160usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( SVGReset ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . Column - as * const _ as usize } , 176usize , concat ! ( + as * const _ as usize } , 168usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Column ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - Effects as * const _ as usize } , 184usize , concat ! + Effects as * const _ as usize } , 176usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( Effects ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - custom_properties as * const _ as usize } , 192usize , + custom_properties as * const _ as usize } , 184usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( custom_properties ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . - writing_mode as * const _ as usize } , 200usize , + writing_mode as * const _ as usize } , 192usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( @@ -7680,10 +8104,16 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . font_computation_data as * const _ as usize } , - 204usize , concat ! ( + 196usize , concat ! ( "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( font_computation_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . rules + as * const _ as usize } , 208usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( rules ) + )); assert_eq! (unsafe { & ( * ( 0 as * const ServoComputedValues2 ) ) . visited_style as * const _ as usize } , 216usize , @@ -7691,6 +8121,12 @@ pub mod root { "Alignment of field: " , stringify ! ( ServoComputedValues2 ) , "::" , stringify ! ( visited_style ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues2 ) ) . flags + as * const _ as usize } , 224usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValues2 ) , "::" , stringify ! ( flags ) + )); } #[repr(u8)] /** @@ -38413,7 +38849,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187141_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_187475_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38422,7 +38858,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187177_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_187511_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 13ca780ee9f..23717b3daa7 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -58,10 +58,9 @@ use properties::computed_value_flags::ComputedValueFlags; use properties::{longhands, FontComputationData, Importance, LonghandId}; use properties::{PropertyDeclaration, PropertyDeclarationBlock, PropertyDeclarationId}; use rule_tree::StrongRuleNode; -use std::fmt::{self, Debug}; use std::mem::{forget, transmute, zeroed}; use std::ptr; -use stylearc::Arc; +use stylearc::{Arc, RawOffsetArc}; use std::cmp; use values::{Auto, CustomIdent, Either, KeyframesName}; use values::computed::ToComputedValue; @@ -75,25 +74,23 @@ pub mod style_structs { % endfor } -// FIXME(emilio): Unify both definitions, since they're equal now. -#[derive(Clone)] -pub struct ComputedValues { - % for style_struct in data.style_structs: - ${style_struct.ident}: Arc, - % endfor - custom_properties: Option>, - pub writing_mode: WritingMode, - pub font_computation_data: FontComputationData, - pub flags: ComputedValueFlags, - /// The rule node representing the ordered list of rules matched for this - /// node. Can be None for default values and text nodes. This is - /// essentially an optimization to avoid referencing the root rule node. - pub rules: Option, - /// The element's computed values if visited, only computed if there's a - /// relevant link for this element. A element's "relevant link" is the - /// element being matched if it is a link or the nearest ancestor link. - visited_style: Option>, +pub use ::gecko_bindings::structs::mozilla::ServoComputedValues2 as ComputedValues; + +impl Clone for ComputedValues { + fn clone(&self) -> Self { + ComputedValues { + % for style_struct in data.style_structs: + ${style_struct.gecko_name}: self.${style_struct.gecko_name}.clone(), + % endfor + custom_properties: self.custom_properties.clone(), + writing_mode: self.writing_mode.clone(), + font_computation_data: self.font_computation_data.clone(), + flags: self.flags.clone(), + rules: self.rules.clone(), + visited_style: self.visited_style.clone(), + } + } } impl ComputedValues { @@ -115,7 +112,7 @@ impl ComputedValues { rules, visited_style: visited_style, % for style_struct in data.style_structs: - ${style_struct.ident}, + ${style_struct.gecko_name}: Arc::into_raw_offset(${style_struct.ident}), % endfor } } @@ -129,7 +126,7 @@ impl ComputedValues { rules: None, visited_style: None, % for style_struct in data.style_structs: - ${style_struct.ident}: style_structs::${style_struct.name}::default(pres_context), + ${style_struct.gecko_name}: Arc::into_raw_offset(style_structs::${style_struct.name}::default(pres_context)), % endfor }) } @@ -149,20 +146,21 @@ impl ComputedValues { % for style_struct in data.style_structs: #[inline] pub fn clone_${style_struct.name_lower}(&self) -> Arc { - self.${style_struct.ident}.clone() + Arc::from_raw_offset(self.${style_struct.gecko_name}.clone()) } #[inline] pub fn get_${style_struct.name_lower}(&self) -> &style_structs::${style_struct.name} { - &self.${style_struct.ident} + &self.${style_struct.gecko_name} } - pub fn ${style_struct.name_lower}_arc(&self) -> &Arc { - &self.${style_struct.ident} + + pub fn ${style_struct.name_lower}_arc(&self) -> &RawOffsetArc { + &self.${style_struct.gecko_name} } #[inline] pub fn mutate_${style_struct.name_lower}(&mut self) -> &mut style_structs::${style_struct.name} { - Arc::make_mut(&mut self.${style_struct.ident}) + RawOffsetArc::make_mut(&mut self.${style_struct.gecko_name}) } % endfor @@ -238,9 +236,7 @@ impl ComputedValues { } <%def name="declare_style_struct(style_struct)"> -pub struct ${style_struct.gecko_struct_name} { - gecko: ${style_struct.gecko_ffi_name}, -} +pub use ::gecko_bindings::structs::mozilla::Gecko${style_struct.gecko_name} as ${style_struct.gecko_struct_name}; impl ${style_struct.gecko_struct_name} { pub fn gecko(&self) -> &${style_struct.gecko_ffi_name} { &self.gecko @@ -737,20 +733,6 @@ impl Clone for ${style_struct.gecko_struct_name} { } } -// FIXME(bholley): Make bindgen generate Debug for all types. -%if style_struct.gecko_ffi_name in ("nsStyle" + x for x in "Border Display List Background Font SVGReset".split()): -impl Debug for ${style_struct.gecko_struct_name} { - // FIXME(bholley): Generate this. - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "Gecko style struct: ${style_struct.gecko_struct_name}") - } -} -%else: -impl Debug for ${style_struct.gecko_struct_name} { - // FIXME(bholley): Generate this. - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.gecko.fmt(f) } -} -%endif <%def name="impl_simple_type_with_conversion(ident, gecko_ffi_name=None)"> diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 9c6a017ced3..c2d0289b606 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1886,7 +1886,7 @@ pub type ServoComputedValues = ComputedValues; /// /// When needed, the structs may be copied in order to get mutated. #[cfg(feature = "servo")] -#[cfg_attr(feature = "servo", derive(Clone))] +#[cfg_attr(feature = "servo", derive(Clone, Debug))] pub struct ComputedValues { % for style_struct in data.active_style_structs(): ${style_struct.ident}: Arc, @@ -2237,14 +2237,6 @@ impl ComputedValues { } } -// We manually implement Debug for ComputedValues so that we can avoid the -// verbose stringification of every property and instead focus on a few values. -impl fmt::Debug for ComputedValues { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "ComputedValues {{ rules: {:?}, .. }}", self.rules) - } -} - /// Return a WritingMode bitflags from the relevant CSS properties. pub fn get_writing_mode(inheritedbox_style: &style_structs::InheritedBox) -> WritingMode { use logical_geometry; @@ -2296,10 +2288,24 @@ pub fn get_writing_mode(inheritedbox_style: &style_structs::InheritedBox) -> Wri flags } +% if product == "gecko": + pub use ::stylearc::RawOffsetArc as BuilderArc; + /// Clone an arc, returning a regular arc + fn clone_arc(x: &BuilderArc) -> Arc { + Arc::from_raw_offset(x.clone()) + } +% else: + pub use ::stylearc::Arc as BuilderArc; + /// Clone an arc, returning a regular arc + fn clone_arc(x: &BuilderArc) -> Arc { + x.clone() + } +% endif + /// A reference to a style struct of the parent, or our own style struct. pub enum StyleStructRef<'a, T: 'static> { /// A borrowed struct from the parent, for example, for inheriting style. - Borrowed(&'a Arc), + Borrowed(&'a BuilderArc), /// An owned struct, that we've already mutated. Owned(UniqueArc), /// Temporarily vacated, will panic if accessed @@ -2360,7 +2366,7 @@ impl<'a, T: 'a> StyleStructRef<'a, T> pub fn build(self) -> Arc { match self { StyleStructRef::Owned(v) => v.shareable(), - StyleStructRef::Borrowed(v) => v.clone(), + StyleStructRef::Borrowed(v) => clone_arc(v), StyleStructRef::Vacated => panic!("Accessed vacated style struct") } } From 04b0ae64f2fe606744142e353388749fe283a8ad Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:44 -0700 Subject: [PATCH 06/16] stylo: Introduce ComputedValuesInner --- .../style/gecko/generated/structs_debug.rs | 2 +- .../style/gecko/generated/structs_release.rs | 2 +- components/style/properties/gecko.mako.rs | 69 +++++++---- .../style/properties/properties.mako.rs | 113 +++++++++++------- components/style/selector_parser.rs | 2 +- components/style/servo/restyle_damage.rs | 10 +- 6 files changed, 125 insertions(+), 73 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 9c3c06c4fa9..3bebc33e413 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -13,7 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; -pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoVisitedStyle = Option<::stylearc::Arc<::properties::ComputedValues>>; pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index b85f5b652cf..bc2e1a41e71 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -13,7 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; -pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoVisitedStyle = Option<::stylearc::Arc<::properties::ComputedValues>>; pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 23717b3daa7..a432e8d2369 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -59,9 +59,8 @@ use properties::{longhands, FontComputationData, Importance, LonghandId}; use properties::{PropertyDeclaration, PropertyDeclarationBlock, PropertyDeclarationId}; use rule_tree::StrongRuleNode; use std::mem::{forget, transmute, zeroed}; -use std::ptr; +use std::{cmp, ops, ptr}; use stylearc::{Arc, RawOffsetArc}; -use std::cmp; use values::{Auto, CustomIdent, Either, KeyframesName}; use values::computed::ToComputedValue; use values::computed::effects::{BoxShadow, Filter, SimpleShadow}; @@ -75,11 +74,16 @@ pub mod style_structs { } -pub use ::gecko_bindings::structs::mozilla::ServoComputedValues2 as ComputedValues; +pub use ::gecko_bindings::structs::mozilla::ServoComputedValues2 as ComputedValuesInner; -impl Clone for ComputedValues { +#[derive(Clone, Debug)] +pub struct ComputedValues { + pub inner: ComputedValuesInner +} + +impl Clone for ComputedValuesInner { fn clone(&self) -> Self { - ComputedValues { + ComputedValuesInner { % for style_struct in data.style_structs: ${style_struct.gecko_name}: self.${style_struct.gecko_name}.clone(), % endfor @@ -105,32 +109,51 @@ impl ComputedValues { % endfor ) -> Self { ComputedValues { - custom_properties, - writing_mode, - font_computation_data: FontComputationData::new(font_size_keyword), - flags, - rules, - visited_style: visited_style, - % for style_struct in data.style_structs: - ${style_struct.gecko_name}: Arc::into_raw_offset(${style_struct.ident}), - % endfor + inner: ComputedValuesInner { + custom_properties: custom_properties, + writing_mode: writing_mode, + font_computation_data: FontComputationData::new(font_size_keyword), + rules: rules, + visited_style: visited_style, + flags: flags, + % for style_struct in data.style_structs: + ${style_struct.gecko_name}: Arc::into_raw_offset(${style_struct.ident}), + % endfor + } } } pub fn default_values(pres_context: RawGeckoPresContextBorrowed) -> Arc { Arc::new(ComputedValues { - custom_properties: None, - writing_mode: WritingMode::empty(), // FIXME(bz): This seems dubious - font_computation_data: FontComputationData::default_values(), - flags: ComputedValueFlags::empty(), - rules: None, - visited_style: None, - % for style_struct in data.style_structs: - ${style_struct.gecko_name}: Arc::into_raw_offset(style_structs::${style_struct.name}::default(pres_context)), - % endfor + inner: ComputedValuesInner { + custom_properties: None, + writing_mode: WritingMode::empty(), // FIXME(bz): This seems dubious + font_computation_data: FontComputationData::default_values(), + rules: None, + visited_style: None, + flags: ComputedValueFlags::empty(), + % for style_struct in data.style_structs: + ${style_struct.gecko_name}: Arc::into_raw_offset(style_structs::${style_struct.name}::default(pres_context)), + % endfor + } }) } +} +impl ops::Deref for ComputedValues { + type Target = ComputedValuesInner; + fn deref(&self) -> &ComputedValuesInner { + &self.inner + } +} + +impl ops::DerefMut for ComputedValues { + fn deref_mut(&mut self) -> &mut ComputedValuesInner { + &mut self.inner + } +} + +impl ComputedValuesInner { #[inline] pub fn is_display_contents(&self) -> bool { self.get_box().clone_display() == longhands::display::computed_value::T::contents diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index c2d0289b606..cc3a38731a0 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -12,9 +12,7 @@ use std::borrow::Cow; use std::collections::HashSet; -use std::fmt; -use std::mem; -use std::ops::Deref; +use std::{fmt, mem, ops}; use stylearc::{Arc, UniqueArc}; use app_units::Au; @@ -113,7 +111,7 @@ pub struct FontComputationData { } -impl FontComputationData{ +impl FontComputationData { /// Assigns values for variables in struct FontComputationData pub fn new(font_size_keyword: Option<(longhands::font_size::KeywordSize, f32)>) -> Self { FontComputationData { @@ -1875,19 +1873,11 @@ pub mod style_structs { #[cfg(feature = "gecko")] pub use gecko_properties::ComputedValues; -/// A legacy alias for a servo-version of ComputedValues. Should go away soon. -#[cfg(feature = "servo")] -pub type ServoComputedValues = ComputedValues; -/// The struct that Servo uses to represent computed values. -/// -/// This struct contains an immutable atomically-reference-counted pointer to -/// every kind of style struct. -/// -/// When needed, the structs may be copied in order to get mutated. #[cfg(feature = "servo")] #[cfg_attr(feature = "servo", derive(Clone, Debug))] -pub struct ComputedValues { +/// Actual data of ComputedValues, to match up with Gecko +pub struct ComputedValuesInner { % for style_struct in data.active_style_structs(): ${style_struct.ident}: Arc, % endfor @@ -1911,6 +1901,24 @@ pub struct ComputedValues { visited_style: Option>, } +/// The struct that Servo uses to represent computed values. +/// +/// This struct contains an immutable atomically-reference-counted pointer to +/// every kind of style struct. +/// +/// When needed, the structs may be copied in order to get mutated. +#[cfg(feature = "servo")] +#[cfg_attr(feature = "servo", derive(Clone, Debug))] +pub struct ComputedValues { + /// The actual computed values + /// + /// In Gecko the outer ComputedValues is actually a style context, + /// whereas ComputedValuesInner is the core set of computed values. + /// + /// We maintain this distinction in servo to reduce the amount of special casing. + pub inner: ComputedValuesInner, +} + #[cfg(feature = "servo")] impl ComputedValues { /// Construct a `ComputedValues` instance. @@ -1925,23 +1933,42 @@ impl ComputedValues { ${style_struct.ident}: Arc, % endfor ) -> Self { - let font_computation_data = FontComputationData::new(font_size_keyword); ComputedValues { - custom_properties, - writing_mode, - font_computation_data, - flags, - rules, - visited_style, - % for style_struct in data.active_style_structs(): - ${style_struct.ident}, - % endfor + inner: ComputedValuesInner { + custom_properties: custom_properties, + writing_mode: writing_mode, + font_computation_data: FontComputationData::new(font_size_keyword), + rules: rules, + visited_style: visited_style, + flags: flags, + % for style_struct in data.active_style_structs(): + ${style_struct.ident}: ${style_struct.ident}, + % endfor + } } } /// Get the initial computed values. pub fn initial_values() -> &'static Self { &*INITIAL_SERVO_VALUES } +} +#[cfg(feature = "servo")] +impl ops::Deref for ComputedValues { + type Target = ComputedValuesInner; + fn deref(&self) -> &ComputedValuesInner { + &self.inner + } +} + +#[cfg(feature = "servo")] +impl ops::DerefMut for ComputedValues { + fn deref_mut(&mut self) -> &mut ComputedValuesInner { + &mut self.inner + } +} + +#[cfg(feature = "servo")] +impl ComputedValuesInner { % for style_struct in data.active_style_structs(): /// Clone the ${style_struct.name} struct. #[inline] @@ -2372,7 +2399,7 @@ impl<'a, T: 'a> StyleStructRef<'a, T> } } -impl<'a, T: 'a> Deref for StyleStructRef<'a, T> { +impl<'a, T: 'a> ops::Deref for StyleStructRef<'a, T> { type Target = T; fn deref(&self) -> &T { @@ -2559,28 +2586,30 @@ pub use self::lazy_static_module::INITIAL_SERVO_VALUES; mod lazy_static_module { use logical_geometry::WritingMode; use stylearc::Arc; - use super::{ComputedValues, longhands, style_structs, FontComputationData}; + use super::{ComputedValues, ComputedValuesInner, longhands, style_structs, FontComputationData}; use super::computed_value_flags::ComputedValueFlags; /// The initial values for all style structs as defined by the specification. lazy_static! { pub static ref INITIAL_SERVO_VALUES: ComputedValues = ComputedValues { - % for style_struct in data.active_style_structs(): - ${style_struct.ident}: Arc::new(style_structs::${style_struct.name} { - % for longhand in style_struct.longhands: - ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), - % endfor - % if style_struct.name == "Font": - hash: 0, - % endif - }), - % endfor - custom_properties: None, - writing_mode: WritingMode::empty(), - flags: ComputedValueFlags::empty(), - font_computation_data: FontComputationData::default_values(), - rules: None, - visited_style: None, + inner: ComputedValuesInner { + % for style_struct in data.active_style_structs(): + ${style_struct.ident}: Arc::new(style_structs::${style_struct.name} { + % for longhand in style_struct.longhands: + ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), + % endfor + % if style_struct.name == "Font": + hash: 0, + % endif + }), + % endfor + custom_properties: None, + writing_mode: WritingMode::empty(), + font_computation_data: FontComputationData::default_values(), + rules: None, + visited_style: None, + flags: ComputedValueFlags::empty(), + } }; } } diff --git a/components/style/selector_parser.rs b/components/style/selector_parser.rs index 1dbc96d3db2..3f5a43365cf 100644 --- a/components/style/selector_parser.rs +++ b/components/style/selector_parser.rs @@ -38,7 +38,7 @@ pub use gecko::restyle_damage::GeckoRestyleDamage as RestyleDamage; /// A type that represents the previous computed values needed for restyle /// damage calculation. #[cfg(feature = "servo")] -pub type PreExistingComputedValues = ::properties::ServoComputedValues; +pub type PreExistingComputedValues = ::properties::ComputedValues; /// A type that represents the previous computed values needed for restyle /// damage calculation. diff --git a/components/style/servo/restyle_damage.rs b/components/style/servo/restyle_damage.rs index 1e9cae4ea08..f99e6120bb9 100644 --- a/components/style/servo/restyle_damage.rs +++ b/components/style/servo/restyle_damage.rs @@ -10,7 +10,7 @@ use computed_values::display; use heapsize::HeapSizeOf; use matching::{StyleChange, StyleDifference}; -use properties::ServoComputedValues; +use properties::ComputedValues; use std::fmt; bitflags! { @@ -60,8 +60,8 @@ impl HeapSizeOf for ServoRestyleDamage { impl ServoRestyleDamage { /// Compute the `StyleDifference` (including the appropriate restyle damage) /// for a given style change between `old` and `new`. - pub fn compute_style_difference(old: &ServoComputedValues, - new: &ServoComputedValues) + pub fn compute_style_difference(old: &ComputedValues, + new: &ComputedValues) -> StyleDifference { let damage = compute_damage(old, new); let change = if damage.is_empty() { StyleChange::Unchanged } else { StyleChange::Changed }; @@ -182,11 +182,11 @@ macro_rules! add_if_not_equal( }) ); -fn compute_damage(old: &ServoComputedValues, new: &ServoComputedValues) -> ServoRestyleDamage { +fn compute_damage(old: &ComputedValues, new: &ComputedValues) -> ServoRestyleDamage { let mut damage = ServoRestyleDamage::empty(); // This should check every CSS property, as enumerated in the fields of - // http://doc.servo.org/style/properties/struct.ServoComputedValues.html + // http://doc.servo.org/style/properties/struct.ComputedValues.html // FIXME: Test somehow that every property is included. From 808b1f509b7e1524cfc49f7cc1fc89fd5f8e5737 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:52 -0700 Subject: [PATCH 07/16] stylo: Use ComputedValuesInner instead of ComputedValues when we don't need it --- components/layout/block.rs | 4 +- components/layout/construct.rs | 10 +- components/layout/display_list_builder.rs | 52 ++++----- components/layout/flex.rs | 4 +- components/layout/flow.rs | 10 +- components/layout/fragment.rs | 26 ++--- components/layout/generated_content.rs | 8 +- components/layout/inline.rs | 12 +- components/layout/list_item.rs | 4 +- components/layout/model.rs | 6 +- components/layout/multicol.rs | 6 +- components/layout/table.rs | 4 +- components/layout/table_caption.rs | 4 +- components/layout/table_cell.rs | 4 +- components/layout/table_colgroup.rs | 4 +- components/layout/table_row.rs | 24 ++-- components/layout/table_rowgroup.rs | 4 +- components/layout/table_wrapper.rs | 4 +- components/layout/text.rs | 4 +- .../script_layout_interface/wrapper_traits.rs | 14 +-- components/style/animation.rs | 12 +- components/style/dom.rs | 4 +- components/style/gecko/data.rs | 6 +- components/style/gecko/media_queries.rs | 23 +--- .../style/properties/declaration_block.rs | 6 +- components/style/properties/gecko.mako.rs | 41 ++++--- components/style/properties/helpers.mako.rs | 6 +- .../helpers/animated_properties.mako.rs | 12 +- .../style/properties/longhand/box.mako.rs | 2 +- .../style/properties/longhand/text.mako.rs | 2 +- .../style/properties/properties.mako.rs | 109 +++++++++--------- components/style/servo/media_queries.rs | 6 +- components/style/style_adjuster.rs | 20 ++-- components/style/style_resolver.rs | 38 +++--- components/style/stylist.rs | 83 +++++++------ components/style/traversal.rs | 8 +- components/style/values/computed/mod.rs | 8 +- ports/geckolib/glue.rs | 24 ++-- 38 files changed, 302 insertions(+), 316 deletions(-) diff --git a/components/layout/block.rs b/components/layout/block.rs index 6a3db5a6141..3ae8a439a4d 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -56,7 +56,7 @@ use style::computed_values::{border_collapse, box_sizing, display, float, overfl use style::computed_values::{position, text_align}; use style::context::SharedStyleContext; use style::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::servo::restyle_damage::{BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW, REPOSITION}; use style::values::computed::{LengthOrPercentageOrNone, LengthOrPercentage}; use style::values::computed::LengthOrPercentageOrAuto; @@ -2139,7 +2139,7 @@ impl Flow for BlockFlow { self.build_display_list_for_block(state, BorderPaintingMode::Separate); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.fragment.repair_style(new_style) } diff --git a/components/layout/construct.rs b/components/layout/construct.rs index cbb4400544e..cfb92ebc78a 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -52,7 +52,7 @@ use style::computed_values::content::ContentItem; use style::computed_values::position; use style::context::SharedStyleContext; use style::logical_geometry::Direction; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::properties::longhands::list_style_image; use style::selector_parser::{PseudoElement, RestyleDamage}; use style::servo::restyle_damage::{BUBBLE_ISIZES, RECONSTRUCT_FLOW}; @@ -109,7 +109,7 @@ pub enum ConstructionItem { /// Inline fragments and associated {ib} splits that have not yet found flows. InlineFragments(InlineFragmentsConstructionResult), /// Potentially ignorable whitespace. - Whitespace(OpaqueNode, PseudoElementType<()>, StyleArc, RestyleDamage), + Whitespace(OpaqueNode, PseudoElementType<()>, StyleArc, RestyleDamage), /// TableColumn Fragment TableColumnFragment(Fragment), } @@ -677,7 +677,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> fn create_fragments_for_node_text_content(&self, fragments: &mut IntermediateInlineFragments, node: &ConcreteThreadSafeLayoutNode, - style: &StyleArc) { + style: &StyleArc) { // Fast path: If there is no text content, return immediately. let text_content = node.text_content(); if text_content.is_empty() { @@ -1806,7 +1806,7 @@ pub fn strip_ignorable_whitespace_from_end(this: &mut LinkedList) { /// If the 'unicode-bidi' property has a value other than 'normal', return the bidi control codes /// to inject before and after the text content of the element. -fn bidi_control_chars(style: &StyleArc) -> Option<(&'static str, &'static str)> { +fn bidi_control_chars(style: &StyleArc) -> Option<(&'static str, &'static str)> { use style::computed_values::direction::T::*; use style::computed_values::unicode_bidi::T::*; @@ -1851,7 +1851,7 @@ trait ComputedValueUtils { fn has_padding_or_border(&self) -> bool; } -impl ComputedValueUtils for ServoComputedValues { +impl ComputedValueUtils for ComputedValues { fn has_padding_or_border(&self) -> bool { let padding = self.get_padding(); let border = self.get_border(); diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index 4b79c5e7a68..025a5d5f654 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -51,7 +51,7 @@ use style::computed_values::{background_attachment, background_clip, background_ use style::computed_values::{background_repeat, border_style, cursor}; use style::computed_values::{image_rendering, overflow_x, pointer_events, position, visibility}; use style::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize, WritingMode}; -use style::properties::{self, ServoComputedValues}; +use style::properties::{self, ComputedValues}; use style::properties::longhands::border_image_repeat::computed_value::RepeatKeyword; use style::properties::style_structs; use style::servo::restyle_damage::REPAINT; @@ -375,14 +375,14 @@ pub trait FragmentDisplayListBuilding { /// list if necessary. fn build_display_list_for_background_if_applicable(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect); /// Computes the background size for an image with the given background area according to the /// rules in CSS-BACKGROUNDS § 3.9. fn compute_background_image_size(&self, - style: &ServoComputedValues, + style: &ComputedValues, bounds: &Rect, image: &WebRenderImageInfo, index: usize) -> Size2D; @@ -391,7 +391,7 @@ pub trait FragmentDisplayListBuilding { /// appropriate section of the display list. fn build_display_list_for_background_image(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &LocalClip, @@ -402,7 +402,7 @@ pub trait FragmentDisplayListBuilding { /// appropriate section of the display list. fn build_display_list_for_webrender_image(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &LocalClip, @@ -413,7 +413,7 @@ pub trait FragmentDisplayListBuilding { /// worklet to the appropriate section of the display list. fn build_display_list_for_background_paint_worklet(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &LocalClip, @@ -443,14 +443,14 @@ pub trait FragmentDisplayListBuilding { absolute_bounds: &Rect, clip: &LocalClip, gradient: &Gradient, - style: &ServoComputedValues); + style: &ComputedValues); /// Adds the display items necessary to paint the borders of this fragment to a display list if /// necessary. fn build_display_list_for_borders_if_applicable( &self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, border_painting_mode: BorderPaintingMode, bounds: &Rect, display_list_section: DisplayListSection, @@ -460,7 +460,7 @@ pub trait FragmentDisplayListBuilding { /// if necessary. fn build_display_list_for_outline_if_applicable(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, bounds: &Rect, clip: &Rect); @@ -468,7 +468,7 @@ pub trait FragmentDisplayListBuilding { /// list if necessary. fn build_display_list_for_box_shadow_if_applicable(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &Rect); @@ -476,7 +476,7 @@ pub trait FragmentDisplayListBuilding { /// Adds display items necessary to draw debug boxes around a scanned text fragment. fn build_debug_borders_around_text_fragments(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, stacking_relative_border_box: &Rect, stacking_relative_content_box: &Rect, text_fragment: &ScannedTextFragmentInfo, @@ -607,7 +607,7 @@ fn build_border_radius(abs_bounds: &Rect, /// Get the border radius for the rectangle inside of a rounded border. This is useful /// for building the clip for the content inside the border. fn build_border_radius_for_inner_rect(outer_rect: &Rect, - style: &ServoComputedValues) + style: &ComputedValues) -> BorderRadii { let mut radii = build_border_radius(&outer_rect, style.get_border()); if radii.is_square() { @@ -633,7 +633,7 @@ fn build_border_radius_for_inner_rect(outer_rect: &Rect, } fn build_inner_border_box_for_border_rect(border_box: &Rect, - style: &ServoComputedValues) + style: &ComputedValues) -> Rect { let border_widths = style.logical_border_width().to_physical(style.writing_mode); let mut inner_border_box = *border_box; @@ -845,7 +845,7 @@ fn convert_ellipse_size_keyword(keyword: ShapeExtent, impl FragmentDisplayListBuilding for Fragment { fn build_display_list_for_background_if_applicable(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect) { // FIXME: This causes a lot of background colors to be displayed when they are clearly not @@ -950,7 +950,7 @@ impl FragmentDisplayListBuilding for Fragment { } fn compute_background_image_size(&self, - style: &ServoComputedValues, + style: &ComputedValues, bounds: &Rect, image: &WebRenderImageInfo, index: usize) @@ -996,7 +996,7 @@ impl FragmentDisplayListBuilding for Fragment { fn build_display_list_for_background_image(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &LocalClip, @@ -1020,7 +1020,7 @@ impl FragmentDisplayListBuilding for Fragment { fn build_display_list_for_webrender_image(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &LocalClip, @@ -1157,7 +1157,7 @@ impl FragmentDisplayListBuilding for Fragment { fn build_display_list_for_background_paint_worklet(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &LocalClip, @@ -1338,7 +1338,7 @@ impl FragmentDisplayListBuilding for Fragment { absolute_bounds: &Rect, clip: &LocalClip, gradient: &Gradient, - style: &ServoComputedValues) { + style: &ComputedValues) { let border = self.border_width().to_physical(style.writing_mode); let mut bounds = *absolute_bounds; bounds.origin.x = bounds.origin.x + border.left; @@ -1380,7 +1380,7 @@ impl FragmentDisplayListBuilding for Fragment { fn build_display_list_for_box_shadow_if_applicable(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, display_list_section: DisplayListSection, absolute_bounds: &Rect, clip: &Rect) { @@ -1423,7 +1423,7 @@ impl FragmentDisplayListBuilding for Fragment { fn build_display_list_for_borders_if_applicable( &self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, border_painting_mode: BorderPaintingMode, bounds: &Rect, display_list_section: DisplayListSection, @@ -1570,7 +1570,7 @@ impl FragmentDisplayListBuilding for Fragment { fn build_display_list_for_outline_if_applicable(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, bounds: &Rect, clip: &Rect) { use style::values::Either; @@ -1615,7 +1615,7 @@ impl FragmentDisplayListBuilding for Fragment { fn build_debug_borders_around_text_fragments(&self, state: &mut DisplayListBuildState, - style: &ServoComputedValues, + style: &ComputedValues, stacking_relative_border_box: &Rect, stacking_relative_content_box: &Rect, text_fragment: &ScannedTextFragmentInfo, @@ -2886,12 +2886,12 @@ impl BaseFlowDisplayListBuilding for BaseFlow { } } -trait ServoComputedValuesCursorUtility { +trait ComputedValuesCursorUtility { fn get_cursor(&self, default_cursor: Cursor) -> Option; } -impl ServoComputedValuesCursorUtility for ServoComputedValues { - /// Gets the cursor to use given the specific ServoComputedValues. `default_cursor` specifies +impl ComputedValuesCursorUtility for ComputedValues { + /// Gets the cursor to use given the specific ComputedValues. `default_cursor` specifies /// the cursor to use if `cursor` is `auto`. Typically, this will be `PointerCursor`, but for /// text display items it may be `TextCursor` or `VerticalTextCursor`. #[inline] diff --git a/components/layout/flex.rs b/components/layout/flex.rs index 30295eabfe7..6b2e5d3425a 100644 --- a/components/layout/flex.rs +++ b/components/layout/flex.rs @@ -23,7 +23,7 @@ use std::ops::Range; use style::computed_values::{align_content, align_self, flex_direction, flex_wrap, justify_content}; use style::computed_values::border_collapse; use style::logical_geometry::{Direction, LogicalSize}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::servo::restyle_damage::{REFLOW, REFLOW_OUT_OF_FLOW}; use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto, LengthOrPercentageOrNone}; use style::values::computed::flex::FlexBasis; @@ -973,7 +973,7 @@ impl Flow for FlexFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 240942ec843..be71745883f 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -52,7 +52,7 @@ use std::sync::atomic::Ordering; use style::computed_values::{clear, float, overflow_x, position, text_align}; use style::context::SharedStyleContext; use style::logical_geometry::{LogicalRect, LogicalSize, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::selector_parser::RestyleDamage; use style::servo::restyle_damage::{RECONSTRUCT_FLOW, REFLOW, REFLOW_OUT_OF_FLOW, REPAINT, REPOSITION}; use style::values::computed::LengthOrPercentageOrAuto; @@ -424,7 +424,7 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static { /// Attempts to perform incremental fixup of this flow by replacing its fragment's style with /// the new style. This can only succeed if the flow has exactly one fragment. - fn repair_style(&mut self, new_style: &::StyleArc); + fn repair_style(&mut self, new_style: &::StyleArc); /// Print any extra children (such as fragments) contained in this Flow /// for debugging purposes. Any items inserted into the tree will become @@ -561,7 +561,7 @@ pub trait MutableFlowUtils { /// Calls `repair_style` and `bubble_inline_sizes`. You should use this method instead of /// calling them individually, since there is no reason not to perform both operations. - fn repair_style_and_bubble_inline_sizes(self, style: &::StyleArc); + fn repair_style_and_bubble_inline_sizes(self, style: &::StyleArc); } pub trait MutableOwnedFlowUtils { @@ -1033,7 +1033,7 @@ pub enum ForceNonfloatedFlag { impl BaseFlow { #[inline] - pub fn new(style: Option<&ServoComputedValues>, + pub fn new(style: Option<&ComputedValues>, writing_mode: WritingMode, force_nonfloated: ForceNonfloatedFlag) -> BaseFlow { @@ -1381,7 +1381,7 @@ impl<'a> MutableFlowUtils for &'a mut Flow { /// Calls `repair_style` and `bubble_inline_sizes`. You should use this method instead of /// calling them individually, since there is no reason not to perform both operations. - fn repair_style_and_bubble_inline_sizes(self, style: &::StyleArc) { + fn repair_style_and_bubble_inline_sizes(self, style: &::StyleArc) { self.repair_style(style); mut_base(self).update_flags_if_needed(style); self.bubble_inline_sizes(); diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index b9bbe5ddd6e..9e7eaf6c72f 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -45,7 +45,7 @@ use style::computed_values::{overflow_wrap, overflow_x, position, text_decoratio use style::computed_values::{transform_style, vertical_align, white_space, word_break}; use style::computed_values::content::ContentItem; use style::logical_geometry::{Direction, LogicalMargin, LogicalRect, LogicalSize, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::selector_parser::RestyleDamage; use style::servo::restyle_damage::RECONSTRUCT_FLOW; use style::str::char_is_whitespace; @@ -95,10 +95,10 @@ pub struct Fragment { pub node: OpaqueNode, /// The CSS style of this fragment. - pub style: StyleArc, + pub style: StyleArc, /// The CSS style of this fragment when it's selected - pub selected_style: StyleArc, + pub selected_style: StyleArc, /// The position of this fragment relative to its owning flow. The size includes padding and /// border, but not margin. @@ -676,8 +676,8 @@ impl Fragment { /// Constructs a new `Fragment` instance from an opaque node. pub fn from_opaque_node_and_style(node: OpaqueNode, pseudo: PseudoElementType<()>, - style: StyleArc, - selected_style: StyleArc, + style: StyleArc, + selected_style: StyleArc, mut restyle_damage: RestyleDamage, specific: SpecificFragmentInfo) -> Fragment { @@ -706,7 +706,7 @@ impl Fragment { /// type. For the new anonymous fragment, layout-related values (border box, etc.) are reset to /// initial values. pub fn create_similar_anonymous_fragment(&self, - style: StyleArc, + style: StyleArc, specific: SpecificFragmentInfo) -> Fragment { let writing_mode = style.writing_mode; @@ -1339,7 +1339,7 @@ impl Fragment { // Return offset from original position because of `position: relative`. pub fn relative_position(&self, containing_block_size: &LogicalSize) -> LogicalSize { - fn from_style(style: &ServoComputedValues, container_size: &LogicalSize) + fn from_style(style: &ComputedValues, container_size: &LogicalSize) -> LogicalSize { let offsets = style.logical_position(); let offset_i = if offsets.inline_start != LengthOrPercentageOrAuto::Auto { @@ -1392,12 +1392,12 @@ impl Fragment { } #[inline(always)] - pub fn style(&self) -> &ServoComputedValues { + pub fn style(&self) -> &ComputedValues { &*self.style } #[inline(always)] - pub fn selected_style(&self) -> &ServoComputedValues { + pub fn selected_style(&self) -> &ComputedValues { &*self.selected_style } @@ -2142,7 +2142,7 @@ impl Fragment { }; return inline_metrics; - fn inline_metrics_of_block(flow: &FlowRef, style: &ServoComputedValues) -> InlineMetrics { + fn inline_metrics_of_block(flow: &FlowRef, style: &ComputedValues) -> InlineMetrics { // CSS 2.1 § 10.8: "The height of each inline-level box in the line box is calculated. // For replaced elements, inline-block elements, and inline-table elements, this is the // height of their margin box." @@ -2423,7 +2423,7 @@ impl Fragment { } } - pub fn repair_style(&mut self, new_style: &StyleArc) { + pub fn repair_style(&mut self, new_style: &StyleArc) { self.style = (*new_style).clone() } @@ -3038,9 +3038,9 @@ pub struct InlineStyleIterator<'a> { } impl<'a> Iterator for InlineStyleIterator<'a> { - type Item = &'a ServoComputedValues; + type Item = &'a ComputedValues; - fn next(&mut self) -> Option<&'a ServoComputedValues> { + fn next(&mut self) -> Option<&'a ComputedValues> { if !self.primary_style_yielded { self.primary_style_yielded = true; return Some(&*self.fragment.style) diff --git a/components/layout/generated_content.rs b/components/layout/generated_content.rs index 5f6f9b1e706..281c5965c9f 100644 --- a/components/layout/generated_content.rs +++ b/components/layout/generated_content.rs @@ -18,7 +18,7 @@ use smallvec::SmallVec; use std::collections::{HashMap, LinkedList}; use style::computed_values::{display, list_style_type}; use style::computed_values::content::ContentItem; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::selector_parser::RestyleDamage; use style::servo::restyle_damage::RESOLVE_GENERATED_CONTENT; use text::TextRunScanner; @@ -298,7 +298,7 @@ impl<'a,'b> ResolveGeneratedContentFragmentMutator<'a,'b> { self.incremented = true } - fn quote(&self, style: &ServoComputedValues, close: bool) -> String { + fn quote(&self, style: &ComputedValues, close: bool) -> String { let quotes = &style.get_list().quotes; if quotes.0.is_empty() { return String::new() @@ -368,7 +368,7 @@ impl Counter { layout_context: &LayoutContext, node: OpaqueNode, pseudo: PseudoElementType<()>, - style: ::StyleArc, + style: ::StyleArc, list_style_type: list_style_type::T, mode: RenderingMode) -> Option { @@ -431,7 +431,7 @@ struct CounterValue { fn render_text(layout_context: &LayoutContext, node: OpaqueNode, pseudo: PseudoElementType<()>, - style: ::StyleArc, + style: ::StyleArc, string: String) -> Option { let mut fragments = LinkedList::new(); diff --git a/components/layout/inline.rs b/components/layout/inline.rs index de58b05255b..9228c21a7ba 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -33,7 +33,7 @@ use std::sync::Arc; use style::computed_values::{display, overflow_x, position, text_align, text_justify}; use style::computed_values::{vertical_align, white_space}; use style::logical_geometry::{LogicalRect, LogicalSize, WritingMode}; -use style::properties::{longhands, ServoComputedValues}; +use style::properties::{longhands, ComputedValues}; use style::servo::restyle_damage::{BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW, REPOSITION, RESOLVE_GENERATED_CONTENT}; use text; use unicode_bidi as bidi; @@ -1106,7 +1106,7 @@ impl InlineFlow { /// Computes the minimum metrics for each line. This is done during flow construction. /// /// `style` is the style of the block. - pub fn minimum_line_metrics(&self, font_context: &mut FontContext, style: &ServoComputedValues) + pub fn minimum_line_metrics(&self, font_context: &mut FontContext, style: &ComputedValues) -> LineMetrics { InlineFlow::minimum_line_metrics_for_fragments(&self.fragments.fragments, font_context, @@ -1119,7 +1119,7 @@ impl InlineFlow { /// `style` is the style of the block that these fragments belong to. pub fn minimum_line_metrics_for_fragments(fragments: &[Fragment], font_context: &mut FontContext, - style: &ServoComputedValues) + style: &ComputedValues) -> LineMetrics { // As a special case, if this flow contains only hypothetical fragments, then the entire // flow is hypothetical and takes up no space. See CSS 2.1 § 10.3.7. @@ -1665,7 +1665,7 @@ impl Flow for InlineFlow { self.build_display_list_for_inline(state); } - fn repair_style(&mut self, _: &StyleArc) {} + fn repair_style(&mut self, _: &StyleArc) {} fn compute_overflow(&self) -> Overflow { let mut overflow = Overflow::new(); @@ -1754,8 +1754,8 @@ impl fmt::Debug for InlineFlow { #[derive(Clone)] pub struct InlineFragmentNodeInfo { pub address: OpaqueNode, - pub style: StyleArc, - pub selected_style: StyleArc, + pub style: StyleArc, + pub selected_style: StyleArc, pub pseudo: PseudoElementType<()>, pub flags: InlineFragmentNodeFlags, } diff --git a/components/layout/list_item.rs b/components/layout/list_item.rs index cb8cd27df70..faf8ae259fc 100644 --- a/components/layout/list_item.rs +++ b/components/layout/list_item.rs @@ -20,7 +20,7 @@ use generated_content; use inline::InlineFlow; use style::computed_values::{list_style_type, position}; use style::logical_geometry::LogicalSize; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::servo::restyle_damage::RESOLVE_GENERATED_CONTENT; /// A block with the CSS `display` property equal to `list-item`. @@ -147,7 +147,7 @@ impl Flow for ListItemFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/model.rs b/components/layout/model.rs index 7f564a599ab..c96c3bdaaf5 100644 --- a/components/layout/model.rs +++ b/components/layout/model.rs @@ -13,7 +13,7 @@ use std::cmp::{max, min}; use std::fmt; use style::computed_values::transform::ComputedMatrix; use style::logical_geometry::{LogicalMargin, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::values::computed::{BorderCornerRadius, LengthOrPercentageOrAuto}; use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrNone}; @@ -481,7 +481,7 @@ pub fn specified_border_radius( } #[inline] -pub fn padding_from_style(style: &ServoComputedValues, +pub fn padding_from_style(style: &ComputedValues, containing_block_inline_size: Au, writing_mode: WritingMode) -> LogicalMargin { @@ -498,7 +498,7 @@ pub fn padding_from_style(style: &ServoComputedValues, /// /// This is used when calculating intrinsic inline sizes. #[inline] -pub fn specified_margin_from_style(style: &ServoComputedValues, +pub fn specified_margin_from_style(style: &ComputedValues, writing_mode: WritingMode) -> LogicalMargin { let margin_style = style.get_margin(); LogicalMargin::from_physical(writing_mode, SideOffsets2D::new( diff --git a/components/layout/multicol.rs b/components/layout/multicol.rs index afe45c2aea7..739341ab4e3 100644 --- a/components/layout/multicol.rs +++ b/components/layout/multicol.rs @@ -20,7 +20,7 @@ use std::cmp::{min, max}; use std::fmt; use std::sync::Arc; use style::logical_geometry::LogicalSize; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::values::Either; use style::values::computed::{LengthOrPercentageOrAuto, LengthOrPercentageOrNone}; @@ -193,7 +193,7 @@ impl Flow for MulticolFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &StyleArc) { + fn repair_style(&mut self, new_style: &StyleArc) { self.block_flow.repair_style(new_style) } @@ -275,7 +275,7 @@ impl Flow for MulticolColumnFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &StyleArc) { + fn repair_style(&mut self, new_style: &StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/table.rs b/components/layout/table.rs index d199b059a69..809e2ac4e29 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -24,7 +24,7 @@ use std::fmt; use style::computed_values::{border_collapse, border_spacing, table_layout}; use style::context::SharedStyleContext; use style::logical_geometry::LogicalSize; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::servo::restyle_damage::{REFLOW, REFLOW_OUT_OF_FLOW}; use style::values::CSSFloat; use style::values::computed::LengthOrPercentageOrAuto; @@ -506,7 +506,7 @@ impl Flow for TableFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 99d95fd9587..c225339b082 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -16,7 +16,7 @@ use fragment::{Fragment, FragmentBorderBoxIterator, Overflow}; use gfx_traits::print_tree::PrintTree; use std::fmt; use style::logical_geometry::LogicalSize; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; /// A table formatting context. pub struct TableCaptionFlow { @@ -83,7 +83,7 @@ impl Flow for TableCaptionFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/table_cell.rs b/components/layout/table_cell.rs index 47f74891488..6ba7667a0a9 100644 --- a/components/layout/table_cell.rs +++ b/components/layout/table_cell.rs @@ -20,7 +20,7 @@ use script_layout_interface::wrapper_traits::ThreadSafeLayoutNode; use std::fmt; use style::computed_values::{border_collapse, border_top_style, vertical_align}; use style::logical_geometry::{LogicalMargin, LogicalRect, LogicalSize, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::values::computed::Color; use table::InternalTable; use table_row::{CollapsedBorder, CollapsedBorderProvenance}; @@ -263,7 +263,7 @@ impl Flow for TableCellFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/table_colgroup.rs b/components/layout/table_colgroup.rs index 85d5207646e..4967f19ee73 100644 --- a/components/layout/table_colgroup.rs +++ b/components/layout/table_colgroup.rs @@ -16,7 +16,7 @@ use layout_debug; use std::cmp::max; use std::fmt; use style::logical_geometry::LogicalSize; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::values::computed::LengthOrPercentageOrAuto; /// A table formatting context. @@ -94,7 +94,7 @@ impl Flow for TableColGroupFlow { fn collect_stacking_contexts(&mut self, _: &mut DisplayListBuildState) {} - fn repair_style(&mut self, _: &::StyleArc) {} + fn repair_style(&mut self, _: &::StyleArc) {} fn compute_overflow(&self) -> Overflow { Overflow::new() diff --git a/components/layout/table_row.rs b/components/layout/table_row.rs index 45b47ee8de5..cc683096831 100644 --- a/components/layout/table_row.rs +++ b/components/layout/table_row.rs @@ -23,7 +23,7 @@ use std::fmt; use std::iter::{Enumerate, IntoIterator, Peekable}; use style::computed_values::{border_collapse, border_spacing, border_top_style}; use style::logical_geometry::{LogicalSize, PhysicalSide, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::servo::restyle_damage::{REFLOW, REFLOW_OUT_OF_FLOW}; use style::values::computed::{Color, LengthOrPercentageOrAuto}; use table::{ColumnComputedInlineSize, ColumnIntrinsicInlineSize, InternalTable, VecExt}; @@ -481,7 +481,7 @@ impl Flow for TableRowFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } @@ -612,7 +612,7 @@ impl CollapsedBorder { /// Creates a collapsed border from the block-start border described in the given CSS style /// object. - fn top(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + fn top(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder { style: css_style.get_border().border_top_style, @@ -624,7 +624,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the right border described in the given CSS style /// object. - fn right(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + fn right(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder { style: css_style.get_border().border_right_style, @@ -636,7 +636,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the bottom border described in the given CSS style /// object. - fn bottom(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + fn bottom(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder { style: css_style.get_border().border_bottom_style, @@ -648,7 +648,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the left border described in the given CSS style /// object. - fn left(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + fn left(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder { style: css_style.get_border().border_left_style, @@ -660,7 +660,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the given physical side. fn from_side(side: PhysicalSide, - css_style: &ServoComputedValues, + css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { match side { @@ -673,7 +673,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the inline-start border described in the given CSS /// style object. - pub fn inline_start(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + pub fn inline_start(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder::from_side(css_style.writing_mode.inline_start_physical_side(), css_style, @@ -682,7 +682,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the inline-start border described in the given CSS /// style object. - pub fn inline_end(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + pub fn inline_end(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder::from_side(css_style.writing_mode.inline_end_physical_side(), css_style, @@ -691,7 +691,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the block-start border described in the given CSS /// style object. - pub fn block_start(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + pub fn block_start(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder::from_side(css_style.writing_mode.block_start_physical_side(), css_style, @@ -700,7 +700,7 @@ impl CollapsedBorder { /// Creates a collapsed border style from the block-end border described in the given CSS style /// object. - pub fn block_end(css_style: &ServoComputedValues, provenance: CollapsedBorderProvenance) + pub fn block_end(css_style: &ComputedValues, provenance: CollapsedBorderProvenance) -> CollapsedBorder { CollapsedBorder::from_side(css_style.writing_mode.block_end_physical_side(), css_style, @@ -909,7 +909,7 @@ pub struct BorderCollapseInfoForChildTableCell<'a> { /// table row. This is done eagerly here so that at least the inline inside border collapse /// computations can be parallelized across all the rows of the table. fn perform_inline_direction_border_collapse_for_row( - row_style: &ServoComputedValues, + row_style: &ComputedValues, children_count: usize, child_index: usize, child_table_cell: &mut TableCellFlow, diff --git a/components/layout/table_rowgroup.rs b/components/layout/table_rowgroup.rs index 7664796b082..779832923d0 100644 --- a/components/layout/table_rowgroup.rs +++ b/components/layout/table_rowgroup.rs @@ -20,7 +20,7 @@ use std::fmt; use std::iter::{IntoIterator, Iterator, Peekable}; use style::computed_values::{border_collapse, border_spacing}; use style::logical_geometry::LogicalSize; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use table::{ColumnIntrinsicInlineSize, InternalTable, TableLikeFlow}; /// A table formatting context. @@ -185,7 +185,7 @@ impl Flow for TableRowGroupFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs index 015f32a9762..ac0e6025c67 100644 --- a/components/layout/table_wrapper.rs +++ b/components/layout/table_wrapper.rs @@ -30,7 +30,7 @@ use std::ops::Add; use style::computed_values::{border_collapse, position, table_layout}; use style::context::SharedStyleContext; use style::logical_geometry::{LogicalRect, LogicalSize}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::values::CSSFloat; use style::values::computed::LengthOrPercentageOrAuto; use table::{ColumnComputedInlineSize, ColumnIntrinsicInlineSize}; @@ -466,7 +466,7 @@ impl Flow for TableWrapperFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::StyleArc) { + fn repair_style(&mut self, new_style: &::StyleArc) { self.block_flow.repair_style(new_style) } diff --git a/components/layout/text.rs b/components/layout/text.rs index 10093f251b8..ab2f941fc03 100644 --- a/components/layout/text.rs +++ b/components/layout/text.rs @@ -26,7 +26,7 @@ use std::sync::Arc; use style::computed_values::{text_rendering, text_transform}; use style::computed_values::{word_break, white_space}; use style::logical_geometry::{LogicalSize, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::properties::style_structs; use style::values::generics::text::LineHeight; use unicode_bidi as bidi; @@ -445,7 +445,7 @@ pub fn font_metrics_for_style(font_context: &mut FontContext, font_style: ::Styl } /// Returns the line block-size needed by the given computed style and font size. -pub fn line_height_from_style(style: &ServoComputedValues, metrics: &FontMetrics) -> Au { +pub fn line_height_from_style(style: &ComputedValues, metrics: &FontMetrics) -> Au { let font_size = style.get_font().font_size; match style.get_inheritedtext().line_height { LineHeight::Normal => metrics.line_gap, diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 33ffc3b545b..a32a6e6b99c 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -22,7 +22,7 @@ use style::data::ElementData; use style::dom::{LayoutIterator, NodeInfo, PresentationalHintsSynthesizer, TNode}; use style::dom::OpaqueNode; use style::font_metrics::ServoMetricsProvider; -use style::properties::{CascadeFlags, ServoComputedValues}; +use style::properties::{CascadeFlags, ComputedValues}; use style::selector_parser::{PseudoElement, PseudoElementCascadeType, SelectorImpl}; use style::stylearc::Arc; use style::stylist::RuleInclusion; @@ -181,7 +181,7 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo /// it can be used to reach siblings and cousins. A simple immutable borrow /// of the parent data is fine, since the bottom-up traversal will not process /// the parent until all the children have been processed. - fn parent_style(&self) -> Arc; + fn parent_style(&self) -> Arc; #[inline] fn is_element_or_elements_pseudo(&self) -> bool { @@ -223,7 +223,7 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo fn get_style_and_layout_data(&self) -> Option; - fn style(&self, context: &SharedStyleContext) -> Arc { + fn style(&self, context: &SharedStyleContext) -> Arc { if let Some(el) = self.as_element() { el.style(context) } else { @@ -234,7 +234,7 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo } } - fn selected_style(&self) -> Arc { + fn selected_style(&self) -> Arc { if let Some(el) = self.as_element() { el.selected_style() } else { @@ -393,7 +393,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + /// /// Unlike the version on TNode, this handles pseudo-elements. #[inline] - fn style(&self, context: &SharedStyleContext) -> Arc { + fn style(&self, context: &SharedStyleContext) -> Arc { let data = self.style_data(); match self.get_pseudo_element_type() { PseudoElementType::Normal => { @@ -438,7 +438,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + } #[inline] - fn selected_style(&self) -> Arc { + fn selected_style(&self) -> Arc { let data = self.style_data(); data.styles.pseudos .get(&PseudoElement::Selection).map(|s| s) @@ -454,7 +454,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + /// This should be used just for querying layout, or when we know the /// element style is precomputed, not from general layout itself. #[inline] - fn resolved_style(&self) -> Arc { + fn resolved_style(&self) -> Arc { let data = self.style_data(); match self.get_pseudo_element_type() { PseudoElementType::Normal diff --git a/components/style/animation.rs b/components/style/animation.rs index a696d6bb303..84392bead13 100644 --- a/components/style/animation.rs +++ b/components/style/animation.rs @@ -11,7 +11,7 @@ use context::SharedStyleContext; use dom::OpaqueNode; use euclid::Point2D; use font_metrics::FontMetricsProvider; -use properties::{self, CascadeFlags, ComputedValues, Importance}; +use properties::{self, CascadeFlags, ComputedValues, ComputedValuesInner, Importance}; use properties::animated_properties::{AnimatableLonghand, AnimatedProperty, TransitionProperty}; use properties::longhands::animation_direction::computed_value::single_value::T as AnimationDirection; use properties::longhands::animation_iteration_count::single_value::computed_value::T as AnimationIterationCount; @@ -347,8 +347,8 @@ impl PropertyAnimation { fn from_animatable_longhand(animatable_longhand: &AnimatableLonghand, timing_function: TimingFunction, duration: Time, - old_style: &ComputedValues, - new_style: &ComputedValues) + old_style: &ComputedValuesInner, + new_style: &ComputedValuesInner) -> Option { let animated_property = AnimatedProperty::from_animatable_longhand(animatable_longhand, old_style, @@ -480,10 +480,10 @@ pub fn start_transitions_if_applicable(new_animations_sender: &Sender fn compute_style_for_animation_step(context: &SharedStyleContext, step: &KeyframesStep, - previous_style: &ComputedValues, - style_from_cascade: &ComputedValues, + previous_style: &ComputedValuesInner, + style_from_cascade: &ComputedValuesInner, font_metrics_provider: &FontMetricsProvider) - -> ComputedValues { + -> ComputedValuesInner { match step.value { KeyframesStepValue::ComputedValues => style_from_cascade.clone(), KeyframesStepValue::Declarations { block: ref declarations } => { diff --git a/components/style/dom.rs b/components/style/dom.rs index fefa193eba9..8a3e9e7643e 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -15,7 +15,7 @@ use data::ElementData; use element_state::ElementState; use font_metrics::FontMetricsProvider; use media_queries::Device; -use properties::{AnimationRules, ComputedValues, PropertyDeclarationBlock}; +use properties::{AnimationRules, ComputedValues, ComputedValuesInner, PropertyDeclarationBlock}; #[cfg(feature = "gecko")] use properties::animated_properties::AnimationValue; #[cfg(feature = "gecko")] use properties::animated_properties::TransitionProperty; use rule_tree::CascadeLevel; @@ -436,7 +436,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone + fn may_generate_pseudo( &self, pseudo: &PseudoElement, - _primary_style: &ComputedValues, + _primary_style: &ComputedValuesInner, ) -> bool { // ::before/::after are always supported for now, though we could try to // optimize out leaf elements. diff --git a/components/style/gecko/data.rs b/components/style/gecko/data.rs index c6a73714b26..88af4fed72d 100644 --- a/components/style/gecko/data.rs +++ b/components/style/gecko/data.rs @@ -16,7 +16,7 @@ use gecko_bindings::structs::nsIDocument; use gecko_bindings::sugar::ownership::{HasArcFFI, HasBoxFFI, HasFFI, HasSimpleFFI}; use invalidation::media_queries::{MediaListKey, ToMediaListKey}; use media_queries::{Device, MediaList}; -use properties::ComputedValues; +use properties::ComputedValuesInner; use shared_lock::{Locked, StylesheetGuards, SharedRwLockReadGuard}; use stylearc::Arc; use stylesheet_set::StylesheetSet; @@ -188,8 +188,8 @@ impl PerDocumentStyleDataImpl { } /// Get the default computed values for this document. - pub fn default_computed_values(&self) -> &Arc { - self.stylist.device().default_computed_values_arc() + pub fn default_computed_values(&self) -> &ComputedValuesInner { + self.stylist.device().default_computed_values() } /// Clear the stylist. This will be a no-op if the stylist is diff --git a/components/style/gecko/media_queries.rs b/components/style/gecko/media_queries.rs index 58dbe0f9c9d..2e7d6c594e1 100644 --- a/components/style/gecko/media_queries.rs +++ b/components/style/gecko/media_queries.rs @@ -17,7 +17,7 @@ use gecko_bindings::structs::{nsMediaFeature_ValueType, nsMediaFeature_RangeType use gecko_bindings::structs::{nsPresContext, RawGeckoPresContextOwned}; use media_queries::MediaType; use parser::ParserContext; -use properties::{ComputedValues, StyleBuilder}; +use properties::{ComputedValuesInner, StyleBuilder}; use properties::longhands::font_size; use selectors::parser::SelectorParseError; use std::fmt::{self, Write}; @@ -26,7 +26,6 @@ use str::starts_with_ignore_ascii_case; use string_cache::Atom; use style_traits::{ToCss, ParseError, StyleParseError}; use style_traits::viewport::ViewportConstraints; -use stylearc::Arc; use values::{CSSFloat, specified}; use values::computed::{self, ToComputedValue}; @@ -37,7 +36,7 @@ pub struct Device { /// stylist, and thus the `Device`, so having a raw pres context pointer /// here is fine. pres_context: RawGeckoPresContextOwned, - default_values: Arc, + default_values: ComputedValuesInner, viewport_override: Option, /// The font size of the root element /// This is set when computing the style of the root @@ -62,7 +61,7 @@ impl Device { assert!(!pres_context.is_null()); Device { pres_context: pres_context, - default_values: ComputedValues::default_values(unsafe { &*pres_context }), + default_values: ComputedValuesInner::default_values(unsafe { &*pres_context }), viewport_override: None, root_font_size: AtomicIsize::new(font_size::get_initial_value().0 as isize), // FIXME(bz): Seems dubious? used_root_font_size: AtomicBool::new(false), @@ -78,19 +77,7 @@ impl Device { /// Returns the default computed values as a reference, in order to match /// Servo. - pub fn default_computed_values(&self) -> &ComputedValues { - &*self.default_values - } - - /// Returns the default computed values, but wrapped in an arc for cheap - /// cloning. - pub fn default_computed_values_arc(&self) -> &Arc { - &self.default_values - } - - /// Returns the default computed values as an `Arc`, in order to avoid - /// clones. - pub fn default_values_arc(&self) -> &Arc { + pub fn default_computed_values(&self) -> &ComputedValuesInner { &self.default_values } @@ -114,7 +101,7 @@ impl Device { pub fn reset_computed_values(&mut self) { // NB: A following stylesheet flush will populate this if appropriate. self.viewport_override = None; - self.default_values = ComputedValues::default_values(self.pres_context()); + self.default_values = ComputedValuesInner::default_values(self.pres_context()); self.used_root_font_size.store(false, Ordering::Relaxed); } diff --git a/components/style/properties/declaration_block.rs b/components/style/properties/declaration_block.rs index 7afbdbdd518..0e2bb0eb040 100644 --- a/components/style/properties/declaration_block.rs +++ b/components/style/properties/declaration_block.rs @@ -110,13 +110,13 @@ impl<'a> Iterator for PropertyDeclarationIterator<'a> { pub struct AnimationValueIterator<'a, 'cx, 'cx_a:'cx> { iter: Iter<'a, (PropertyDeclaration, Importance)>, context: &'cx mut Context<'cx_a>, - default_values: &'a Arc, + default_values: &'a ComputedValuesInner, } impl<'a, 'cx, 'cx_a:'cx> AnimationValueIterator<'a, 'cx, 'cx_a> { fn new(declarations: &'a PropertyDeclarationBlock, context: &'cx mut Context<'cx_a>, - default_values: &'a Arc) -> AnimationValueIterator<'a, 'cx, 'cx_a> { + default_values: &'a ComputedValuesInner) -> AnimationValueIterator<'a, 'cx, 'cx_a> { AnimationValueIterator { iter: declarations.declarations().iter(), context: context, @@ -204,7 +204,7 @@ impl PropertyDeclarationBlock { /// Return an iterator of (AnimatableLonghand, AnimationValue). pub fn to_animation_value_iter<'a, 'cx, 'cx_a:'cx>(&'a self, context: &'cx mut Context<'cx_a>, - default_values: &'a Arc) + default_values: &'a ComputedValuesInner) -> AnimationValueIterator<'a, 'cx, 'cx_a> { AnimationValueIterator::new(self, context, default_values) } diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index a432e8d2369..74b93402090 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -97,7 +97,7 @@ impl Clone for ComputedValuesInner { } } -impl ComputedValues { +impl ComputedValuesInner { pub fn new(custom_properties: Option>, writing_mode: WritingMode, font_size_keyword: Option<(longhands::font_size::KeywordSize, f32)>, @@ -108,24 +108,21 @@ impl ComputedValues { ${style_struct.ident}: Arc, % endfor ) -> Self { - ComputedValues { - inner: ComputedValuesInner { - custom_properties: custom_properties, - writing_mode: writing_mode, - font_computation_data: FontComputationData::new(font_size_keyword), - rules: rules, - visited_style: visited_style, - flags: flags, - % for style_struct in data.style_structs: - ${style_struct.gecko_name}: Arc::into_raw_offset(${style_struct.ident}), - % endfor - } + ComputedValuesInner { + custom_properties: custom_properties, + writing_mode: writing_mode, + font_computation_data: FontComputationData::new(font_size_keyword), + rules: rules, + visited_style: visited_style, + flags: flags, + % for style_struct in data.style_structs: + ${style_struct.gecko_name}: Arc::into_raw_offset(${style_struct.ident}), + % endfor } } - pub fn default_values(pres_context: RawGeckoPresContextBorrowed) -> Arc { - Arc::new(ComputedValues { - inner: ComputedValuesInner { + pub fn default_values(pres_context: RawGeckoPresContextBorrowed) -> Self { + ComputedValuesInner { custom_properties: None, writing_mode: WritingMode::empty(), // FIXME(bz): This seems dubious font_computation_data: FontComputationData::default_values(), @@ -135,8 +132,10 @@ impl ComputedValues { % for style_struct in data.style_structs: ${style_struct.gecko_name}: Arc::into_raw_offset(style_structs::${style_struct.name}::default(pres_context)), % endfor - } - }) + } + } + pub fn to_outer(self) -> Arc { + Arc::new(ComputedValues {inner: self}) } } @@ -198,12 +197,12 @@ impl ComputedValuesInner { } /// Gets a reference to the visited style, if any. - pub fn get_visited_style(&self) -> Option<<&Arc> { - self.visited_style.as_ref() + pub fn get_visited_style(&self) -> Option< & ComputedValuesInner> { + self.visited_style.as_ref().map(|x| &***x) } /// Gets a reference to the visited style. Panic if no visited style exists. - pub fn visited_style(&self) -> &Arc { + pub fn visited_style(&self) -> &ComputedValuesInner { self.get_visited_style().unwrap() } diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index e59be799737..580e2fd6329 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -292,7 +292,7 @@ #[allow(unused_imports)] use properties::{DeclaredValue, LonghandId, LonghandIdSet}; #[allow(unused_imports)] - use properties::{CSSWideKeyword, ComputedValues, PropertyDeclaration}; + use properties::{CSSWideKeyword, ComputedValuesInner, PropertyDeclaration}; #[allow(unused_imports)] use properties::style_structs; #[allow(unused_imports)] @@ -310,8 +310,8 @@ ${caller.body()} #[allow(unused_variables)] pub fn cascade_property(declaration: &PropertyDeclaration, - inherited_style: &ComputedValues, - default_style: &ComputedValues, + inherited_style: &ComputedValuesInner, + default_style: &ComputedValuesInner, context: &mut computed::Context, cacheable: &mut bool, cascade_info: &mut Option<<&mut CascadeInfo>) { diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index d81028284e3..f4c16093f91 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -29,7 +29,7 @@ use smallvec::SmallVec; use std::cmp; #[cfg(feature = "gecko")] use fnv::FnvHashMap; use style_traits::ParseError; -use super::ComputedValues; +use super::ComputedValuesInner; #[cfg(any(feature = "gecko", feature = "testing"))] use values::Auto; use values::{CSSFloat, CustomIdent, Either}; @@ -394,7 +394,7 @@ impl AnimatedProperty { /// Update `style` with the proper computed style corresponding to this /// animation at `progress`. - pub fn update(&self, style: &mut ComputedValues, progress: f64) { + pub fn update(&self, style: &mut ComputedValuesInner, progress: f64) { match *self { % for prop in data.longhands: % if prop.animatable: @@ -427,8 +427,8 @@ impl AnimatedProperty { /// Get an animatable value from a transition-property, an old style, and a /// new style. pub fn from_animatable_longhand(property: &AnimatableLonghand, - old_style: &ComputedValues, - new_style: &ComputedValues) + old_style: &ComputedValuesInner, + new_style: &ComputedValuesInner) -> AnimatedProperty { match *property { % for prop in data.longhands: @@ -521,7 +521,7 @@ impl AnimationValue { /// Construct an AnimationValue from a property declaration pub fn from_declaration(decl: &PropertyDeclaration, context: &mut Context, - initial: &ComputedValues) -> Option { + initial: &ComputedValuesInner) -> Option { use properties::LonghandId; match *decl { @@ -593,7 +593,7 @@ impl AnimationValue { /// Get an AnimationValue for an AnimatableLonghand from a given computed values. pub fn from_computed_values(property: &AnimatableLonghand, - computed_values: &ComputedValues) + computed_values: &ComputedValuesInner) -> Self { match *property { % for prop in data.longhands: diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index f2c3c8d517e..10e1358e48d 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -181,7 +181,7 @@ % if product == "servo": fn cascade_property_custom(_declaration: &PropertyDeclaration, - _inherited_style: &ComputedValues, + _inherited_style: &ComputedValuesInner, context: &mut computed::Context, _cacheable: &mut bool) { longhands::_servo_display_for_hypothetical_box::derive_from_display(context); diff --git a/components/style/properties/longhand/text.mako.rs b/components/style/properties/longhand/text.mako.rs index 3be23f1681e..c2ec468f7c1 100644 --- a/components/style/properties/longhand/text.mako.rs +++ b/components/style/properties/longhand/text.mako.rs @@ -249,7 +249,7 @@ ${helpers.single_keyword("unicode-bidi", % if product == "servo": fn cascade_property_custom(_declaration: &PropertyDeclaration, - _inherited_style: &ComputedValues, + _inherited_style: &ComputedValuesInner, context: &mut computed::Context, _cacheable: &mut bool) { longhands::_servo_text_decorations_in_effect::derive_from_text_decoration(context); diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index cc3a38731a0..383bc5651ec 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1872,6 +1872,8 @@ pub mod style_structs { #[cfg(feature = "gecko")] pub use gecko_properties::ComputedValues; +#[cfg(feature = "gecko")] +pub use gecko_properties::ComputedValuesInner; #[cfg(feature = "servo")] @@ -1920,7 +1922,7 @@ pub struct ComputedValues { } #[cfg(feature = "servo")] -impl ComputedValues { +impl ComputedValuesInner { /// Construct a `ComputedValues` instance. pub fn new( custom_properties: Option>, @@ -1933,18 +1935,16 @@ impl ComputedValues { ${style_struct.ident}: Arc, % endfor ) -> Self { - ComputedValues { - inner: ComputedValuesInner { - custom_properties: custom_properties, - writing_mode: writing_mode, - font_computation_data: FontComputationData::new(font_size_keyword), - rules: rules, - visited_style: visited_style, - flags: flags, - % for style_struct in data.active_style_structs(): - ${style_struct.ident}: ${style_struct.ident}, - % endfor - } + ComputedValuesInner { + custom_properties: custom_properties, + writing_mode: writing_mode, + font_computation_data: FontComputationData::new(font_size_keyword), + rules: rules, + visited_style: visited_style, + flags: flags, + % for style_struct in data.active_style_structs(): + ${style_struct.ident}: ${style_struct.ident}, + % endfor } } @@ -1969,6 +1969,11 @@ impl ops::DerefMut for ComputedValues { #[cfg(feature = "servo")] impl ComputedValuesInner { + /// Convert to an Arc + pub fn to_outer(self) -> Arc { + Arc::new(ComputedValues {inner: self}) + } + % for style_struct in data.active_style_structs(): /// Clone the ${style_struct.name} struct. #[inline] @@ -2006,13 +2011,13 @@ impl ComputedValuesInner { } /// Gets a reference to the visited style, if any. - pub fn get_visited_style(&self) -> Option<<&Arc> { - self.visited_style.as_ref() + pub fn get_visited_style(&self) -> Option< & ComputedValuesInner> { + self.visited_style.as_ref().map(|x| &***x) } /// Gets a reference to the visited style. Panic if no visited style exists. - pub fn visited_style(&self) -> &Arc { - self.get_visited_style().unwrap() + pub fn visited_style(&self) -> &ComputedValuesInner { + self.get_visited_style().as_ref().map(|x| &**x).unwrap() } /// Clone the visited style. Used for inheriting parent styles in @@ -2441,8 +2446,8 @@ pub struct StyleBuilder<'a> { impl<'a> StyleBuilder<'a> { /// Trivially construct a `StyleBuilder`. fn new( - inherited_style: &'a ComputedValues, - reset_style: &'a ComputedValues, + inherited_style: &'a ComputedValuesInner, + reset_style: &'a ComputedValuesInner, rules: Option, custom_properties: Option>, writing_mode: WritingMode, @@ -2469,15 +2474,15 @@ impl<'a> StyleBuilder<'a> { /// Creates a StyleBuilder holding only references to the structs of `s`, in /// order to create a derived style. - pub fn for_derived_style(s: &'a ComputedValues) -> Self { + pub fn for_derived_style(s: &'a ComputedValuesInner) -> Self { Self::for_inheritance(s, s) } /// Inherits style from the parent element, accounting for the default /// computed values that need to be provided as well. pub fn for_inheritance( - parent: &'a ComputedValues, - default: &'a ComputedValues + parent: &'a ComputedValuesInner, + default: &'a ComputedValuesInner ) -> Self { Self::new( parent, @@ -2521,7 +2526,7 @@ impl<'a> StyleBuilder<'a> { } /// Reset the current `${style_struct.name}` style to its default value. - pub fn reset_${style_struct.name_lower}(&mut self, default: &'a ComputedValues) { + pub fn reset_${style_struct.name_lower}(&mut self, default: &'a ComputedValuesInner) { self.${style_struct.ident} = StyleStructRef::Borrowed(default.${style_struct.name_lower}_arc()); } @@ -2555,8 +2560,8 @@ impl<'a> StyleBuilder<'a> { /// Turns this `StyleBuilder` into a proper `ComputedValues` instance. - pub fn build(self) -> ComputedValues { - ComputedValues::new(self.custom_properties, + pub fn build(self) -> ComputedValuesInner { + ComputedValuesInner::new(self.custom_properties, self.writing_mode, self.font_size_keyword, self.flags, @@ -2586,30 +2591,28 @@ pub use self::lazy_static_module::INITIAL_SERVO_VALUES; mod lazy_static_module { use logical_geometry::WritingMode; use stylearc::Arc; - use super::{ComputedValues, ComputedValuesInner, longhands, style_structs, FontComputationData}; + use super::{ComputedValuesInner, longhands, style_structs, FontComputationData}; use super::computed_value_flags::ComputedValueFlags; /// The initial values for all style structs as defined by the specification. lazy_static! { - pub static ref INITIAL_SERVO_VALUES: ComputedValues = ComputedValues { - inner: ComputedValuesInner { - % for style_struct in data.active_style_structs(): - ${style_struct.ident}: Arc::new(style_structs::${style_struct.name} { - % for longhand in style_struct.longhands: - ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), - % endfor - % if style_struct.name == "Font": - hash: 0, - % endif - }), - % endfor - custom_properties: None, - writing_mode: WritingMode::empty(), - font_computation_data: FontComputationData::default_values(), - rules: None, - visited_style: None, - flags: ComputedValueFlags::empty(), - } + pub static ref INITIAL_SERVO_VALUES: ComputedValuesInner = ComputedValuesInner { + % for style_struct in data.active_style_structs(): + ${style_struct.ident}: Arc::new(style_structs::${style_struct.name} { + % for longhand in style_struct.longhands: + ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), + % endfor + % if style_struct.name == "Font": + hash: 0, + % endif + }), + % endfor + custom_properties: None, + writing_mode: WritingMode::empty(), + font_computation_data: FontComputationData::default_values(), + rules: None, + visited_style: None, + flags: ComputedValueFlags::empty(), }; } } @@ -2617,8 +2620,8 @@ mod lazy_static_module { /// A per-longhand function that performs the CSS cascade for that longhand. pub type CascadePropertyFn = extern "Rust" fn(declaration: &PropertyDeclaration, - inherited_style: &ComputedValues, - default_style: &ComputedValues, + inherited_style: &ComputedValuesInner, + default_style: &ComputedValuesInner, context: &mut computed::Context, cacheable: &mut bool, cascade_info: &mut Option<<&mut CascadeInfo>); @@ -2679,14 +2682,14 @@ bitflags! { pub fn cascade(device: &Device, rule_node: &StrongRuleNode, guards: &StylesheetGuards, - parent_style: Option<<&ComputedValues>, - layout_parent_style: Option<<&ComputedValues>, + parent_style: Option<<&ComputedValuesInner>, + layout_parent_style: Option<<&ComputedValuesInner>, visited_style: Option>, cascade_info: Option<<&mut CascadeInfo>, font_metrics_provider: &FontMetricsProvider, flags: CascadeFlags, quirks_mode: QuirksMode) - -> ComputedValues { + -> ComputedValuesInner { debug_assert!(layout_parent_style.is_none() || parent_style.is_some()); let (inherited_style, layout_parent_style) = match parent_style { Some(parent_style) => { @@ -2741,14 +2744,14 @@ pub fn cascade(device: &Device, pub fn apply_declarations<'a, F, I>(device: &Device, rules: &StrongRuleNode, iter_declarations: F, - inherited_style: &ComputedValues, - layout_parent_style: &ComputedValues, + inherited_style: &ComputedValuesInner, + layout_parent_style: &ComputedValuesInner, visited_style: Option>, mut cascade_info: Option<<&mut CascadeInfo>, font_metrics_provider: &FontMetricsProvider, flags: CascadeFlags, quirks_mode: QuirksMode) - -> ComputedValues + -> ComputedValuesInner where F: Fn() -> I, I: Iterator, { diff --git a/components/style/servo/media_queries.rs b/components/style/servo/media_queries.rs index 023f5f8de77..ba758af514d 100644 --- a/components/style/servo/media_queries.rs +++ b/components/style/servo/media_queries.rs @@ -11,7 +11,7 @@ use euclid::{Size2D, TypedSize2D}; use font_metrics::ServoMetricsProvider; use media_queries::MediaType; use parser::ParserContext; -use properties::{ComputedValues, StyleBuilder}; +use properties::{ComputedValuesInner, StyleBuilder}; use properties::longhands::font_size; use selectors::parser::SelectorParseError; use std::fmt; @@ -62,11 +62,11 @@ impl Device { } /// Return the default computed values for this device. - pub fn default_computed_values(&self) -> &ComputedValues { + pub fn default_computed_values(&self) -> &ComputedValuesInner { // FIXME(bz): This isn't really right, but it's no more wrong // than what we used to do. See // https://github.com/servo/servo/issues/14773 for fixing it properly. - ComputedValues::initial_values() + ComputedValuesInner::initial_values() } /// Get the font size of the root element (for rem) diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 5b60231b2c4..9b4d8a69551 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -6,7 +6,7 @@ //! a computed style needs in order for it to adhere to the CSS spec. use app_units::Au; -use properties::{self, CascadeFlags, ComputedValues}; +use properties::{self, CascadeFlags, ComputedValuesInner}; use properties::{IS_ROOT_ELEMENT, SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP, StyleBuilder}; use properties::longhands::display::computed_value::T as display; use properties::longhands::float::computed_value::T as float; @@ -54,7 +54,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// Apply the blockification rules based on the table in CSS 2.2 section 9.7. /// https://drafts.csswg.org/css2/visuren.html#dis-pos-flo fn blockify_if_necessary(&mut self, - layout_parent_style: &ComputedValues, + layout_parent_style: &ComputedValuesInner, flags: CascadeFlags) { let mut blockify = false; macro_rules! blockify_if { @@ -136,7 +136,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// https://lists.w3.org/Archives/Public/www-style/2017Mar/0045.html /// https://github.com/servo/servo/issues/15754 fn adjust_for_writing_mode(&mut self, - layout_parent_style: &ComputedValues) { + layout_parent_style: &ComputedValuesInner) { let our_writing_mode = self.style.get_inheritedbox().clone_writing_mode(); let parent_writing_mode = layout_parent_style.get_inheritedbox().clone_writing_mode(); @@ -196,7 +196,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// /// See https://github.com/servo/servo/issues/15229 #[cfg(feature = "servo")] - fn adjust_for_alignment(&mut self, layout_parent_style: &ComputedValues) { + fn adjust_for_alignment(&mut self, layout_parent_style: &ComputedValuesInner) { use computed_values::align_items::T as align_items; use computed_values::align_self::T as align_self; @@ -315,7 +315,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { } /// Set the HAS_TEXT_DECORATION_LINES flag based on parent style. - fn adjust_for_text_decoration_lines(&mut self, layout_parent_style: &ComputedValues) { + fn adjust_for_text_decoration_lines(&mut self, layout_parent_style: &ComputedValuesInner) { use properties::computed_value_flags::HAS_TEXT_DECORATION_LINES; if layout_parent_style.flags.contains(HAS_TEXT_DECORATION_LINES) || !self.style.get_text().clone_text_decoration_line().is_empty() { @@ -324,7 +324,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { } #[cfg(feature = "gecko")] - fn should_suppress_linebreak(&self, layout_parent_style: &ComputedValues) -> bool { + fn should_suppress_linebreak(&self, layout_parent_style: &ComputedValuesInner) -> bool { use properties::computed_value_flags::SHOULD_SUPPRESS_LINEBREAK; // Line break suppression should only be propagated to in-flow children. if self.style.floated() || self.style.out_of_flow_positioned() { @@ -361,8 +361,8 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// * correct unicode-bidi. #[cfg(feature = "gecko")] fn adjust_for_ruby(&mut self, - layout_parent_style: &ComputedValues, - default_computed_values: &'b ComputedValues, + layout_parent_style: &ComputedValuesInner, + default_computed_values: &'b ComputedValuesInner, flags: CascadeFlags) { use properties::SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP; use properties::computed_value_flags::SHOULD_SUPPRESS_LINEBREAK; @@ -406,8 +406,8 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// When comparing to Gecko, this is similar to the work done by /// `nsStyleContext::ApplyStyleFixups`. pub fn adjust(&mut self, - layout_parent_style: &ComputedValues, - _default_computed_values: &'b ComputedValues, + layout_parent_style: &ComputedValuesInner, + _default_computed_values: &'b ComputedValuesInner, flags: CascadeFlags) { #[cfg(feature = "gecko")] { diff --git a/components/style/style_resolver.rs b/components/style/style_resolver.rs index 0a98e563e76..65d35aa6700 100644 --- a/components/style/style_resolver.rs +++ b/components/style/style_resolver.rs @@ -11,7 +11,7 @@ use data::{ElementStyles, EagerPseudoStyles}; use dom::TElement; use log::LogLevel::Trace; use matching::{CascadeVisitedMode, MatchMethods}; -use properties::{AnimationRules, CascadeFlags, ComputedValues}; +use properties::{AnimationRules, CascadeFlags, ComputedValues, ComputedValuesInner}; use properties::{IS_ROOT_ELEMENT, PROHIBIT_DISPLAY_CONTENTS, SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP}; use properties::{VISITED_DEPENDENT_ONLY, cascade}; use rule_tree::StrongRuleNode; @@ -47,7 +47,7 @@ pub struct PrimaryStyle { fn with_default_parent_styles(element: E, f: F) -> R where E: TElement, - F: FnOnce(Option<&ComputedValues>, Option<&ComputedValues>) -> R, + F: FnOnce(Option<&ComputedValuesInner>, Option<&ComputedValuesInner>) -> R, { let parent_el = element.inheritance_parent(); let parent_data = parent_el.as_ref().and_then(|e| e.borrow_data()); @@ -72,7 +72,7 @@ where layout_parent_style = Some(layout_parent_data.styles.primary()); } - f(parent_style.map(|s| &**s), layout_parent_style.map(|s| &**s)) + f(parent_style.map(|s| &***s), layout_parent_style.map(|s| &***s)) } impl<'a, 'ctx, 'le, E> StyleResolverForElement<'a, 'ctx, 'le, E> @@ -98,8 +98,8 @@ where /// Resolve just the style of a given element. pub fn resolve_primary_style( &mut self, - parent_style: Option<&ComputedValues>, - layout_parent_style: Option<&ComputedValues>, + parent_style: Option<&ComputedValuesInner>, + layout_parent_style: Option<&ComputedValuesInner>, ) -> PrimaryStyle { let primary_results = self.match_primary(VisitedHandlingMode::AllLinksUnvisited); @@ -146,8 +146,8 @@ where /// Resolve the style of a given element, and all its eager pseudo-elements. pub fn resolve_style( &mut self, - parent_style: Option<&ComputedValues>, - layout_parent_style: Option<&ComputedValues>, + parent_style: Option<&ComputedValuesInner>, + layout_parent_style: Option<&ComputedValuesInner>, ) -> ElementStyles { use properties::longhands::display::computed_value::T as display; @@ -168,7 +168,7 @@ where if primary_style.style.is_display_contents() { layout_parent_style } else { - Some(&*primary_style.style) + Some(&**primary_style.style) }; SelectorImpl::each_eagerly_cascaded_pseudo_element(|pseudo| { let pseudo_style = self.resolve_pseudo_style( @@ -215,8 +215,8 @@ where fn cascade_style_and_visited( &mut self, inputs: CascadeInputs, - parent_style: Option<&ComputedValues>, - layout_parent_style: Option<&ComputedValues>, + parent_style: Option<&ComputedValuesInner>, + layout_parent_style: Option<&ComputedValuesInner>, pseudo: Option<&PseudoElement>, ) -> Arc { let mut style_if_visited = None; @@ -272,7 +272,7 @@ where if primary_style.style.is_display_contents() { layout_parent_style } else { - Some(&*primary_style.style) + Some(&**primary_style.style) }; for (i, mut inputs) in pseudo_array.unwrap().iter_mut().enumerate() { @@ -302,7 +302,7 @@ where &mut self, pseudo: &PseudoElement, originating_element_style: &PrimaryStyle, - layout_parent_style: Option<&ComputedValues>, + layout_parent_style: Option<&ComputedValuesInner>, ) -> Option> { let rules = self.match_pseudo( &originating_element_style.style, @@ -398,7 +398,7 @@ where fn match_pseudo( &mut self, - originating_element_style: &ComputedValues, + originating_element_style: &ComputedValuesInner, pseudo_element: &PseudoElement, visited_handling: VisitedHandlingMode, ) -> Option { @@ -462,8 +462,8 @@ where &mut self, rules: Option<&StrongRuleNode>, style_if_visited: Option>, - mut parent_style: Option<&ComputedValues>, - layout_parent_style: Option<&ComputedValues>, + mut parent_style: Option<&ComputedValuesInner>, + layout_parent_style: Option<&ComputedValuesInner>, cascade_visited: CascadeVisitedMode, pseudo: Option<&PseudoElement>, ) -> Arc { @@ -475,7 +475,7 @@ where } if cascade_visited.visited_dependent_only() { parent_style = parent_style.map(|s| { - s.get_visited_style().map(|s| &**s).unwrap_or(s) + s.get_visited_style().unwrap_or(s) }); cascade_flags.insert(VISITED_DEPENDENT_ONLY); } @@ -486,7 +486,7 @@ where } let values = - Arc::new(cascade( + cascade( self.context.shared.stylist.device(), rules.unwrap_or(self.context.shared.stylist.rule_tree().root()), &self.context.shared.guards, @@ -497,9 +497,9 @@ where &self.context.thread_local.font_metrics_provider, cascade_flags, self.context.shared.quirks_mode - )); + ); cascade_info.finish(&self.element.as_node()); - values + values.to_outer() } } diff --git a/components/style/stylist.rs b/components/style/stylist.rs index 0b50b6d82f1..395a1cccf42 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -16,7 +16,7 @@ use gecko_bindings::structs::{nsIAtom, StyleRuleInclusion}; use invalidation::element::invalidation_map::InvalidationMap; use invalidation::media_queries::{EffectiveMediaQueryResults, ToMediaListKey}; use media_queries::Device; -use properties::{self, CascadeFlags, ComputedValues}; +use properties::{self, CascadeFlags, ComputedValues, ComputedValuesInner}; use properties::{AnimationRules, PropertyDeclarationBlock}; #[cfg(feature = "servo")] use properties::INHERIT_ALL; @@ -599,7 +599,7 @@ impl Stylist { pub fn precomputed_values_for_pseudo(&self, guards: &StylesheetGuards, pseudo: &PseudoElement, - parent: Option<&Arc>, + parent: Option<&ComputedValuesInner>, cascade_flags: CascadeFlags, font_metrics: &FontMetricsProvider) -> Arc { @@ -629,18 +629,16 @@ impl Stylist { // descendant of a display: contents element where display: contents is // the actual used value, and the computed value of it would need // blockification. - let computed = - properties::cascade(&self.device, - &rule_node, - guards, - parent.map(|p| &**p), - parent.map(|p| &**p), - None, - None, - font_metrics, - cascade_flags, - self.quirks_mode); - Arc::new(computed) + properties::cascade(&self.device, + &rule_node, + guards, + parent, + parent, + None, + None, + font_metrics, + cascade_flags, + self.quirks_mode).to_outer() } /// Returns the style for an anonymous box of the given type. @@ -648,7 +646,7 @@ impl Stylist { pub fn style_for_anonymous(&self, guards: &StylesheetGuards, pseudo: &PseudoElement, - parent_style: &Arc) + parent_style: &ComputedValuesInner) -> Arc { use font_metrics::ServoMetricsProvider; @@ -692,7 +690,7 @@ impl Stylist { element: &E, pseudo: &PseudoElement, rule_inclusion: RuleInclusion, - parent_style: &Arc, + parent_style: &ComputedValuesInner, is_probe: bool, font_metrics: &FontMetricsProvider) -> Option> @@ -713,7 +711,7 @@ impl Stylist { pub fn compute_pseudo_element_style_with_inputs(&self, inputs: &CascadeInputs, guards: &StylesheetGuards, - parent_style: &Arc, + parent_style: &ComputedValuesInner, font_metrics: &FontMetricsProvider) -> Option> { @@ -736,7 +734,7 @@ impl Stylist { // We want to use the visited bits (if any) from our parent style as // our parent. let inherited_style = - parent_style.get_visited_style().unwrap_or(&*parent_style); + parent_style.get_visited_style().unwrap_or(parent_style); // FIXME(emilio): The lack of layout_parent_style here could be // worrying, but we're probably dropping the display fixup for @@ -753,9 +751,9 @@ impl Stylist { None, font_metrics, CascadeFlags::empty(), - self.quirks_mode); + self.quirks_mode).to_outer(); - Some(Arc::new(computed)) + Some(computed) } else { None }; @@ -768,19 +766,16 @@ impl Stylist { // difficult to assert that display: contents nodes never arrive here // (tl;dr: It doesn't apply for replaced elements and such, but the // computed value is still "contents"). - let computed = - properties::cascade(&self.device, - rules, - guards, - Some(parent_style), - Some(parent_style), - visited_values, - None, - font_metrics, - CascadeFlags::empty(), - self.quirks_mode); - - Some(Arc::new(computed)) + Some(properties::cascade(&self.device, + rules, + guards, + Some(parent_style), + Some(parent_style), + visited_values, + None, + font_metrics, + CascadeFlags::empty(), + self.quirks_mode).to_outer()) } /// Computes the cascade inputs for a lazily-cascaded pseudo-element. @@ -1317,7 +1312,7 @@ impl Stylist { /// Computes styles for a given declaration with parent_style. pub fn compute_for_declarations(&self, guards: &StylesheetGuards, - parent_style: &Arc, + parent_style: &ComputedValuesInner, declarations: Arc>) -> Arc { use font_metrics::get_metrics_provider_for_product; @@ -1333,16 +1328,16 @@ impl Stylist { // font styles in via Servo_StyleSet_ResolveForDeclarations. // It is unclear if visited styles are meaningful for this case. let metrics = get_metrics_provider_for_product(); - Arc::new(properties::cascade(&self.device, - &rule_node, - guards, - Some(parent_style), - Some(parent_style), - None, - None, - &metrics, - CascadeFlags::empty(), - self.quirks_mode)) + properties::cascade(&self.device, + &rule_node, + guards, + Some(parent_style), + Some(parent_style), + None, + None, + &metrics, + CascadeFlags::empty(), + self.quirks_mode).to_outer() } /// Accessor for a shared reference to the device. diff --git a/components/style/traversal.rs b/components/style/traversal.rs index 485024627a0..2f7223ad717 100644 --- a/components/style/traversal.rs +++ b/components/style/traversal.rs @@ -484,8 +484,8 @@ where let primary_style = StyleResolverForElement::new(*ancestor, context, rule_inclusion) .resolve_primary_style( - style.as_ref().map(|s| &**s), - layout_parent_style.as_ref().map(|s| &**s) + style.as_ref().map(|s| &***s), + layout_parent_style.as_ref().map(|s| &***s) ); let is_display_contents = primary_style.style.is_display_contents(); @@ -501,8 +501,8 @@ where context.thread_local.bloom_filter.assert_complete(element); StyleResolverForElement::new(element, context, rule_inclusion) .resolve_style( - style.as_ref().map(|s| &**s), - layout_parent_style.as_ref().map(|s| &**s) + style.as_ref().map(|s| &***s), + layout_parent_style.as_ref().map(|s| &***s) ) } diff --git a/components/style/values/computed/mod.rs b/components/style/values/computed/mod.rs index deb74f75022..8d06fe57a7b 100644 --- a/components/style/values/computed/mod.rs +++ b/components/style/values/computed/mod.rs @@ -11,7 +11,7 @@ use font_metrics::FontMetricsProvider; use media_queries::Device; #[cfg(feature = "gecko")] use properties; -use properties::{ComputedValues, StyleBuilder}; +use properties::{ComputedValuesInner, StyleBuilder}; use std::f32; use std::f64; use std::f64::consts::PI; @@ -72,13 +72,13 @@ pub struct Context<'a> { pub device: &'a Device, /// The style we're inheriting from. - pub inherited_style: &'a ComputedValues, + pub inherited_style: &'a ComputedValuesInner, /// The style of the layout parent node. This will almost always be /// `inherited_style`, except when `display: contents` is at play, in which /// case it's the style of the last ancestor with a `display` value that /// isn't `contents`. - pub layout_parent_style: &'a ComputedValues, + pub layout_parent_style: &'a ComputedValuesInner, /// Values accessed through this need to be in the properties "computed /// early": color, text-decoration, font-size, display, position, float, @@ -115,7 +115,7 @@ impl<'a> Context<'a> { /// The current viewport size. pub fn viewport_size(&self) -> Size2D { self.device.au_viewport_size() } /// The style we're inheriting from. - pub fn inherited_style(&self) -> &ComputedValues { &self.inherited_style } + pub fn inherited_style(&self) -> &ComputedValuesInner { &self.inherited_style } /// The current style. Note that only "eager" properties should be accessed /// from here, see the comment in the member. pub fn style(&self) -> &StyleBuilder { &self.style } diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 18015cc07e1..d98ceb34531 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -1514,7 +1514,8 @@ pub extern "C" fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null: .expect("Not an anon box pseudo?"); - let maybe_parent = ComputedValues::arc_from_borrowed(&parent_style_or_null); + let maybe_parent = ComputedValues::arc_from_borrowed(&parent_style_or_null) + .map(|p| &p.inner); let cascade_flags = SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP; let metrics = get_metrics_provider_for_product(); data.stylist.precomputed_values_for_pseudo(&guards, &pseudo, maybe_parent, @@ -1543,7 +1544,7 @@ pub extern "C" fn Servo_ResolvePseudoStyle(element: RawGeckoElementBorrowed, return if is_probe { Strong::null() } else { - doc_data.default_computed_values().clone().into_strong() + doc_data.default_computed_values().clone().to_outer().into_strong() }; } @@ -1676,10 +1677,10 @@ fn get_pseudo_style( } Some(style.unwrap_or_else(|| { - Arc::new(StyleBuilder::for_inheritance( + StyleBuilder::for_inheritance( styles.primary(), doc_data.default_computed_values(), - ).build()) + ).build().to_outer() })) } @@ -1702,20 +1703,20 @@ pub extern "C" fn Servo_ComputedValues_Inherit( .adjust_for_text(); } - Arc::new(style.build()) + style.build() } else { debug_assert!(!for_text); data.default_computed_values().clone() }; - style.into_strong() + style.to_outer().into_strong() } #[no_mangle] pub extern "C" fn Servo_ComputedValues_GetVisitedStyle(values: ServoComputedValuesBorrowed) -> ServoComputedValuesStrong { - match ComputedValues::as_arc(&values).get_visited_style() { - Some(v) => v.clone().into_strong(), + match ComputedValues::as_arc(&values).clone_visited_style() { + Some(v) => v.into_strong(), None => Strong::null(), } } @@ -2870,12 +2871,13 @@ fn create_context<'a>(per_doc_data: &'a PerDocumentStyleDataImpl, parent_style: &'a Option<&Arc>) -> Context<'a> { let default_values = per_doc_data.default_computed_values(); + let inherited_style = parent_style.map(|x| &x.inner).unwrap_or(default_values); Context { is_root_element: false, device: per_doc_data.stylist.device(), - inherited_style: parent_style.unwrap_or(default_values), - layout_parent_style: parent_style.unwrap_or(default_values), + inherited_style: inherited_style, + layout_parent_style: inherited_style, style: StyleBuilder::for_derived_style(&style), font_metrics_provider: font_metrics_provider, cached_system_font: None, @@ -3264,7 +3266,7 @@ pub extern "C" fn Servo_StyleSet_ResolveForDeclarations( let guards = StylesheetGuards::same(&guard); let parent_style = match ComputedValues::arc_from_borrowed(&parent_style_or_null) { - Some(parent) => &parent, + Some(parent) => &parent.inner, None => doc_data.default_computed_values(), }; From 74519cc1a7bdc5ff31921fc2e59b3cb697774efa Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:56 -0700 Subject: [PATCH 08/16] stylo: Make Servo Arc types use ptr to T instead of ptr to ArcInner --- components/servo_arc/lib.rs | 104 +++++++++++++++++- components/style/dom.rs | 6 +- components/style/gecko/restyle_damage.rs | 2 +- components/style/gecko/wrapper.rs | 42 ++++--- .../style/gecko_bindings/sugar/ownership.rs | 54 +++++---- .../style/gecko_bindings/sugar/refptr.rs | 2 +- components/style/matching.rs | 6 +- components/style/rule_tree/mod.rs | 10 +- components/style/sharing/checks.rs | 2 +- components/style/stylesheets/rule_list.rs | 4 +- components/style/stylist.rs | 10 +- ports/geckolib/glue.rs | 42 +++---- 12 files changed, 203 insertions(+), 81 deletions(-) diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index 6d031802961..b1f4f277a49 100644 --- a/components/servo_arc/lib.rs +++ b/components/servo_arc/lib.rs @@ -194,6 +194,30 @@ impl Arc { p: NonZeroPtrMut::new(ptr as *mut ArcInner), } } + + /// Produce a pointer to the data that can be converted back + /// to an arc + pub fn borrow_arc<'a>(&'a self) -> ArcBorrow<'a, T> { + ArcBorrow(&**self) + } + /// Temporarily converts |self| into a bonafide RawOffsetArc and exposes it to the + /// provided callback. The refcount is not modified. + #[inline(always)] + pub fn with_raw_offset_arc(&self, f: F) -> U + where F: FnOnce(&RawOffsetArc) -> U + { + // Synthesize transient Arc, which never touches the refcount of the ArcInner. + let transient = unsafe { NoDrop::new(Arc::into_raw_offset(ptr::read(self))) }; + + // Expose the transient Arc to the callback, which may clone it if it wants. + let result = f(&transient); + + // Forget the transient Arc to leave the refcount untouched. + mem::forget(transient); + + // Forward the result. + result + } } impl Arc { @@ -717,6 +741,7 @@ impl Eq for ThinArc {} /// This means that this is a direct pointer to /// its contained data (and can be read from by both C++ and Rust), /// but we can also convert it to a "regular" Arc by removing the offset +#[derive(Eq)] pub struct RawOffsetArc { ptr: NonZeroPtrMut, } @@ -733,7 +758,7 @@ impl Deref for RawOffsetArc { impl Clone for RawOffsetArc { fn clone(&self) -> Self { - RawOffsetArc::with_arc(self, |a| Arc::into_raw_offset(a.clone())) + Arc::into_raw_offset(self.clone_arc()) } } @@ -750,6 +775,16 @@ impl fmt::Debug for RawOffsetArc { } } +impl PartialEq for RawOffsetArc { + fn eq(&self, other: &RawOffsetArc) -> bool { + *(*self) == *(*other) + } + + fn ne(&self, other: &RawOffsetArc) -> bool { + *(*self) != *(*other) + } +} + impl RawOffsetArc { /// Temporarily converts |self| into a bonafide Arc and exposes it to the /// provided callback. The refcount is not modified. @@ -789,6 +824,17 @@ impl RawOffsetArc { &mut *ret } } + + /// Clone it as an Arc + pub fn clone_arc(&self) -> Arc { + RawOffsetArc::with_arc(self, |a| a.clone()) + } + + /// Produce a pointer to the data that can be converted back + /// to an arc + pub fn borrow_arc<'a>(&'a self) -> ArcBorrow<'a, T> { + ArcBorrow(&**self) + } } impl Arc { @@ -811,6 +857,62 @@ impl Arc { } } +/// A "borrowed Arc". This is a pointer to +/// a T that is known to have been allocated within an +/// Arc. +/// +/// This is equivalent in guarantees to `&Arc`, however it is +/// a bit more flexible. To obtain an `&Arc` you must have +/// an Arc instance somewhere pinned down until we're done with it. +/// +/// However, Gecko hands us refcounted things as pointers to T directly, +/// so we have to conjure up a temporary Arc on the stack each time. The +/// same happens for when the object is managed by a RawOffsetArc. +/// +/// ArcBorrow lets us deal with borrows of known-refcounted objects +/// without needing to worry about how they're actually stored. +#[derive(PartialEq, Eq)] +pub struct ArcBorrow<'a, T: 'a>(&'a T); + +impl<'a, T> Copy for ArcBorrow<'a, T> {} +impl<'a, T> Clone for ArcBorrow<'a, T> { + fn clone(&self) -> Self { + *self + } +} + +impl<'a, T> ArcBorrow<'a, T> { + pub fn clone_arc(&self) -> Arc { + let arc = unsafe { Arc::from_raw(self.0) }; + // addref it! + mem::forget(arc.clone()); + arc + } + + pub fn with_arc(&self, f: F) -> U where F: FnOnce(&Arc) -> U, T: 'static { + // Synthesize transient Arc, which never touches the refcount. + let transient = unsafe { NoDrop::new(Arc::from_raw(self.0)) }; + + // Expose the transient Arc to the callback, which may clone it if it wants. + let result = f(&transient); + + // Forget the transient Arc to leave the refcount untouched. + // XXXManishearth this can be removed when unions stabilize, + // since then NoDrop becomes zero overhead + mem::forget(transient); + + // Forward the result. + result + } +} + +impl<'a, T> Deref for ArcBorrow<'a, T> { + type Target = T; + fn deref(&self) -> &T { + &*self.0 + } +} + #[cfg(test)] mod tests { use std::clone::Clone; diff --git a/components/style/dom.rs b/components/style/dom.rs index 8a3e9e7643e..f9173fa4f32 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -30,7 +30,7 @@ use std::fmt; use std::fmt::Debug; use std::hash::Hash; use std::ops::Deref; -use stylearc::Arc; +use stylearc::{Arc, ArcBorrow}; use stylist::Stylist; use thread_state; @@ -360,7 +360,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone + } /// Get this element's style attribute. - fn style_attribute(&self) -> Option<&Arc>>; + fn style_attribute(&self) -> Option>>; /// Unset the style attribute's dirty bit. /// Servo doesn't need to manage ditry bit for style attribute. @@ -368,7 +368,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone + } /// Get this element's SMIL override declarations. - fn get_smil_override(&self) -> Option<&Arc>> { + fn get_smil_override(&self) -> Option>> { None } diff --git a/components/style/gecko/restyle_damage.rs b/components/style/gecko/restyle_damage.rs index e9be48644ca..a4a8fc1704a 100644 --- a/components/style/gecko/restyle_damage.rs +++ b/components/style/gecko/restyle_damage.rs @@ -56,7 +56,7 @@ impl GeckoRestyleDamage { let mut any_style_changed: bool = false; let hint = unsafe { bindings::Gecko_CalcStyleDifference(context, - new_style.as_borrowed_opt().unwrap(), + new_style.as_borrowed(), &mut any_style_changed) }; let change = if any_style_changed { StyleChange::Changed } else { StyleChange::Unchanged }; diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 75044c4080b..5fc618fee6c 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -64,7 +64,7 @@ use gecko_bindings::structs::EffectCompositor_CascadeLevel as CascadeLevel; use gecko_bindings::structs::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; use gecko_bindings::structs::NODE_IS_NATIVE_ANONYMOUS; use gecko_bindings::structs::nsIDocument_DocumentTheme as DocumentTheme; -use gecko_bindings::sugar::ownership::{HasArcFFI, HasSimpleFFI}; +use gecko_bindings::sugar::ownership::{FFIArcHelpers, HasArcFFI, HasSimpleFFI}; use logical_geometry::WritingMode; use media_queries::Device; use properties::{ComputedValues, parse_style_attribute}; @@ -88,7 +88,7 @@ use std::mem; use std::ops::DerefMut; use std::ptr; use string_cache::{Atom, Namespace, WeakAtom, WeakNamespace}; -use stylearc::Arc; +use stylearc::{Arc, ArcBorrow, RawOffsetArc}; use stylesheets::UrlExtraData; use stylist::Stylist; @@ -860,13 +860,15 @@ impl<'le> TElement for GeckoElement<'le> { device.pres_context().mDocument.raw::() } - fn style_attribute(&self) -> Option<&Arc>> { + fn style_attribute(&self) -> Option>> { if !self.may_have_style_attribute() { return None; } let declarations = unsafe { Gecko_GetStyleAttrDeclarationBlock(self.0) }; - declarations.map_or(None, |s| s.as_arc_opt()) + let declarations: Option<&RawOffsetArc>> + = declarations.and_then(|s| s.as_arc_opt()); + declarations.map(|s| s.borrow_arc()) } fn unset_dirty_style_attribute(&self) { @@ -877,9 +879,11 @@ impl<'le> TElement for GeckoElement<'le> { unsafe { Gecko_UnsetDirtyStyleAttr(self.0) }; } - fn get_smil_override(&self) -> Option<&Arc>> { + fn get_smil_override(&self) -> Option>> { let declarations = unsafe { Gecko_GetSMILOverrideDeclarationBlock(self.0) }; - declarations.map(|s| s.as_arc_opt()).unwrap_or(None) + let declarations: Option<&RawOffsetArc>> + = declarations.and_then(|s| s.as_arc_opt()); + declarations.map(|s| s.borrow_arc()) } fn get_animation_rule_by_cascade(&self, cascade_level: ServoCascadeLevel) @@ -1098,9 +1102,9 @@ impl<'le> TElement for GeckoElement<'le> { let computed_values = computed_data.as_ref().map(|d| d.styles.primary()); let computed_values_opt = - computed_values.map(|v| *HasArcFFI::arc_as_borrowed(v)); + computed_values.map(|v| v.as_borrowed()); let before_change_values = - before_change_style.as_ref().map(|v| *HasArcFFI::arc_as_borrowed(v)); + before_change_style.as_ref().map(|v| v.as_borrowed()); unsafe { Gecko_UpdateAnimations(self.0, before_change_values, @@ -1182,7 +1186,7 @@ impl<'le> TElement for GeckoElement<'le> { }; let end_value = AnimationValue::arc_from_borrowed(&raw_end_value); debug_assert!(end_value.is_some()); - map.insert(property, end_value.unwrap().clone()); + map.insert(property, end_value.unwrap().clone_arc()); } map } @@ -1428,17 +1432,19 @@ impl<'le> PresentationalHintsSynthesizer for GeckoElement<'le> { } } let declarations = unsafe { Gecko_GetHTMLPresentationAttrDeclarationBlock(self.0) }; - let declarations = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> + = declarations.and_then(|s| s.as_arc_opt()); if let Some(decl) = declarations { hints.push( - ApplicableDeclarationBlock::from_declarations(Clone::clone(decl), ServoCascadeLevel::PresHints) + ApplicableDeclarationBlock::from_declarations(decl.clone_arc(), ServoCascadeLevel::PresHints) ); } let declarations = unsafe { Gecko_GetExtraContentStyleDeclarations(self.0) }; - let declarations = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> + = declarations.and_then(|s| s.as_arc_opt()); if let Some(decl) = declarations { hints.push( - ApplicableDeclarationBlock::from_declarations(Clone::clone(decl), ServoCascadeLevel::PresHints) + ApplicableDeclarationBlock::from_declarations(decl.clone_arc(), ServoCascadeLevel::PresHints) ); } @@ -1458,20 +1464,22 @@ impl<'le> PresentationalHintsSynthesizer for GeckoElement<'le> { Gecko_GetVisitedLinkAttrDeclarationBlock(self.0) }, }; - let declarations = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> = + declarations.and_then(|s| s.as_arc_opt()); if let Some(decl) = declarations { hints.push( - ApplicableDeclarationBlock::from_declarations(Clone::clone(decl), ServoCascadeLevel::PresHints) + ApplicableDeclarationBlock::from_declarations(decl.clone_arc(), ServoCascadeLevel::PresHints) ); } let active = self.get_state().intersects(NonTSPseudoClass::Active.state_flag()); if active { let declarations = unsafe { Gecko_GetActiveLinkAttrDeclarationBlock(self.0) }; - let declarations = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> + = declarations.and_then(|s| s.as_arc_opt()); if let Some(decl) = declarations { hints.push( - ApplicableDeclarationBlock::from_declarations(Clone::clone(decl), ServoCascadeLevel::PresHints) + ApplicableDeclarationBlock::from_declarations(decl.clone_arc(), ServoCascadeLevel::PresHints) ); } } diff --git a/components/style/gecko_bindings/sugar/ownership.rs b/components/style/gecko_bindings/sugar/ownership.rs index 0b5111b3870..b4e0677bb9e 100644 --- a/components/style/gecko_bindings/sugar/ownership.rs +++ b/components/style/gecko_bindings/sugar/ownership.rs @@ -8,7 +8,7 @@ use std::marker::PhantomData; use std::mem::{forget, transmute}; use std::ops::{Deref, DerefMut}; use std::ptr; -use stylearc::Arc; +use stylearc::{Arc, RawOffsetArc}; /// Indicates that a given Servo type has a corresponding Gecko FFI type. pub unsafe trait HasFFI : Sized + 'static { @@ -88,7 +88,7 @@ pub unsafe trait HasArcFFI : HasFFI { /// (usually on the C++ side) without running the Arc destructor. unsafe fn release_opt(ptr: Option<&Self::FFIType>) { if let Some(arc) = Self::arc_from_borrowed(&ptr) { - let _: Arc<_> = ptr::read(arc as *const Arc<_>); + let _: RawOffsetArc<_> = ptr::read(arc as *const RawOffsetArc<_>); } } @@ -102,16 +102,16 @@ pub unsafe trait HasArcFFI : HasFFI { /// know that a strong reference to the backing Arc is disappearing /// (usually on the C++ side) without running the Arc destructor. unsafe fn release(ptr: &Self::FFIType) { - let _: Arc<_> = ptr::read(Self::as_arc(&ptr) as *const Arc<_>); + let _: RawOffsetArc<_> = ptr::read(Self::as_arc(&ptr) as *const RawOffsetArc<_>); } #[inline] /// Converts a borrowed FFI reference to a borrowed Arc. /// /// &GeckoType -> &Arc - fn as_arc<'a>(ptr: &'a &Self::FFIType) -> &'a Arc { + fn as_arc<'a>(ptr: &'a &Self::FFIType) -> &'a RawOffsetArc { debug_assert!(!(ptr as *const _).is_null()); unsafe { - transmute::<&&Self::FFIType, &Arc>(ptr) + transmute::<&&Self::FFIType, &RawOffsetArc>(ptr) } } @@ -119,9 +119,9 @@ pub unsafe trait HasArcFFI : HasFFI { /// Converts a borrowed Arc to a borrowed FFI reference. /// /// &Arc -> &GeckoType - fn arc_as_borrowed<'a>(arc: &'a Arc) -> &'a &Self::FFIType { + fn arc_as_borrowed<'a>(arc: &'a RawOffsetArc) -> &'a &Self::FFIType { unsafe { - transmute::<&Arc, &&Self::FFIType>(arc) + transmute::<&RawOffsetArc, &&Self::FFIType>(arc) } } @@ -129,10 +129,10 @@ pub unsafe trait HasArcFFI : HasFFI { /// Converts a borrowed nullable FFI reference to a borrowed Arc. /// /// &GeckoType -> &Arc - fn arc_from_borrowed<'a>(ptr: &'a Option<&Self::FFIType>) -> Option<&'a Arc> { + fn arc_from_borrowed<'a>(ptr: &'a Option<&Self::FFIType>) -> Option<&'a RawOffsetArc> { unsafe { if let Some(ref reference) = *ptr { - Some(transmute::<&&Self::FFIType, &Arc<_>>(reference)) + Some(transmute::<&&Self::FFIType, &RawOffsetArc<_>>(reference)) } else { None } @@ -165,7 +165,7 @@ impl Strong { /// Panics on null. /// /// Strong -> Arc - pub fn into_arc(self) -> Arc + pub fn into_arc(self) -> RawOffsetArc where ServoType: HasArcFFI, { self.into_arc_opt().unwrap() @@ -177,7 +177,7 @@ impl Strong { /// Returns None on null. /// /// Strong -> Arc - pub fn into_arc_opt(self) -> Option> + pub fn into_arc_opt(self) -> Option> where ServoType: HasArcFFI, { if self.is_null() { @@ -194,7 +194,7 @@ impl Strong { /// Returns None on null. /// /// Strong -> Arc - pub fn as_arc_opt(&self) -> Option<&Arc> + pub fn as_arc_opt(&self) -> Option<&RawOffsetArc> where ServoType: HasArcFFI, { if self.is_null() { @@ -222,18 +222,15 @@ pub unsafe trait FFIArcHelpers { /// Arc -> Strong fn into_strong(self) -> Strong<::FFIType>; - /// Produces a (nullable) borrowed FFI reference by borrowing an Arc. + /// Produces a borrowed FFI reference by borrowing an Arc. /// - /// &Arc -> Option<&GeckoType> - /// - /// FIXME(emilio): What's the point of the nullability? Arc should be - /// non-null, right? + /// &Arc -> &GeckoType /// /// Then the `arc_as_borrowed` method can go away. - fn as_borrowed_opt(&self) -> Option<&::FFIType>; + fn as_borrowed(&self) -> &::FFIType; } -unsafe impl FFIArcHelpers for Arc { +unsafe impl FFIArcHelpers for RawOffsetArc { type Inner = T; #[inline] @@ -242,9 +239,22 @@ unsafe impl FFIArcHelpers for Arc { } #[inline] - fn as_borrowed_opt(&self) -> Option<&T::FFIType> { - let borrowedptr = self as *const Arc as *const Option<&T::FFIType>; - unsafe { ptr::read(borrowedptr) } + fn as_borrowed(&self) -> &T::FFIType { + unsafe { &*(&**self as *const T as *const T::FFIType) } + } +} + +unsafe impl FFIArcHelpers for Arc { + type Inner = T; + + #[inline] + fn into_strong(self) -> Strong { + Arc::into_raw_offset(self).into_strong() + } + + #[inline] + fn as_borrowed(&self) -> &T::FFIType { + unsafe { &*(&**self as *const T as *const T::FFIType) } } } diff --git a/components/style/gecko_bindings/sugar/refptr.rs b/components/style/gecko_bindings/sugar/refptr.rs index 77c6ca4f3c3..048e12151ca 100644 --- a/components/style/gecko_bindings/sugar/refptr.rs +++ b/components/style/gecko_bindings/sugar/refptr.rs @@ -211,7 +211,7 @@ impl structs::RefPtr { /// Sets the contents to an Arc /// will leak existing contents pub fn set_arc_leaky(&mut self, other: Arc) where U: HasArcFFI { - *self = unsafe { mem::transmute(other) }; // Arc::into_raw is unstable :( + *self = unsafe { mem::transmute(Arc::into_raw_offset(other)) }; } } diff --git a/components/style/matching.rs b/components/style/matching.rs index b720c5de04a..5b06c08b5b3 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -18,7 +18,7 @@ use properties::longhands::display::computed_value as display; use rule_tree::{CascadeLevel, StrongRuleNode}; use selector_parser::{PseudoElement, RestyleDamage}; use selectors::matching::ElementSelectorFlags; -use stylearc::Arc; +use stylearc::{Arc, ArcBorrow}; /// Represents the result of comparing an element's old and new style. pub struct StyleDifference { @@ -690,7 +690,7 @@ pub trait MatchMethods : TElement { }; let replace_rule_node = |level: CascadeLevel, - pdb: Option<&Arc>>, + pdb: Option>>, path: &mut StrongRuleNode| -> bool { let new_node = stylist.rule_tree() .update_rule_at_level(level, pdb, path, guards); @@ -737,7 +737,7 @@ pub trait MatchMethods : TElement { primary_rules: &mut StrongRuleNode| { let animation_rule = self.get_animation_rule_by_cascade(level); replace_rule_node(level, - animation_rule.as_ref(), + animation_rule.as_ref().map(|a| a.borrow_arc()), primary_rules); }; diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index a6a729fe2d5..e9a76731f3b 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -16,7 +16,7 @@ use std::io::{self, Write}; use std::mem; use std::ptr; use std::sync::atomic::{AtomicPtr, AtomicUsize, Ordering}; -use stylearc::{Arc, NonZeroPtrMut}; +use stylearc::{Arc, ArcBorrow, NonZeroPtrMut}; use stylesheets::StyleRule; use thread_state; @@ -308,7 +308,7 @@ impl RuleTree { /// the old path is still valid. pub fn update_rule_at_level(&self, level: CascadeLevel, - pdb: Option<&Arc>>, + pdb: Option>>, path: &StrongRuleNode, guards: &StylesheetGuards) -> Option { @@ -347,7 +347,7 @@ impl RuleTree { // so let's skip it for now. let is_here_already = match ¤t.get().source { &StyleSource::Declarations(ref already_here) => { - Arc::ptr_eq(pdb, already_here) + pdb.with_arc(|arc| Arc::ptr_eq(arc, already_here)) }, _ => unreachable!("Replacing non-declarations style?"), }; @@ -371,13 +371,13 @@ impl RuleTree { if level.is_important() { if pdb.read_with(level.guard(guards)).any_important() { current = current.ensure_child(self.root.downgrade(), - StyleSource::Declarations(pdb.clone()), + StyleSource::Declarations(pdb.clone_arc()), level); } } else { if pdb.read_with(level.guard(guards)).any_normal() { current = current.ensure_child(self.root.downgrade(), - StyleSource::Declarations(pdb.clone()), + StyleSource::Declarations(pdb.clone_arc()), level); } } diff --git a/components/style/sharing/checks.rs b/components/style/sharing/checks.rs index 17875cb061a..b710dffdc4d 100644 --- a/components/style/sharing/checks.rs +++ b/components/style/sharing/checks.rs @@ -43,7 +43,7 @@ pub fn have_same_style_attribute( match (target.style_attribute(), candidate.style_attribute()) { (None, None) => true, (Some(_), None) | (None, Some(_)) => false, - (Some(a), Some(b)) => Arc::ptr_eq(a, b) + (Some(a), Some(b)) => &*a as *const _ == &*b as *const _ } } diff --git a/components/style/stylesheets/rule_list.rs b/components/style/stylesheets/rule_list.rs index 9b939ddf131..8764b8f89b6 100644 --- a/components/style/stylesheets/rule_list.rs +++ b/components/style/stylesheets/rule_list.rs @@ -5,7 +5,7 @@ //! A list of CSS rules. use shared_lock::{DeepCloneParams, DeepCloneWithLock, Locked, SharedRwLock, SharedRwLockReadGuard}; -use stylearc::Arc; +use stylearc::{Arc, RawOffsetArc}; use stylesheets::{CssRule, RulesMutateError}; use stylesheets::loader::StylesheetLoader; use stylesheets::memory::{MallocSizeOfFn, MallocSizeOfWithGuard}; @@ -109,7 +109,7 @@ pub trait CssRulesHelpers { -> Result; } -impl CssRulesHelpers for Arc> { +impl CssRulesHelpers for RawOffsetArc> { fn insert_rule(&self, lock: &SharedRwLock, rule: &str, diff --git a/components/style/stylist.rs b/components/style/stylist.rs index 395a1cccf42..b4dad68f699 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -37,7 +37,7 @@ use std::fmt::Debug; #[cfg(feature = "servo")] use std::marker::PhantomData; use style_traits::viewport::ViewportConstraints; -use stylearc::Arc; +use stylearc::{Arc, ArcBorrow}; #[cfg(feature = "gecko")] use stylesheets::{CounterStyleRule, FontFaceRule}; use stylesheets::{CssRule, StyleRule}; @@ -1103,8 +1103,8 @@ impl Stylist { &self, element: &E, pseudo_element: Option<&PseudoElement>, - style_attribute: Option<&Arc>>, - smil_override: Option<&Arc>>, + style_attribute: Option>>, + smil_override: Option>>, animation_rules: AnimationRules, rule_inclusion: RuleInclusion, applicable_declarations: &mut V, @@ -1208,7 +1208,7 @@ impl Stylist { if let Some(sa) = style_attribute { Push::push( applicable_declarations, - ApplicableDeclarationBlock::from_declarations(sa.clone(), + ApplicableDeclarationBlock::from_declarations(sa.clone_arc(), CascadeLevel::StyleAttributeNormal)); } @@ -1217,7 +1217,7 @@ impl Stylist { if let Some(so) = smil_override { Push::push( applicable_declarations, - ApplicableDeclarationBlock::from_declarations(so.clone(), + ApplicableDeclarationBlock::from_declarations(so.clone_arc(), CascadeLevel::SMILOverride)); } diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index d98ceb34531..05c03334f9b 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -90,7 +90,7 @@ use style::invalidation::element::restyle_hints::{self, RestyleHint}; use style::media_queries::{MediaList, parse_media_query_list}; use style::parallel; use style::parser::ParserContext; -use style::properties::{ComputedValues, Importance, SourcePropertyDeclaration}; +use style::properties::{ComputedValues, ComputedValuesInner, Importance, SourcePropertyDeclaration}; use style::properties::{LonghandIdSet, PropertyDeclaration, PropertyDeclarationBlock, PropertyId, StyleBuilder}; use style::properties::SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP; use style::properties::animated_properties::{Animatable, AnimatableLonghand, AnimationValue}; @@ -101,7 +101,7 @@ use style::sequential; use style::shared_lock::{SharedRwLockReadGuard, StylesheetGuards, ToCssWithGuard, Locked}; use style::string_cache::Atom; use style::style_adjuster::StyleAdjuster; -use style::stylearc::Arc; +use style::stylearc::{Arc, RawOffsetArc}; use style::stylesheets::{CssRule, CssRules, CssRuleType, CssRulesHelpers, DocumentRule}; use style::stylesheets::{ImportRule, KeyframesRule, MallocSizeOfWithGuard, MediaRule}; use style::stylesheets::{NamespaceRule, Origin, PageRule, StyleRule, SupportsRule}; @@ -429,7 +429,7 @@ pub extern "C" fn Servo_AnimationCompose(raw_value_map: RawServoAnimationValueMa let previous_composed_value = value_map.get(&property).cloned(); previous_composed_value.or_else(|| { let raw_base_style = unsafe { Gecko_AnimationGetBaseStyle(base_values, css_property) }; - AnimationValue::arc_from_borrowed(&raw_base_style).map(|v| v.as_ref()).cloned() + AnimationValue::arc_from_borrowed(&raw_base_style).map(|v| &**v).cloned() }) } else { None @@ -459,7 +459,7 @@ pub extern "C" fn Servo_AnimationCompose(raw_value_map: RawServoAnimationValueMa // Composite with underlying value. // A return value of None means, "Just use keyframe_value as-is." - let composite_endpoint = |keyframe_value: Option<&Arc>, + let composite_endpoint = |keyframe_value: Option<&RawOffsetArc>, composite_op: CompositeOperation| -> Option { match keyframe_value { Some(keyframe_value) => { @@ -498,7 +498,7 @@ pub extern "C" fn Servo_AnimationCompose(raw_value_map: RawServoAnimationValueMa let raw_last_value; let last_value = if !last_segment.mToValue.mServo.mRawPtr.is_null() { raw_last_value = unsafe { &*last_segment.mToValue.mServo.mRawPtr }; - AnimationValue::as_arc(&raw_last_value).as_ref() + &*AnimationValue::as_arc(&raw_last_value) } else { debug_assert!(need_underlying_value, "Should have detected we need an underlying value"); @@ -506,7 +506,7 @@ pub extern "C" fn Servo_AnimationCompose(raw_value_map: RawServoAnimationValueMa }; // As with composite_endpoint, a return value of None means, "Use keyframe_value as-is." - let apply_iteration_composite = |keyframe_value: Option<&Arc>, + let apply_iteration_composite = |keyframe_value: Option<&RawOffsetArc>, composited_value: Option| -> Option { let count = computed_timing.mCurrentIteration; @@ -1244,7 +1244,7 @@ pub extern "C" fn Servo_StyleRule_SetStyle(rule: RawServoStyleRuleBorrowed, declarations: RawServoDeclarationBlockBorrowed) { let declarations = Locked::::as_arc(&declarations); write_locked_arc(rule, |rule: &mut StyleRule| { - rule.block = declarations.clone(); + rule.block = declarations.clone_arc(); }) } @@ -1382,7 +1382,7 @@ pub extern "C" fn Servo_Keyframe_SetStyle(keyframe: RawServoKeyframeBorrowed, declarations: RawServoDeclarationBlockBorrowed) { let declarations = Locked::::as_arc(&declarations); write_locked_arc(keyframe, |keyframe: &mut Keyframe| { - keyframe.block = declarations.clone(); + keyframe.block = declarations.clone_arc(); }) } @@ -1480,7 +1480,7 @@ pub extern "C" fn Servo_PageRule_SetStyle(rule: RawServoPageRuleBorrowed, declarations: RawServoDeclarationBlockBorrowed) { let declarations = Locked::::as_arc(&declarations); write_locked_arc(rule, |rule: &mut PageRule| { - rule.block = declarations.clone(); + rule.block = declarations.clone_arc(); }) } @@ -1559,7 +1559,7 @@ pub extern "C" fn Servo_ResolvePseudoStyle(element: RawGeckoElementBorrowed, &pseudo, RuleInclusion::All, &data.styles, - ComputedValues::arc_from_borrowed(&inherited_style), + ComputedValues::arc_from_borrowed(&inherited_style).map(|x| &***x), &*doc_data, is_probe ); @@ -1584,7 +1584,7 @@ pub extern "C" fn Servo_SetExplicitStyle(element: RawGeckoElementBorrowed, // work for other things, we just haven't had a reason to do so. debug_assert!(element.get_data().is_none()); let mut data = unsafe { element.ensure_data() }; - data.styles.primary = Some(style.clone()); + data.styles.primary = Some(style.clone_arc()); } #[no_mangle] @@ -1613,7 +1613,7 @@ fn get_pseudo_style( pseudo: &PseudoElement, rule_inclusion: RuleInclusion, styles: &ElementStyles, - inherited_styles: Option<&Arc>, + inherited_styles: Option<&ComputedValuesInner>, doc_data: &PerDocumentStyleDataImpl, is_probe: bool, ) -> Option> { @@ -1642,8 +1642,8 @@ fn get_pseudo_style( }, _ => { debug_assert!(inherited_styles.is_none() || - ptr::eq(&**inherited_styles.unwrap(), - &**styles.primary())); + ptr::eq(&*inherited_styles.unwrap(), + &***styles.primary())); styles.pseudos.get(&pseudo).cloned() }, } @@ -1651,8 +1651,8 @@ fn get_pseudo_style( PseudoElementCascadeType::Precomputed => unreachable!("No anonymous boxes"), PseudoElementCascadeType::Lazy => { debug_assert!(inherited_styles.is_none() || - ptr::eq(&**inherited_styles.unwrap(), - &**styles.primary())); + ptr::eq(&*inherited_styles.unwrap(), + &***styles.primary())); let base = if pseudo.inherits_from_default_values() { doc_data.default_computed_values() } else { @@ -1761,12 +1761,14 @@ pub extern "C" fn Servo_ComputedValues_GetStyleRuleList(values: ServoComputedVal let mut result = vec![]; for node in rule_node.self_and_ancestors() { if let &StyleSource::Style(ref rule) = node.style_source() { - result.push(Locked::::arc_as_borrowed(&rule)); + result.push(rule); } } unsafe { rules.set_len(result.len() as u32) }; - for (&src, dest) in result.into_iter().zip(rules.iter_mut()) { - *dest = src; + for (ref src, ref mut dest) in result.into_iter().zip(rules.iter_mut()) { + src.with_raw_offset_arc(|arc| { + **dest = *Locked::::arc_as_borrowed(arc); + }) } } } @@ -3274,7 +3276,7 @@ pub extern "C" fn Servo_StyleSet_ResolveForDeclarations( doc_data.stylist.compute_for_declarations(&guards, parent_style, - declarations.clone()).into_strong() + declarations.clone_arc()).into_strong() } #[no_mangle] From 89930e75654f2942e39e1f1f93f1525e40488fb0 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:42:00 -0700 Subject: [PATCH 09/16] stylo: Switch Gecko over to ServoStyleContext --- components/layout/flow.rs | 2 +- components/layout_thread/dom_wrapper.rs | 6 +- components/script/dom/cssrulelist.rs | 16 +- .../script_layout_interface/wrapper_traits.rs | 4 +- components/style/gecko/arc_types.rs | 14 +- components/style/gecko/generated/bindings.rs | 71 +- .../generated/pseudo_element_definition.rs | 39 + .../style/gecko/generated/structs_debug.rs | 3177 +++++++++++------ .../style/gecko/generated/structs_release.rs | 3161 ++++++++++------ .../gecko/pseudo_element_definition.mako.rs | 19 + components/style/gecko/restyle_damage.rs | 3 +- components/style/gecko/wrapper.rs | 7 +- components/style/properties/gecko.mako.rs | 67 +- .../style/properties/properties.mako.rs | 22 +- components/style/servo/selector_parser.rs | 3 + components/style/style_resolver.rs | 39 +- components/style/stylist.rs | 37 +- components/style/traversal.rs | 4 +- ports/geckolib/glue.rs | 141 +- 19 files changed, 4479 insertions(+), 2353 deletions(-) diff --git a/components/layout/flow.rs b/components/layout/flow.rs index be71745883f..3ce8de5ec98 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -1119,7 +1119,7 @@ impl BaseFlow { /// /// These flags are initially set during flow construction. They only need to be updated here /// if they are based on properties that can change without triggering `RECONSTRUCT_FLOW`. - pub fn update_flags_if_needed(&mut self, style: &ServoComputedValues) { + pub fn update_flags_if_needed(&mut self, style: &ComputedValues) { // For absolutely-positioned flows, changes to top/bottom/left/right can cause these flags // to get out of date: if self.restyle_damage.contains(REFLOW_OUT_OF_FLOW) { diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs index cf4aef91049..00e73df2b25 100644 --- a/components/layout_thread/dom_wrapper.rs +++ b/components/layout_thread/dom_wrapper.rs @@ -78,7 +78,7 @@ use style::selector_parser::{AttrValue as SelectorAttrValue, NonTSPseudoClass, P use style::selector_parser::{PseudoElement, SelectorImpl, extended_filtering}; use style::shared_lock::{SharedRwLock as StyleSharedRwLock, Locked as StyleLocked}; use style::str::is_whitespace; -use style::stylearc::Arc; +use style::stylearc::{Arc, ArcBorrow}; pub unsafe fn drop_style_and_layout_data(data: OpaqueStyleAndLayoutData) { let ptr: *mut StyleData = data.ptr.get(); @@ -412,9 +412,9 @@ impl<'le> TElement for ServoLayoutElement<'le> { ServoLayoutNode::from_layout_js(self.element.upcast()) } - fn style_attribute(&self) -> Option<&Arc>> { + fn style_attribute(&self) -> Option>> { unsafe { - (*self.element.style_attribute()).as_ref() + (*self.element.style_attribute()).as_ref().map(|x| x.borrow_arc()) } } diff --git a/components/script/dom/cssrulelist.rs b/components/script/dom/cssrulelist.rs index 28b1779be29..78ec43e5c51 100644 --- a/components/script/dom/cssrulelist.rs +++ b/components/script/dom/cssrulelist.rs @@ -90,13 +90,15 @@ impl CSSRuleList { let index = idx as usize; let parent_stylesheet = self.parent_stylesheet.style_stylesheet(); - let new_rule = - css_rules.insert_rule(&parent_stylesheet.shared_lock, - rule, - &parent_stylesheet.contents, - index, - nested, - None)?; + let new_rule = css_rules.with_raw_offset_arc(|arc| { + arc.insert_rule(&parent_stylesheet.shared_lock, + rule, + &parent_stylesheet.contents, + index, + nested, + None) + })?; + let parent_stylesheet = &*self.parent_stylesheet; let dom_rule = CSSRule::new_specific(&window, parent_stylesheet, new_rule); diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index a32a6e6b99c..67506a154d4 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -416,7 +416,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + &style_pseudo, Some(data.styles.primary()), CascadeFlags::empty(), - &ServoMetricsProvider) + &ServoMetricsProvider, (), ()) .clone() } PseudoElementCascadeType::Lazy => { @@ -428,7 +428,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + RuleInclusion::All, data.styles.primary(), /* is_probe = */ false, - &ServoMetricsProvider) + &ServoMetricsProvider, (), ()) .unwrap() .clone() } diff --git a/components/style/gecko/arc_types.rs b/components/style/gecko/arc_types.rs index 352cd7b7e4d..990a4511223 100644 --- a/components/style/gecko/arc_types.rs +++ b/components/style/gecko/arc_types.rs @@ -10,14 +10,15 @@ use gecko_bindings::bindings::{RawServoImportRule, RawServoSupportsRule}; use gecko_bindings::bindings::{RawServoKeyframe, RawServoKeyframesRule}; +use gecko_bindings::bindings::RawServoMediaRule; use gecko_bindings::bindings::{RawServoNamespaceRule, RawServoPageRule}; -use gecko_bindings::bindings::{RawServoRuleNode, RawServoRuleNodeStrong, RawServoDocumentRule, RawServoMediaRule}; -use gecko_bindings::bindings::{ServoComputedValues, ServoCssRules}; +use gecko_bindings::bindings::{RawServoRuleNode, RawServoRuleNodeStrong, RawServoDocumentRule}; +use gecko_bindings::bindings::ServoCssRules; use gecko_bindings::structs::{RawServoAnimationValue, RawServoDeclarationBlock, RawServoStyleRule, RawServoMediaList}; -use gecko_bindings::structs::RawServoStyleSheetContents; +use gecko_bindings::structs::{RawServoStyleSheetContents, ServoComputedValues, ServoStyleContext}; use gecko_bindings::sugar::ownership::{HasArcFFI, HasFFI}; use media_queries::MediaList; -use properties::{ComputedValues, PropertyDeclarationBlock}; +use properties::{ComputedValues, ComputedValuesInner, PropertyDeclarationBlock}; use properties::animated_properties::AnimationValue; use rule_tree::StrongRuleNode; use shared_lock::Locked; @@ -51,9 +52,12 @@ impl_arc_ffi!(Locked => ServoCssRules impl_arc_ffi!(StylesheetContents => RawServoStyleSheetContents [Servo_StyleSheetContents_AddRef, Servo_StyleSheetContents_Release]); -impl_arc_ffi!(ComputedValues => ServoComputedValues +impl_arc_ffi!(ComputedValuesInner => ServoComputedValues [Servo_ComputedValues_AddRef, Servo_ComputedValues_Release]); +impl_arc_ffi!(ComputedValues => ServoStyleContext + [Servo_StyleContext_AddRef, Servo_StyleContext_Release]); + impl_arc_ffi!(Locked => RawServoDeclarationBlock [Servo_DeclarationBlock_AddRef, Servo_DeclarationBlock_Release]); diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index d9c09666859..1202c3cd866 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -5,6 +5,8 @@ use gecko_bindings::structs::nsStyleTransformMatrix; use gecko_bindings::structs::nsTArray; type nsACString_internal = nsACString; type nsAString_internal = nsAString; +pub type ServoStyleContextBorrowed<'a> = &'a ServoStyleContext; +pub type ServoStyleContextBorrowedOrNull<'a> = Option<&'a ::properties::ComputedValues>; use gecko_bindings::structs::mozilla::css::GridTemplateAreasValue; use gecko_bindings::structs::mozilla::css::ErrorReporter; use gecko_bindings::structs::mozilla::css::ImageValue; @@ -215,6 +217,9 @@ use gecko_bindings::structs::nsresult; use gecko_bindings::structs::Loader; use gecko_bindings::structs::LoaderReusableStyleSheets; use gecko_bindings::structs::ServoStyleSheet; +use gecko_bindings::structs::ServoComputedValues; +use gecko_bindings::structs::ServoStyleContext; +use gecko_bindings::structs::ServoStyleContextStrong; use gecko_bindings::structs::EffectCompositor_CascadeLevel; use gecko_bindings::structs::UpdateAnimationsTasks; use gecko_bindings::structs::ParsingMode; @@ -317,8 +322,6 @@ pub type RawServoStyleSheetContentsBorrowedOrNull<'a> = Option<&'a RawServoStyle pub type ServoComputedValuesStrong = ::gecko_bindings::sugar::ownership::Strong; pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues; pub type ServoComputedValuesBorrowedOrNull<'a> = Option<&'a ServoComputedValues>; -enum ServoComputedValuesVoid { } -pub struct ServoComputedValues(ServoComputedValuesVoid); pub type RawServoDeclarationBlockStrong = ::gecko_bindings::sugar::ownership::Strong; pub type RawServoDeclarationBlockBorrowed<'a> = &'a RawServoDeclarationBlock; pub type RawServoDeclarationBlockBorrowedOrNull<'a> = Option<&'a RawServoDeclarationBlock>; @@ -528,6 +531,19 @@ extern "C" { pub fn Gecko_DestroyAnonymousContentList(anon_content: *mut nsTArray<*mut nsIContent>); } +extern "C" { + pub fn Gecko_ServoStyleContext_Init(context: *mut ServoStyleContext, + parent_context: + ServoStyleContextBorrowedOrNull, + pres_context: + RawGeckoPresContextBorrowed, + values: ServoComputedValuesStrong, + pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom); +} +extern "C" { + pub fn Gecko_ServoStyleContext_Destroy(context: *mut ServoStyleContext); +} extern "C" { pub fn Gecko_ConstructStyleChildrenIterator(aElement: RawGeckoElementBorrowed, @@ -755,9 +771,9 @@ extern "C" { extern "C" { pub fn Gecko_UpdateAnimations(aElementOrPseudo: RawGeckoElementBorrowed, aOldComputedValues: - ServoComputedValuesBorrowedOrNull, + ServoStyleContextBorrowedOrNull, aComputedValues: - ServoComputedValuesBorrowedOrNull, + ServoStyleContextBorrowedOrNull, aTasks: UpdateAnimationsTasks); } extern "C" { @@ -1957,10 +1973,10 @@ extern "C" { pub fn Servo_StyleSet_ResolveForDeclarations(set: RawServoStyleSetBorrowed, parent_style: - ServoComputedValuesBorrowedOrNull, + ServoStyleContextBorrowedOrNull, declarations: RawServoDeclarationBlockBorrowed) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_StyleSet_MightHaveAttributeDependency(set: @@ -2661,23 +2677,27 @@ extern "C" { } extern "C" { pub fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null: - ServoComputedValuesBorrowedOrNull, + ServoStyleContextBorrowedOrNull, + pseudo_type: + CSSPseudoElementType, pseudo_tag: *mut nsIAtom, set: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_ComputedValues_Inherit(set: RawServoStyleSetBorrowed, + pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom, parent_style: - ServoComputedValuesBorrowedOrNull, + ServoStyleContextBorrowedOrNull, target: InheritTarget) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_ComputedValues_GetVisitedStyle(values: ServoComputedValuesBorrowed) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_ComputedValues_GetStyleBits(values: @@ -2697,6 +2717,16 @@ extern "C" { rules: RawGeckoServoStyleRuleListBorrowedMut); } +extern "C" { + pub fn Servo_StyleContext_NewContext(values: ServoComputedValuesBorrowed, + parent: + ServoStyleContextBorrowedOrNull, + pres_context: + RawGeckoPresContextBorrowed, + pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom) + -> ServoStyleContextStrong; +} extern "C" { pub fn Servo_Initialize(dummy_url_data: *mut RawGeckoURLExtraData); } @@ -2716,20 +2746,22 @@ extern "C" { extern "C" { pub fn Servo_ResolveStyle(element: RawGeckoElementBorrowed, set: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_ResolvePseudoStyle(element: RawGeckoElementBorrowed, pseudo_type: CSSPseudoElementType, - is_probe: bool, + pseudo_tag: *mut nsIAtom, is_probe: bool, inherited_style: ServoComputedValuesBorrowedOrNull, + parent_style_context: + ServoStyleContextBorrowedOrNull, set: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_SetExplicitStyle(element: RawGeckoElementBorrowed, - primary_style: ServoComputedValuesBorrowed); + primary_style: ServoStyleContextBorrowed); } extern "C" { pub fn Servo_HasAuthorSpecifiedRules(element: RawGeckoElementBorrowed, @@ -2739,11 +2771,14 @@ extern "C" { extern "C" { pub fn Servo_ResolveStyleLazily(element: RawGeckoElementBorrowed, pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom, + parent_style_context: + ServoStyleContextBorrowedOrNull, rule_inclusion: StyleRuleInclusion, snapshots: *const ServoElementSnapshotTable, set: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_TraverseSubtree(root: RawGeckoElementBorrowed, @@ -2765,12 +2800,12 @@ extern "C" { element: RawGeckoElementBorrowed, existing_style: - ServoComputedValuesBorrowed, + ServoStyleContextBorrowed, snapshots: *const ServoElementSnapshotTable, pseudo_type: CSSPseudoElementType) - -> ServoComputedValuesStrong; + -> ServoStyleContextStrong; } extern "C" { pub fn Servo_SerializeFontValueForCanvas(declarations: diff --git a/components/style/gecko/generated/pseudo_element_definition.rs b/components/style/gecko/generated/pseudo_element_definition.rs index 8a1382b714d..9760ae46142 100644 --- a/components/style/gecko/generated/pseudo_element_definition.rs +++ b/components/style/gecko/generated/pseudo_element_definition.rs @@ -689,6 +689,45 @@ impl PseudoElement { } } + + /// Construct a `CSSPseudoElementType` from a pseudo-element + #[inline] + pub fn pseudo_type(&self) -> CSSPseudoElementType { + match *self { + PseudoElement::After => CSSPseudoElementType::after, + PseudoElement::Before => CSSPseudoElementType::before, + PseudoElement::Backdrop => CSSPseudoElementType::backdrop, + PseudoElement::Cue => CSSPseudoElementType::cue, + PseudoElement::FirstLetter => CSSPseudoElementType::firstLetter, + PseudoElement::FirstLine => CSSPseudoElementType::firstLine, + PseudoElement::MozSelection => CSSPseudoElementType::mozSelection, + PseudoElement::MozFocusInner => CSSPseudoElementType::mozFocusInner, + PseudoElement::MozFocusOuter => CSSPseudoElementType::mozFocusOuter, + PseudoElement::MozListBullet => CSSPseudoElementType::mozListBullet, + PseudoElement::MozListNumber => CSSPseudoElementType::mozListNumber, + PseudoElement::MozMathAnonymous => CSSPseudoElementType::mozMathAnonymous, + PseudoElement::MozNumberWrapper => CSSPseudoElementType::mozNumberWrapper, + PseudoElement::MozNumberText => CSSPseudoElementType::mozNumberText, + PseudoElement::MozNumberSpinBox => CSSPseudoElementType::mozNumberSpinBox, + PseudoElement::MozNumberSpinUp => CSSPseudoElementType::mozNumberSpinUp, + PseudoElement::MozNumberSpinDown => CSSPseudoElementType::mozNumberSpinDown, + PseudoElement::MozProgressBar => CSSPseudoElementType::mozProgressBar, + PseudoElement::MozRangeTrack => CSSPseudoElementType::mozRangeTrack, + PseudoElement::MozRangeProgress => CSSPseudoElementType::mozRangeProgress, + PseudoElement::MozRangeThumb => CSSPseudoElementType::mozRangeThumb, + PseudoElement::MozMeterBar => CSSPseudoElementType::mozMeterBar, + PseudoElement::MozPlaceholder => CSSPseudoElementType::mozPlaceholder, + PseudoElement::Placeholder => CSSPseudoElementType::placeholder, + PseudoElement::MozColorSwatch => CSSPseudoElementType::mozColorSwatch, + _ => CSSPseudoElementType::NotPseudo + } + } + + /// Get a PseudoInfo for a pseudo + pub fn pseudo_info(&self) -> (*mut structs::nsIAtom, CSSPseudoElementType) { + (self.atom().as_ptr(), self.pseudo_type()) + } + /// Construct a pseudo-element from an anonymous box `Atom`. #[inline] pub fn from_anon_box_atom(atom: &Atom) -> Option { diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 3bebc33e413..c3235b1da10 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -16,6 +16,7 @@ pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; pub type ServoVisitedStyle = Option<::stylearc::Arc<::properties::ComputedValues>>; pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; +pub type ServoStyleContextStrong = ::gecko_bindings::sugar::ownership::Strong; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -4086,7 +4087,6 @@ pub mod root { ) , "::" , stringify ! ( mEmpty ) )); } #[repr(C)] - #[derive(Debug)] pub struct Element { pub _base: root::mozilla::dom::FragmentOrElement, pub mState: root::mozilla::EventStates, @@ -4232,7 +4232,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct NodeInfo { pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, @@ -5305,7 +5304,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct Attr { pub _base: root::nsIAttribute, pub _base_1: root::nsIDOMAttr, @@ -5764,7 +5762,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct FragmentOrElement { pub _base: root::nsIContent, pub mRefCnt: root::nsCycleCollectingAutoRefCnt, @@ -5804,7 +5801,6 @@ pub mod root { * accessed through the DOM. */ #[repr(C)] - #[derive(Debug)] pub struct FragmentOrElement_nsDOMSlots { pub _base: root::nsINode_nsSlots, /** @@ -6196,7 +6192,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct DOMIntersectionObserverEntry { pub _base: root::nsISupports, pub _base_1: root::nsWrapperCache, @@ -6346,7 +6341,6 @@ pub mod root { ! ( mValue ) )); } #[repr(C)] - #[derive(Debug)] pub struct IntersectionObserverInit { pub _base: root::mozilla::dom::DictionaryBase, pub mRoot: root::RefPtr, @@ -6401,7 +6395,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct DestinationInsertionPointList { pub _base: root::nsINodeList, pub mRefCnt: root::nsCycleCollectingAutoRefCnt, @@ -7561,6 +7554,9 @@ pub mod root { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum LazyComputeBehavior { Allow = 0, Assert = 1, } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum TraversalRootBehavior { Normal = 0, UnstyledChildrenOnly = 1, @@ -8028,254 +8024,6 @@ pub mod root { "Alignment of field: " , stringify ! ( GeckoEffects ) , "::" , stringify ! ( gecko ) )); } - /** - * We want C++ to be abe to read the style struct fields of ComputedValues - * so we define this type on the C++ side and use the bindgenned version - * on the Rust side. - * - * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy - * impl. This will fail because the bindgenned version contains owned types. Opt out. - * - *
- */ - #[repr(C)] - #[derive(Debug)] - pub struct ServoComputedValues2 { - pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, - pub List: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, - pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, - pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, - pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, - pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, - /// The rule node representing the ordered list of rules matched for this - /// node. Can be None for default values and text nodes. This is - /// essentially an optimization to avoid referencing the root rule node. - pub rules: ::gecko_bindings::structs::ServoRuleNode, - /// The element's computed values if visited, only computed if there's a - /// relevant link for this element. A element's "relevant link" is the - /// element being matched if it is a link or the nearest ancestor link. - pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, - pub flags: ::gecko_bindings::structs::ServoComputedValueFlags, - } - #[test] - fn bindgen_test_layout_ServoComputedValues2() { - assert_eq!(::std::mem::size_of::() , - 232usize , concat ! ( - "Size of: " , stringify ! ( ServoComputedValues2 ) )); - assert_eq! (::std::mem::align_of::() , - 8usize , concat ! ( - "Alignment of " , stringify ! ( ServoComputedValues2 ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Font - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Font ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Color - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Color ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . List - as * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( List ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Text - as * const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Text ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Visibility as * const _ as usize } , 32usize , concat - ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - Visibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - UserInterface as * const _ as usize } , 40usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - UserInterface ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - TableBorder as * const _ as usize } , 48usize , concat - ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - TableBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . SVG as - * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( SVG ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Background as * const _ as usize } , 64usize , concat - ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - Background ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Position as * const _ as usize } , 72usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Position - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - TextReset as * const _ as usize } , 80usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - TextReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Display as * const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Display - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Content as * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Content - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - UIReset as * const _ as usize } , 104usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( UIReset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Table - as * const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Table ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Margin - as * const _ as usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Margin ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Padding as * const _ as usize } , 128usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Padding - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Border - as * const _ as usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Border ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Outline as * const _ as usize } , 144usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Outline - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . XUL as - * const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( XUL ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - SVGReset as * const _ as usize } , 160usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( SVGReset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Column - as * const _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Column ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Effects as * const _ as usize } , 176usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Effects - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - custom_properties as * const _ as usize } , 184usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - custom_properties ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - writing_mode as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - writing_mode ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - font_computation_data as * const _ as usize } , - 196usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - font_computation_data ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . rules - as * const _ as usize } , 208usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( rules ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - visited_style as * const _ as usize } , 216usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - visited_style ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . flags - as * const _ as usize } , 224usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( flags ) - )); - } #[repr(u8)] /** * Enumeration that represents one of the two supported style system backends. @@ -8586,6 +8334,78 @@ pub mod root { CORS_USE_CREDENTIALS = 2, } #[repr(C)] + pub struct CSSStyleSheet { + pub _base: root::mozilla::StyleSheet, + pub mRuleCollection: root::RefPtr, + pub mInRuleProcessorCache: bool, + pub mScopeElement: root::RefPtr, + pub mRuleProcessors: *mut u8, + } + pub use self::super::super::root::mozilla::net::ReferrerPolicy as + CSSStyleSheet_ReferrerPolicy; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct CSSStyleSheet_cycleCollection { + pub _base: root::mozilla::StyleSheet_cycleCollection, + } + #[test] + fn bindgen_test_layout_CSSStyleSheet_cycleCollection() { + assert_eq!(::std::mem::size_of::() + , 16usize , concat ! ( + "Size of: " , stringify ! ( + CSSStyleSheet_cycleCollection ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + CSSStyleSheet_cycleCollection ) )); + } + impl Clone for CSSStyleSheet_cycleCollection { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct CSSStyleSheet_COMTypeInfo { + pub _address: u8, + } + extern "C" { + #[link_name = + "_ZN7mozilla13CSSStyleSheet21_cycleCollectorGlobalE"] + pub static mut CSSStyleSheet__cycleCollectorGlobal: + root::mozilla::CSSStyleSheet_cycleCollection; + } + #[test] + fn bindgen_test_layout_CSSStyleSheet() { + assert_eq!(::std::mem::size_of::() , 176usize , + concat ! ( "Size of: " , stringify ! ( CSSStyleSheet ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( CSSStyleSheet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . + mRuleCollection as * const _ as usize } , 144usize , + concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mRuleCollection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . + mInRuleProcessorCache as * const _ as usize } , + 152usize , concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mInRuleProcessorCache ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . mScopeElement + as * const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mScopeElement ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . + mRuleProcessors as * const _ as usize } , 168usize , + concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mRuleProcessors ) )); + } + #[repr(C)] #[derive(Debug)] pub struct ServoStyleSheet { pub _base: root::mozilla::StyleSheet, @@ -8827,10 +8647,135 @@ pub mod root { NotPseudo = 28, MAX = 29, } + /** + * The set of style sheets that apply to a document, backed by a Servo + * Stylist. A ServoStyleSet contains ServoStyleSheets. + */ #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct ServoStyleSet { - _unused: [u8; 0], + pub mPresContext: *mut root::nsPresContext, + pub mRawSet: root::mozilla::UniquePtr, + pub mSheets: [u64; 9usize], + pub mAuthorStyleDisabled: bool, + pub mStylistState: root::mozilla::StylistState, + pub mUserFontSetUpdateGeneration: u64, + pub mUserFontCacheUpdateGeneration: u32, + pub mNeedsRestyleAfterEnsureUniqueInner: bool, + pub mNonInheritingStyleContexts: [u64; 5usize], + pub mPostTraversalTasks: root::nsTArray, + pub mStyleRuleMap: root::RefPtr, + pub mBindingManager: root::RefPtr, + } + pub type ServoStyleSet_SnapshotTable = + root::mozilla::ServoElementSnapshotTable; + #[repr(C)] + #[derive(Debug)] + pub struct ServoStyleSet_AutoSetInServoTraversal { + pub mSet: *mut root::mozilla::ServoStyleSet, + } + #[test] + fn bindgen_test_layout_ServoStyleSet_AutoSetInServoTraversal() { + assert_eq!(::std::mem::size_of::() + , 8usize , concat ! ( + "Size of: " , stringify ! ( + ServoStyleSet_AutoSetInServoTraversal ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + ServoStyleSet_AutoSetInServoTraversal ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const ServoStyleSet_AutoSetInServoTraversal + ) ) . mSet as * const _ as usize } , 0usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoStyleSet_AutoSetInServoTraversal ) , "::" , + stringify ! ( mSet ) )); + } + extern "C" { + #[link_name = "_ZN7mozilla13ServoStyleSet17sInServoTraversalE"] + pub static mut ServoStyleSet_sInServoTraversal: + *mut root::mozilla::ServoStyleSet; + } + #[test] + fn bindgen_test_layout_ServoStyleSet() { + assert_eq!(::std::mem::size_of::() , 176usize , + concat ! ( "Size of: " , stringify ! ( ServoStyleSet ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoStyleSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mPresContext + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mRawSet as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mRawSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mSheets as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mSheets ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mAuthorStyleDisabled as * const _ as usize } , 88usize + , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mAuthorStyleDisabled ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mStylistState + as * const _ as usize } , 89usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mStylistState ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mUserFontSetUpdateGeneration as * const _ as usize } , + 96usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mUserFontSetUpdateGeneration ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mUserFontCacheUpdateGeneration as * const _ as usize } + , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mUserFontCacheUpdateGeneration + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mNeedsRestyleAfterEnsureUniqueInner as * const _ as + usize } , 108usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( + mNeedsRestyleAfterEnsureUniqueInner ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mNonInheritingStyleContexts as * const _ as usize } , + 112usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mNonInheritingStyleContexts ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mPostTraversalTasks as * const _ as usize } , 152usize + , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mPostTraversalTasks ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mStyleRuleMap + as * const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mStyleRuleMap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mBindingManager as * const _ as usize } , 168usize , + concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mBindingManager ) )); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -10899,6 +10844,36 @@ pub mod root { } #[repr(C)] #[derive(Debug)] + pub struct ServoStyleContext { + pub _base: root::nsStyleContext, + pub mPresContext: *mut root::nsPresContext, + pub mSource: root::RefPtr, + } + #[test] + fn bindgen_test_layout_ServoStyleContext() { + assert_eq!(::std::mem::size_of::() , 56usize , + concat ! ( + "Size of: " , stringify ! ( ServoStyleContext ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoStyleContext ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . + mPresContext as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( + mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . mSource + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( mSource ) + )); + } + #[repr(C)] + #[derive(Debug)] pub struct AnimationPropertySegment { pub mFromKey: f32, pub mToKey: f32, @@ -12145,7 +12120,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct PseudoElementHashEntry { pub _base: root::PLDHashEntryHdr, pub mElement: root::RefPtr, @@ -12309,6 +12283,76 @@ pub mod root { "Alignment of field: " , stringify ! ( ServoMediaList ) , "::" , stringify ! ( mRawList ) )); } + /** + * A PostTraversalTask is a task to be performed immediately after a Servo + * traversal. There are just a few tasks we need to perform, so we use this + * class rather than Runnables, to avoid virtual calls and some allocations. + * + * A PostTraversalTask is only safe to run immediately after the Servo + * traversal, since it can hold raw pointers to DOM objects. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct PostTraversalTask { + pub mType: root::mozilla::PostTraversalTask_Type, + pub mTarget: *mut ::std::os::raw::c_void, + pub mResult: root::nsresult, + } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum PostTraversalTask_Type { + ResolveFontFaceLoadedPromise = 0, + RejectFontFaceLoadedPromise = 1, + DispatchLoadingEventAndReplaceReadyPromise = 2, + DispatchFontFaceSetCheckLoadingFinishedAfterDelay = 3, + LoadFontEntry = 4, + } + #[test] + fn bindgen_test_layout_PostTraversalTask() { + assert_eq!(::std::mem::size_of::() , 24usize , + concat ! ( + "Size of: " , stringify ! ( PostTraversalTask ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( PostTraversalTask ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const PostTraversalTask ) ) . mType as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + PostTraversalTask ) , "::" , stringify ! ( mType ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const PostTraversalTask ) ) . mTarget + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( + PostTraversalTask ) , "::" , stringify ! ( mTarget ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const PostTraversalTask ) ) . mResult + as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + PostTraversalTask ) , "::" , stringify ! ( mResult ) + )); + } + impl Clone for PostTraversalTask { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct ServoStyleRuleMap { + _unused: [u8; 0], + } + #[repr(u8)] + /** + * A few flags used to track which kind of stylist state we may need to + * update. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StylistState { + NotDirty = 0, + StyleSheetsDirty = 1, + FullyDirty = 2, + } #[repr(C)] #[derive(Debug)] pub struct CSSFontFaceDescriptors { @@ -17789,7 +17833,6 @@ pub mod root { APPEND_UNSCROLLED_ONLY = 4, } #[repr(C)] - #[derive(Debug)] pub struct nsIPresShell_PointerCaptureInfo { pub mPendingContent: root::nsCOMPtr, pub mOverrideContent: root::nsCOMPtr, @@ -20923,6 +20966,214 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStyleEffects ) , "::" , stringify ! ( mMixBlendMode ) )); } + /** + * We want C++ to be abe to read the style struct fields of ComputedValues + * so we define this type on the C++ side and use the bindgenned version + * on the Rust side. + * + * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy + * impl. This will fail because the bindgenned version contains owned types. Opt out. + * + *
+ */ + #[repr(C)] + #[derive(Debug)] + pub struct ServoComputedValues { + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, + pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, + pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, + pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, + /// The rule node representing the ordered list of rules matched for this + /// node. Can be None for default values and text nodes. This is + /// essentially an optimization to avoid referencing the root rule node. + pub rules: ::gecko_bindings::structs::ServoRuleNode, + /// The element's computed values if visited, only computed if there's a + /// relevant link for this element. A element's "relevant link" is the + /// element being matched if it is a link or the nearest ancestor link. + pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, + pub flags: ::gecko_bindings::structs::ServoComputedValueFlags, + } + #[test] + fn bindgen_test_layout_ServoComputedValues() { + assert_eq!(::std::mem::size_of::() , 232usize , + concat ! ( + "Size of: " , stringify ! ( ServoComputedValues ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoComputedValues ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Font as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Font ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Color as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Color ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . List as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( List ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Text as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Text ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Visibility + as * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Visibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + UserInterface as * const _ as usize } , 40usize , concat ! + ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( UserInterface ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . TableBorder + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( TableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . SVG as * + const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( SVG ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Background + as * const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Background ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Position as + * const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Position ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . TextReset + as * const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( TextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Display as + * const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Display ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Content as + * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Content ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . UIReset as + * const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( UIReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Table as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Table ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Margin as * + const _ as usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Margin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Padding as + * const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Padding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Border as * + const _ as usize } , 136usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Border ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Outline as + * const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Outline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . XUL as * + const _ as usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( XUL ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . SVGReset as + * const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( SVGReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Column as * + const _ as usize } , 168usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Column ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Effects as + * const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Effects ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + custom_properties as * const _ as usize } , 184usize , + concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( custom_properties ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + writing_mode as * const _ as usize } , 192usize , concat ! + ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( writing_mode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + font_computation_data as * const _ as usize } , 196usize , + concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( font_computation_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . rules as * + const _ as usize } , 208usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( rules ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + visited_style as * const _ as usize } , 216usize , concat + ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( visited_style ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . flags as * + const _ as usize } , 224usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( flags ) )); + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -21466,7 +21717,6 @@ pub mod root { * of nsIContent children and provides access to them. */ #[repr(C)] - #[derive(Debug)] pub struct nsINode { pub _base: root::mozilla::dom::EventTarget, pub mNodeInfo: root::RefPtr, @@ -25608,10 +25858,144 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct nsBindingManager { + pub struct nsCSSRuleProcessor { _unused: [u8; 0], } #[repr(C)] + pub struct nsBindingManager { + pub _base: root::nsStubMutationObserver, + pub mRefCnt: root::nsCycleCollectingAutoRefCnt, + pub _mOwningThread: root::nsAutoOwningThread, + pub mBoundContentSet: u64, + pub mWrapperTable: u64, + pub mDocumentTable: u64, + pub mLoadingDocTable: u64, + pub mAttachedStack: root::nsBindingList, + pub mProcessingAttachedStack: bool, + pub mDestroyed: bool, + pub mAttachedStackSizeOnOutermost: u32, + pub mProcessAttachedQueueEvent: u64, + pub mDocument: *mut root::nsIDocument, + } + pub type nsBindingManager_HasThreadSafeRefCnt = root::mozilla::FalseType; + #[repr(u32)] + /** + * Notify the binding manager that an element + * has been removed from its document, + * so that it can update any bindings or + * nsIAnonymousContentCreator-created anonymous + * content that may depend on the document. + * @param aContent the element that's being moved + * @param aOldDocument the old document in which the + * content resided. + * @param aDestructorHandling whether or not to run the possible XBL + * destructor. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsBindingManager_DestructorHandling { + eRunDtor = 0, + eDoNotRunDtor = 1, + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsBindingManager_cycleCollection { + pub _base: root::nsXPCOMCycleCollectionParticipant, + } + #[test] + fn bindgen_test_layout_nsBindingManager_cycleCollection() { + assert_eq!(::std::mem::size_of::() , + 16usize , concat ! ( + "Size of: " , stringify ! ( + nsBindingManager_cycleCollection ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + nsBindingManager_cycleCollection ) )); + } + impl Clone for nsBindingManager_cycleCollection { + fn clone(&self) -> Self { *self } + } + pub type nsBindingManager_WrapperHashtable = u8; + extern "C" { + #[link_name = "_ZN16nsBindingManager21_cycleCollectorGlobalE"] + pub static mut nsBindingManager__cycleCollectorGlobal: + root::nsBindingManager_cycleCollection; + } + #[test] + fn bindgen_test_layout_nsBindingManager() { + assert_eq!(::std::mem::size_of::() , 88usize , + concat ! ( "Size of: " , stringify ! ( nsBindingManager ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsBindingManager ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mRefCnt as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mRefCnt ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . _mOwningThread + as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( _mOwningThread ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mBoundContentSet as * const _ as usize } , 24usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mBoundContentSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mWrapperTable + as * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mWrapperTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mDocumentTable + as * const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mDocumentTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mLoadingDocTable as * const _ as usize } , 48usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mLoadingDocTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mAttachedStack + as * const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mAttachedStack ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mProcessingAttachedStack as * const _ as usize } , 64usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mProcessingAttachedStack ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mDestroyed as + * const _ as usize } , 65usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mDestroyed ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mAttachedStackSizeOnOutermost as * const _ as usize } , + 68usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mAttachedStackSizeOnOutermost ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mProcessAttachedQueueEvent as * const _ as usize } , + 72usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mProcessAttachedQueueEvent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mDocument as * + const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mDocument ) )); + } + #[repr(C)] #[derive(Debug)] pub struct nsCSSCounterStyleRule { pub _base: root::mozilla::css::Rule, @@ -25670,7 +26054,6 @@ pub mod root { * is supported by all content objects. */ #[repr(C)] - #[derive(Debug)] pub struct nsIContent { pub _base: root::nsINode, } @@ -25755,10 +26138,75 @@ pub mod root { assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( nsIContent ) )); } + /** + * An nsStyleContext represents the computed style data for an element. + * The computed style data are stored in a set of structs (see + * nsStyleStruct.h) that are cached either on the style context or in + * the rule tree (see nsRuleNode.h for a description of this caching and + * how the cached structs are shared). + * + * Since the data in |nsIStyleRule|s and |nsRuleNode|s are immutable + * (with a few exceptions, like system color changes), the data in an + * nsStyleContext are also immutable (with the additional exception of + * GetUniqueStyleData). When style data change, + * ElementRestyler::Restyle creates a new style context. + * + * Style contexts are reference counted. References are generally held + * by: + * 1. the |nsIFrame|s that are using the style context and + * 2. any *child* style contexts (this might be the reverse of + * expectation, but it makes sense in this case) + */ #[repr(C)] - #[derive(Debug, Copy, Clone)] + #[derive(Debug)] pub struct nsStyleContext { - _unused: [u8; 0], + pub mParent: root::RefPtr, + pub mStyleIfVisited: root::RefPtr, + pub mPseudoTag: root::nsCOMPtr, + pub mBits: u64, + pub mRefCnt: u32, + pub mFrameRefCnt: u32, + } + extern "C" { + #[link_name = "_ZN14nsStyleContext16sDependencyTableE"] + pub static mut nsStyleContext_sDependencyTable: [u32; 0usize]; + } + #[test] + fn bindgen_test_layout_nsStyleContext() { + assert_eq!(::std::mem::size_of::() , 40usize , concat + ! ( "Size of: " , stringify ! ( nsStyleContext ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mParent as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mParent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mStyleIfVisited + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mStyleIfVisited ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mPseudoTag as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mPseudoTag ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mBits as * const + _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mBits ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mRefCnt as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mRefCnt ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mFrameRefCnt as + * const _ as usize } , 36usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mFrameRefCnt ) )); } #[repr(C)] pub struct nsPresContext { @@ -28973,7 +29421,6 @@ pub mod root { } pub const kNameSpaceID_None: i32 = 0; #[repr(C)] - #[derive(Debug)] pub struct nsNodeInfoManager { pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, @@ -29399,7 +29846,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct nsDOMAttributeMap { pub _base: root::nsIDOMMozNamedAttrMap, pub _base_1: root::nsWrapperCache, @@ -29673,7 +30119,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct nsXBLBinding { pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, @@ -30798,7 +31243,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct CapturingContentInfo { pub mAllowed: bool, pub mPointerLock: bool, @@ -31152,6 +31596,58 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] + pub struct nsIInterfaceInfo { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIXPConnectJSObjectHolder { + pub _base: root::nsISupports, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsIXPConnectJSObjectHolder_COMTypeInfo { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_nsIXPConnectJSObjectHolder() { + assert_eq!(::std::mem::size_of::() , + 8usize , concat ! ( + "Size of: " , stringify ! ( nsIXPConnectJSObjectHolder ) + )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( nsIXPConnectJSObjectHolder + ) )); + } + impl Clone for nsIXPConnectJSObjectHolder { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIXPConnectWrappedJS { + pub _base: root::nsIXPConnectJSObjectHolder, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsIXPConnectWrappedJS_COMTypeInfo { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_nsIXPConnectWrappedJS() { + assert_eq!(::std::mem::size_of::() , 8usize , + concat ! ( + "Size of: " , stringify ! ( nsIXPConnectWrappedJS ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsIXPConnectWrappedJS ) + )); + } + impl Clone for nsIXPConnectWrappedJS { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct nsISimpleEnumerator { _unused: [u8; 0], } @@ -37920,6 +38416,13 @@ pub mod root { pub type RawGeckoGfxMatrix4x4 = [root::mozilla::gfx::Float; 16usize]; pub type RawGeckoStyleChildrenIterator = root::mozilla::dom::StyleChildrenIterator; + pub type ServoComputedValuesBorrowed = *const root::ServoComputedValues; + pub type RawServoDeclarationBlockBorrowed = + *const root::RawServoDeclarationBlock; + pub type ServoStyleContextBorrowed = + *const root::mozilla::ServoStyleContext; + pub type ServoStyleContextBorrowedOrNull = + *const root::mozilla::ServoStyleContext; pub type RawServoAnimationValueMapBorrowedMut = *mut root::RawServoAnimationValueMap; pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode; @@ -38234,6 +38737,11 @@ pub mod root { pub struct nsIConsoleReportCollector { _unused: [u8; 0], } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct CSSRuleListImpl { + _unused: [u8; 0], + } /** * An nsMediaQueryResultCacheKey records what feature/value combinations * a set of media query results are valid for. This allows the caller @@ -38474,6 +38982,11 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] + pub struct nsXBLDocumentInfo { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct ElementRuleProcessorData { _unused: [u8; 0], } @@ -38585,7 +39098,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct nsIAttribute { pub _base: root::nsINode, pub mAttrMap: root::RefPtr, @@ -38608,6 +39120,35 @@ pub mod root { "::" , stringify ! ( mAttrMap ) )); } /** + * There are two advantages to inheriting from nsStubMutationObserver + * rather than directly from nsIMutationObserver: + * 1. smaller compiled code size (since there's no need for the code + * for the empty virtual function implementations for every + * nsIMutationObserver implementation) + * 2. the performance of document's loop over observers benefits from + * the fact that more of the functions called are the same (which + * can reduce instruction cache misses and perhaps improve branch + * prediction) + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsStubMutationObserver { + pub _base: root::nsIMutationObserver, + } + #[test] + fn bindgen_test_layout_nsStubMutationObserver() { + assert_eq!(::std::mem::size_of::() , 8usize , + concat ! ( + "Size of: " , stringify ! ( nsStubMutationObserver ) )); + assert_eq! (::std::mem::align_of::() , 8usize + , concat ! ( + "Alignment of " , stringify ! ( nsStubMutationObserver ) + )); + } + impl Clone for nsStubMutationObserver { + fn clone(&self) -> Self { *self } + } + /** * Structure used as a key for caching Attrs in nsDOMAttributeMap's mAttributeCache. */ #[repr(C)] @@ -38828,10 +39369,54 @@ pub mod root { impl Clone for LookAndFeelInt { fn clone(&self) -> Self { *self } } + /** + * An object implementing |nsIStyleRule| (henceforth, a rule) represents + * immutable stylistic information that either applies or does not apply + * to a given element. It belongs to an object or group of objects that + * implement |nsIStyleSheet| and |nsIStyleRuleProcessor| (henceforth, a + * sheet). + * + * A rule becomes relevant to the computation of style data when + * |nsIStyleRuleProcessor::RulesMatching| creates a rule node that + * points to the rule. (A rule node, |nsRuleNode|, is a node in the + * rule tree, which is a lexicographic tree indexed by rules. The path + * from the root of the rule tree to the |nsRuleNode| for a given + * |nsStyleContext| contains exactly the rules that match the element + * that the style context is for, in priority (weight, origin, + * specificity) order.) + * + * The computation of style data uses the rule tree, which calls + * |nsIStyleRule::MapRuleInfoInto| below. + * + * It is worth emphasizing that the data represented by a rule + * implementation are immutable. When the data need to be changed, a + * new rule object must be created. Failing to do this will lead to + * bugs in the handling of dynamic style changes, since the rule tree + * caches the results of |MapRuleInfoInto|. + * + * |nsIStyleRule| objects are owned by |nsRuleNode| objects (in addition + * to typically being owned by their sheet), which are in turn garbage + * collected (with the garbage collection roots being style contexts). + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIStyleRule { + pub _base: root::nsISupports, + } #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct nsIStyleRule { - _unused: [u8; 0], + pub struct nsIStyleRule_COMTypeInfo { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_nsIStyleRule() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of: " , stringify ! ( nsIStyleRule ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsIStyleRule ) )); + } + impl Clone for nsIStyleRule { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug)] @@ -39138,6 +39723,27 @@ pub mod root { pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder: u32 = 8; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch: u32 = 12; #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct ElementDependentRuleProcessorData { + _unused: [u8; 0], + } + pub type nsBindingList = root::nsTArray>; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsRuleData { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsCSSFontFeatureValuesRule { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsCSSPageRule { + _unused: [u8; 0], + } + #[repr(C)] #[derive(Debug, Copy)] pub struct nsIDOMCSSCounterStyleRule { pub _base: root::nsISupports, @@ -39485,7 +40091,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189816_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_195925_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39494,7 +40100,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189852_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_195961_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40479,7 +41085,20 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_123() { + fn __bindgen_test_layout_nsTArray_instantiation_123() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_124() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40490,7 +41109,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_124() { + fn __bindgen_test_layout_nsTArray_instantiation_125() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40501,7 +41120,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_125() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_126() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40512,7 +41131,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_126() { + fn __bindgen_test_layout_already_AddRefed_instantiation_127() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40523,7 +41142,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_127() { + fn __bindgen_test_layout_already_AddRefed_instantiation_128() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40534,7 +41153,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_128() { + fn __bindgen_test_layout_RefPtr_instantiation_129() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40545,7 +41164,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_129() { + fn __bindgen_test_layout_nsTArray_instantiation_130() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40556,7 +41175,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + fn __bindgen_test_layout_already_AddRefed_instantiation_131() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40567,7 +41186,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_131() { + fn __bindgen_test_layout_MutableHandle_instantiation_132() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40578,17 +41197,6 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_132() { - 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_133() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40601,6 +41209,17 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_134() { + 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_135() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40611,7 +41230,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_135() { + fn __bindgen_test_layout_RefPtr_instantiation_136() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40622,7 +41241,20 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_136() { + fn __bindgen_test_layout_nsTArray_instantiation_137() { + 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_138() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40633,7 +41265,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_137() { + fn __bindgen_test_layout_already_AddRefed_instantiation_139() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40644,7 +41276,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_138() { + fn __bindgen_test_layout_already_AddRefed_instantiation_140() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40655,7 +41287,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_139() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_141() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40666,7 +41298,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_140() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_142() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40677,7 +41309,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_141() { + fn __bindgen_test_layout_RefPtr_instantiation_143() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40688,7 +41320,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_142() { + fn __bindgen_test_layout_nsTArray_instantiation_144() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40701,7 +41333,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_143() { + fn __bindgen_test_layout_nsTArray_instantiation_145() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40712,7 +41344,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_144() { + fn __bindgen_test_layout_Handle_instantiation_146() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40723,7 +41355,130 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_145() { + fn __bindgen_test_layout_already_AddRefed_instantiation_147() { + 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_148() { + 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_149() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_150() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_151() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_152() { + 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_153() { + 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_154() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_155() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_156() { + 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_157() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_158() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40734,7 +41489,42 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_146() { + fn __bindgen_test_layout_nsTArray_instantiation_159() { + 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_160() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_161() { + 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_162() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40745,7 +41535,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_147() { + fn __bindgen_test_layout_already_AddRefed_instantiation_163() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40756,7 +41546,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_148() { + fn __bindgen_test_layout_nsTArray_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40767,7 +41557,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_149() { + fn __bindgen_test_layout_Handle_instantiation_165() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40778,7 +41568,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_150() { + fn __bindgen_test_layout_Handle_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40789,7 +41579,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_151() { + fn __bindgen_test_layout_Handle_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40800,7 +41590,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_152() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_168() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40813,7 +41603,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_153() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_169() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40824,7 +41614,40 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_154() { + fn __bindgen_test_layout_nsTArray_instantiation_170() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_171() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_nsTHashtable_instantiation_172() { + 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_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40835,7 +41658,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[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 ! ( @@ -40846,7 +41669,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_156() { + fn __bindgen_test_layout_nsTArray_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40857,7 +41680,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_157() { + fn __bindgen_test_layout_already_AddRefed_instantiation_176() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40868,7 +41691,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_158() { + fn __bindgen_test_layout_already_AddRefed_instantiation_177() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40879,7 +41702,99 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_159() { + fn __bindgen_test_layout_already_AddRefed_instantiation_178() { + 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_179() { + 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_180() { + 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_181() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_182() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_183() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_184() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_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_SupportsWeakPtr_instantiation_186() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40888,7 +41803,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_160() { + fn __bindgen_test_layout_already_AddRefed_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40899,7 +41814,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_161() { + fn __bindgen_test_layout_nsTArray_instantiation_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40910,7 +41825,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_162() { + fn __bindgen_test_layout_NotNull_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40923,7 +41838,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_163() { + fn __bindgen_test_layout_NotNull_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40936,7 +41851,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_164() { + fn __bindgen_test_layout_already_AddRefed_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40947,7 +41862,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_165() { + fn __bindgen_test_layout_DefaultDelete_instantiation_192() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40958,7 +41873,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_166() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_193() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40969,7 +41884,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_167() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40980,7 +41895,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_168() { + fn __bindgen_test_layout_nsTArray_instantiation_195() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40991,7 +41906,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_169() { + fn __bindgen_test_layout_already_AddRefed_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41002,7 +41917,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_170() { + fn __bindgen_test_layout_already_AddRefed_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41013,7 +41928,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_171() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41024,7 +41939,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_172() { + fn __bindgen_test_layout_already_AddRefed_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41035,7 +41950,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_173() { + fn __bindgen_test_layout_already_AddRefed_instantiation_200() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41046,7 +41961,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_174() { + fn __bindgen_test_layout_Handle_instantiation_201() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41057,7 +41972,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_175() { + fn __bindgen_test_layout_Handle_instantiation_202() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41068,7 +41983,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_176() { + fn __bindgen_test_layout_Handle_instantiation_203() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41079,7 +41994,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_177() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_204() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41090,7 +42005,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_178() { + fn __bindgen_test_layout_already_AddRefed_instantiation_205() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41101,7 +42016,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_179() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_206() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41112,7 +42027,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_180() { + fn __bindgen_test_layout_Handle_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41123,7 +42038,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_181() { + fn __bindgen_test_layout_nsTArray_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41134,7 +42049,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_182() { + fn __bindgen_test_layout_Handle_instantiation_209() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41145,7 +42060,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_183() { + fn __bindgen_test_layout_OwningNonNull_instantiation_210() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41156,7 +42071,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_184() { + fn __bindgen_test_layout_OwningNonNull_instantiation_211() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41167,7 +42082,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_185() { + fn __bindgen_test_layout_OwningNonNull_instantiation_212() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41178,7 +42093,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_186() { + fn __bindgen_test_layout_Handle_instantiation_213() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41189,7 +42104,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_187() { + fn __bindgen_test_layout_Handle_instantiation_214() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41200,7 +42115,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_188() { + fn __bindgen_test_layout_Handle_instantiation_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41211,7 +42126,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_189() { + fn __bindgen_test_layout_MutableHandle_instantiation_216() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41222,7 +42137,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_190() { + fn __bindgen_test_layout_Handle_instantiation_217() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41233,7 +42148,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_191() { + fn __bindgen_test_layout_MutableHandle_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41244,7 +42159,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_192() { + fn __bindgen_test_layout_Handle_instantiation_219() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41255,7 +42170,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_193() { + fn __bindgen_test_layout_MutableHandle_instantiation_220() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41266,7 +42181,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_194() { + fn __bindgen_test_layout_Handle_instantiation_221() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41277,307 +42192,6 @@ pub mod root { 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_Handle_instantiation_196() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::JS::Handle<*mut root::JSObject> ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_197() { - 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_198() { - 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_199() { - 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_200() { - 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_201() { - 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_202() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_203() { - 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_204() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_205() { - 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_206() { - 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_207() { - 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_208() { - 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_209() { - 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_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_DefaultDelete_instantiation_211() { - 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_212() { - 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_213() { - 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_214() { - 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_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_nsCOMPtr_instantiation_216() { - 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_217() { - 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_218() { - 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_219() { - 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_220() { - 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_221() { - 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_222() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41589,29 +42203,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_223() { - 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_224() { - 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_225() { + fn __bindgen_test_layout_Handle_instantiation_223() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41622,7 +42214,338 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_226() { + fn __bindgen_test_layout_MutableHandle_instantiation_224() { + 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_225() { + 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_226() { + 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_227() { + 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_228() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_229() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_NotNull_instantiation_230() { + 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_231() { + 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_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 ) )); + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct _bindgen_ty_11 { + pub _address: u8, + } + impl Clone for _bindgen_ty_11 { + fn clone(&self) -> Self { *self } + } + #[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_nsPIDOMWindow_instantiation_234() { + 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_235() { + 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_236() { + 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_237() { + 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_238() { + 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_239() { + assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 6usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 6usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 6usize] ) )); + } + #[test] + fn __bindgen_test_layout_Rooted_instantiation_240() { + 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_241() { + 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_242() { + 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_243() { + 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_244() { + 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_245() { + 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_246() { + 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_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_MutableHandle_instantiation_248() { + 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_249() { + 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_250() { + 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_251() { + 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_252() { + 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_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41633,7 +42556,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_227() { + fn __bindgen_test_layout_RefPtr_instantiation_254() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41644,7 +42567,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_228() { + fn __bindgen_test_layout_RefPtr_instantiation_255() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41655,7 +42578,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_229() { + fn __bindgen_test_layout_nsTArray_instantiation_256() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41668,7 +42591,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_230() { + fn __bindgen_test_layout_RefPtr_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41679,7 +42602,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_231() { + fn __bindgen_test_layout_already_AddRefed_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41690,7 +42613,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_232() { + fn __bindgen_test_layout_already_AddRefed_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41701,7 +42624,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_233() { + fn __bindgen_test_layout_Handle_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41712,7 +42635,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_234() { + fn __bindgen_test_layout_nsTArray_instantiation_261() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41723,7 +42646,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_235() { + fn __bindgen_test_layout_RefPtr_instantiation_262() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41736,7 +42659,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_236() { + fn __bindgen_test_layout_nsTArray_instantiation_263() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41749,7 +42672,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_237() { + fn __bindgen_test_layout_RefPtr_instantiation_264() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41762,7 +42685,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_238() { + fn __bindgen_test_layout_UniquePtr_instantiation_265() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41773,303 +42696,6 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_239() { - 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_240() { - 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_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_already_AddRefed_instantiation_244() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_245() { - 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_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_nsRefPtrHashKey_instantiation_247() { - 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_nsRefPtrHashKey_instantiation_248() { - 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_249() { - 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_DefaultDelete_instantiation_250() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_251() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_252() { - assert_eq!(::std::mem::size_of::>() - , 40usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_253() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_254() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_255() { - 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_256() { - 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_257() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_258() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_259() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_260() { - 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_261() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_262() { - 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_263() { - 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_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_SupportsWeakPtr_instantiation_265() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] fn __bindgen_test_layout_nsTArray_instantiation_266() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42081,62 +42707,51 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_267() { - 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_268() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_267() { + 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 ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_269() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( + fn __bindgen_test_layout_MutableHandle_instantiation_268() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); + root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_270() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( + fn __bindgen_test_layout_Handle_instantiation_269() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_270() { + 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_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 ! ( @@ -42147,7 +42762,64 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_273() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_272() { + 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_OwningNonNull_instantiation_273() { + 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_nsRefPtrHashKey_instantiation_274() { + 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_nsRefPtrHashKey_instantiation_275() { + 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_276() { + 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_DefaultDelete_instantiation_277() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42158,40 +42830,40 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_274() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_278() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_275() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_279() { + assert_eq!(::std::mem::size_of::>() + , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( + root::nsMainThreadPtrHolder ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); + root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_276() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_280() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_277() { + fn __bindgen_test_layout_already_AddRefed_instantiation_281() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42202,7 +42874,159 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_278() { + fn __bindgen_test_layout_already_AddRefed_instantiation_282() { + 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_283() { + 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_284() { + 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_285() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_286() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_287() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_UniquePtr_instantiation_288() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_289() { + 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_290() { + 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_291() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_292() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_293() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_294() { + 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_295() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Maybe_instantiation_296() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42213,7 +43037,40 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_279() { + fn __bindgen_test_layout_Maybe_instantiation_297() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_298() { + 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_299() { + 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_300() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42224,7 +43081,18 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_280() { + fn __bindgen_test_layout_UniquePtr_instantiation_301() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_302() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42235,7 +43103,62 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_281() { + fn __bindgen_test_layout_UniquePtr_instantiation_303() { + 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_304() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Maybe_instantiation_305() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_306() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_307() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_pair_instantiation_308() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42246,7 +43169,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_282() { + fn __bindgen_test_layout_nsTArray_instantiation_309() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -42261,7 +43184,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_283() { + fn __bindgen_test_layout_nsTArray_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42272,7 +43195,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_284() { + fn __bindgen_test_layout_nsTArray_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42283,7 +43206,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_285() { + fn __bindgen_test_layout_nsTArray_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42294,7 +43217,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_286() { + fn __bindgen_test_layout_RefPtr_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42305,7 +43228,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_287() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_314() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42316,7 +43239,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_288() { + fn __bindgen_test_layout_DefaultDelete_instantiation_315() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42327,7 +43250,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_289() { + fn __bindgen_test_layout_UniquePtr_instantiation_316() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42338,7 +43261,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_290() { + fn __bindgen_test_layout_DefaultDelete_instantiation_317() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42349,7 +43272,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_291() { + fn __bindgen_test_layout_UniquePtr_instantiation_318() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42360,7 +43283,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_292() { + fn __bindgen_test_layout_RefPtr_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42371,7 +43294,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_293() { + fn __bindgen_test_layout_RefPtr_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42382,7 +43305,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_294() { + fn __bindgen_test_layout_NonNull_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42395,7 +43318,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_295() { + fn __bindgen_test_layout_NonNull_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42408,7 +43331,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_296() { + fn __bindgen_test_layout_Handle_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42419,7 +43342,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_297() { + fn __bindgen_test_layout_MutableHandle_instantiation_324() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42430,7 +43353,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_298() { + fn __bindgen_test_layout_Maybe_instantiation_325() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42441,7 +43364,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_299() { + fn __bindgen_test_layout_Maybe_instantiation_326() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42452,7 +43375,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_300() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_327() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42463,7 +43386,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_301() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42474,7 +43397,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_302() { + fn __bindgen_test_layout_already_AddRefed_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42485,7 +43408,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_303() { + fn __bindgen_test_layout_already_AddRefed_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42496,7 +43419,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_304() { + fn __bindgen_test_layout_nsTArray_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42507,7 +43430,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_305() { + fn __bindgen_test_layout_nsTArray_instantiation_332() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42518,7 +43441,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_306() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42529,7 +43452,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_307() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_334() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42542,7 +43465,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_308() { + fn __bindgen_test_layout_already_AddRefed_instantiation_335() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42553,7 +43476,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_309() { + fn __bindgen_test_layout_nsTArray_instantiation_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42566,7 +43489,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_310() { + fn __bindgen_test_layout_Handle_instantiation_337() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42577,7 +43500,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_311() { + fn __bindgen_test_layout_Handle_instantiation_338() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42588,7 +43511,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_312() { + fn __bindgen_test_layout_RefPtr_instantiation_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42599,7 +43522,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_313() { + fn __bindgen_test_layout_Handle_instantiation_340() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42610,7 +43533,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_314() { + fn __bindgen_test_layout_MutableHandle_instantiation_341() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42621,7 +43544,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_315() { + fn __bindgen_test_layout_Sequence_instantiation_342() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42630,7 +43553,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_316() { + fn __bindgen_test_layout_Handle_instantiation_343() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42641,7 +43564,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_317() { + fn __bindgen_test_layout_Sequence_instantiation_344() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42650,7 +43573,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_318() { + fn __bindgen_test_layout_Sequence_instantiation_345() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42659,7 +43582,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_319() { + fn __bindgen_test_layout_Handle_instantiation_346() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42670,7 +43593,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_320() { + fn __bindgen_test_layout_Handle_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42681,7 +43604,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_321() { + fn __bindgen_test_layout_MutableHandle_instantiation_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42692,7 +43615,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_322() { + fn __bindgen_test_layout_Handle_instantiation_349() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42703,7 +43626,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_323() { + fn __bindgen_test_layout_MutableHandle_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42714,7 +43637,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_324() { + fn __bindgen_test_layout_Handle_instantiation_351() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42725,7 +43648,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_325() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_352() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42736,7 +43659,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_326() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_353() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42747,7 +43670,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_327() { + fn __bindgen_test_layout_Handle_instantiation_354() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42758,7 +43681,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_328() { + fn __bindgen_test_layout_nsTArray_instantiation_355() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42769,7 +43692,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_329() { + fn __bindgen_test_layout_nsTArray_instantiation_356() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42780,7 +43703,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_330() { + fn __bindgen_test_layout_nsTArray_instantiation_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42791,7 +43714,51 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_331() { + fn __bindgen_test_layout_RefPtr_instantiation_358() { + 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_359() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_360() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_361() { + 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_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42802,7 +43769,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_332() { + fn __bindgen_test_layout_Handle_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42813,7 +43780,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_333() { + fn __bindgen_test_layout_nsTArray_instantiation_364() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42824,7 +43791,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_334() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_365() { 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 bc2e1a41e71..0c9ce809437 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -16,6 +16,7 @@ pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; pub type ServoVisitedStyle = Option<::stylearc::Arc<::properties::ComputedValues>>; pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; +pub type ServoStyleContextStrong = ::gecko_bindings::sugar::ownership::Strong; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -3982,7 +3983,6 @@ pub mod root { ) , "::" , stringify ! ( mEmpty ) )); } #[repr(C)] - #[derive(Debug)] pub struct Element { pub _base: root::mozilla::dom::FragmentOrElement, pub mState: root::mozilla::EventStates, @@ -4128,7 +4128,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct NodeInfo { pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub mDocument: *mut root::nsIDocument, @@ -5186,7 +5185,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct Attr { pub _base: root::nsIAttribute, pub _base_1: root::nsIDOMAttr, @@ -5643,7 +5641,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct FragmentOrElement { pub _base: root::nsIContent, pub mRefCnt: root::nsCycleCollectingAutoRefCnt, @@ -5682,7 +5679,6 @@ pub mod root { * accessed through the DOM. */ #[repr(C)] - #[derive(Debug)] pub struct FragmentOrElement_nsDOMSlots { pub _base: root::nsINode_nsSlots, /** @@ -6066,7 +6062,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct DOMIntersectionObserverEntry { pub _base: root::nsISupports, pub _base_1: root::nsWrapperCache, @@ -6215,7 +6210,6 @@ pub mod root { ! ( mValue ) )); } #[repr(C)] - #[derive(Debug)] pub struct IntersectionObserverInit { pub _base: root::mozilla::dom::DictionaryBase, pub mRoot: root::RefPtr, @@ -6270,7 +6264,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct DestinationInsertionPointList { pub _base: root::nsINodeList, pub mRefCnt: root::nsCycleCollectingAutoRefCnt, @@ -7413,6 +7406,9 @@ pub mod root { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum LazyComputeBehavior { Allow = 0, Assert = 1, } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum TraversalRootBehavior { Normal = 0, UnstyledChildrenOnly = 1, @@ -7880,254 +7876,6 @@ pub mod root { "Alignment of field: " , stringify ! ( GeckoEffects ) , "::" , stringify ! ( gecko ) )); } - /** - * We want C++ to be abe to read the style struct fields of ComputedValues - * so we define this type on the C++ side and use the bindgenned version - * on the Rust side. - * - * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy - * impl. This will fail because the bindgenned version contains owned types. Opt out. - * - *
- */ - #[repr(C)] - #[derive(Debug)] - pub struct ServoComputedValues2 { - pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, - pub List: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, - pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, - pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, - pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, - pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, - pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, - pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, - pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, - pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, - /// The rule node representing the ordered list of rules matched for this - /// node. Can be None for default values and text nodes. This is - /// essentially an optimization to avoid referencing the root rule node. - pub rules: ::gecko_bindings::structs::ServoRuleNode, - /// The element's computed values if visited, only computed if there's a - /// relevant link for this element. A element's "relevant link" is the - /// element being matched if it is a link or the nearest ancestor link. - pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, - pub flags: ::gecko_bindings::structs::ServoComputedValueFlags, - } - #[test] - fn bindgen_test_layout_ServoComputedValues2() { - assert_eq!(::std::mem::size_of::() , - 232usize , concat ! ( - "Size of: " , stringify ! ( ServoComputedValues2 ) )); - assert_eq! (::std::mem::align_of::() , - 8usize , concat ! ( - "Alignment of " , stringify ! ( ServoComputedValues2 ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Font - as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Font ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Color - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Color ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . List - as * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( List ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Text - as * const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Text ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Visibility as * const _ as usize } , 32usize , concat - ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - Visibility ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - UserInterface as * const _ as usize } , 40usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - UserInterface ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - TableBorder as * const _ as usize } , 48usize , concat - ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - TableBorder ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . SVG as - * const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( SVG ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Background as * const _ as usize } , 64usize , concat - ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - Background ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Position as * const _ as usize } , 72usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Position - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - TextReset as * const _ as usize } , 80usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - TextReset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Display as * const _ as usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Display - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Content as * const _ as usize } , 96usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Content - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - UIReset as * const _ as usize } , 104usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( UIReset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Table - as * const _ as usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Table ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Margin - as * const _ as usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Margin ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Padding as * const _ as usize } , 128usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Padding - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Border - as * const _ as usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Border ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Outline as * const _ as usize } , 144usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Outline - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . XUL as - * const _ as usize } , 152usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( XUL ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - SVGReset as * const _ as usize } , 160usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( SVGReset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . Column - as * const _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Column ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - Effects as * const _ as usize } , 176usize , concat ! - ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( Effects - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - custom_properties as * const _ as usize } , 184usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - custom_properties ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - writing_mode as * const _ as usize } , 192usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - writing_mode ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - font_computation_data as * const _ as usize } , - 196usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - font_computation_data ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . rules - as * const _ as usize } , 208usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( rules ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . - visited_style as * const _ as usize } , 216usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( - visited_style ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoComputedValues2 ) ) . flags - as * const _ as usize } , 224usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoComputedValues2 ) , "::" , stringify ! ( flags ) - )); - } #[repr(u8)] /** * Enumeration that represents one of the two supported style system backends. @@ -8440,6 +8188,78 @@ pub mod root { CORS_USE_CREDENTIALS = 2, } #[repr(C)] + pub struct CSSStyleSheet { + pub _base: root::mozilla::StyleSheet, + pub mRuleCollection: root::RefPtr, + pub mInRuleProcessorCache: bool, + pub mScopeElement: root::RefPtr, + pub mRuleProcessors: *mut u8, + } + pub use self::super::super::root::mozilla::net::ReferrerPolicy as + CSSStyleSheet_ReferrerPolicy; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct CSSStyleSheet_cycleCollection { + pub _base: root::mozilla::StyleSheet_cycleCollection, + } + #[test] + fn bindgen_test_layout_CSSStyleSheet_cycleCollection() { + assert_eq!(::std::mem::size_of::() + , 16usize , concat ! ( + "Size of: " , stringify ! ( + CSSStyleSheet_cycleCollection ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + CSSStyleSheet_cycleCollection ) )); + } + impl Clone for CSSStyleSheet_cycleCollection { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct CSSStyleSheet_COMTypeInfo { + pub _address: u8, + } + extern "C" { + #[link_name = + "_ZN7mozilla13CSSStyleSheet21_cycleCollectorGlobalE"] + pub static mut CSSStyleSheet__cycleCollectorGlobal: + root::mozilla::CSSStyleSheet_cycleCollection; + } + #[test] + fn bindgen_test_layout_CSSStyleSheet() { + assert_eq!(::std::mem::size_of::() , 168usize , + concat ! ( "Size of: " , stringify ! ( CSSStyleSheet ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( CSSStyleSheet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . + mRuleCollection as * const _ as usize } , 136usize , + concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mRuleCollection ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . + mInRuleProcessorCache as * const _ as usize } , + 144usize , concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mInRuleProcessorCache ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . mScopeElement + as * const _ as usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mScopeElement ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CSSStyleSheet ) ) . + mRuleProcessors as * const _ as usize } , 160usize , + concat ! ( + "Alignment of field: " , stringify ! ( CSSStyleSheet ) + , "::" , stringify ! ( mRuleProcessors ) )); + } + #[repr(C)] #[derive(Debug)] pub struct ServoStyleSheet { pub _base: root::mozilla::StyleSheet, @@ -8674,10 +8494,135 @@ pub mod root { NotPseudo = 28, MAX = 29, } + /** + * The set of style sheets that apply to a document, backed by a Servo + * Stylist. A ServoStyleSet contains ServoStyleSheets. + */ #[repr(C)] - #[derive(Debug, Copy, Clone)] pub struct ServoStyleSet { - _unused: [u8; 0], + pub mPresContext: *mut root::nsPresContext, + pub mRawSet: root::mozilla::UniquePtr, + pub mSheets: [u64; 9usize], + pub mAuthorStyleDisabled: bool, + pub mStylistState: root::mozilla::StylistState, + pub mUserFontSetUpdateGeneration: u64, + pub mUserFontCacheUpdateGeneration: u32, + pub mNeedsRestyleAfterEnsureUniqueInner: bool, + pub mNonInheritingStyleContexts: [u64; 5usize], + pub mPostTraversalTasks: root::nsTArray, + pub mStyleRuleMap: root::RefPtr, + pub mBindingManager: root::RefPtr, + } + pub type ServoStyleSet_SnapshotTable = + root::mozilla::ServoElementSnapshotTable; + #[repr(C)] + #[derive(Debug)] + pub struct ServoStyleSet_AutoSetInServoTraversal { + pub mSet: *mut root::mozilla::ServoStyleSet, + } + #[test] + fn bindgen_test_layout_ServoStyleSet_AutoSetInServoTraversal() { + assert_eq!(::std::mem::size_of::() + , 8usize , concat ! ( + "Size of: " , stringify ! ( + ServoStyleSet_AutoSetInServoTraversal ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + ServoStyleSet_AutoSetInServoTraversal ) )); + assert_eq! (unsafe { + & ( + * ( 0 as * const ServoStyleSet_AutoSetInServoTraversal + ) ) . mSet as * const _ as usize } , 0usize , concat ! + ( + "Alignment of field: " , stringify ! ( + ServoStyleSet_AutoSetInServoTraversal ) , "::" , + stringify ! ( mSet ) )); + } + extern "C" { + #[link_name = "_ZN7mozilla13ServoStyleSet17sInServoTraversalE"] + pub static mut ServoStyleSet_sInServoTraversal: + *mut root::mozilla::ServoStyleSet; + } + #[test] + fn bindgen_test_layout_ServoStyleSet() { + assert_eq!(::std::mem::size_of::() , 176usize , + concat ! ( "Size of: " , stringify ! ( ServoStyleSet ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoStyleSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mPresContext + as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mRawSet as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mRawSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mSheets as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mSheets ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mAuthorStyleDisabled as * const _ as usize } , 88usize + , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mAuthorStyleDisabled ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mStylistState + as * const _ as usize } , 89usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mStylistState ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mUserFontSetUpdateGeneration as * const _ as usize } , + 96usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mUserFontSetUpdateGeneration ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mUserFontCacheUpdateGeneration as * const _ as usize } + , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mUserFontCacheUpdateGeneration + ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mNeedsRestyleAfterEnsureUniqueInner as * const _ as + usize } , 108usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( + mNeedsRestyleAfterEnsureUniqueInner ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mNonInheritingStyleContexts as * const _ as usize } , + 112usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mNonInheritingStyleContexts ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mPostTraversalTasks as * const _ as usize } , 152usize + , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mPostTraversalTasks ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . mStyleRuleMap + as * const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mStyleRuleMap ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleSet ) ) . + mBindingManager as * const _ as usize } , 168usize , + concat ! ( + "Alignment of field: " , stringify ! ( ServoStyleSet ) + , "::" , stringify ! ( mBindingManager ) )); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -10636,6 +10581,36 @@ pub mod root { } #[repr(C)] #[derive(Debug)] + pub struct ServoStyleContext { + pub _base: root::nsStyleContext, + pub mPresContext: *mut root::nsPresContext, + pub mSource: root::RefPtr, + } + #[test] + fn bindgen_test_layout_ServoStyleContext() { + assert_eq!(::std::mem::size_of::() , 56usize , + concat ! ( + "Size of: " , stringify ! ( ServoStyleContext ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoStyleContext ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . + mPresContext as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( + mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . mSource + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( mSource ) + )); + } + #[repr(C)] + #[derive(Debug)] pub struct AnimationPropertySegment { pub mFromKey: f32, pub mToKey: f32, @@ -11874,7 +11849,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct PseudoElementHashEntry { pub _base: root::PLDHashEntryHdr, pub mElement: root::RefPtr, @@ -12038,6 +12012,76 @@ pub mod root { "Alignment of field: " , stringify ! ( ServoMediaList ) , "::" , stringify ! ( mRawList ) )); } + /** + * A PostTraversalTask is a task to be performed immediately after a Servo + * traversal. There are just a few tasks we need to perform, so we use this + * class rather than Runnables, to avoid virtual calls and some allocations. + * + * A PostTraversalTask is only safe to run immediately after the Servo + * traversal, since it can hold raw pointers to DOM objects. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct PostTraversalTask { + pub mType: root::mozilla::PostTraversalTask_Type, + pub mTarget: *mut ::std::os::raw::c_void, + pub mResult: root::nsresult, + } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum PostTraversalTask_Type { + ResolveFontFaceLoadedPromise = 0, + RejectFontFaceLoadedPromise = 1, + DispatchLoadingEventAndReplaceReadyPromise = 2, + DispatchFontFaceSetCheckLoadingFinishedAfterDelay = 3, + LoadFontEntry = 4, + } + #[test] + fn bindgen_test_layout_PostTraversalTask() { + assert_eq!(::std::mem::size_of::() , 24usize , + concat ! ( + "Size of: " , stringify ! ( PostTraversalTask ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( PostTraversalTask ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const PostTraversalTask ) ) . mType as + * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + PostTraversalTask ) , "::" , stringify ! ( mType ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const PostTraversalTask ) ) . mTarget + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( + PostTraversalTask ) , "::" , stringify ! ( mTarget ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const PostTraversalTask ) ) . mResult + as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + PostTraversalTask ) , "::" , stringify ! ( mResult ) + )); + } + impl Clone for PostTraversalTask { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct ServoStyleRuleMap { + _unused: [u8; 0], + } + #[repr(u8)] + /** + * A few flags used to track which kind of stylist state we may need to + * update. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StylistState { + NotDirty = 0, + StyleSheetsDirty = 1, + FullyDirty = 2, + } #[repr(C)] #[derive(Debug)] pub struct CSSFontFaceDescriptors { @@ -17455,7 +17499,6 @@ pub mod root { APPEND_UNSCROLLED_ONLY = 4, } #[repr(C)] - #[derive(Debug)] pub struct nsIPresShell_PointerCaptureInfo { pub mPendingContent: root::nsCOMPtr, pub mOverrideContent: root::nsCOMPtr, @@ -20578,6 +20621,214 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStyleEffects ) , "::" , stringify ! ( mMixBlendMode ) )); } + /** + * We want C++ to be abe to read the style struct fields of ComputedValues + * so we define this type on the C++ side and use the bindgenned version + * on the Rust side. + * + * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy + * impl. This will fail because the bindgenned version contains owned types. Opt out. + * + *
+ */ + #[repr(C)] + #[derive(Debug)] + pub struct ServoComputedValues { + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, + pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, + pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, + pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, + /// The rule node representing the ordered list of rules matched for this + /// node. Can be None for default values and text nodes. This is + /// essentially an optimization to avoid referencing the root rule node. + pub rules: ::gecko_bindings::structs::ServoRuleNode, + /// The element's computed values if visited, only computed if there's a + /// relevant link for this element. A element's "relevant link" is the + /// element being matched if it is a link or the nearest ancestor link. + pub visited_style: ::gecko_bindings::structs::ServoVisitedStyle, + pub flags: ::gecko_bindings::structs::ServoComputedValueFlags, + } + #[test] + fn bindgen_test_layout_ServoComputedValues() { + assert_eq!(::std::mem::size_of::() , 232usize , + concat ! ( + "Size of: " , stringify ! ( ServoComputedValues ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoComputedValues ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Font as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Font ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Color as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Color ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . List as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( List ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Text as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Text ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Visibility + as * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Visibility ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + UserInterface as * const _ as usize } , 40usize , concat ! + ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( UserInterface ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . TableBorder + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( TableBorder ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . SVG as * + const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( SVG ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Background + as * const _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Background ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Position as + * const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Position ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . TextReset + as * const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( TextReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Display as + * const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Display ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Content as + * const _ as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Content ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . UIReset as + * const _ as usize } , 104usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( UIReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Table as * + const _ as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Table ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Margin as * + const _ as usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Margin ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Padding as + * const _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Padding ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Border as * + const _ as usize } , 136usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Border ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Outline as + * const _ as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Outline ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . XUL as * + const _ as usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( XUL ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . SVGReset as + * const _ as usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( SVGReset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Column as * + const _ as usize } , 168usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Column ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . Effects as + * const _ as usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( Effects ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + custom_properties as * const _ as usize } , 184usize , + concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( custom_properties ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + writing_mode as * const _ as usize } , 192usize , concat ! + ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( writing_mode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + font_computation_data as * const _ as usize } , 196usize , + concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( font_computation_data ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . rules as * + const _ as usize } , 208usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( rules ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . + visited_style as * const _ as usize } , 216usize , concat + ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( visited_style ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValues ) ) . flags as * + const _ as usize } , 224usize , concat ! ( + "Alignment of field: " , stringify ! ( ServoComputedValues + ) , "::" , stringify ! ( flags ) )); + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -21121,7 +21372,6 @@ pub mod root { * of nsIContent children and provides access to them. */ #[repr(C)] - #[derive(Debug)] pub struct nsINode { pub _base: root::mozilla::dom::EventTarget, pub mNodeInfo: root::RefPtr, @@ -25236,10 +25486,138 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct nsBindingManager { + pub struct nsCSSRuleProcessor { _unused: [u8; 0], } #[repr(C)] + pub struct nsBindingManager { + pub _base: root::nsStubMutationObserver, + pub mRefCnt: root::nsCycleCollectingAutoRefCnt, + pub mBoundContentSet: u64, + pub mWrapperTable: u64, + pub mDocumentTable: u64, + pub mLoadingDocTable: u64, + pub mAttachedStack: root::nsBindingList, + pub mProcessingAttachedStack: bool, + pub mDestroyed: bool, + pub mAttachedStackSizeOnOutermost: u32, + pub mProcessAttachedQueueEvent: u64, + pub mDocument: *mut root::nsIDocument, + } + pub type nsBindingManager_HasThreadSafeRefCnt = root::mozilla::FalseType; + #[repr(u32)] + /** + * Notify the binding manager that an element + * has been removed from its document, + * so that it can update any bindings or + * nsIAnonymousContentCreator-created anonymous + * content that may depend on the document. + * @param aContent the element that's being moved + * @param aOldDocument the old document in which the + * content resided. + * @param aDestructorHandling whether or not to run the possible XBL + * destructor. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum nsBindingManager_DestructorHandling { + eRunDtor = 0, + eDoNotRunDtor = 1, + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsBindingManager_cycleCollection { + pub _base: root::nsXPCOMCycleCollectionParticipant, + } + #[test] + fn bindgen_test_layout_nsBindingManager_cycleCollection() { + assert_eq!(::std::mem::size_of::() , + 16usize , concat ! ( + "Size of: " , stringify ! ( + nsBindingManager_cycleCollection ) )); + assert_eq! (::std::mem::align_of::() + , 8usize , concat ! ( + "Alignment of " , stringify ! ( + nsBindingManager_cycleCollection ) )); + } + impl Clone for nsBindingManager_cycleCollection { + fn clone(&self) -> Self { *self } + } + pub type nsBindingManager_WrapperHashtable = u8; + extern "C" { + #[link_name = "_ZN16nsBindingManager21_cycleCollectorGlobalE"] + pub static mut nsBindingManager__cycleCollectorGlobal: + root::nsBindingManager_cycleCollection; + } + #[test] + fn bindgen_test_layout_nsBindingManager() { + assert_eq!(::std::mem::size_of::() , 80usize , + concat ! ( "Size of: " , stringify ! ( nsBindingManager ) + )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsBindingManager ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mRefCnt as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mRefCnt ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mBoundContentSet as * const _ as usize } , 16usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mBoundContentSet ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mWrapperTable + as * const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mWrapperTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mDocumentTable + as * const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mDocumentTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mLoadingDocTable as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mLoadingDocTable ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mAttachedStack + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mAttachedStack ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mProcessingAttachedStack as * const _ as usize } , 56usize + , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mProcessingAttachedStack ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mDestroyed as + * const _ as usize } , 57usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mDestroyed ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mAttachedStackSizeOnOutermost as * const _ as usize } , + 60usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mAttachedStackSizeOnOutermost ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . + mProcessAttachedQueueEvent as * const _ as usize } , + 64usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mProcessAttachedQueueEvent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsBindingManager ) ) . mDocument as * + const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( nsBindingManager ) + , "::" , stringify ! ( mDocument ) )); + } + #[repr(C)] #[derive(Debug)] pub struct nsCSSCounterStyleRule { pub _base: root::mozilla::css::Rule, @@ -25298,7 +25676,6 @@ pub mod root { * is supported by all content objects. */ #[repr(C)] - #[derive(Debug)] pub struct nsIContent { pub _base: root::nsINode, } @@ -25383,10 +25760,65 @@ pub mod root { assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( nsIContent ) )); } + /** + * An nsStyleContext represents the computed style data for an element. + * The computed style data are stored in a set of structs (see + * nsStyleStruct.h) that are cached either on the style context or in + * the rule tree (see nsRuleNode.h for a description of this caching and + * how the cached structs are shared). + * + * Since the data in |nsIStyleRule|s and |nsRuleNode|s are immutable + * (with a few exceptions, like system color changes), the data in an + * nsStyleContext are also immutable (with the additional exception of + * GetUniqueStyleData). When style data change, + * ElementRestyler::Restyle creates a new style context. + * + * Style contexts are reference counted. References are generally held + * by: + * 1. the |nsIFrame|s that are using the style context and + * 2. any *child* style contexts (this might be the reverse of + * expectation, but it makes sense in this case) + */ #[repr(C)] - #[derive(Debug, Copy, Clone)] + #[derive(Debug)] pub struct nsStyleContext { - _unused: [u8; 0], + pub mParent: root::RefPtr, + pub mStyleIfVisited: root::RefPtr, + pub mPseudoTag: root::nsCOMPtr, + pub mBits: u64, + pub mRefCnt: u32, + } + #[test] + fn bindgen_test_layout_nsStyleContext() { + assert_eq!(::std::mem::size_of::() , 40usize , concat + ! ( "Size of: " , stringify ! ( nsStyleContext ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat + ! ( "Alignment of " , stringify ! ( nsStyleContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mParent as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mParent ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mStyleIfVisited + as * const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mStyleIfVisited ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mPseudoTag as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mPseudoTag ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mBits as * const + _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mBits ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const nsStyleContext ) ) . mRefCnt as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( nsStyleContext ) , + "::" , stringify ! ( mRefCnt ) )); } #[repr(C)] pub struct nsPresContext { @@ -28483,7 +28915,6 @@ pub mod root { } pub const kNameSpaceID_None: i32 = 0; #[repr(C)] - #[derive(Debug)] pub struct nsNodeInfoManager { pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub mNodeInfoHash: *mut root::PLHashTable, @@ -28902,7 +29333,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct nsDOMAttributeMap { pub _base: root::nsIDOMMozNamedAttrMap, pub _base_1: root::nsWrapperCache, @@ -29136,7 +29566,6 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug)] pub struct nsXBLBinding { pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub mMarkedForDeath: bool, @@ -30255,7 +30684,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct CapturingContentInfo { pub mAllowed: bool, pub mPointerLock: bool, @@ -30609,6 +31037,58 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] + pub struct nsIInterfaceInfo { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIXPConnectJSObjectHolder { + pub _base: root::nsISupports, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsIXPConnectJSObjectHolder_COMTypeInfo { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_nsIXPConnectJSObjectHolder() { + assert_eq!(::std::mem::size_of::() , + 8usize , concat ! ( + "Size of: " , stringify ! ( nsIXPConnectJSObjectHolder ) + )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( nsIXPConnectJSObjectHolder + ) )); + } + impl Clone for nsIXPConnectJSObjectHolder { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIXPConnectWrappedJS { + pub _base: root::nsIXPConnectJSObjectHolder, + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsIXPConnectWrappedJS_COMTypeInfo { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_nsIXPConnectWrappedJS() { + assert_eq!(::std::mem::size_of::() , 8usize , + concat ! ( + "Size of: " , stringify ! ( nsIXPConnectWrappedJS ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( nsIXPConnectWrappedJS ) + )); + } + impl Clone for nsIXPConnectWrappedJS { + fn clone(&self) -> Self { *self } + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct nsISimpleEnumerator { _unused: [u8; 0], } @@ -37284,6 +37764,13 @@ pub mod root { pub type RawGeckoGfxMatrix4x4 = [root::mozilla::gfx::Float; 16usize]; pub type RawGeckoStyleChildrenIterator = root::mozilla::dom::StyleChildrenIterator; + pub type ServoComputedValuesBorrowed = *const root::ServoComputedValues; + pub type RawServoDeclarationBlockBorrowed = + *const root::RawServoDeclarationBlock; + pub type ServoStyleContextBorrowed = + *const root::mozilla::ServoStyleContext; + pub type ServoStyleContextBorrowedOrNull = + *const root::mozilla::ServoStyleContext; pub type RawServoAnimationValueMapBorrowedMut = *mut root::RawServoAnimationValueMap; pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode; @@ -37598,6 +38085,11 @@ pub mod root { pub struct nsIConsoleReportCollector { _unused: [u8; 0], } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct CSSRuleListImpl { + _unused: [u8; 0], + } /** * An nsMediaQueryResultCacheKey records what feature/value combinations * a set of media query results are valid for. This allows the caller @@ -37838,6 +38330,11 @@ pub mod root { } #[repr(C)] #[derive(Debug, Copy, Clone)] + pub struct nsXBLDocumentInfo { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] pub struct ElementRuleProcessorData { _unused: [u8; 0], } @@ -37949,7 +38446,6 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug)] pub struct nsIAttribute { pub _base: root::nsINode, pub mAttrMap: root::RefPtr, @@ -37972,6 +38468,35 @@ pub mod root { "::" , stringify ! ( mAttrMap ) )); } /** + * There are two advantages to inheriting from nsStubMutationObserver + * rather than directly from nsIMutationObserver: + * 1. smaller compiled code size (since there's no need for the code + * for the empty virtual function implementations for every + * nsIMutationObserver implementation) + * 2. the performance of document's loop over observers benefits from + * the fact that more of the functions called are the same (which + * can reduce instruction cache misses and perhaps improve branch + * prediction) + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsStubMutationObserver { + pub _base: root::nsIMutationObserver, + } + #[test] + fn bindgen_test_layout_nsStubMutationObserver() { + assert_eq!(::std::mem::size_of::() , 8usize , + concat ! ( + "Size of: " , stringify ! ( nsStubMutationObserver ) )); + assert_eq! (::std::mem::align_of::() , 8usize + , concat ! ( + "Alignment of " , stringify ! ( nsStubMutationObserver ) + )); + } + impl Clone for nsStubMutationObserver { + fn clone(&self) -> Self { *self } + } + /** * Structure used as a key for caching Attrs in nsDOMAttributeMap's mAttributeCache. */ #[repr(C)] @@ -38192,10 +38717,54 @@ pub mod root { impl Clone for LookAndFeelInt { fn clone(&self) -> Self { *self } } + /** + * An object implementing |nsIStyleRule| (henceforth, a rule) represents + * immutable stylistic information that either applies or does not apply + * to a given element. It belongs to an object or group of objects that + * implement |nsIStyleSheet| and |nsIStyleRuleProcessor| (henceforth, a + * sheet). + * + * A rule becomes relevant to the computation of style data when + * |nsIStyleRuleProcessor::RulesMatching| creates a rule node that + * points to the rule. (A rule node, |nsRuleNode|, is a node in the + * rule tree, which is a lexicographic tree indexed by rules. The path + * from the root of the rule tree to the |nsRuleNode| for a given + * |nsStyleContext| contains exactly the rules that match the element + * that the style context is for, in priority (weight, origin, + * specificity) order.) + * + * The computation of style data uses the rule tree, which calls + * |nsIStyleRule::MapRuleInfoInto| below. + * + * It is worth emphasizing that the data represented by a rule + * implementation are immutable. When the data need to be changed, a + * new rule object must be created. Failing to do this will lead to + * bugs in the handling of dynamic style changes, since the rule tree + * caches the results of |MapRuleInfoInto|. + * + * |nsIStyleRule| objects are owned by |nsRuleNode| objects (in addition + * to typically being owned by their sheet), which are in turn garbage + * collected (with the garbage collection roots being style contexts). + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct nsIStyleRule { + pub _base: root::nsISupports, + } #[repr(C)] #[derive(Debug, Copy, Clone)] - pub struct nsIStyleRule { - _unused: [u8; 0], + pub struct nsIStyleRule_COMTypeInfo { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_nsIStyleRule() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of: " , stringify ! ( nsIStyleRule ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! + ( "Alignment of " , stringify ! ( nsIStyleRule ) )); + } + impl Clone for nsIStyleRule { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug)] @@ -38502,6 +39071,27 @@ pub mod root { pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder: u32 = 8; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch: u32 = 12; #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct ElementDependentRuleProcessorData { + _unused: [u8; 0], + } + pub type nsBindingList = root::nsTArray>; + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsRuleData { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsCSSFontFeatureValuesRule { + _unused: [u8; 0], + } + #[repr(C)] + #[derive(Debug, Copy, Clone)] + pub struct nsCSSPageRule { + _unused: [u8; 0], + } + #[repr(C)] #[derive(Debug, Copy)] pub struct nsIDOMCSSCounterStyleRule { pub _base: root::nsISupports, @@ -38849,7 +39439,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187475_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_193442_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38858,7 +39448,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187511_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_193478_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39832,7 +40422,20 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_122() { + fn __bindgen_test_layout_nsTArray_instantiation_122() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) + )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_123() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39843,7 +40446,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_123() { + fn __bindgen_test_layout_nsTArray_instantiation_124() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39854,7 +40457,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_124() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_125() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39865,7 +40468,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_125() { + fn __bindgen_test_layout_already_AddRefed_instantiation_126() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39876,7 +40479,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_126() { + fn __bindgen_test_layout_already_AddRefed_instantiation_127() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39887,7 +40490,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_127() { + fn __bindgen_test_layout_RefPtr_instantiation_128() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39898,7 +40501,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_128() { + fn __bindgen_test_layout_nsTArray_instantiation_129() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39909,7 +40512,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_129() { + fn __bindgen_test_layout_already_AddRefed_instantiation_130() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39920,7 +40523,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_130() { + fn __bindgen_test_layout_MutableHandle_instantiation_131() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39931,17 +40534,6 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_131() { - 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_132() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -39954,6 +40546,17 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_133() { + 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_134() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39964,7 +40567,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_134() { + fn __bindgen_test_layout_RefPtr_instantiation_135() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39975,7 +40578,20 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_135() { + fn __bindgen_test_layout_nsTArray_instantiation_136() { + 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_137() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39986,7 +40602,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_136() { + fn __bindgen_test_layout_already_AddRefed_instantiation_138() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39997,7 +40613,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_137() { + fn __bindgen_test_layout_already_AddRefed_instantiation_139() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40008,7 +40624,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_138() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_140() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40019,7 +40635,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_139() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_141() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40030,7 +40646,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_140() { + fn __bindgen_test_layout_RefPtr_instantiation_142() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40041,7 +40657,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_141() { + fn __bindgen_test_layout_nsTArray_instantiation_143() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40054,7 +40670,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_142() { + fn __bindgen_test_layout_nsTArray_instantiation_144() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40065,7 +40681,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_143() { + fn __bindgen_test_layout_Handle_instantiation_145() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40076,7 +40692,130 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_144() { + fn __bindgen_test_layout_already_AddRefed_instantiation_146() { + 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_147() { + 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_148() { + 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_149() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_150() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_151() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_152() { + 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_153() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_154() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_155() { + 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_156() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_157() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40087,7 +40826,42 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_145() { + fn __bindgen_test_layout_nsTArray_instantiation_158() { + 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_159() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::RefPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::RefPtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_160() { + 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_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40098,7 +40872,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_146() { + fn __bindgen_test_layout_already_AddRefed_instantiation_162() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40109,7 +40883,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_147() { + fn __bindgen_test_layout_nsTArray_instantiation_163() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40120,7 +40894,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_148() { + fn __bindgen_test_layout_Handle_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40131,7 +40905,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_149() { + fn __bindgen_test_layout_Handle_instantiation_165() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40142,7 +40916,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_150() { + fn __bindgen_test_layout_Handle_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40153,7 +40927,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_151() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40166,7 +40940,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_152() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_168() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40177,7 +40951,40 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_153() { + fn __bindgen_test_layout_nsTArray_instantiation_169() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_170() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsRefPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_nsTHashtable_instantiation_171() { + 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_172() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40188,7 +40995,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_154() { + fn __bindgen_test_layout_nsTArray_instantiation_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40199,7 +41006,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[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 ! ( @@ -40210,7 +41017,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_156() { + fn __bindgen_test_layout_already_AddRefed_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40221,7 +41028,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_157() { + fn __bindgen_test_layout_already_AddRefed_instantiation_176() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40232,7 +41039,99 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_158() { + fn __bindgen_test_layout_already_AddRefed_instantiation_177() { + 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_178() { + 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_179() { + 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_180() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_181() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<*mut root::mozilla::StyleSheet> ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_182() { + 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_183() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> + ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_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_SupportsWeakPtr_instantiation_185() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40241,7 +41140,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_159() { + fn __bindgen_test_layout_already_AddRefed_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40252,7 +41151,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_160() { + fn __bindgen_test_layout_nsTArray_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40263,7 +41162,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_161() { + fn __bindgen_test_layout_NotNull_instantiation_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40276,7 +41175,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_162() { + fn __bindgen_test_layout_NotNull_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40289,7 +41188,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_163() { + fn __bindgen_test_layout_already_AddRefed_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40300,7 +41199,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_164() { + fn __bindgen_test_layout_DefaultDelete_instantiation_191() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40311,7 +41210,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_165() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_192() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40322,7 +41221,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_166() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_193() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40333,7 +41232,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_167() { + fn __bindgen_test_layout_nsTArray_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40344,7 +41243,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_168() { + fn __bindgen_test_layout_already_AddRefed_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40355,7 +41254,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_169() { + fn __bindgen_test_layout_already_AddRefed_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40366,7 +41265,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_170() { + fn __bindgen_test_layout_already_AddRefed_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40377,7 +41276,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_171() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40388,7 +41287,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_172() { + fn __bindgen_test_layout_already_AddRefed_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40399,7 +41298,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_173() { + fn __bindgen_test_layout_Handle_instantiation_200() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40410,7 +41309,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_174() { + fn __bindgen_test_layout_Handle_instantiation_201() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40421,7 +41320,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_175() { + fn __bindgen_test_layout_Handle_instantiation_202() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40432,7 +41331,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_176() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_203() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40443,7 +41342,7 @@ pub mod root { [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_177() { + fn __bindgen_test_layout_already_AddRefed_instantiation_204() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40454,7 +41353,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_178() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_205() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40465,7 +41364,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_179() { + fn __bindgen_test_layout_Handle_instantiation_206() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40476,7 +41375,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_180() { + fn __bindgen_test_layout_nsTArray_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40487,7 +41386,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_181() { + fn __bindgen_test_layout_Handle_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40498,7 +41397,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_182() { + fn __bindgen_test_layout_OwningNonNull_instantiation_209() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40509,7 +41408,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_183() { + fn __bindgen_test_layout_OwningNonNull_instantiation_210() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40520,7 +41419,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_184() { + fn __bindgen_test_layout_OwningNonNull_instantiation_211() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40531,7 +41430,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_185() { + fn __bindgen_test_layout_Handle_instantiation_212() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40542,7 +41441,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_186() { + fn __bindgen_test_layout_Handle_instantiation_213() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40553,7 +41452,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_187() { + fn __bindgen_test_layout_Handle_instantiation_214() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40564,7 +41463,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_188() { + fn __bindgen_test_layout_MutableHandle_instantiation_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40575,7 +41474,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_189() { + fn __bindgen_test_layout_Handle_instantiation_216() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40586,7 +41485,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_190() { + fn __bindgen_test_layout_MutableHandle_instantiation_217() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40597,7 +41496,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_191() { + fn __bindgen_test_layout_Handle_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40608,7 +41507,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_192() { + fn __bindgen_test_layout_MutableHandle_instantiation_219() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40619,7 +41518,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_193() { + fn __bindgen_test_layout_Handle_instantiation_220() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40630,307 +41529,6 @@ pub mod root { 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_MutableHandle_instantiation_196() { - 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_197() { - 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_198() { - 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_199() { - 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_200() { - 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_201() { - 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_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_already_AddRefed_instantiation_204() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_205() { - 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_206() { - assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat - ! ( - "Size of template specialization: " , stringify ! ( - [u64; 30usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - [u64; 30usize] ) )); - } - #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_207() { - 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_208() { - 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_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_DefaultDelete_instantiation_210() { - 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_211() { - assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u64; 5usize] ) )); - } - #[test] - fn __bindgen_test_layout_Rooted_instantiation_212() { - 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_213() { - 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_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_nsCOMPtr_instantiation_215() { - 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_216() { - 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_217() { - 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_218() { - 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_219() { - 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_220() { - 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_221() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -40942,29 +41540,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_222() { - 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_223() { - 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_224() { + fn __bindgen_test_layout_Handle_instantiation_222() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40975,7 +41551,338 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_225() { + fn __bindgen_test_layout_MutableHandle_instantiation_223() { + 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_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_nsCOMPtr_instantiation_225() { + 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_226() { + 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_227() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_228() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_NotNull_instantiation_229() { + 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_230() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_231() { + 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 ) )); + } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct _bindgen_ty_11 { + pub _address: u8, + } + impl Clone for _bindgen_ty_11 { + fn clone(&self) -> Self { *self } + } + #[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_nsPIDOMWindow_instantiation_233() { + assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 30usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 30usize]>() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + [u64; 30usize] ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_234() { + 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_235() { + 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_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_DefaultDelete_instantiation_237() { + 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_238() { + assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 5usize]>() , 8usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u64; 5usize] ) )); + } + #[test] + fn __bindgen_test_layout_Rooted_instantiation_239() { + 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_240() { + 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_241() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_242() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_243() { + 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_244() { + 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_245() { + 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_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_MutableHandle_instantiation_247() { + 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_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_nsTArray_instantiation_250() { + 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_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_RefPtr_instantiation_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40986,7 +41893,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_226() { + fn __bindgen_test_layout_RefPtr_instantiation_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40997,7 +41904,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_227() { + fn __bindgen_test_layout_RefPtr_instantiation_254() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41008,7 +41915,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_228() { + fn __bindgen_test_layout_nsTArray_instantiation_255() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41021,7 +41928,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_229() { + fn __bindgen_test_layout_RefPtr_instantiation_256() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41032,7 +41939,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_230() { + fn __bindgen_test_layout_already_AddRefed_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41043,7 +41950,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_231() { + fn __bindgen_test_layout_already_AddRefed_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41054,7 +41961,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_232() { + fn __bindgen_test_layout_Handle_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41065,7 +41972,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_233() { + fn __bindgen_test_layout_nsTArray_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41076,7 +41983,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_234() { + fn __bindgen_test_layout_RefPtr_instantiation_261() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41089,7 +41996,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_235() { + fn __bindgen_test_layout_nsTArray_instantiation_262() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41102,7 +42009,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_236() { + fn __bindgen_test_layout_RefPtr_instantiation_263() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41115,7 +42022,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_237() { + fn __bindgen_test_layout_UniquePtr_instantiation_264() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41126,303 +42033,6 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_238() { - 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_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_MutableHandle_instantiation_240() { - 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_241() { - 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_242() { - 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_243() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_244() { - 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_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_nsRefPtrHashKey_instantiation_246() { - 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_nsRefPtrHashKey_instantiation_247() { - 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_248() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - assert_eq!(::std::mem::align_of::() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsCOMPtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_249() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_250() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_251() { - assert_eq!(::std::mem::size_of::>() - , 40usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsMainThreadPtrHolder ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_252() { - 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_253() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_254() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_255() { - 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_256() { - 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_257() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsPtrHashKey ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_258() { - 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_259() { - 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_260() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - } - #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_261() { - 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_262() { - 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_263() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_264() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] fn __bindgen_test_layout_nsTArray_instantiation_265() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41434,62 +42044,51 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_266() { - 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_267() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_266() { + 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 ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_268() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( + fn __bindgen_test_layout_MutableHandle_instantiation_267() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( + root::JS::MutableHandle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); + root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_269() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( + fn __bindgen_test_layout_Handle_instantiation_268() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); + root::JS::Handle ) )); + } + #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_269() { + 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_270() { - 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_271() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41500,7 +42099,64 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_272() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_271() { + 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_OwningNonNull_instantiation_272() { + 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_nsRefPtrHashKey_instantiation_273() { + 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_nsRefPtrHashKey_instantiation_274() { + 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_275() { + 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_DefaultDelete_instantiation_276() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41511,40 +42167,40 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_273() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_277() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_274() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_278() { + assert_eq!(::std::mem::size_of::>() + , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( + root::nsMainThreadPtrHolder ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); + root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_275() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_already_AddRefed_instantiation_279() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::UniquePtr ) )); + root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_276() { + fn __bindgen_test_layout_already_AddRefed_instantiation_280() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41555,7 +42211,159 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_277() { + fn __bindgen_test_layout_already_AddRefed_instantiation_281() { + 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_282() { + 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_283() { + 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_284() { + assert_eq!(::std::mem::size_of::>() + , 16usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsPtrHashKey ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_285() { + 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_286() { + 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_287() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_288() { + 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_289() { + 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_290() { + 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_291() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_292() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_293() { + 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_294() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Maybe_instantiation_295() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41566,7 +42374,40 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_278() { + fn __bindgen_test_layout_Maybe_instantiation_296() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_297() { + 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_298() { + 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_299() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41577,7 +42418,18 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_279() { + fn __bindgen_test_layout_UniquePtr_instantiation_300() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::UniquePtr ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_301() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41588,7 +42440,62 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_280() { + fn __bindgen_test_layout_UniquePtr_instantiation_302() { + 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_303() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] + fn __bindgen_test_layout_Maybe_instantiation_304() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_305() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_306() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_pair_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41599,7 +42506,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_281() { + fn __bindgen_test_layout_nsTArray_instantiation_308() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -41614,7 +42521,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_282() { + fn __bindgen_test_layout_nsTArray_instantiation_309() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41625,7 +42532,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_283() { + fn __bindgen_test_layout_nsTArray_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41636,7 +42543,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_284() { + fn __bindgen_test_layout_nsTArray_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41647,7 +42554,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_285() { + fn __bindgen_test_layout_RefPtr_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41658,7 +42565,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_286() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41669,7 +42576,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_287() { + fn __bindgen_test_layout_DefaultDelete_instantiation_314() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41680,7 +42587,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_288() { + fn __bindgen_test_layout_UniquePtr_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41691,7 +42598,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_289() { + fn __bindgen_test_layout_DefaultDelete_instantiation_316() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41702,7 +42609,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_290() { + fn __bindgen_test_layout_UniquePtr_instantiation_317() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41713,7 +42620,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_291() { + fn __bindgen_test_layout_RefPtr_instantiation_318() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41724,7 +42631,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_292() { + fn __bindgen_test_layout_RefPtr_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41735,7 +42642,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_293() { + fn __bindgen_test_layout_NonNull_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41748,7 +42655,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_294() { + fn __bindgen_test_layout_NonNull_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41761,7 +42668,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_295() { + fn __bindgen_test_layout_Handle_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41772,7 +42679,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_296() { + fn __bindgen_test_layout_MutableHandle_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41783,7 +42690,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_297() { + fn __bindgen_test_layout_Maybe_instantiation_324() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41794,7 +42701,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_298() { + fn __bindgen_test_layout_Maybe_instantiation_325() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41805,7 +42712,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_299() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_326() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41816,7 +42723,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_300() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_327() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41827,7 +42734,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_301() { + fn __bindgen_test_layout_already_AddRefed_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41838,7 +42745,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_302() { + fn __bindgen_test_layout_already_AddRefed_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41849,7 +42756,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_303() { + fn __bindgen_test_layout_nsTArray_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41860,7 +42767,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_304() { + fn __bindgen_test_layout_nsTArray_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41871,7 +42778,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_305() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_332() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41882,7 +42789,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_306() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41895,7 +42802,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_307() { + fn __bindgen_test_layout_already_AddRefed_instantiation_334() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41906,7 +42813,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_308() { + fn __bindgen_test_layout_nsTArray_instantiation_335() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41919,7 +42826,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_309() { + fn __bindgen_test_layout_Handle_instantiation_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41930,7 +42837,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_310() { + fn __bindgen_test_layout_Handle_instantiation_337() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41941,7 +42848,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_311() { + fn __bindgen_test_layout_RefPtr_instantiation_338() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41952,7 +42859,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_312() { + fn __bindgen_test_layout_Handle_instantiation_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41963,7 +42870,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_313() { + fn __bindgen_test_layout_MutableHandle_instantiation_340() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41974,7 +42881,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_314() { + fn __bindgen_test_layout_Sequence_instantiation_341() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41983,7 +42890,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_315() { + fn __bindgen_test_layout_Handle_instantiation_342() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41994,7 +42901,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_316() { + fn __bindgen_test_layout_Sequence_instantiation_343() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42003,7 +42910,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_317() { + fn __bindgen_test_layout_Sequence_instantiation_344() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42012,7 +42919,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_318() { + fn __bindgen_test_layout_Handle_instantiation_345() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42023,7 +42930,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_319() { + fn __bindgen_test_layout_Handle_instantiation_346() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42034,7 +42941,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_320() { + fn __bindgen_test_layout_MutableHandle_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42045,7 +42952,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_321() { + fn __bindgen_test_layout_Handle_instantiation_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42056,7 +42963,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_322() { + fn __bindgen_test_layout_MutableHandle_instantiation_349() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42067,7 +42974,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_323() { + fn __bindgen_test_layout_Handle_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42078,7 +42985,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_324() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_351() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42089,7 +42996,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_325() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_352() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42100,7 +43007,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_326() { + fn __bindgen_test_layout_Handle_instantiation_353() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42111,7 +43018,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_327() { + fn __bindgen_test_layout_nsTArray_instantiation_354() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42122,7 +43029,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_328() { + fn __bindgen_test_layout_nsTArray_instantiation_355() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42133,7 +43040,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_329() { + fn __bindgen_test_layout_nsTArray_instantiation_356() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42144,7 +43051,51 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_330() { + fn __bindgen_test_layout_RefPtr_instantiation_357() { + 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_358() { + assert_eq!(::std::mem::size_of::>>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray> ) )); + assert_eq!(::std::mem::align_of::>>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray> ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_359() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] + fn __bindgen_test_layout_nsTArray_instantiation_360() { + 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_361() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42155,7 +43106,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_331() { + fn __bindgen_test_layout_Handle_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42166,7 +43117,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_332() { + fn __bindgen_test_layout_nsTArray_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42177,7 +43128,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_333() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_364() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( diff --git a/components/style/gecko/pseudo_element_definition.mako.rs b/components/style/gecko/pseudo_element_definition.mako.rs index 5eb08071d39..3f0c5c0f489 100644 --- a/components/style/gecko/pseudo_element_definition.mako.rs +++ b/components/style/gecko/pseudo_element_definition.mako.rs @@ -107,6 +107,25 @@ impl PseudoElement { } } + + /// Construct a `CSSPseudoElementType` from a pseudo-element + #[inline] + pub fn pseudo_type(&self) -> CSSPseudoElementType { + match *self { + % for pseudo in PSEUDOS: + % if not pseudo.is_anon_box(): + PseudoElement::${pseudo.capitalized()} => CSSPseudoElementType::${pseudo.original_ident}, + % endif + % endfor + _ => CSSPseudoElementType::NotPseudo + } + } + + /// Get a PseudoInfo for a pseudo + pub fn pseudo_info(&self) -> (*mut structs::nsIAtom, CSSPseudoElementType) { + (self.atom().as_ptr(), self.pseudo_type()) + } + /// Construct a pseudo-element from an anonymous box `Atom`. #[inline] pub fn from_anon_box_atom(atom: &Atom) -> Option { diff --git a/components/style/gecko/restyle_damage.rs b/components/style/gecko/restyle_damage.rs index a4a8fc1704a..471b95f0304 100644 --- a/components/style/gecko/restyle_damage.rs +++ b/components/style/gecko/restyle_damage.rs @@ -7,7 +7,6 @@ use gecko_bindings::bindings; use gecko_bindings::structs; use gecko_bindings::structs::{nsChangeHint, nsStyleContext}; -use gecko_bindings::sugar::ownership::FFIArcHelpers; use matching::{StyleChange, StyleDifference}; use properties::ComputedValues; use std::ops::{BitAnd, BitOr, BitOrAssign, Not}; @@ -56,7 +55,7 @@ impl GeckoRestyleDamage { let mut any_style_changed: bool = false; let hint = unsafe { bindings::Gecko_CalcStyleDifference(context, - new_style.as_borrowed(), + &new_style, &mut any_style_changed) }; let change = if any_style_changed { StyleChange::Changed } else { StyleChange::Unchanged }; diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 5fc618fee6c..6d50a0e83f2 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -64,7 +64,7 @@ use gecko_bindings::structs::EffectCompositor_CascadeLevel as CascadeLevel; use gecko_bindings::structs::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; use gecko_bindings::structs::NODE_IS_NATIVE_ANONYMOUS; use gecko_bindings::structs::nsIDocument_DocumentTheme as DocumentTheme; -use gecko_bindings::sugar::ownership::{FFIArcHelpers, HasArcFFI, HasSimpleFFI}; +use gecko_bindings::sugar::ownership::{HasArcFFI, HasSimpleFFI}; use logical_geometry::WritingMode; use media_queries::Device; use properties::{ComputedValues, parse_style_attribute}; @@ -1101,10 +1101,9 @@ impl<'le> TElement for GeckoElement<'le> { let computed_data = self.borrow_data(); let computed_values = computed_data.as_ref().map(|d| d.styles.primary()); - let computed_values_opt = - computed_values.map(|v| v.as_borrowed()); let before_change_values = - before_change_style.as_ref().map(|v| v.as_borrowed()); + before_change_style.as_ref().map(|x| &**x); + let computed_values_opt = computed_values.as_ref().map(|x| &***x); unsafe { Gecko_UpdateAnimations(self.0, before_change_values, diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 74b93402090..bfe1d981d1e 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -46,7 +46,6 @@ use gecko_bindings::structs; use gecko_bindings::structs::nsCSSPropertyID; use gecko_bindings::structs::nsStyleVariables; use gecko_bindings::sugar::ns_style_coord::{CoordDataValue, CoordData, CoordDataMut}; -use gecko_bindings::sugar::ownership::HasArcFFI; use gecko::values::convert_nscolor_to_rgba; use gecko::values::convert_rgba_to_nscolor; use gecko::values::GeckoStyleCoordConvertible; @@ -58,7 +57,7 @@ use properties::computed_value_flags::ComputedValueFlags; use properties::{longhands, FontComputationData, Importance, LonghandId}; use properties::{PropertyDeclaration, PropertyDeclarationBlock, PropertyDeclarationId}; use rule_tree::StrongRuleNode; -use std::mem::{forget, transmute, zeroed}; +use std::mem::{forget, uninitialized, transmute, zeroed}; use std::{cmp, ops, ptr}; use stylearc::{Arc, RawOffsetArc}; use values::{Auto, CustomIdent, Either, KeyframesName}; @@ -74,11 +73,27 @@ pub mod style_structs { } -pub use ::gecko_bindings::structs::mozilla::ServoComputedValues2 as ComputedValuesInner; +pub type ComputedValuesInner = ::gecko_bindings::structs::ServoComputedValues; -#[derive(Clone, Debug)] -pub struct ComputedValues { - pub inner: ComputedValuesInner +#[derive(Debug)] +#[repr(C)] +pub struct ComputedValues(::gecko_bindings::structs::mozilla::ServoStyleContext); + +impl Drop for ComputedValues { + fn drop(&mut self) { + unsafe { + bindings::Gecko_ServoStyleContext_Destroy(&mut self.0); + } + } +} + +unsafe impl Sync for ComputedValues {} +unsafe impl Send for ComputedValues {} + +impl Clone for ComputedValues { + fn clone(&self) -> Self { + unreachable!() + } } impl Clone for ComputedValuesInner { @@ -97,6 +112,9 @@ impl Clone for ComputedValuesInner { } } +pub type PseudoInfo = (*mut structs::nsIAtom, structs::CSSPseudoElementType); +pub type ParentStyleContextInfo<'a> = Option< &'a ComputedValues>; + impl ComputedValuesInner { pub fn new(custom_properties: Option>, writing_mode: WritingMode, @@ -134,21 +152,42 @@ impl ComputedValuesInner { % endfor } } - pub fn to_outer(self) -> Arc { - Arc::new(ComputedValues {inner: self}) + pub fn to_outer(self, device: &Device, parent: ParentStyleContextInfo, + info: Option) -> Arc { + let (tag, ty) = if let Some(info) = info { + info + } else { + (ptr::null_mut(), structs::CSSPseudoElementType::NotPseudo) + }; + + unsafe { Self::to_outer_from_arc(Arc::new(self), device.pres_context(), parent, ty, tag) } + } + + pub unsafe fn to_outer_from_arc(s: Arc, pres_context: bindings::RawGeckoPresContextBorrowed, + parent: ParentStyleContextInfo, + pseudo_ty: structs::CSSPseudoElementType, + pseudo_tag: *mut structs::nsIAtom) -> Arc { + use gecko_bindings::sugar::ownership::FFIArcHelpers; + let arc = unsafe { + let arc: Arc = Arc::new(uninitialized()); + bindings::Gecko_ServoStyleContext_Init(&arc.0 as *const _ as *mut _, parent, pres_context, + s.into_strong(), pseudo_ty, pseudo_tag); + arc + }; + arc } } impl ops::Deref for ComputedValues { type Target = ComputedValuesInner; fn deref(&self) -> &ComputedValuesInner { - &self.inner + unsafe { &*self.0.mSource.mRawPtr } } } impl ops::DerefMut for ComputedValues { fn deref_mut(&mut self) -> &mut ComputedValuesInner { - &mut self.inner + unsafe { &mut *self.0.mSource.mRawPtr } } } @@ -197,12 +236,12 @@ impl ComputedValuesInner { } /// Gets a reference to the visited style, if any. - pub fn get_visited_style(&self) -> Option< & ComputedValuesInner> { - self.visited_style.as_ref().map(|x| &***x) + pub fn get_visited_style(&self) -> Option< & ComputedValues> { + self.visited_style.as_ref().map(|x| &**x) } /// Gets a reference to the visited style. Panic if no visited style exists. - pub fn visited_style(&self) -> &ComputedValuesInner { + pub fn visited_style(&self) -> &ComputedValues { self.get_visited_style().unwrap() } @@ -4801,7 +4840,7 @@ clip-path #[allow(non_snake_case, unused_variables)] pub unsafe extern "C" fn Servo_GetStyle${style_struct.gecko_name}(computed_values: ServoComputedValuesBorrowedOrNull) -> *const ${style_struct.gecko_ffi_name} { - ComputedValues::arc_from_borrowed(&computed_values).unwrap().get_${style_struct.name_lower}().get_gecko() + computed_values.unwrap().get_${style_struct.name_lower}().get_gecko() as *const ${style_struct.gecko_ffi_name} } diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 383bc5651ec..43248e0feae 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1871,9 +1871,14 @@ pub mod style_structs { #[cfg(feature = "gecko")] -pub use gecko_properties::ComputedValues; -#[cfg(feature = "gecko")] -pub use gecko_properties::ComputedValuesInner; +pub use gecko_properties::{ComputedValues, ComputedValuesInner, ParentStyleContextInfo, PseudoInfo}; + +#[cfg(feature = "servo")] +/// Servo doesn't have style contexts so this is extraneous info +pub type PseudoInfo = (); +#[cfg(feature = "servo")] +/// Servo doesn't have style contexts so this is extraneous info +pub type ParentStyleContextInfo = (); #[cfg(feature = "servo")] @@ -1970,7 +1975,8 @@ impl ops::DerefMut for ComputedValues { #[cfg(feature = "servo")] impl ComputedValuesInner { /// Convert to an Arc - pub fn to_outer(self) -> Arc { + pub fn to_outer(self, _: &Device, _: ParentStyleContextInfo, + _: Option) -> Arc { Arc::new(ComputedValues {inner: self}) } @@ -2011,13 +2017,13 @@ impl ComputedValuesInner { } /// Gets a reference to the visited style, if any. - pub fn get_visited_style(&self) -> Option< & ComputedValuesInner> { - self.visited_style.as_ref().map(|x| &***x) + pub fn get_visited_style(&self) -> Option< & ComputedValues> { + self.visited_style.as_ref().map(|x| &**x) } /// Gets a reference to the visited style. Panic if no visited style exists. - pub fn visited_style(&self) -> &ComputedValuesInner { - self.get_visited_style().as_ref().map(|x| &**x).unwrap() + pub fn visited_style(&self) -> &ComputedValues { + self.get_visited_style().unwrap() } /// Clone the visited style. Used for inheriting parent styles in diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 6641cbd38ae..198f285e8d8 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -166,6 +166,9 @@ impl PseudoElement { pub fn canonical(&self) -> PseudoElement { self.clone() } + + /// Stub, only Gecko needs this + pub fn pseudo_info(&self) -> () { () } } /// The type used for storing pseudo-class string arguments. diff --git a/components/style/style_resolver.rs b/components/style/style_resolver.rs index 65d35aa6700..c4323ca6b60 100644 --- a/components/style/style_resolver.rs +++ b/components/style/style_resolver.rs @@ -47,7 +47,7 @@ pub struct PrimaryStyle { fn with_default_parent_styles(element: E, f: F) -> R where E: TElement, - F: FnOnce(Option<&ComputedValuesInner>, Option<&ComputedValuesInner>) -> R, + F: FnOnce(Option<&ComputedValues>, Option<&ComputedValuesInner>) -> R, { let parent_el = element.inheritance_parent(); let parent_data = parent_el.as_ref().and_then(|e| e.borrow_data()); @@ -72,7 +72,7 @@ where layout_parent_style = Some(layout_parent_data.styles.primary()); } - f(parent_style.map(|s| &***s), layout_parent_style.map(|s| &***s)) + f(parent_style.map(|x| &**x), layout_parent_style.map(|s| &***s)) } impl<'a, 'ctx, 'le, E> StyleResolverForElement<'a, 'ctx, 'le, E> @@ -98,7 +98,7 @@ where /// Resolve just the style of a given element. pub fn resolve_primary_style( &mut self, - parent_style: Option<&ComputedValuesInner>, + parent_style: Option<&ComputedValues>, layout_parent_style: Option<&ComputedValuesInner>, ) -> PrimaryStyle { let primary_results = @@ -119,6 +119,7 @@ where relevant_link_found || parent_style.and_then(|s| s.get_visited_style()).is_some(); + let pseudo = self.element.implemented_pseudo_element(); if should_compute_visited_style { visited_style = Some(self.cascade_style( visited_rules.as_ref().or(Some(&primary_results.rule_node)), @@ -126,17 +127,16 @@ where parent_style, layout_parent_style, CascadeVisitedMode::Visited, - /* pseudo = */ None, + /* pseudo = */ pseudo.as_ref(), )); } - let style = self.cascade_style( Some(&primary_results.rule_node), visited_style, parent_style, layout_parent_style, CascadeVisitedMode::Unvisited, - /* pseudo = */ None, + /* pseudo = */ pseudo.as_ref(), ); PrimaryStyle { style, } @@ -146,7 +146,7 @@ where /// Resolve the style of a given element, and all its eager pseudo-elements. pub fn resolve_style( &mut self, - parent_style: Option<&ComputedValuesInner>, + parent_style: Option<&ComputedValues>, layout_parent_style: Option<&ComputedValuesInner>, ) -> ElementStyles { use properties::longhands::display::computed_value::T as display; @@ -215,7 +215,7 @@ where fn cascade_style_and_visited( &mut self, inputs: CascadeInputs, - parent_style: Option<&ComputedValuesInner>, + parent_style: Option<&ComputedValues>, layout_parent_style: Option<&ComputedValuesInner>, pseudo: Option<&PseudoElement>, ) -> Arc { @@ -462,7 +462,7 @@ where &mut self, rules: Option<&StrongRuleNode>, style_if_visited: Option>, - mut parent_style: Option<&ComputedValuesInner>, + mut parent_style: Option<&ComputedValues>, layout_parent_style: Option<&ComputedValuesInner>, cascade_visited: CascadeVisitedMode, pseudo: Option<&PseudoElement>, @@ -485,12 +485,17 @@ where cascade_flags.insert(IS_ROOT_ELEMENT); } + #[cfg(feature = "gecko")] + let parent_style_context = parent_style; + #[cfg(feature = "servo")] + let parent_style_context = (); + let values = cascade( self.context.shared.stylist.device(), rules.unwrap_or(self.context.shared.stylist.rule_tree().root()), &self.context.shared.guards, - parent_style, + parent_style.map(|x| &**x), layout_parent_style, style_if_visited, Some(&mut cascade_info), @@ -500,6 +505,18 @@ where ); cascade_info.finish(&self.element.as_node()); - values.to_outer() + + // In case of NAC like ::placeholder we style it via + // cascade_primary without a PseudoElement, but + // the element itself is a pseudo, so try to use that + // when `pseudo` is unset + let pseudo_info = if let Some(pseudo) = pseudo { + Some(pseudo.pseudo_info()) + } else { + self.element.implemented_pseudo_element().map(|x| x.pseudo_info()) + }; + values.to_outer(self.context.shared.stylist.device(), + parent_style_context, + pseudo_info) } } diff --git a/components/style/stylist.rs b/components/style/stylist.rs index b4dad68f699..ac57c187b27 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -17,7 +17,7 @@ use invalidation::element::invalidation_map::InvalidationMap; use invalidation::media_queries::{EffectiveMediaQueryResults, ToMediaListKey}; use media_queries::Device; use properties::{self, CascadeFlags, ComputedValues, ComputedValuesInner}; -use properties::{AnimationRules, PropertyDeclarationBlock}; +use properties::{AnimationRules, PropertyDeclarationBlock, PseudoInfo, ParentStyleContextInfo}; #[cfg(feature = "servo")] use properties::INHERIT_ALL; use rule_tree::{CascadeLevel, RuleTree, StyleSource}; @@ -601,7 +601,9 @@ impl Stylist { pseudo: &PseudoElement, parent: Option<&ComputedValuesInner>, cascade_flags: CascadeFlags, - font_metrics: &FontMetricsProvider) + font_metrics: &FontMetricsProvider, + pseudo_info: PseudoInfo, + parent_style_context: ParentStyleContextInfo) -> Arc { debug_assert!(pseudo.is_precomputed()); @@ -638,7 +640,8 @@ impl Stylist { None, font_metrics, cascade_flags, - self.quirks_mode).to_outer() + self.quirks_mode).to_outer(self.device(), parent_style_context, + Some(pseudo_info)) } /// Returns the style for an anonymous box of the given type. @@ -675,7 +678,7 @@ impl Stylist { cascade_flags.insert(INHERIT_ALL); } self.precomputed_values_for_pseudo(guards, &pseudo, Some(parent_style), cascade_flags, - &ServoMetricsProvider) + &ServoMetricsProvider, (), ()) } /// Computes a pseudo-element style lazily during layout. @@ -692,7 +695,9 @@ impl Stylist { rule_inclusion: RuleInclusion, parent_style: &ComputedValuesInner, is_probe: bool, - font_metrics: &FontMetricsProvider) + font_metrics: &FontMetricsProvider, + pseudo_info: PseudoInfo, + parent_style_context: ParentStyleContextInfo) -> Option> where E: TElement, { @@ -701,7 +706,9 @@ impl Stylist { self.compute_pseudo_element_style_with_inputs(&cascade_inputs, guards, parent_style, - font_metrics) + font_metrics, + pseudo_info, + parent_style_context) } /// Computes a pseudo-element style lazily using the given CascadeInputs. @@ -712,7 +719,9 @@ impl Stylist { inputs: &CascadeInputs, guards: &StylesheetGuards, parent_style: &ComputedValuesInner, - font_metrics: &FontMetricsProvider) + font_metrics: &FontMetricsProvider, + pseudo_info: PseudoInfo, + parent_style_context: ParentStyleContextInfo) -> Option> { // We may have only visited rules in cases when we are actually @@ -734,7 +743,7 @@ impl Stylist { // We want to use the visited bits (if any) from our parent style as // our parent. let inherited_style = - parent_style.get_visited_style().unwrap_or(parent_style); + parent_style.get_visited_style().map(|x| &**x).unwrap_or(parent_style); // FIXME(emilio): The lack of layout_parent_style here could be // worrying, but we're probably dropping the display fixup for @@ -751,7 +760,8 @@ impl Stylist { None, font_metrics, CascadeFlags::empty(), - self.quirks_mode).to_outer(); + self.quirks_mode).to_outer(self.device(), parent_style_context, + Some(pseudo_info.clone())); Some(computed) } else { @@ -775,7 +785,9 @@ impl Stylist { None, font_metrics, CascadeFlags::empty(), - self.quirks_mode).to_outer()) + self.quirks_mode).to_outer(self.device(), + parent_style_context, + Some(pseudo_info))) } /// Computes the cascade inputs for a lazily-cascaded pseudo-element. @@ -1313,7 +1325,8 @@ impl Stylist { pub fn compute_for_declarations(&self, guards: &StylesheetGuards, parent_style: &ComputedValuesInner, - declarations: Arc>) + declarations: Arc>, + parent_style_context: ParentStyleContextInfo) -> Arc { use font_metrics::get_metrics_provider_for_product; @@ -1337,7 +1350,7 @@ impl Stylist { None, &metrics, CascadeFlags::empty(), - self.quirks_mode).to_outer() + self.quirks_mode).to_outer(self.device(), parent_style_context, None) } /// Accessor for a shared reference to the device. diff --git a/components/style/traversal.rs b/components/style/traversal.rs index 2f7223ad717..b9475ce7565 100644 --- a/components/style/traversal.rs +++ b/components/style/traversal.rs @@ -484,7 +484,7 @@ where let primary_style = StyleResolverForElement::new(*ancestor, context, rule_inclusion) .resolve_primary_style( - style.as_ref().map(|s| &***s), + style.as_ref().map(|s| &**s), layout_parent_style.as_ref().map(|s| &***s) ); @@ -501,7 +501,7 @@ where context.thread_local.bloom_filter.assert_complete(element); StyleResolverForElement::new(element, context, rule_inclusion) .resolve_style( - style.as_ref().map(|s| &***s), + style.as_ref().map(|s| &**s), layout_parent_style.as_ref().map(|s| &***s) ) } diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 05c03334f9b..02fff04b346 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -39,7 +39,7 @@ use style::gecko_bindings::bindings::{RawServoNamespaceRule, RawServoNamespaceRu use style::gecko_bindings::bindings::{RawServoPageRule, RawServoPageRuleBorrowed}; use style::gecko_bindings::bindings::{RawServoStyleSetBorrowed, RawServoStyleSetOwned}; use style::gecko_bindings::bindings::{RawServoStyleSheetContentsBorrowed, ServoComputedValuesBorrowed}; -use style::gecko_bindings::bindings::{RawServoStyleSheetContentsStrong, ServoComputedValuesStrong}; +use style::gecko_bindings::bindings::{RawServoStyleSheetContentsStrong, ServoStyleContextBorrowed}; use style::gecko_bindings::bindings::{RawServoSupportsRule, RawServoSupportsRuleBorrowed}; use style::gecko_bindings::bindings::{ServoCssRulesBorrowed, ServoCssRulesStrong}; use style::gecko_bindings::bindings::{nsACString, nsAString, nsCSSPropertyIDSetBorrowedMut}; @@ -61,13 +61,14 @@ use style::gecko_bindings::bindings::RawServoAnimationValueMapBorrowedMut; use style::gecko_bindings::bindings::RawServoAnimationValueStrong; use style::gecko_bindings::bindings::RawServoStyleRuleBorrowed; use style::gecko_bindings::bindings::ServoComputedValuesBorrowedOrNull; +use style::gecko_bindings::bindings::ServoStyleContextBorrowedOrNull; use style::gecko_bindings::bindings::nsTArrayBorrowed_uintptr_t; use style::gecko_bindings::bindings::nsTimingFunctionBorrowed; use style::gecko_bindings::bindings::nsTimingFunctionBorrowedMut; use style::gecko_bindings::structs; use style::gecko_bindings::structs::{CSSPseudoElementType, CompositeOperation, Loader}; -use style::gecko_bindings::structs::{RawServoStyleRule, ServoStyleSheet}; -use style::gecko_bindings::structs::{SheetParsingMode, nsIAtom, nsCSSPropertyID}; +use style::gecko_bindings::structs::{RawServoStyleRule, ServoStyleContextStrong}; +use style::gecko_bindings::structs::{ServoStyleSheet, SheetParsingMode, nsIAtom, nsCSSPropertyID}; use style::gecko_bindings::structs::{nsCSSFontFaceRule, nsCSSCounterStyleRule}; use style::gecko_bindings::structs::{nsRestyleHint, nsChangeHint, PropertyValuePair}; use style::gecko_bindings::structs::IterationCompositeOperation; @@ -92,7 +93,7 @@ use style::parallel; use style::parser::ParserContext; use style::properties::{ComputedValues, ComputedValuesInner, Importance, SourcePropertyDeclaration}; use style::properties::{LonghandIdSet, PropertyDeclaration, PropertyDeclarationBlock, PropertyId, StyleBuilder}; -use style::properties::SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP; +use style::properties::{SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP, PseudoInfo, ParentStyleContextInfo}; use style::properties::animated_properties::{Animatable, AnimatableLonghand, AnimationValue}; use style::properties::parse_one_declaration_into; use style::rule_tree::StyleSource; @@ -655,10 +656,10 @@ pub extern "C" fn Servo_AnimationValue_Uncompute(value: RawServoAnimationValueBo #[no_mangle] pub extern "C" fn Servo_StyleSet_GetBaseComputedValuesForElement(raw_data: RawServoStyleSetBorrowed, element: RawGeckoElementBorrowed, - computed_values: ServoComputedValuesBorrowed, + computed_values: ServoStyleContextBorrowed, snapshots: *const ServoElementSnapshotTable, pseudo_type: CSSPseudoElementType) - -> ServoComputedValuesStrong + -> ServoStyleContextStrong { use style::style_resolver::StyleResolverForElement; @@ -731,7 +732,6 @@ pub extern "C" fn Servo_ComputedValues_ExtractAnimationValue(computed_values: Se None => { return Strong::null(); } }; - let computed_values = ComputedValues::as_arc(&computed_values); Arc::new(AnimationValue::from_computed_values(&property, computed_values)).into_strong() } @@ -1501,10 +1501,11 @@ pub extern "C" fn Servo_DocumentRule_GetConditionText(rule: RawServoDocumentRule } #[no_mangle] -pub extern "C" fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null: ServoComputedValuesBorrowedOrNull, +pub extern "C" fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null: ServoStyleContextBorrowedOrNull, + pseudo_type: CSSPseudoElementType, pseudo_tag: *mut nsIAtom, raw_data: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong { + -> ServoStyleContextStrong { let global_style_data = &*GLOBAL_STYLE_DATA; let guard = global_style_data.shared_lock.read(); let guards = StylesheetGuards::same(&guard); @@ -1513,23 +1514,24 @@ pub extern "C" fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null: let pseudo = PseudoElement::from_anon_box_atom(&atom) .expect("Not an anon box pseudo?"); - - let maybe_parent = ComputedValues::arc_from_borrowed(&parent_style_or_null) - .map(|p| &p.inner); let cascade_flags = SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP; let metrics = get_metrics_provider_for_product(); - data.stylist.precomputed_values_for_pseudo(&guards, &pseudo, maybe_parent, - cascade_flags, &metrics) + data.stylist.precomputed_values_for_pseudo(&guards, &pseudo, parent_style_or_null.map(|x| &**x), + cascade_flags, &metrics, + (pseudo_tag, pseudo_type), + parent_style_or_null) .into_strong() } #[no_mangle] pub extern "C" fn Servo_ResolvePseudoStyle(element: RawGeckoElementBorrowed, pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom, is_probe: bool, inherited_style: ServoComputedValuesBorrowedOrNull, + parent_style_context: ServoStyleContextBorrowedOrNull, raw_data: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong + -> ServoStyleContextStrong { let element = GeckoElement(element); let data = unsafe { element.ensure_data() }; @@ -1544,7 +1546,9 @@ pub extern "C" fn Servo_ResolvePseudoStyle(element: RawGeckoElementBorrowed, return if is_probe { Strong::null() } else { - doc_data.default_computed_values().clone().to_outer().into_strong() + doc_data.default_computed_values() + .clone().to_outer(doc_data.stylist.device(), parent_style_context, + Some((pseudo_tag, pseudo_type))).into_strong() }; } @@ -1559,9 +1563,11 @@ pub extern "C" fn Servo_ResolvePseudoStyle(element: RawGeckoElementBorrowed, &pseudo, RuleInclusion::All, &data.styles, - ComputedValues::arc_from_borrowed(&inherited_style).map(|x| &***x), + inherited_style, &*doc_data, - is_probe + is_probe, + (pseudo_tag, pseudo_type), + parent_style_context ); match style { @@ -1575,7 +1581,7 @@ pub extern "C" fn Servo_ResolvePseudoStyle(element: RawGeckoElementBorrowed, #[no_mangle] pub extern "C" fn Servo_SetExplicitStyle(element: RawGeckoElementBorrowed, - style: ServoComputedValuesBorrowed) + style: ServoStyleContextBorrowed) { let element = GeckoElement(element); let style = ComputedValues::as_arc(&style); @@ -1616,6 +1622,8 @@ fn get_pseudo_style( inherited_styles: Option<&ComputedValuesInner>, doc_data: &PerDocumentStyleDataImpl, is_probe: bool, + pseudo_info: PseudoInfo, + parent_style_context: ParentStyleContextInfo, ) -> Option> { let style = match pseudo.cascade_type() { PseudoElementCascadeType::Eager => { @@ -1637,7 +1645,9 @@ fn get_pseudo_style( &inputs, &guards, inherited_styles, - &metrics) + &metrics, + pseudo_info.clone(), + parent_style_context) }) }, _ => { @@ -1668,7 +1678,9 @@ fn get_pseudo_style( rule_inclusion, base, is_probe, - &metrics) + &metrics, + pseudo_info.clone(), + parent_style_context) }, }; @@ -1680,21 +1692,23 @@ fn get_pseudo_style( StyleBuilder::for_inheritance( styles.primary(), doc_data.default_computed_values(), - ).build().to_outer() + ).build().to_outer(doc_data.stylist.device(), parent_style_context, + Some(pseudo_info)) })) } #[no_mangle] pub extern "C" fn Servo_ComputedValues_Inherit( raw_data: RawServoStyleSetBorrowed, - parent_style: ServoComputedValuesBorrowedOrNull, + pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom, + parent_style_context: ServoStyleContextBorrowedOrNull, target: structs::InheritTarget -) -> ServoComputedValuesStrong { +) -> ServoStyleContextStrong { let data = PerDocumentStyleData::from_ffi(raw_data).borrow(); - let maybe_arc = ComputedValues::arc_from_borrowed(&parent_style); let for_text = target == structs::InheritTarget::Text; - let style = if let Some(reference) = maybe_arc.as_ref() { + let style = if let Some(reference) = parent_style_context { let mut style = StyleBuilder::for_inheritance(reference, &data.default_computed_values()); @@ -1709,22 +1723,42 @@ pub extern "C" fn Servo_ComputedValues_Inherit( data.default_computed_values().clone() }; - style.to_outer().into_strong() + let pseudo_info = if pseudo_tag.is_null() { + None + } else { + Some((pseudo_tag, pseudo_type)) + }; + + style.to_outer(data.stylist.device(), parent_style_context, pseudo_info).into_strong() } #[no_mangle] pub extern "C" fn Servo_ComputedValues_GetVisitedStyle(values: ServoComputedValuesBorrowed) - -> ServoComputedValuesStrong { - match ComputedValues::as_arc(&values).clone_visited_style() { + -> ServoStyleContextStrong { + match ComputedValuesInner::as_arc(&values).clone_visited_style() { Some(v) => v.into_strong(), None => Strong::null(), } } +#[no_mangle] +pub extern "C" fn Servo_StyleContext_NewContext(values: ServoComputedValuesBorrowed, + parent: ServoStyleContextBorrowedOrNull, + pres_context: bindings::RawGeckoPresContextBorrowed, + pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom) + -> ServoStyleContextStrong { + let arc = ComputedValuesInner::as_arc(&values); + unsafe { + ComputedValuesInner::to_outer_from_arc(arc.clone_arc(), pres_context, parent, + pseudo_type, pseudo_tag).into_strong() + } +} + #[no_mangle] pub extern "C" fn Servo_ComputedValues_GetStyleBits(values: ServoComputedValuesBorrowed) -> u64 { use style::properties::computed_value_flags::*; - let flags = ComputedValues::as_arc(&values).flags; + let flags = values.flags; let mut result = 0; if flags.contains(HAS_TEXT_DECORATION_LINES) { result |= structs::NS_STYLE_HAS_TEXT_DECORATION_LINES as u64; @@ -1738,7 +1772,6 @@ pub extern "C" fn Servo_ComputedValues_GetStyleBits(values: ServoComputedValuesB #[no_mangle] pub extern "C" fn Servo_ComputedValues_SpecifiesAnimationsOrTransitions(values: ServoComputedValuesBorrowed) -> bool { - let values = ComputedValues::as_arc(&values); let b = values.get_box(); b.specifies_animations() || b.specifies_transitions() } @@ -1748,15 +1781,12 @@ pub extern "C" fn Servo_ComputedValues_EqualCustomProperties( first: ServoComputedValuesBorrowed, second: ServoComputedValuesBorrowed ) -> bool { - let first = ComputedValues::as_arc(&first); - let second = ComputedValues::as_arc(&second); first.get_custom_properties() == second.get_custom_properties() } #[no_mangle] pub extern "C" fn Servo_ComputedValues_GetStyleRuleList(values: ServoComputedValuesBorrowed, rules: RawGeckoServoStyleRuleListBorrowedMut) { - let values = ComputedValues::as_arc(&values); if let Some(ref rule_node) = values.rules { let mut result = vec![]; for node in rule_node.self_and_ancestors() { @@ -2775,7 +2805,7 @@ pub extern "C" fn Servo_TakeChangeHint(element: RawGeckoElementBorrowed, #[no_mangle] pub extern "C" fn Servo_ResolveStyle(element: RawGeckoElementBorrowed, _raw_data: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong + -> ServoStyleContextStrong { let element = GeckoElement(element); debug!("Servo_ResolveStyle: {:?}", element); @@ -2792,10 +2822,12 @@ pub extern "C" fn Servo_ResolveStyle(element: RawGeckoElementBorrowed, #[no_mangle] pub extern "C" fn Servo_ResolveStyleLazily(element: RawGeckoElementBorrowed, pseudo_type: CSSPseudoElementType, + pseudo_tag: *mut nsIAtom, + parent_style_context: ServoStyleContextBorrowedOrNull, rule_inclusion: StyleRuleInclusion, snapshots: *const ServoElementSnapshotTable, raw_data: RawServoStyleSetBorrowed) - -> ServoComputedValuesStrong + -> ServoStyleContextStrong { debug_assert!(!snapshots.is_null()); let global_style_data = &*GLOBAL_STYLE_DATA; @@ -2816,6 +2848,8 @@ pub extern "C" fn Servo_ResolveStyleLazily(element: RawGeckoElementBorrowed, /* inherited_styles = */ None, &*data, /* is_probe = */ false, + (pseudo_tag, pseudo_type), + parent_style_context ).expect("We're not probing, so we should always get a style \ back") } @@ -2869,11 +2903,11 @@ fn simulate_compute_values_failure(_: &PropertyValuePair) -> bool { fn create_context<'a>(per_doc_data: &'a PerDocumentStyleDataImpl, font_metrics_provider: &'a FontMetricsProvider, - style: &'a ComputedValues, - parent_style: &'a Option<&Arc>) + style: &'a ComputedValuesInner, + parent_style: &'a Option<&ComputedValuesInner>) -> Context<'a> { let default_values = per_doc_data.default_computed_values(); - let inherited_style = parent_style.map(|x| &x.inner).unwrap_or(default_values); + let inherited_style = parent_style.unwrap_or(default_values); Context { is_root_element: false, @@ -2900,12 +2934,11 @@ pub extern "C" fn Servo_GetComputedKeyframeValues(keyframes: RawGeckoKeyframeLis let data = PerDocumentStyleData::from_ffi(raw_data).borrow(); let metrics = get_metrics_provider_for_product(); - let style = ComputedValues::as_arc(&style); let element = GeckoElement(element); let parent_element = element.inheritance_parent(); let parent_data = parent_element.as_ref().and_then(|e| e.borrow_data()); - let parent_style = parent_data.as_ref().map(|d| d.styles.primary()); + let parent_style = parent_data.as_ref().map(|d| d.styles.primary()).map(|x| &***x); let mut context = create_context(&data, &metrics, style, &parent_style); @@ -2980,13 +3013,12 @@ pub extern "C" fn Servo_GetAnimationValues(declarations: RawServoDeclarationBloc raw_data: RawServoStyleSetBorrowed, animation_values: RawGeckoServoAnimationValueListBorrowedMut) { let data = PerDocumentStyleData::from_ffi(raw_data).borrow(); - let style = ComputedValues::as_arc(&style); let metrics = get_metrics_provider_for_product(); let element = GeckoElement(element); let parent_element = element.inheritance_parent(); let parent_data = parent_element.as_ref().and_then(|e| e.borrow_data()); - let parent_style = parent_data.as_ref().map(|d| d.styles.primary()); + let parent_style = parent_data.as_ref().map(|d| d.styles.primary()).map(|x| &***x); let mut context = create_context(&data, &metrics, style, &parent_style); @@ -3009,13 +3041,12 @@ pub extern "C" fn Servo_AnimationValue_Compute(element: RawGeckoElementBorrowed, raw_data: RawServoStyleSetBorrowed) -> RawServoAnimationValueStrong { let data = PerDocumentStyleData::from_ffi(raw_data).borrow(); - let style = ComputedValues::as_arc(&style); let metrics = get_metrics_provider_for_product(); let element = GeckoElement(element); let parent_element = element.inheritance_parent(); let parent_data = parent_element.as_ref().and_then(|e| e.borrow_data()); - let parent_style = parent_data.as_ref().map(|d| d.styles.primary()); + let parent_style = parent_data.as_ref().map(|d| d.styles.primary()).map(|x| &***x); let mut context = create_context(&data, &metrics, style, &parent_style); @@ -3259,16 +3290,16 @@ pub extern "C" fn Servo_StyleSet_GetCounterStyleRule(raw_data: RawServoStyleSetB #[no_mangle] pub extern "C" fn Servo_StyleSet_ResolveForDeclarations( raw_data: RawServoStyleSetBorrowed, - parent_style_or_null: ServoComputedValuesBorrowedOrNull, - declarations: RawServoDeclarationBlockBorrowed -) -> ServoComputedValuesStrong { + parent_style_context: ServoStyleContextBorrowedOrNull, + declarations: RawServoDeclarationBlockBorrowed, +) -> ServoStyleContextStrong { let doc_data = PerDocumentStyleData::from_ffi(raw_data).borrow(); let global_style_data = &*GLOBAL_STYLE_DATA; let guard = global_style_data.shared_lock.read(); let guards = StylesheetGuards::same(&guard); - let parent_style = match ComputedValues::arc_from_borrowed(&parent_style_or_null) { - Some(parent) => &parent.inner, + let parent_style = match parent_style_context { + Some(parent) => &**parent, None => doc_data.default_computed_values(), }; @@ -3276,7 +3307,8 @@ pub extern "C" fn Servo_StyleSet_ResolveForDeclarations( doc_data.stylist.compute_for_declarations(&guards, parent_style, - declarations.clone_arc()).into_strong() + declarations.clone_arc(), + parent_style_context).into_strong() } #[no_mangle] @@ -3336,7 +3368,8 @@ pub extern "C" fn Servo_StyleSet_HasStateDependency( pub extern "C" fn Servo_GetCustomPropertyValue(computed_values: ServoComputedValuesBorrowed, name: *const nsAString, value: *mut nsAString) -> bool { - let custom_properties = match ComputedValues::as_arc(&computed_values).custom_properties() { + + let custom_properties = match computed_values.custom_properties() { Some(p) => p, None => return false, }; @@ -3353,7 +3386,7 @@ pub extern "C" fn Servo_GetCustomPropertyValue(computed_values: ServoComputedVal #[no_mangle] pub extern "C" fn Servo_GetCustomPropertiesCount(computed_values: ServoComputedValuesBorrowed) -> u32 { - match ComputedValues::as_arc(&computed_values).custom_properties() { + match ComputedValuesInner::as_arc(&computed_values).custom_properties() { Some(p) => p.len() as u32, None => 0, } @@ -3363,7 +3396,7 @@ pub extern "C" fn Servo_GetCustomPropertiesCount(computed_values: ServoComputedV pub extern "C" fn Servo_GetCustomPropertyNameAt(computed_values: ServoComputedValuesBorrowed, index: u32, name: *mut nsAString) -> bool { - let custom_properties = match ComputedValues::as_arc(&computed_values).custom_properties() { + let custom_properties = match ComputedValuesInner::as_arc(&computed_values).custom_properties() { Some(p) => p, None => return false, }; From cfad95bff0c63c6416315ade0cf95ad179ae7623 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:42:04 -0700 Subject: [PATCH 10/16] stylo: Use ServoStyleContext in ServoStyleSet/ServoRestyleManager --- components/style/gecko/generated/structs_debug.rs | 4 ++-- components/style/gecko/generated/structs_release.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index c3235b1da10..e22c8ff0b5f 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -40091,7 +40091,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195925_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_195909_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40100,7 +40100,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195961_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_195945_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 0c9ce809437..4b4a33aaf76 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -39439,7 +39439,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_193442_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_193431_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39448,7 +39448,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_193478_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_193467_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); From ff4bc5a2c67d24e137cff6590545863348bb1f78 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:42:08 -0700 Subject: [PATCH 11/16] stylo: Flatten ServoComputedValues into ServoStyleContext This patch also removes the duplication of style contexts during the restyle, because otherwise pointer equality of ServoComputedValues stops holding (and we assert on that in a few places) --- components/style/gecko/arc_types.rs | 7 +--- components/style/gecko/generated/bindings.rs | 13 ++---- .../style/gecko/generated/structs_debug.rs | 41 +++++++++++++++---- .../style/gecko/generated/structs_release.rs | 41 +++++++++++++++---- components/style/properties/gecko.mako.rs | 14 ++++--- ports/geckolib/glue.rs | 11 +++-- 6 files changed, 82 insertions(+), 45 deletions(-) diff --git a/components/style/gecko/arc_types.rs b/components/style/gecko/arc_types.rs index 990a4511223..41301b8af15 100644 --- a/components/style/gecko/arc_types.rs +++ b/components/style/gecko/arc_types.rs @@ -15,10 +15,10 @@ use gecko_bindings::bindings::{RawServoNamespaceRule, RawServoPageRule}; use gecko_bindings::bindings::{RawServoRuleNode, RawServoRuleNodeStrong, RawServoDocumentRule}; use gecko_bindings::bindings::ServoCssRules; use gecko_bindings::structs::{RawServoAnimationValue, RawServoDeclarationBlock, RawServoStyleRule, RawServoMediaList}; -use gecko_bindings::structs::{RawServoStyleSheetContents, ServoComputedValues, ServoStyleContext}; +use gecko_bindings::structs::{RawServoStyleSheetContents, ServoStyleContext}; use gecko_bindings::sugar::ownership::{HasArcFFI, HasFFI}; use media_queries::MediaList; -use properties::{ComputedValues, ComputedValuesInner, PropertyDeclarationBlock}; +use properties::{ComputedValues, PropertyDeclarationBlock}; use properties::animated_properties::AnimationValue; use rule_tree::StrongRuleNode; use shared_lock::Locked; @@ -52,9 +52,6 @@ impl_arc_ffi!(Locked => ServoCssRules impl_arc_ffi!(StylesheetContents => RawServoStyleSheetContents [Servo_StyleSheetContents_AddRef, Servo_StyleSheetContents_Release]); -impl_arc_ffi!(ComputedValuesInner => ServoComputedValues - [Servo_ComputedValues_AddRef, Servo_ComputedValues_Release]); - impl_arc_ffi!(ComputedValues => ServoStyleContext [Servo_StyleContext_AddRef, Servo_StyleContext_Release]); diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 1202c3cd866..4adafbee98f 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -7,6 +7,8 @@ type nsACString_internal = nsACString; type nsAString_internal = nsAString; pub type ServoStyleContextBorrowed<'a> = &'a ServoStyleContext; pub type ServoStyleContextBorrowedOrNull<'a> = Option<&'a ::properties::ComputedValues>; +pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues; +pub type ServoComputedValuesBorrowedOrNull<'a> = Option<&'a ServoComputedValues>; use gecko_bindings::structs::mozilla::css::GridTemplateAreasValue; use gecko_bindings::structs::mozilla::css::ErrorReporter; use gecko_bindings::structs::mozilla::css::ImageValue; @@ -319,9 +321,6 @@ pub struct ServoCssRules(ServoCssRulesVoid); pub type RawServoStyleSheetContentsStrong = ::gecko_bindings::sugar::ownership::Strong; pub type RawServoStyleSheetContentsBorrowed<'a> = &'a RawServoStyleSheetContents; pub type RawServoStyleSheetContentsBorrowedOrNull<'a> = Option<&'a RawServoStyleSheetContents>; -pub type ServoComputedValuesStrong = ::gecko_bindings::sugar::ownership::Strong; -pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues; -pub type ServoComputedValuesBorrowedOrNull<'a> = Option<&'a ServoComputedValues>; pub type RawServoDeclarationBlockStrong = ::gecko_bindings::sugar::ownership::Strong; pub type RawServoDeclarationBlockBorrowed<'a> = &'a RawServoDeclarationBlock; pub type RawServoDeclarationBlockBorrowedOrNull<'a> = Option<&'a RawServoDeclarationBlock>; @@ -402,12 +401,6 @@ extern "C" { pub fn Servo_StyleSheetContents_Release(ptr: RawServoStyleSheetContentsBorrowed); } -extern "C" { - pub fn Servo_ComputedValues_AddRef(ptr: ServoComputedValuesBorrowed); -} -extern "C" { - pub fn Servo_ComputedValues_Release(ptr: ServoComputedValuesBorrowed); -} extern "C" { pub fn Servo_DeclarationBlock_AddRef(ptr: RawServoDeclarationBlockBorrowed); @@ -537,7 +530,7 @@ extern "C" { ServoStyleContextBorrowedOrNull, pres_context: RawGeckoPresContextBorrowed, - values: ServoComputedValuesStrong, + values: ServoComputedValuesBorrowed, pseudo_type: CSSPseudoElementType, pseudo_tag: *mut nsIAtom); } diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index e22c8ff0b5f..81f4a89cdaf 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -10847,11 +10847,11 @@ pub mod root { pub struct ServoStyleContext { pub _base: root::nsStyleContext, pub mPresContext: *mut root::nsPresContext, - pub mSource: root::RefPtr, + pub mSource: root::ServoComputedValues, } #[test] fn bindgen_test_layout_ServoStyleContext() { - assert_eq!(::std::mem::size_of::() , 56usize , + assert_eq!(::std::mem::size_of::() , 280usize , concat ! ( "Size of: " , stringify ! ( ServoStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -20971,10 +20971,6 @@ pub mod root { * so we define this type on the C++ side and use the bindgenned version * on the Rust side. * - * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy - * impl. This will fail because the bindgenned version contains owned types. Opt out. - * - *
*/ #[repr(C)] #[derive(Debug)] @@ -21174,6 +21170,31 @@ pub mod root { "Alignment of field: " , stringify ! ( ServoComputedValues ) , "::" , stringify ! ( flags ) )); } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ServoComputedValuesForgotten { + pub mPtr: *const root::ServoComputedValues, + } + #[test] + fn bindgen_test_layout_ServoComputedValuesForgotten() { + assert_eq!(::std::mem::size_of::() , + 8usize , concat ! ( + "Size of: " , stringify ! ( ServoComputedValuesForgotten ) + )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( + ServoComputedValuesForgotten ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValuesForgotten ) ) . + mPtr as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValuesForgotten ) , "::" , stringify ! ( mPtr + ) )); + } + impl Clone for ServoComputedValuesForgotten { + fn clone(&self) -> Self { *self } + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -38416,13 +38437,15 @@ pub mod root { pub type RawGeckoGfxMatrix4x4 = [root::mozilla::gfx::Float; 16usize]; pub type RawGeckoStyleChildrenIterator = root::mozilla::dom::StyleChildrenIterator; - pub type ServoComputedValuesBorrowed = *const root::ServoComputedValues; pub type RawServoDeclarationBlockBorrowed = *const root::RawServoDeclarationBlock; pub type ServoStyleContextBorrowed = *const root::mozilla::ServoStyleContext; pub type ServoStyleContextBorrowedOrNull = *const root::mozilla::ServoStyleContext; + pub type ServoComputedValuesBorrowed = *const root::ServoComputedValues; + pub type ServoComputedValuesBorrowedOrNull = + *const root::ServoComputedValues; pub type RawServoAnimationValueMapBorrowedMut = *mut root::RawServoAnimationValueMap; pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode; @@ -40091,7 +40114,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195909_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_195896_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40100,7 +40123,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195945_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_195932_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 4b4a33aaf76..3656b9e3b5b 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -10584,11 +10584,11 @@ pub mod root { pub struct ServoStyleContext { pub _base: root::nsStyleContext, pub mPresContext: *mut root::nsPresContext, - pub mSource: root::RefPtr, + pub mSource: root::ServoComputedValues, } #[test] fn bindgen_test_layout_ServoStyleContext() { - assert_eq!(::std::mem::size_of::() , 56usize , + assert_eq!(::std::mem::size_of::() , 280usize , concat ! ( "Size of: " , stringify ! ( ServoStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -20626,10 +20626,6 @@ pub mod root { * so we define this type on the C++ side and use the bindgenned version * on the Rust side. * - * C++ just sees pointers and opaque types here, so bindgen will attempt to generate a Copy - * impl. This will fail because the bindgenned version contains owned types. Opt out. - * - *
*/ #[repr(C)] #[derive(Debug)] @@ -20829,6 +20825,31 @@ pub mod root { "Alignment of field: " , stringify ! ( ServoComputedValues ) , "::" , stringify ! ( flags ) )); } + #[repr(C)] + #[derive(Debug, Copy)] + pub struct ServoComputedValuesForgotten { + pub mPtr: *const root::ServoComputedValues, + } + #[test] + fn bindgen_test_layout_ServoComputedValuesForgotten() { + assert_eq!(::std::mem::size_of::() , + 8usize , concat ! ( + "Size of: " , stringify ! ( ServoComputedValuesForgotten ) + )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( + ServoComputedValuesForgotten ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoComputedValuesForgotten ) ) . + mPtr as * const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoComputedValuesForgotten ) , "::" , stringify ! ( mPtr + ) )); + } + impl Clone for ServoComputedValuesForgotten { + fn clone(&self) -> Self { *self } + } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum WeakMapTraceKind { @@ -37764,13 +37785,15 @@ pub mod root { pub type RawGeckoGfxMatrix4x4 = [root::mozilla::gfx::Float; 16usize]; pub type RawGeckoStyleChildrenIterator = root::mozilla::dom::StyleChildrenIterator; - pub type ServoComputedValuesBorrowed = *const root::ServoComputedValues; pub type RawServoDeclarationBlockBorrowed = *const root::RawServoDeclarationBlock; pub type ServoStyleContextBorrowed = *const root::mozilla::ServoStyleContext; pub type ServoStyleContextBorrowedOrNull = *const root::mozilla::ServoStyleContext; + pub type ServoComputedValuesBorrowed = *const root::ServoComputedValues; + pub type ServoComputedValuesBorrowedOrNull = + *const root::ServoComputedValues; pub type RawServoAnimationValueMapBorrowedMut = *mut root::RawServoAnimationValueMap; pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode; @@ -39439,7 +39462,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_193431_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_193418_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39448,7 +39471,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_193467_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_193454_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index bfe1d981d1e..e8c06cc2233 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -160,18 +160,20 @@ impl ComputedValuesInner { (ptr::null_mut(), structs::CSSPseudoElementType::NotPseudo) }; - unsafe { Self::to_outer_from_arc(Arc::new(self), device.pres_context(), parent, ty, tag) } + unsafe { self.to_outer_helper(device.pres_context(), parent, ty, tag) } } - pub unsafe fn to_outer_from_arc(s: Arc, pres_context: bindings::RawGeckoPresContextBorrowed, + pub unsafe fn to_outer_helper(self, pres_context: bindings::RawGeckoPresContextBorrowed, parent: ParentStyleContextInfo, pseudo_ty: structs::CSSPseudoElementType, pseudo_tag: *mut structs::nsIAtom) -> Arc { - use gecko_bindings::sugar::ownership::FFIArcHelpers; let arc = unsafe { let arc: Arc = Arc::new(uninitialized()); bindings::Gecko_ServoStyleContext_Init(&arc.0 as *const _ as *mut _, parent, pres_context, - s.into_strong(), pseudo_ty, pseudo_tag); + &self, pseudo_ty, pseudo_tag); + // We're simulating a move by having C++ do a memcpy and then forgetting + // it on this end. + forget(self); arc }; arc @@ -181,13 +183,13 @@ impl ComputedValuesInner { impl ops::Deref for ComputedValues { type Target = ComputedValuesInner; fn deref(&self) -> &ComputedValuesInner { - unsafe { &*self.0.mSource.mRawPtr } + &self.0.mSource } } impl ops::DerefMut for ComputedValues { fn deref_mut(&mut self) -> &mut ComputedValuesInner { - unsafe { &mut *self.0.mSource.mRawPtr } + &mut self.0.mSource } } diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 02fff04b346..40d8969f0a2 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -1735,7 +1735,7 @@ pub extern "C" fn Servo_ComputedValues_Inherit( #[no_mangle] pub extern "C" fn Servo_ComputedValues_GetVisitedStyle(values: ServoComputedValuesBorrowed) -> ServoStyleContextStrong { - match ComputedValuesInner::as_arc(&values).clone_visited_style() { + match values.clone_visited_style() { Some(v) => v.into_strong(), None => Strong::null(), } @@ -1748,10 +1748,9 @@ pub extern "C" fn Servo_StyleContext_NewContext(values: ServoComputedValuesBorro pseudo_type: CSSPseudoElementType, pseudo_tag: *mut nsIAtom) -> ServoStyleContextStrong { - let arc = ComputedValuesInner::as_arc(&values); unsafe { - ComputedValuesInner::to_outer_from_arc(arc.clone_arc(), pres_context, parent, - pseudo_type, pseudo_tag).into_strong() + (*values).clone().to_outer_helper(pres_context, parent, + pseudo_type, pseudo_tag).into_strong() } } @@ -3386,7 +3385,7 @@ pub extern "C" fn Servo_GetCustomPropertyValue(computed_values: ServoComputedVal #[no_mangle] pub extern "C" fn Servo_GetCustomPropertiesCount(computed_values: ServoComputedValuesBorrowed) -> u32 { - match ComputedValuesInner::as_arc(&computed_values).custom_properties() { + match computed_values.custom_properties() { Some(p) => p.len() as u32, None => 0, } @@ -3396,7 +3395,7 @@ pub extern "C" fn Servo_GetCustomPropertiesCount(computed_values: ServoComputedV pub extern "C" fn Servo_GetCustomPropertyNameAt(computed_values: ServoComputedValuesBorrowed, index: u32, name: *mut nsAString) -> bool { - let custom_properties = match ComputedValuesInner::as_arc(&computed_values).custom_properties() { + let custom_properties = match computed_values.custom_properties() { Some(p) => p, None => return false, }; From e78947f8b5b15426aae9733853f22956e2681333 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:42:12 -0700 Subject: [PATCH 12/16] stylo: Remove FFI calls for fetching style structs from ServoComputedValues --- components/style/gecko/generated/bindings.rs | 119 +----------------- .../style/gecko/generated/structs_debug.rs | 4 +- .../style/gecko/generated/structs_release.rs | 4 +- components/style/properties/gecko.mako.rs | 2 +- 4 files changed, 6 insertions(+), 123 deletions(-) diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 4adafbee98f..e7b5f75cb1a 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -2822,124 +2822,7 @@ extern "C" { -> bool; } extern "C" { - pub fn Servo_GetStyleFont(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleFont; -} -extern "C" { - pub fn Servo_GetStyleColor(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleColor; -} -extern "C" { - pub fn Servo_GetStyleList(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleList; -} -extern "C" { - pub fn Servo_GetStyleText(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleText; -} -extern "C" { - pub fn Servo_GetStyleVisibility(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleVisibility; -} -extern "C" { - pub fn Servo_GetStyleUserInterface(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleUserInterface; -} -extern "C" { - pub fn Servo_GetStyleTableBorder(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleTableBorder; -} -extern "C" { - pub fn Servo_GetStyleSVG(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleSVG; -} -extern "C" { - pub fn Servo_GetStyleVariables(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleVariables; -} -extern "C" { - pub fn Servo_GetStyleBackground(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleBackground; -} -extern "C" { - pub fn Servo_GetStylePosition(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStylePosition; -} -extern "C" { - pub fn Servo_GetStyleTextReset(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleTextReset; -} -extern "C" { - pub fn Servo_GetStyleDisplay(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleDisplay; -} -extern "C" { - pub fn Servo_GetStyleContent(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleContent; -} -extern "C" { - pub fn Servo_GetStyleUIReset(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleUIReset; -} -extern "C" { - pub fn Servo_GetStyleTable(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleTable; -} -extern "C" { - pub fn Servo_GetStyleMargin(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleMargin; -} -extern "C" { - pub fn Servo_GetStylePadding(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStylePadding; -} -extern "C" { - pub fn Servo_GetStyleBorder(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleBorder; -} -extern "C" { - pub fn Servo_GetStyleOutline(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleOutline; -} -extern "C" { - pub fn Servo_GetStyleXUL(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleXUL; -} -extern "C" { - pub fn Servo_GetStyleSVGReset(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleSVGReset; -} -extern "C" { - pub fn Servo_GetStyleColumn(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleColumn; -} -extern "C" { - pub fn Servo_GetStyleEffects(computed_values: - ServoComputedValuesBorrowedOrNull) - -> *const nsStyleEffects; + pub fn Servo_GetEmptyVariables() -> *const nsStyleVariables; } extern "C" { pub fn Gecko_CreateCSSErrorReporter(sheet: *mut ServoStyleSheet, diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 81f4a89cdaf..1f92b314da3 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -40114,7 +40114,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195896_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_195320_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40123,7 +40123,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195932_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_195356_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 3656b9e3b5b..5e12a86f6c2 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -39462,7 +39462,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_193418_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_192842_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39471,7 +39471,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_193454_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_192878_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index e8c06cc2233..542b4ca6d04 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -4861,7 +4861,7 @@ static mut EMPTY_VARIABLES_STRUCT: Option = None; #[no_mangle] #[allow(non_snake_case)] -pub unsafe extern "C" fn Servo_GetStyleVariables(_cv: ServoComputedValuesBorrowedOrNull) +pub unsafe extern "C" fn Servo_GetEmptyVariables() -> *const nsStyleVariables { EMPTY_VARIABLES_STRUCT.as_ref().unwrap() } From 2a49a73f91c7caf4673b7f7121a55e93a5751de0 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:42:20 -0700 Subject: [PATCH 13/16] stylo: Stop using mStyleIfVisited in Servo --- components/style/gecko/generated/bindings.rs | 5 -- .../style/gecko/generated/structs_debug.rs | 66 +++++++++---------- .../style/gecko/generated/structs_release.rs | 66 +++++++++---------- components/style/properties/gecko.mako.rs | 4 +- ports/geckolib/glue.rs | 9 --- 5 files changed, 68 insertions(+), 82 deletions(-) diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index e7b5f75cb1a..fb2cf3bcfc9 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -2687,11 +2687,6 @@ extern "C" { target: InheritTarget) -> ServoStyleContextStrong; } -extern "C" { - pub fn Servo_ComputedValues_GetVisitedStyle(values: - ServoComputedValuesBorrowed) - -> ServoStyleContextStrong; -} extern "C" { pub fn Servo_ComputedValues_GetStyleBits(values: ServoComputedValuesBorrowed) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 1f92b314da3..ecdcdbf1802 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -13,7 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; -pub type ServoVisitedStyle = Option<::stylearc::Arc<::properties::ComputedValues>>; +pub type ServoVisitedStyle = Option<::stylearc::RawOffsetArc<::properties::ComputedValues>>; pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; pub type ServoStyleContextStrong = ::gecko_bindings::sugar::ownership::Strong; @@ -7603,6 +7603,36 @@ pub mod root { } #[repr(C)] #[derive(Debug)] + pub struct ServoStyleContext { + pub _base: root::nsStyleContext, + pub mPresContext: *mut root::nsPresContext, + pub mSource: root::ServoComputedValues, + } + #[test] + fn bindgen_test_layout_ServoStyleContext() { + assert_eq!(::std::mem::size_of::() , 280usize , + concat ! ( + "Size of: " , stringify ! ( ServoStyleContext ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoStyleContext ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . + mPresContext as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( + mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . mSource + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( mSource ) + )); + } + #[repr(C)] + #[derive(Debug)] pub struct GeckoFont { pub gecko: root::nsStyleFont, } @@ -10844,36 +10874,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct ServoStyleContext { - pub _base: root::nsStyleContext, - pub mPresContext: *mut root::nsPresContext, - pub mSource: root::ServoComputedValues, - } - #[test] - fn bindgen_test_layout_ServoStyleContext() { - assert_eq!(::std::mem::size_of::() , 280usize , - concat ! ( - "Size of: " , stringify ! ( ServoStyleContext ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( ServoStyleContext ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoStyleContext ) ) . - mPresContext as * const _ as usize } , 40usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoStyleContext ) , "::" , stringify ! ( - mPresContext ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoStyleContext ) ) . mSource - as * const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoStyleContext ) , "::" , stringify ! ( mSource ) - )); - } - #[repr(C)] - #[derive(Debug)] pub struct AnimationPropertySegment { pub mFromKey: f32, pub mToKey: f32, @@ -40114,7 +40114,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195320_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_195318_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40123,7 +40123,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195356_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_195354_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 5e12a86f6c2..8889de35eed 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -13,7 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoRuleNode = Option<::rule_tree::StrongRuleNode>; -pub type ServoVisitedStyle = Option<::stylearc::Arc<::properties::ComputedValues>>; +pub type ServoVisitedStyle = Option<::stylearc::RawOffsetArc<::properties::ComputedValues>>; pub type ServoComputedValueFlags = ::properties::computed_value_flags::ComputedValueFlags; pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; pub type ServoStyleContextStrong = ::gecko_bindings::sugar::ownership::Strong; @@ -7455,6 +7455,36 @@ pub mod root { } #[repr(C)] #[derive(Debug)] + pub struct ServoStyleContext { + pub _base: root::nsStyleContext, + pub mPresContext: *mut root::nsPresContext, + pub mSource: root::ServoComputedValues, + } + #[test] + fn bindgen_test_layout_ServoStyleContext() { + assert_eq!(::std::mem::size_of::() , 280usize , + concat ! ( + "Size of: " , stringify ! ( ServoStyleContext ) )); + assert_eq! (::std::mem::align_of::() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( ServoStyleContext ) + )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . + mPresContext as * const _ as usize } , 40usize , + concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( + mPresContext ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const ServoStyleContext ) ) . mSource + as * const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( + ServoStyleContext ) , "::" , stringify ! ( mSource ) + )); + } + #[repr(C)] + #[derive(Debug)] pub struct GeckoFont { pub gecko: root::nsStyleFont, } @@ -10581,36 +10611,6 @@ pub mod root { } #[repr(C)] #[derive(Debug)] - pub struct ServoStyleContext { - pub _base: root::nsStyleContext, - pub mPresContext: *mut root::nsPresContext, - pub mSource: root::ServoComputedValues, - } - #[test] - fn bindgen_test_layout_ServoStyleContext() { - assert_eq!(::std::mem::size_of::() , 280usize , - concat ! ( - "Size of: " , stringify ! ( ServoStyleContext ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( ServoStyleContext ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoStyleContext ) ) . - mPresContext as * const _ as usize } , 40usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ServoStyleContext ) , "::" , stringify ! ( - mPresContext ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ServoStyleContext ) ) . mSource - as * const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( - ServoStyleContext ) , "::" , stringify ! ( mSource ) - )); - } - #[repr(C)] - #[derive(Debug)] pub struct AnimationPropertySegment { pub mFromKey: f32, pub mToKey: f32, @@ -39462,7 +39462,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_192842_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_192840_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39471,7 +39471,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_192878_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_192876_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 542b4ca6d04..d6024e4a55a 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -131,7 +131,7 @@ impl ComputedValuesInner { writing_mode: writing_mode, font_computation_data: FontComputationData::new(font_size_keyword), rules: rules, - visited_style: visited_style, + visited_style: visited_style.map(|x| Arc::into_raw_offset(x)), flags: flags, % for style_struct in data.style_structs: ${style_struct.gecko_name}: Arc::into_raw_offset(${style_struct.ident}), @@ -250,7 +250,7 @@ impl ComputedValuesInner { /// Clone the visited style. Used for inheriting parent styles in /// StyleBuilder::for_inheritance. pub fn clone_visited_style(&self) -> Option> { - self.visited_style.clone() + self.visited_style.as_ref().map(|x| x.clone_arc()) } /// Gets a reference to the custom properties map (if one exists). diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 40d8969f0a2..045c37c1acd 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -1732,15 +1732,6 @@ pub extern "C" fn Servo_ComputedValues_Inherit( style.to_outer(data.stylist.device(), parent_style_context, pseudo_info).into_strong() } -#[no_mangle] -pub extern "C" fn Servo_ComputedValues_GetVisitedStyle(values: ServoComputedValuesBorrowed) - -> ServoStyleContextStrong { - match values.clone_visited_style() { - Some(v) => v.into_strong(), - None => Strong::null(), - } -} - #[no_mangle] pub extern "C" fn Servo_StyleContext_NewContext(values: ServoComputedValuesBorrowed, parent: ServoStyleContextBorrowedOrNull, From b280585cbb739f371d6d05c9a97fc7e89d0cf49b Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:42:24 -0700 Subject: [PATCH 14/16] stylo: Clean up GetContext, call it UpdateWithElementState --- .../style/gecko/generated/structs_debug.rs | 773 +++++++++-------- .../style/gecko/generated/structs_release.rs | 787 +++++++++--------- 2 files changed, 763 insertions(+), 797 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index ecdcdbf1802..20a20f85236 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -7610,7 +7610,7 @@ pub mod root { } #[test] fn bindgen_test_layout_ServoStyleContext() { - assert_eq!(::std::mem::size_of::() , 280usize , + assert_eq!(::std::mem::size_of::() , 272usize , concat ! ( "Size of: " , stringify ! ( ServoStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -7619,14 +7619,14 @@ pub mod root { )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleContext ) ) . - mPresContext as * const _ as usize } , 40usize , + mPresContext as * const _ as usize } , 32usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleContext ) , "::" , stringify ! ( mPresContext ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleContext ) ) . mSource - as * const _ as usize } , 48usize , concat ! ( + as * const _ as usize } , 40usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleContext ) , "::" , stringify ! ( mSource ) )); @@ -26182,7 +26182,6 @@ pub mod root { #[derive(Debug)] pub struct nsStyleContext { pub mParent: root::RefPtr, - pub mStyleIfVisited: root::RefPtr, pub mPseudoTag: root::nsCOMPtr, pub mBits: u64, pub mRefCnt: u32, @@ -26194,7 +26193,7 @@ pub mod root { } #[test] fn bindgen_test_layout_nsStyleContext() { - assert_eq!(::std::mem::size_of::() , 40usize , concat + assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of: " , stringify ! ( nsStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( nsStyleContext ) )); @@ -26203,29 +26202,24 @@ pub mod root { const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mParent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContext ) ) . mStyleIfVisited - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContext ) , - "::" , stringify ! ( mStyleIfVisited ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mPseudoTag as * - const _ as usize } , 16usize , concat ! ( + const _ as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mPseudoTag ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mBits as * const - _ as usize } , 24usize , concat ! ( + _ as usize } , 16usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mBits ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mRefCnt as * - const _ as usize } , 32usize , concat ! ( + const _ as usize } , 24usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mRefCnt ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mFrameRefCnt as - * const _ as usize } , 36usize , concat ! ( + * const _ as usize } , 28usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mFrameRefCnt ) )); } @@ -40114,7 +40108,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195318_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_195313_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40123,7 +40117,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195354_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_195349_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -41725,18 +41719,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_178() { - 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_179() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41747,7 +41730,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_180() { + fn __bindgen_test_layout_RefPtr_instantiation_179() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41758,7 +41741,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_181() { + fn __bindgen_test_layout_nsTArray_instantiation_180() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41771,7 +41754,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_182() { + fn __bindgen_test_layout_nsTArray_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41782,7 +41765,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_183() { + fn __bindgen_test_layout_RefPtr_instantiation_182() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41793,7 +41776,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_184() { + fn __bindgen_test_layout_nsTArray_instantiation_183() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41806,7 +41789,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_185() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_184() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41817,7 +41800,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_186() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_185() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41826,7 +41809,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_187() { + fn __bindgen_test_layout_already_AddRefed_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41837,7 +41820,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_188() { + fn __bindgen_test_layout_nsTArray_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41848,6 +41831,19 @@ pub mod root { root::nsTArray ) )); } #[test] + fn __bindgen_test_layout_NotNull_instantiation_188() { + 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_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41861,20 +41857,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_190() { - 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_191() { + fn __bindgen_test_layout_already_AddRefed_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41885,7 +41868,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_192() { + fn __bindgen_test_layout_DefaultDelete_instantiation_191() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41896,7 +41879,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_193() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_192() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41907,7 +41890,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_194() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_193() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41918,7 +41901,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_195() { + fn __bindgen_test_layout_nsTArray_instantiation_194() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41929,7 +41912,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_196() { + fn __bindgen_test_layout_already_AddRefed_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41940,6 +41923,17 @@ pub mod root { root::already_AddRefed ) )); } #[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 ! ( @@ -41973,15 +41967,15 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_200() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_200() { + 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_Handle_instantiation_201() { @@ -42006,18 +42000,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_203() { - 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_204() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_203() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42028,7 +42011,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_205() { + fn __bindgen_test_layout_already_AddRefed_instantiation_204() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42039,7 +42022,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_206() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_205() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42050,7 +42033,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_207() { + fn __bindgen_test_layout_Handle_instantiation_206() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42061,7 +42044,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_208() { + fn __bindgen_test_layout_nsTArray_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42072,7 +42055,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_209() { + fn __bindgen_test_layout_Handle_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42083,6 +42066,17 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_OwningNonNull_instantiation_209() { + 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_210() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( @@ -42105,15 +42099,15 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_212() { - assert_eq!(::std::mem::size_of::>() - , 16usize , concat ! ( + fn __bindgen_test_layout_Handle_instantiation_212() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); + root::JS::Handle ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_213() { @@ -42128,17 +42122,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_Handle_instantiation_214() { - 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_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42149,7 +42132,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_216() { + fn __bindgen_test_layout_MutableHandle_instantiation_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42160,7 +42143,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_217() { + fn __bindgen_test_layout_Handle_instantiation_216() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42171,7 +42154,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_218() { + fn __bindgen_test_layout_MutableHandle_instantiation_217() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42182,7 +42165,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_219() { + fn __bindgen_test_layout_Handle_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42193,7 +42176,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_220() { + fn __bindgen_test_layout_MutableHandle_instantiation_219() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42204,6 +42187,17 @@ pub mod root { root::JS::MutableHandle ) )); } #[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_Handle_instantiation_221() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42226,18 +42220,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_223() { - 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_224() { + fn __bindgen_test_layout_MutableHandle_instantiation_223() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42248,7 +42231,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_225() { + fn __bindgen_test_layout_RefPtr_instantiation_224() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42259,7 +42242,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_226() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_225() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42270,7 +42253,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_227() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_226() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42281,6 +42264,17 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_227() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::already_AddRefed ) )); + } + #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_228() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42292,18 +42286,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_229() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_230() { + fn __bindgen_test_layout_NotNull_instantiation_229() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42316,7 +42299,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_231() { + fn __bindgen_test_layout_already_AddRefed_instantiation_230() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42327,7 +42310,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_232() { + fn __bindgen_test_layout_already_AddRefed_instantiation_231() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42346,7 +42329,7 @@ pub mod root { fn clone(&self) -> Self { *self } } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_233() { + fn __bindgen_test_layout_already_AddRefed_instantiation_232() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42357,7 +42340,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_234() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_233() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42368,6 +42351,17 @@ pub mod root { [u64; 31usize] ) )); } #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_234() { + 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_235() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42379,18 +42373,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_236() { - 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_237() { + fn __bindgen_test_layout_already_AddRefed_instantiation_236() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42401,7 +42384,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_238() { + fn __bindgen_test_layout_DefaultDelete_instantiation_237() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42412,7 +42395,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_239() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_238() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42423,6 +42406,17 @@ pub mod root { [u64; 6usize] ) )); } #[test] + fn __bindgen_test_layout_Rooted_instantiation_239() { + 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_240() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( @@ -42434,18 +42428,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_241() { - 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_242() { + fn __bindgen_test_layout_already_AddRefed_instantiation_241() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42456,7 +42439,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_243() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_242() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42467,7 +42450,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_244() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_243() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42478,7 +42461,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_245() { + fn __bindgen_test_layout_NotNull_instantiation_244() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42491,7 +42474,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_246() { + fn __bindgen_test_layout_nsTArray_instantiation_245() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42502,7 +42485,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_247() { + fn __bindgen_test_layout_Handle_instantiation_246() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42513,7 +42496,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_248() { + fn __bindgen_test_layout_MutableHandle_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42524,7 +42507,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_249() { + fn __bindgen_test_layout_Handle_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42535,7 +42518,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_250() { + fn __bindgen_test_layout_MutableHandle_instantiation_249() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42546,7 +42529,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_251() { + fn __bindgen_test_layout_nsTArray_instantiation_250() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42557,7 +42540,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_252() { + fn __bindgen_test_layout_Handle_instantiation_251() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42568,6 +42551,17 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_RefPtr_instantiation_252() { + 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_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42590,18 +42584,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_255() { - 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_256() { + fn __bindgen_test_layout_nsTArray_instantiation_255() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42614,7 +42597,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_257() { + fn __bindgen_test_layout_RefPtr_instantiation_256() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42625,7 +42608,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_258() { + fn __bindgen_test_layout_already_AddRefed_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42636,7 +42619,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_259() { + fn __bindgen_test_layout_already_AddRefed_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42647,7 +42630,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_260() { + fn __bindgen_test_layout_Handle_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42658,7 +42641,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_261() { + fn __bindgen_test_layout_nsTArray_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42669,7 +42652,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_262() { + fn __bindgen_test_layout_RefPtr_instantiation_261() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42682,7 +42665,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_263() { + fn __bindgen_test_layout_nsTArray_instantiation_262() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42695,7 +42678,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_264() { + fn __bindgen_test_layout_RefPtr_instantiation_263() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42708,7 +42691,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_265() { + fn __bindgen_test_layout_UniquePtr_instantiation_264() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42719,7 +42702,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_266() { + fn __bindgen_test_layout_nsTArray_instantiation_265() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42730,7 +42713,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_267() { + fn __bindgen_test_layout_Handle_instantiation_266() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42741,7 +42724,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_268() { + fn __bindgen_test_layout_MutableHandle_instantiation_267() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42752,7 +42735,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_269() { + fn __bindgen_test_layout_Handle_instantiation_268() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42763,7 +42746,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_270() { + fn __bindgen_test_layout_MutableHandle_instantiation_269() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42774,7 +42757,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_271() { + fn __bindgen_test_layout_already_AddRefed_instantiation_270() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42785,7 +42768,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_272() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_271() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42796,7 +42779,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_273() { + fn __bindgen_test_layout_OwningNonNull_instantiation_272() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42809,7 +42792,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_274() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_273() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42820,7 +42803,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_275() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_274() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42831,7 +42814,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_276() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_275() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42842,7 +42825,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_277() { + fn __bindgen_test_layout_DefaultDelete_instantiation_276() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42853,7 +42836,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_278() { + fn __bindgen_test_layout_already_AddRefed_instantiation_277() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42864,7 +42847,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_279() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_278() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42875,7 +42858,7 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_280() { + fn __bindgen_test_layout_already_AddRefed_instantiation_279() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42886,6 +42869,17 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_280() { + 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_281() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42898,14 +42892,14 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_282() { - assert_eq!(::std::mem::size_of::>() + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_283() { @@ -42919,18 +42913,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_284() { - 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_285() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42941,7 +42924,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_286() { + fn __bindgen_test_layout_already_AddRefed_instantiation_285() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42952,7 +42935,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_287() { + fn __bindgen_test_layout_DefaultDelete_instantiation_286() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42963,7 +42946,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_288() { + fn __bindgen_test_layout_UniquePtr_instantiation_287() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42974,7 +42957,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_289() { + fn __bindgen_test_layout_DefaultDelete_instantiation_288() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42985,7 +42968,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_290() { + fn __bindgen_test_layout_UniquePtr_instantiation_289() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42996,7 +42979,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_291() { + fn __bindgen_test_layout_already_AddRefed_instantiation_290() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43007,7 +42990,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_292() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_291() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -43016,6 +42999,17 @@ pub mod root { u64 ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_292() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] fn __bindgen_test_layout_nsTArray_instantiation_293() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43027,18 +43021,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_294() { - 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_295() { + fn __bindgen_test_layout_already_AddRefed_instantiation_294() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43049,6 +43032,17 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_Maybe_instantiation_295() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] fn __bindgen_test_layout_Maybe_instantiation_296() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( @@ -43060,18 +43054,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_297() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_298() { + fn __bindgen_test_layout_already_AddRefed_instantiation_297() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43082,7 +43065,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_299() { + fn __bindgen_test_layout_already_AddRefed_instantiation_298() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43093,7 +43076,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_300() { + fn __bindgen_test_layout_DefaultDelete_instantiation_299() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43104,7 +43087,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_301() { + fn __bindgen_test_layout_UniquePtr_instantiation_300() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43115,7 +43098,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_302() { + fn __bindgen_test_layout_DefaultDelete_instantiation_301() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43126,7 +43109,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_303() { + fn __bindgen_test_layout_UniquePtr_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43137,7 +43120,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_304() { + fn __bindgen_test_layout_already_AddRefed_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43148,7 +43131,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_305() { + fn __bindgen_test_layout_Maybe_instantiation_304() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43159,6 +43142,17 @@ pub mod root { [u32; 3usize] ) )); } #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_305() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_306() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -43170,18 +43164,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_307() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_pair_instantiation_308() { + fn __bindgen_test_layout_pair_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43192,7 +43175,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_309() { + fn __bindgen_test_layout_nsTArray_instantiation_308() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -43207,7 +43190,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_310() { + fn __bindgen_test_layout_nsTArray_instantiation_309() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43218,6 +43201,17 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_310() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] fn __bindgen_test_layout_nsTArray_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43229,18 +43223,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_312() { - 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_313() { + fn __bindgen_test_layout_RefPtr_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43251,7 +43234,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_314() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43262,7 +43245,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_315() { + fn __bindgen_test_layout_DefaultDelete_instantiation_314() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43273,7 +43256,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_316() { + fn __bindgen_test_layout_UniquePtr_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43284,7 +43267,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_317() { + fn __bindgen_test_layout_DefaultDelete_instantiation_316() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43295,7 +43278,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_318() { + fn __bindgen_test_layout_UniquePtr_instantiation_317() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43306,6 +43289,17 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] + fn __bindgen_test_layout_RefPtr_instantiation_318() { + 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_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43317,18 +43311,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_320() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_NonNull_instantiation_321() { + fn __bindgen_test_layout_NonNull_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43341,7 +43324,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_322() { + fn __bindgen_test_layout_NonNull_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43354,7 +43337,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_323() { + fn __bindgen_test_layout_Handle_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43365,7 +43348,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_324() { + fn __bindgen_test_layout_MutableHandle_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43376,6 +43359,17 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] + fn __bindgen_test_layout_Maybe_instantiation_324() { + assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 18usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 18usize]>() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + [u64; 18usize] ) )); + } + #[test] fn __bindgen_test_layout_Maybe_instantiation_325() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( @@ -43387,18 +43381,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_326() { - assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat - ! ( - "Size of template specialization: " , stringify ! ( - [u64; 18usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 18usize]>() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - [u64; 18usize] ) )); - } - #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_327() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_326() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43409,7 +43392,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_328() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_327() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43420,6 +43403,17 @@ pub mod root { root::nsCOMPtr ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_328() { + 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_329() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43431,15 +43425,15 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_330() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_330() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - 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::already_AddRefed ) )); + root::nsTArray<*mut root::nsIContent> ) )); } #[test] fn __bindgen_test_layout_nsTArray_instantiation_331() { @@ -43453,18 +43447,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_332() { - 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_nsCOMPtr_instantiation_333() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_332() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43475,7 +43458,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_334() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43488,7 +43471,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_335() { + fn __bindgen_test_layout_already_AddRefed_instantiation_334() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43499,7 +43482,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_336() { + fn __bindgen_test_layout_nsTArray_instantiation_335() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43512,6 +43495,17 @@ pub mod root { ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_336() { + 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_337() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43523,18 +43517,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_338() { - 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_339() { + fn __bindgen_test_layout_RefPtr_instantiation_338() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43545,7 +43528,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_340() { + fn __bindgen_test_layout_Handle_instantiation_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43556,7 +43539,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_341() { + fn __bindgen_test_layout_MutableHandle_instantiation_340() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43567,7 +43550,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_342() { + fn __bindgen_test_layout_Sequence_instantiation_341() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -43576,7 +43559,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_343() { + fn __bindgen_test_layout_Handle_instantiation_342() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43587,6 +43570,15 @@ pub mod root { root::JS::Handle ) )); } #[test] + fn __bindgen_test_layout_Sequence_instantiation_343() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] fn __bindgen_test_layout_Sequence_instantiation_344() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) @@ -43596,27 +43588,18 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_345() { - 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_345() { + 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 ! ( - u64 ) )); + root::JS::Handle ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_346() { - 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_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43627,7 +43610,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_348() { + fn __bindgen_test_layout_MutableHandle_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43638,7 +43621,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_349() { + fn __bindgen_test_layout_Handle_instantiation_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43649,7 +43632,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_350() { + fn __bindgen_test_layout_MutableHandle_instantiation_349() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43660,7 +43643,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_351() { + fn __bindgen_test_layout_Handle_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43671,7 +43654,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_352() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_351() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43682,7 +43665,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_353() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_352() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43693,7 +43676,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_354() { + fn __bindgen_test_layout_Handle_instantiation_353() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43704,6 +43687,17 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_354() { + 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_355() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43716,17 +43710,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_nsTArray_instantiation_356() { - 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_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43737,7 +43720,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_358() { + fn __bindgen_test_layout_RefPtr_instantiation_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43748,7 +43731,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_359() { + fn __bindgen_test_layout_nsTArray_instantiation_358() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43759,7 +43742,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_360() { + fn __bindgen_test_layout_nsTArray_instantiation_359() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43770,7 +43753,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_361() { + fn __bindgen_test_layout_nsTArray_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43781,7 +43764,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_362() { + fn __bindgen_test_layout_already_AddRefed_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43792,7 +43775,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_363() { + fn __bindgen_test_layout_Handle_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43803,7 +43786,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_364() { + fn __bindgen_test_layout_nsTArray_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43814,7 +43797,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_365() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_364() { 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 8889de35eed..2188b237586 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -7462,7 +7462,7 @@ pub mod root { } #[test] fn bindgen_test_layout_ServoStyleContext() { - assert_eq!(::std::mem::size_of::() , 280usize , + assert_eq!(::std::mem::size_of::() , 272usize , concat ! ( "Size of: " , stringify ! ( ServoStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -7471,14 +7471,14 @@ pub mod root { )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleContext ) ) . - mPresContext as * const _ as usize } , 40usize , + mPresContext as * const _ as usize } , 32usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleContext ) , "::" , stringify ! ( mPresContext ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleContext ) ) . mSource - as * const _ as usize } , 48usize , concat ! ( + as * const _ as usize } , 40usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleContext ) , "::" , stringify ! ( mSource ) )); @@ -25804,14 +25804,13 @@ pub mod root { #[derive(Debug)] pub struct nsStyleContext { pub mParent: root::RefPtr, - pub mStyleIfVisited: root::RefPtr, pub mPseudoTag: root::nsCOMPtr, pub mBits: u64, pub mRefCnt: u32, } #[test] fn bindgen_test_layout_nsStyleContext() { - assert_eq!(::std::mem::size_of::() , 40usize , concat + assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of: " , stringify ! ( nsStyleContext ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( nsStyleContext ) )); @@ -25820,24 +25819,19 @@ pub mod root { const _ as usize } , 0usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mParent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsStyleContext ) ) . mStyleIfVisited - as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsStyleContext ) , - "::" , stringify ! ( mStyleIfVisited ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mPseudoTag as * - const _ as usize } , 16usize , concat ! ( + const _ as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mPseudoTag ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mBits as * const - _ as usize } , 24usize , concat ! ( + _ as usize } , 16usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mBits ) )); assert_eq! (unsafe { & ( * ( 0 as * const nsStyleContext ) ) . mRefCnt as * - const _ as usize } , 32usize , concat ! ( + const _ as usize } , 24usize , concat ! ( "Alignment of field: " , stringify ! ( nsStyleContext ) , "::" , stringify ! ( mRefCnt ) )); } @@ -39462,7 +39456,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_192840_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_192835_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39471,7 +39465,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_192876_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_192871_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -41062,18 +41056,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_177() { - 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_178() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_177() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41084,7 +41067,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_179() { + fn __bindgen_test_layout_RefPtr_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41095,7 +41078,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_180() { + fn __bindgen_test_layout_nsTArray_instantiation_179() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41108,7 +41091,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_181() { + fn __bindgen_test_layout_nsTArray_instantiation_180() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41119,7 +41102,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_182() { + fn __bindgen_test_layout_RefPtr_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41130,7 +41113,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_183() { + fn __bindgen_test_layout_nsTArray_instantiation_182() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41143,7 +41126,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_184() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_183() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41154,7 +41137,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_185() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_184() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41163,7 +41146,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_186() { + fn __bindgen_test_layout_already_AddRefed_instantiation_185() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41174,7 +41157,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_187() { + fn __bindgen_test_layout_nsTArray_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41185,6 +41168,19 @@ pub mod root { root::nsTArray ) )); } #[test] + fn __bindgen_test_layout_NotNull_instantiation_187() { + 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_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41198,20 +41194,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_189() { - 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_190() { + fn __bindgen_test_layout_already_AddRefed_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41222,7 +41205,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_191() { + fn __bindgen_test_layout_DefaultDelete_instantiation_190() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41233,7 +41216,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_192() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41244,7 +41227,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_193() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_192() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41255,7 +41238,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_194() { + fn __bindgen_test_layout_nsTArray_instantiation_193() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41266,7 +41249,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_195() { + fn __bindgen_test_layout_already_AddRefed_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41277,6 +41260,17 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_195() { + 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_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41310,15 +41304,15 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_199() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_199() { + 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_Handle_instantiation_200() { @@ -41343,18 +41337,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_202() { - 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_203() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_202() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41365,7 +41348,7 @@ pub mod root { [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_204() { + fn __bindgen_test_layout_already_AddRefed_instantiation_203() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41376,7 +41359,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_205() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_204() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41387,7 +41370,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_206() { + fn __bindgen_test_layout_Handle_instantiation_205() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41398,7 +41381,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_207() { + fn __bindgen_test_layout_nsTArray_instantiation_206() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41409,7 +41392,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_208() { + fn __bindgen_test_layout_Handle_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41420,6 +41403,17 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_OwningNonNull_instantiation_208() { + 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_209() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41442,15 +41436,15 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_211() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_Handle_instantiation_211() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); - assert_eq!(::std::mem::align_of::>() + root::JS::Handle ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::OwningNonNull ) )); + root::JS::Handle ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_212() { @@ -41465,17 +41459,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_Handle_instantiation_213() { - 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_214() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41486,7 +41469,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_215() { + fn __bindgen_test_layout_MutableHandle_instantiation_214() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41497,7 +41480,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_216() { + fn __bindgen_test_layout_Handle_instantiation_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41508,7 +41491,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_217() { + fn __bindgen_test_layout_MutableHandle_instantiation_216() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41519,7 +41502,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_218() { + fn __bindgen_test_layout_Handle_instantiation_217() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41530,7 +41513,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_219() { + fn __bindgen_test_layout_MutableHandle_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41541,6 +41524,17 @@ pub mod root { root::JS::MutableHandle ) )); } #[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 ! ( @@ -41563,18 +41557,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_222() { - 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_223() { + fn __bindgen_test_layout_MutableHandle_instantiation_222() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41585,7 +41568,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_224() { + fn __bindgen_test_layout_RefPtr_instantiation_223() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41596,7 +41579,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_225() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_224() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41607,7 +41590,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_226() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_225() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41618,6 +41601,17 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[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_already_AddRefed_instantiation_227() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41629,18 +41623,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_228() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - } - #[test] - fn __bindgen_test_layout_NotNull_instantiation_229() { + fn __bindgen_test_layout_NotNull_instantiation_228() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41653,7 +41636,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_230() { + fn __bindgen_test_layout_already_AddRefed_instantiation_229() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41664,7 +41647,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_231() { + fn __bindgen_test_layout_already_AddRefed_instantiation_230() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41683,7 +41666,7 @@ pub mod root { fn clone(&self) -> Self { *self } } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_232() { + fn __bindgen_test_layout_already_AddRefed_instantiation_231() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41694,7 +41677,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_233() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_232() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41705,6 +41688,17 @@ pub mod root { [u64; 30usize] ) )); } #[test] + fn __bindgen_test_layout_MutableHandle_instantiation_233() { + 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_234() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41716,18 +41710,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_235() { - 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_236() { + fn __bindgen_test_layout_already_AddRefed_instantiation_235() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41738,7 +41721,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_237() { + fn __bindgen_test_layout_DefaultDelete_instantiation_236() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41749,7 +41732,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_238() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_237() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41760,6 +41743,17 @@ pub mod root { [u64; 5usize] ) )); } #[test] + fn __bindgen_test_layout_Rooted_instantiation_238() { + 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_239() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( @@ -41771,18 +41765,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_240() { - 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_241() { + fn __bindgen_test_layout_already_AddRefed_instantiation_240() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41793,6 +41776,17 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_nsCOMPtr_instantiation_241() { + 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_242() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( @@ -41804,18 +41798,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_243() { - 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_244() { + fn __bindgen_test_layout_NotNull_instantiation_243() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41828,7 +41811,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_245() { + fn __bindgen_test_layout_nsTArray_instantiation_244() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41839,7 +41822,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_246() { + fn __bindgen_test_layout_Handle_instantiation_245() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41850,7 +41833,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_247() { + fn __bindgen_test_layout_MutableHandle_instantiation_246() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41861,7 +41844,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_248() { + fn __bindgen_test_layout_Handle_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41872,7 +41855,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_249() { + fn __bindgen_test_layout_MutableHandle_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41883,7 +41866,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_250() { + fn __bindgen_test_layout_nsTArray_instantiation_249() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41894,7 +41877,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_251() { + fn __bindgen_test_layout_Handle_instantiation_250() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41905,6 +41888,17 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_RefPtr_instantiation_251() { + 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_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -41927,18 +41921,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_254() { - 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_255() { + fn __bindgen_test_layout_nsTArray_instantiation_254() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41951,7 +41934,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_256() { + fn __bindgen_test_layout_RefPtr_instantiation_255() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41962,7 +41945,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_257() { + fn __bindgen_test_layout_already_AddRefed_instantiation_256() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41973,7 +41956,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_258() { + fn __bindgen_test_layout_already_AddRefed_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41984,7 +41967,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_259() { + fn __bindgen_test_layout_Handle_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41995,7 +41978,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_260() { + fn __bindgen_test_layout_nsTArray_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42006,7 +41989,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_261() { + fn __bindgen_test_layout_RefPtr_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42019,7 +42002,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_262() { + fn __bindgen_test_layout_nsTArray_instantiation_261() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42032,7 +42015,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_263() { + fn __bindgen_test_layout_RefPtr_instantiation_262() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42045,7 +42028,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_264() { + fn __bindgen_test_layout_UniquePtr_instantiation_263() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42056,7 +42039,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_265() { + fn __bindgen_test_layout_nsTArray_instantiation_264() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42067,7 +42050,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_266() { + fn __bindgen_test_layout_Handle_instantiation_265() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42078,7 +42061,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_267() { + fn __bindgen_test_layout_MutableHandle_instantiation_266() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42089,7 +42072,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_268() { + fn __bindgen_test_layout_Handle_instantiation_267() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42100,7 +42083,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_269() { + fn __bindgen_test_layout_MutableHandle_instantiation_268() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42111,7 +42094,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_270() { + fn __bindgen_test_layout_already_AddRefed_instantiation_269() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42122,7 +42105,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_271() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_270() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42133,7 +42116,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_272() { + fn __bindgen_test_layout_OwningNonNull_instantiation_271() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42146,7 +42129,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_273() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_272() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42157,7 +42140,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_274() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_273() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42168,7 +42151,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_275() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_274() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42179,7 +42162,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_276() { + fn __bindgen_test_layout_DefaultDelete_instantiation_275() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42190,7 +42173,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_277() { + fn __bindgen_test_layout_already_AddRefed_instantiation_276() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42201,7 +42184,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_278() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_277() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42212,7 +42195,7 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_279() { + fn __bindgen_test_layout_already_AddRefed_instantiation_278() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42223,6 +42206,17 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_279() { + 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_280() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42235,14 +42229,14 @@ pub mod root { } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_281() { - assert_eq!(::std::mem::size_of::>() + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - assert_eq!(::std::mem::align_of::>() + root::already_AddRefed ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::already_AddRefed ) )); + root::already_AddRefed ) )); } #[test] fn __bindgen_test_layout_already_AddRefed_instantiation_282() { @@ -42256,18 +42250,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_283() { - 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_284() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42278,7 +42261,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_285() { + fn __bindgen_test_layout_already_AddRefed_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42289,7 +42272,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_286() { + fn __bindgen_test_layout_DefaultDelete_instantiation_285() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42300,7 +42283,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_287() { + fn __bindgen_test_layout_UniquePtr_instantiation_286() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42311,7 +42294,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_288() { + fn __bindgen_test_layout_DefaultDelete_instantiation_287() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42322,7 +42305,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_289() { + fn __bindgen_test_layout_UniquePtr_instantiation_288() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42333,7 +42316,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_290() { + fn __bindgen_test_layout_already_AddRefed_instantiation_289() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42344,7 +42327,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_291() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_290() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42353,6 +42336,17 @@ pub mod root { u64 ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_291() { + assert_eq!(::std::mem::size_of::>() , + 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray<::nsstring::nsStringRepr> ) )); + } + #[test] fn __bindgen_test_layout_nsTArray_instantiation_292() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42364,18 +42358,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_293() { - 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_294() { + fn __bindgen_test_layout_already_AddRefed_instantiation_293() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42386,6 +42369,17 @@ pub mod root { root::already_AddRefed ) )); } #[test] + fn __bindgen_test_layout_Maybe_instantiation_294() { + assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! + ( + "Alignment of template specialization: " , stringify ! ( + [u32; 3usize] ) )); + } + #[test] fn __bindgen_test_layout_Maybe_instantiation_295() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( @@ -42397,18 +42391,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_296() { - assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! - ( - "Size of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - assert_eq!(::std::mem::align_of::<[u32; 3usize]>() , 4usize , concat ! - ( - "Alignment of template specialization: " , stringify ! ( - [u32; 3usize] ) )); - } - #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_297() { + fn __bindgen_test_layout_already_AddRefed_instantiation_296() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42419,7 +42402,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_298() { + fn __bindgen_test_layout_already_AddRefed_instantiation_297() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42430,7 +42413,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_299() { + fn __bindgen_test_layout_DefaultDelete_instantiation_298() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42441,7 +42424,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_300() { + fn __bindgen_test_layout_UniquePtr_instantiation_299() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42452,7 +42435,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_301() { + fn __bindgen_test_layout_DefaultDelete_instantiation_300() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42463,7 +42446,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_302() { + fn __bindgen_test_layout_UniquePtr_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42474,7 +42457,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_303() { + fn __bindgen_test_layout_already_AddRefed_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42485,7 +42468,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_304() { + fn __bindgen_test_layout_Maybe_instantiation_303() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42496,6 +42479,17 @@ pub mod root { [u32; 3usize] ) )); } #[test] + fn __bindgen_test_layout_DefaultDelete_instantiation_304() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_305() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( @@ -42507,18 +42501,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_306() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - assert_eq!(::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::mozilla::DefaultDelete ) )); - } - #[test] - fn __bindgen_test_layout_pair_instantiation_307() { + fn __bindgen_test_layout_pair_instantiation_306() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42529,7 +42512,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_308() { + fn __bindgen_test_layout_nsTArray_instantiation_307() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -42544,7 +42527,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_309() { + fn __bindgen_test_layout_nsTArray_instantiation_308() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42555,6 +42538,17 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_309() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsTArray ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsTArray ) )); + } + #[test] fn __bindgen_test_layout_nsTArray_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42566,18 +42560,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_311() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); - } - #[test] - fn __bindgen_test_layout_RefPtr_instantiation_312() { + fn __bindgen_test_layout_RefPtr_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42588,7 +42571,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_313() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42599,7 +42582,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_314() { + fn __bindgen_test_layout_DefaultDelete_instantiation_313() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42610,7 +42593,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_315() { + fn __bindgen_test_layout_UniquePtr_instantiation_314() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42621,7 +42604,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_316() { + fn __bindgen_test_layout_DefaultDelete_instantiation_315() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42632,7 +42615,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_317() { + fn __bindgen_test_layout_UniquePtr_instantiation_316() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42643,6 +42626,17 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] + fn __bindgen_test_layout_RefPtr_instantiation_317() { + 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_318() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42654,18 +42648,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_319() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::RefPtr ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - root::RefPtr ) )); - } - #[test] - fn __bindgen_test_layout_NonNull_instantiation_320() { + fn __bindgen_test_layout_NonNull_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42678,7 +42661,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_321() { + fn __bindgen_test_layout_NonNull_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42691,7 +42674,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_322() { + fn __bindgen_test_layout_Handle_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42702,7 +42685,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_323() { + fn __bindgen_test_layout_MutableHandle_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42713,6 +42696,17 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] + fn __bindgen_test_layout_Maybe_instantiation_323() { + assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat + ! ( + "Size of template specialization: " , stringify ! ( + [u64; 18usize] ) )); + assert_eq!(::std::mem::align_of::<[u64; 18usize]>() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + [u64; 18usize] ) )); + } + #[test] fn __bindgen_test_layout_Maybe_instantiation_324() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( @@ -42724,18 +42718,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_325() { - assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat - ! ( - "Size of template specialization: " , stringify ! ( - [u64; 18usize] ) )); - assert_eq!(::std::mem::align_of::<[u64; 18usize]>() , 8usize , concat - ! ( - "Alignment of template specialization: " , stringify ! ( - [u64; 18usize] ) )); - } - #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_326() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_325() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42746,7 +42729,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_327() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_326() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42757,6 +42740,17 @@ pub mod root { root::nsCOMPtr ) )); } #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_327() { + 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_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42768,15 +42762,15 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_329() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_329() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::already_AddRefed ) )); - 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::already_AddRefed ) )); + root::nsTArray<*mut root::nsIContent> ) )); } #[test] fn __bindgen_test_layout_nsTArray_instantiation_330() { @@ -42790,18 +42784,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_331() { - 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_nsCOMPtr_instantiation_332() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_331() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42812,7 +42795,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_333() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_332() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42825,7 +42808,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_334() { + fn __bindgen_test_layout_already_AddRefed_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42836,7 +42819,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_335() { + fn __bindgen_test_layout_nsTArray_instantiation_334() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42849,6 +42832,17 @@ pub mod root { ) )); } #[test] + fn __bindgen_test_layout_Handle_instantiation_335() { + 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_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42860,18 +42854,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_337() { - 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_338() { + fn __bindgen_test_layout_RefPtr_instantiation_337() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42882,7 +42865,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_339() { + fn __bindgen_test_layout_Handle_instantiation_338() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42893,7 +42876,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_340() { + fn __bindgen_test_layout_MutableHandle_instantiation_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42904,7 +42887,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_341() { + fn __bindgen_test_layout_Sequence_instantiation_340() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42913,7 +42896,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_342() { + fn __bindgen_test_layout_Handle_instantiation_341() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42924,6 +42907,15 @@ pub mod root { root::JS::Handle ) )); } #[test] + fn __bindgen_test_layout_Sequence_instantiation_342() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( u64 ) + )); + assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + u64 ) )); + } + #[test] fn __bindgen_test_layout_Sequence_instantiation_343() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) @@ -42933,27 +42925,18 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_344() { - 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_344() { + 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 ! ( - u64 ) )); + root::JS::Handle ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_345() { - 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_346() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42964,7 +42947,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_347() { + fn __bindgen_test_layout_MutableHandle_instantiation_346() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42975,7 +42958,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_348() { + fn __bindgen_test_layout_Handle_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42986,7 +42969,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_349() { + fn __bindgen_test_layout_MutableHandle_instantiation_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42997,7 +42980,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_350() { + fn __bindgen_test_layout_Handle_instantiation_349() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43008,7 +42991,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_351() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43019,7 +43002,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_352() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_351() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43030,7 +43013,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_353() { + fn __bindgen_test_layout_Handle_instantiation_352() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43041,6 +43024,17 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] + fn __bindgen_test_layout_nsTArray_instantiation_353() { + 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_354() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43053,17 +43047,6 @@ pub mod root { } #[test] fn __bindgen_test_layout_nsTArray_instantiation_355() { - 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_356() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43074,7 +43057,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_357() { + fn __bindgen_test_layout_RefPtr_instantiation_356() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43085,7 +43068,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_358() { + fn __bindgen_test_layout_nsTArray_instantiation_357() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43096,7 +43079,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_359() { + fn __bindgen_test_layout_nsTArray_instantiation_358() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43107,7 +43090,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_360() { + fn __bindgen_test_layout_nsTArray_instantiation_359() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43118,7 +43101,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_361() { + fn __bindgen_test_layout_already_AddRefed_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43129,7 +43112,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_362() { + fn __bindgen_test_layout_Handle_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43140,7 +43123,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_363() { + fn __bindgen_test_layout_nsTArray_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43151,7 +43134,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_364() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( From c33fa3effaf3c952a34b5cb58aa49a8372b1c607 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 18:41:47 -0700 Subject: [PATCH 15/16] Update bindings --- .../style/gecko/generated/structs_debug.rs | 495 ++++++++++-------- .../style/gecko/generated/structs_release.rs | 495 ++++++++++-------- 2 files changed, 534 insertions(+), 456 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 20a20f85236..46ab3074534 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -5801,19 +5801,7 @@ pub mod root { * accessed through the DOM. */ #[repr(C)] - pub struct FragmentOrElement_nsDOMSlots { - pub _base: root::nsINode_nsSlots, - /** - * The .style attribute (an interface that forwards to the actual - * style rules) - * @see nsGenericHTMLElement::GetStyle - */ - pub mStyle: root::nsCOMPtr, - /** - * The .dataset attribute. - * @see nsGenericHTMLElement::GetDataset - */ - pub mDataset: *mut root::nsDOMStringMap, + pub struct FragmentOrElement_nsExtendedDOMSlots { /** * SMIL Overridde style rules (for SMIL animation of CSS properties) * @see Element::GetSMILOverrideStyle @@ -5824,19 +5812,17 @@ pub mod root { */ pub mSMILOverrideStyleDeclaration: root::RefPtr, /** - * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) - * @see FragmentOrElement::GetAttributes - */ - pub mAttributeMap: root::RefPtr, - pub __bindgen_anon_1: root::mozilla::dom::FragmentOrElement_nsDOMSlots__bindgen_ty_1, + * The nearest enclosing content node with a binding that created us. + * @see FragmentOrElement::GetBindingParent + */ + pub mBindingParent: *mut root::nsIContent, /** - * An object implementing the .children property for this element. - */ - pub mChildrenList: root::RefPtr, + * The controllers of the XUL Element. + */ + pub mControllers: root::nsCOMPtr, /** - * An object implementing the .classList property for this element. + * An object implementing the .labels property for this element. */ - pub mClassList: root::RefPtr, pub mLabelsList: root::RefPtr, /** * ShadowRoot bound to the element. @@ -5867,59 +5853,173 @@ pub mod root { * Registered Intersection Observers on the element. */ pub mRegisteredIntersectionObservers: [u64; 6usize], - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_1 { /** - * The nearest enclosing content node with a binding that created us. - * @see FragmentOrElement::GetBindingParent - */ - pub mBindingParent: root::__BindgenUnionField<*mut root::nsIContent>, - /** - * The controllers of the XUL Element. - */ - pub mControllers: root::__BindgenUnionField<*mut root::nsIControllers>, - pub bindgen_union_field: u64, + * For XUL to hold either frameloader or opener. + */ + pub mFrameLoaderOrOpener: root::nsCOMPtr, } #[test] - fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_1() { - assert_eq!(::std::mem::size_of::() - , 8usize , concat ! ( + fn bindgen_test_layout_FragmentOrElement_nsExtendedDOMSlots() { + assert_eq!(::std::mem::size_of::() + , 144usize , concat ! ( "Size of: " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); - assert_eq! (::std::mem::align_of::() + FragmentOrElement_nsExtendedDOMSlots ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); + FragmentOrElement_nsExtendedDOMSlots ) )); assert_eq! (unsafe { & ( * ( - 0 as * const - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . - mBindingParent as * const _ as usize } , 0usize , - concat ! ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mSMILOverrideStyle as * const _ as usize } , + 0usize , concat ! ( "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , - "::" , stringify ! ( mBindingParent ) )); + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mSMILOverrideStyle ) )); assert_eq! (unsafe { & ( * ( - 0 as * const - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . - mControllers as * const _ as usize } , 0usize , - concat ! ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mSMILOverrideStyleDeclaration as * const _ + as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , - "::" , stringify ! ( mControllers ) )); + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mSMILOverrideStyleDeclaration ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mBindingParent as * const _ as usize } , + 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mBindingParent ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mControllers as * const _ as usize } , + 24usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mControllers ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mLabelsList as * const _ as usize } , + 32usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mLabelsList ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mShadowRoot as * const _ as usize } , + 40usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mShadowRoot ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mContainingShadow as * const _ as usize } , + 48usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mContainingShadow ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mDestInsertionPoints as * const _ as usize } + , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mDestInsertionPoints ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mXBLBinding as * const _ as usize } , + 64usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mXBLBinding ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mXBLInsertionParent as * const _ as usize } + , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mXBLInsertionParent ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mCustomElementData as * const _ as usize } , + 80usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mCustomElementData ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mRegisteredIntersectionObservers as * const + _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mRegisteredIntersectionObservers ) + )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mFrameLoaderOrOpener as * const _ as usize } + , 136usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mFrameLoaderOrOpener ) )); } - impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_1 { - fn clone(&self) -> Self { *self } + #[repr(C)] + pub struct FragmentOrElement_nsDOMSlots { + pub _base: root::nsINode_nsSlots, + /** + * The .style attribute (an interface that forwards to the actual + * style rules) + * @see nsGenericHTMLElement::GetStyle + */ + pub mStyle: root::nsCOMPtr, + /** + * The .dataset attribute. + * @see nsGenericHTMLElement::GetDataset + */ + pub mDataset: *mut root::nsDOMStringMap, + /** + * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) + * @see FragmentOrElement::GetAttributes + */ + pub mAttributeMap: root::RefPtr, + /** + * An object implementing the .children property for this element. + */ + pub mChildrenList: root::RefPtr, + /** + * An object implementing the .classList property for this element. + */ + pub mClassList: root::RefPtr, + pub mExtendedSlots: root::mozilla::UniquePtr, } #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() - , 216usize , concat ! ( + , 96usize , concat ! ( "Size of: " , stringify ! ( FragmentOrElement_nsDOMSlots ) )); assert_eq! (::std::mem::align_of::() @@ -5945,23 +6045,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mSMILOverrideStyle as * const _ as usize } , - 64usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mSMILOverrideStyle ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mSMILOverrideStyleDeclaration as * const _ as - usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mSMILOverrideStyleDeclaration ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mAttributeMap as * const _ as usize } , 80usize + . mAttributeMap as * const _ as usize } , 64usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5969,7 +6053,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mChildrenList as * const _ as usize } , 96usize + . mChildrenList as * const _ as usize } , 72usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5977,7 +6061,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mClassList as * const _ as usize } , 104usize , + . mClassList as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5985,67 +6069,11 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mLabelsList as * const _ as usize } , 112usize , - concat ! ( + . mExtendedSlots as * const _ as usize } , 88usize + , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mLabelsList ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mShadowRoot as * const _ as usize } , 120usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mShadowRoot ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mContainingShadow as * const _ as usize } , - 128usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mContainingShadow ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mDestInsertionPoints as * const _ as usize } , - 136usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mDestInsertionPoints ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mXBLBinding as * const _ as usize } , 144usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mXBLBinding ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mXBLInsertionParent as * const _ as usize } , - 152usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mXBLInsertionParent ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mCustomElementData as * const _ as usize } , - 160usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mCustomElementData ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mRegisteredIntersectionObservers as * const _ as - usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mRegisteredIntersectionObservers ) )); + ! ( mExtendedSlots ) )); } extern "C" { #[link_name = @@ -40108,7 +40136,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195313_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_195333_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -40117,7 +40145,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_195349_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_195369_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -43471,7 +43499,18 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_334() { + fn __bindgen_test_layout_DefaultDelete_instantiation_334() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_335() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43482,7 +43521,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_335() { + fn __bindgen_test_layout_nsTArray_instantiation_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43495,17 +43534,6 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_336() { - 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_337() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43517,7 +43545,18 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_338() { + fn __bindgen_test_layout_Handle_instantiation_338() { + 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_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43528,7 +43567,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_339() { + fn __bindgen_test_layout_Handle_instantiation_340() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43539,7 +43578,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_340() { + fn __bindgen_test_layout_MutableHandle_instantiation_341() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43550,7 +43589,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_341() { + fn __bindgen_test_layout_Sequence_instantiation_342() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -43559,7 +43598,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_342() { + fn __bindgen_test_layout_Handle_instantiation_343() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43570,15 +43609,6 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_343() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] fn __bindgen_test_layout_Sequence_instantiation_344() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) @@ -43588,40 +43618,16 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_345() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_Sequence_instantiation_345() { + 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::Handle ) )); + u64 ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_346() { - 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_347() { - 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_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43632,18 +43638,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_349() { - 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_350() { + fn __bindgen_test_layout_Handle_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43654,7 +43649,51 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_351() { + fn __bindgen_test_layout_MutableHandle_instantiation_348() { + 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_349() { + 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_350() { + 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_351() { + 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_352() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43665,7 +43704,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_352() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_353() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43676,7 +43715,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_353() { + fn __bindgen_test_layout_Handle_instantiation_354() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43687,17 +43726,6 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_354() { - 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_355() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43710,6 +43738,17 @@ pub mod root { } #[test] fn __bindgen_test_layout_nsTArray_instantiation_356() { + 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_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43720,7 +43759,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_357() { + fn __bindgen_test_layout_RefPtr_instantiation_358() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43731,7 +43770,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_358() { + fn __bindgen_test_layout_nsTArray_instantiation_359() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43742,7 +43781,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_359() { + fn __bindgen_test_layout_nsTArray_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43753,7 +43792,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_360() { + fn __bindgen_test_layout_nsTArray_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43764,7 +43803,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_361() { + fn __bindgen_test_layout_already_AddRefed_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43775,7 +43814,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_362() { + fn __bindgen_test_layout_Handle_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43786,7 +43825,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_363() { + fn __bindgen_test_layout_nsTArray_instantiation_364() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43797,7 +43836,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_364() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_365() { 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 2188b237586..9e380343899 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -5679,19 +5679,7 @@ pub mod root { * accessed through the DOM. */ #[repr(C)] - pub struct FragmentOrElement_nsDOMSlots { - pub _base: root::nsINode_nsSlots, - /** - * The .style attribute (an interface that forwards to the actual - * style rules) - * @see nsGenericHTMLElement::GetStyle - */ - pub mStyle: root::nsCOMPtr, - /** - * The .dataset attribute. - * @see nsGenericHTMLElement::GetDataset - */ - pub mDataset: *mut root::nsDOMStringMap, + pub struct FragmentOrElement_nsExtendedDOMSlots { /** * SMIL Overridde style rules (for SMIL animation of CSS properties) * @see Element::GetSMILOverrideStyle @@ -5702,19 +5690,17 @@ pub mod root { */ pub mSMILOverrideStyleDeclaration: root::RefPtr, /** - * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) - * @see FragmentOrElement::GetAttributes - */ - pub mAttributeMap: root::RefPtr, - pub __bindgen_anon_1: root::mozilla::dom::FragmentOrElement_nsDOMSlots__bindgen_ty_1, + * The nearest enclosing content node with a binding that created us. + * @see FragmentOrElement::GetBindingParent + */ + pub mBindingParent: *mut root::nsIContent, /** - * An object implementing the .children property for this element. - */ - pub mChildrenList: root::RefPtr, + * The controllers of the XUL Element. + */ + pub mControllers: root::nsCOMPtr, /** - * An object implementing the .classList property for this element. + * An object implementing the .labels property for this element. */ - pub mClassList: root::RefPtr, pub mLabelsList: root::RefPtr, /** * ShadowRoot bound to the element. @@ -5745,59 +5731,173 @@ pub mod root { * Registered Intersection Observers on the element. */ pub mRegisteredIntersectionObservers: [u64; 5usize], - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_1 { /** - * The nearest enclosing content node with a binding that created us. - * @see FragmentOrElement::GetBindingParent - */ - pub mBindingParent: root::__BindgenUnionField<*mut root::nsIContent>, - /** - * The controllers of the XUL Element. - */ - pub mControllers: root::__BindgenUnionField<*mut root::nsIControllers>, - pub bindgen_union_field: u64, + * For XUL to hold either frameloader or opener. + */ + pub mFrameLoaderOrOpener: root::nsCOMPtr, } #[test] - fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_1() { - assert_eq!(::std::mem::size_of::() - , 8usize , concat ! ( + fn bindgen_test_layout_FragmentOrElement_nsExtendedDOMSlots() { + assert_eq!(::std::mem::size_of::() + , 136usize , concat ! ( "Size of: " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); - assert_eq! (::std::mem::align_of::() + FragmentOrElement_nsExtendedDOMSlots ) )); + assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) )); + FragmentOrElement_nsExtendedDOMSlots ) )); assert_eq! (unsafe { & ( * ( - 0 as * const - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . - mBindingParent as * const _ as usize } , 0usize , - concat ! ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mSMILOverrideStyle as * const _ as usize } , + 0usize , concat ! ( "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , - "::" , stringify ! ( mBindingParent ) )); + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mSMILOverrideStyle ) )); assert_eq! (unsafe { & ( * ( - 0 as * const - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) ) . - mControllers as * const _ as usize } , 0usize , - concat ! ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mSMILOverrideStyleDeclaration as * const _ + as usize } , 8usize , concat ! ( "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots__bindgen_ty_1 ) , - "::" , stringify ! ( mControllers ) )); + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mSMILOverrideStyleDeclaration ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mBindingParent as * const _ as usize } , + 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mBindingParent ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mControllers as * const _ as usize } , + 24usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mControllers ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mLabelsList as * const _ as usize } , + 32usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mLabelsList ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mShadowRoot as * const _ as usize } , + 40usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mShadowRoot ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mContainingShadow as * const _ as usize } , + 48usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mContainingShadow ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mDestInsertionPoints as * const _ as usize } + , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mDestInsertionPoints ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mXBLBinding as * const _ as usize } , + 64usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mXBLBinding ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mXBLInsertionParent as * const _ as usize } + , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mXBLInsertionParent ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mCustomElementData as * const _ as usize } , + 80usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mCustomElementData ) )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mRegisteredIntersectionObservers as * const + _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mRegisteredIntersectionObservers ) + )); + assert_eq! (unsafe { + & ( + * ( + 0 as * const FragmentOrElement_nsExtendedDOMSlots + ) ) . mFrameLoaderOrOpener as * const _ as usize } + , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( + FragmentOrElement_nsExtendedDOMSlots ) , "::" , + stringify ! ( mFrameLoaderOrOpener ) )); } - impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_1 { - fn clone(&self) -> Self { *self } + #[repr(C)] + pub struct FragmentOrElement_nsDOMSlots { + pub _base: root::nsINode_nsSlots, + /** + * The .style attribute (an interface that forwards to the actual + * style rules) + * @see nsGenericHTMLElement::GetStyle + */ + pub mStyle: root::nsCOMPtr, + /** + * The .dataset attribute. + * @see nsGenericHTMLElement::GetDataset + */ + pub mDataset: *mut root::nsDOMStringMap, + /** + * An object implementing nsIDOMMozNamedAttrMap for this content (attributes) + * @see FragmentOrElement::GetAttributes + */ + pub mAttributeMap: root::RefPtr, + /** + * An object implementing the .children property for this element. + */ + pub mChildrenList: root::RefPtr, + /** + * An object implementing the .classList property for this element. + */ + pub mClassList: root::RefPtr, + pub mExtendedSlots: root::mozilla::UniquePtr, } #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() - , 208usize , concat ! ( + , 96usize , concat ! ( "Size of: " , stringify ! ( FragmentOrElement_nsDOMSlots ) )); assert_eq! (::std::mem::align_of::() @@ -5823,23 +5923,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mSMILOverrideStyle as * const _ as usize } , - 64usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mSMILOverrideStyle ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mSMILOverrideStyleDeclaration as * const _ as - usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mSMILOverrideStyleDeclaration ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mAttributeMap as * const _ as usize } , 80usize + . mAttributeMap as * const _ as usize } , 64usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5847,7 +5931,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mChildrenList as * const _ as usize } , 96usize + . mChildrenList as * const _ as usize } , 72usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5855,7 +5939,7 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mClassList as * const _ as usize } , 104usize , + . mClassList as * const _ as usize } , 80usize , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify @@ -5863,67 +5947,11 @@ pub mod root { assert_eq! (unsafe { & ( * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mLabelsList as * const _ as usize } , 112usize , - concat ! ( + . mExtendedSlots as * const _ as usize } , 88usize + , concat ! ( "Alignment of field: " , stringify ! ( FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mLabelsList ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mShadowRoot as * const _ as usize } , 120usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mShadowRoot ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mContainingShadow as * const _ as usize } , - 128usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mContainingShadow ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mDestInsertionPoints as * const _ as usize } , - 136usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mDestInsertionPoints ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mXBLBinding as * const _ as usize } , 144usize , - concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mXBLBinding ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mXBLInsertionParent as * const _ as usize } , - 152usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mXBLInsertionParent ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mCustomElementData as * const _ as usize } , - 160usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mCustomElementData ) )); - assert_eq! (unsafe { - & ( - * ( 0 as * const FragmentOrElement_nsDOMSlots ) ) - . mRegisteredIntersectionObservers as * const _ as - usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( - FragmentOrElement_nsDOMSlots ) , "::" , stringify - ! ( mRegisteredIntersectionObservers ) )); + ! ( mExtendedSlots ) )); } extern "C" { #[link_name = @@ -39456,7 +39484,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_192835_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_192855_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39465,7 +39493,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_192871_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_192891_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -42808,7 +42836,18 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_333() { + fn __bindgen_test_layout_DefaultDelete_instantiation_333() { + assert_eq!(::std::mem::size_of::() , + 1usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + assert_eq!(::std::mem::align_of::() , + 1usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::mozilla::DefaultDelete ) )); + } + #[test] + fn __bindgen_test_layout_already_AddRefed_instantiation_334() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42819,7 +42858,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_334() { + fn __bindgen_test_layout_nsTArray_instantiation_335() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42832,17 +42871,6 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_335() { - 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_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -42854,7 +42882,18 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_337() { + fn __bindgen_test_layout_Handle_instantiation_337() { + 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_338() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42865,7 +42904,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_338() { + fn __bindgen_test_layout_Handle_instantiation_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42876,7 +42915,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_339() { + fn __bindgen_test_layout_MutableHandle_instantiation_340() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42887,7 +42926,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_340() { + fn __bindgen_test_layout_Sequence_instantiation_341() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42896,7 +42935,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_341() { + fn __bindgen_test_layout_Handle_instantiation_342() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42907,15 +42946,6 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_342() { - assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( u64 ) - )); - assert_eq!(::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of template specialization: " , stringify ! ( - u64 ) )); - } - #[test] fn __bindgen_test_layout_Sequence_instantiation_343() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) @@ -42925,40 +42955,16 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_344() { - assert_eq!(::std::mem::size_of::>() - , 8usize , concat ! ( - "Size of template specialization: " , stringify ! ( - root::JS::Handle ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + fn __bindgen_test_layout_Sequence_instantiation_344() { + 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::Handle ) )); + u64 ) )); } #[test] fn __bindgen_test_layout_Handle_instantiation_345() { - 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_346() { - 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_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42969,18 +42975,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_348() { - 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_349() { + fn __bindgen_test_layout_Handle_instantiation_346() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42991,7 +42986,51 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_350() { + fn __bindgen_test_layout_MutableHandle_instantiation_347() { + 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_348() { + 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_349() { + 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_350() { + 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_351() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43002,7 +43041,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_351() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_352() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43013,7 +43052,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_352() { + fn __bindgen_test_layout_Handle_instantiation_353() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43024,17 +43063,6 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_353() { - 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_354() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( @@ -43047,6 +43075,17 @@ pub mod root { } #[test] fn __bindgen_test_layout_nsTArray_instantiation_355() { + 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_356() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43057,7 +43096,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_356() { + fn __bindgen_test_layout_RefPtr_instantiation_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43068,7 +43107,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_357() { + fn __bindgen_test_layout_nsTArray_instantiation_358() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43079,7 +43118,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_358() { + fn __bindgen_test_layout_nsTArray_instantiation_359() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43090,7 +43129,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_359() { + fn __bindgen_test_layout_nsTArray_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43101,7 +43140,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_360() { + fn __bindgen_test_layout_already_AddRefed_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43112,7 +43151,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_361() { + fn __bindgen_test_layout_Handle_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43123,7 +43162,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_362() { + fn __bindgen_test_layout_nsTArray_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -43134,7 +43173,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_363() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_364() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( From 8eafe6a3b7a5a4170857a968176b643a22d2ff48 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 18:45:19 -0700 Subject: [PATCH 16/16] Fix tidy --- components/style/gecko/arc_types.rs | 3 +-- components/style/gecko/wrapper.rs | 20 ++++++++++---------- components/style/properties/gecko.mako.rs | 4 +++- components/style/servo/selector_parser.rs | 2 +- ports/geckolib/glue.rs | 1 - tests/unit/style/parsing/mod.rs | 4 ++-- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/components/style/gecko/arc_types.rs b/components/style/gecko/arc_types.rs index 41301b8af15..704369e225c 100644 --- a/components/style/gecko/arc_types.rs +++ b/components/style/gecko/arc_types.rs @@ -10,8 +10,7 @@ use gecko_bindings::bindings::{RawServoImportRule, RawServoSupportsRule}; use gecko_bindings::bindings::{RawServoKeyframe, RawServoKeyframesRule}; -use gecko_bindings::bindings::RawServoMediaRule; -use gecko_bindings::bindings::{RawServoNamespaceRule, RawServoPageRule}; +use gecko_bindings::bindings::{RawServoMediaRule, RawServoNamespaceRule, RawServoPageRule}; use gecko_bindings::bindings::{RawServoRuleNode, RawServoRuleNodeStrong, RawServoDocumentRule}; use gecko_bindings::bindings::ServoCssRules; use gecko_bindings::structs::{RawServoAnimationValue, RawServoDeclarationBlock, RawServoStyleRule, RawServoMediaList}; diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 6d50a0e83f2..c6744249a44 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -866,8 +866,8 @@ impl<'le> TElement for GeckoElement<'le> { } let declarations = unsafe { Gecko_GetStyleAttrDeclarationBlock(self.0) }; - let declarations: Option<&RawOffsetArc>> - = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> = + declarations.and_then(|s| s.as_arc_opt()); declarations.map(|s| s.borrow_arc()) } @@ -881,8 +881,8 @@ impl<'le> TElement for GeckoElement<'le> { fn get_smil_override(&self) -> Option>> { let declarations = unsafe { Gecko_GetSMILOverrideDeclarationBlock(self.0) }; - let declarations: Option<&RawOffsetArc>> - = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> = + declarations.and_then(|s| s.as_arc_opt()); declarations.map(|s| s.borrow_arc()) } @@ -1431,16 +1431,16 @@ impl<'le> PresentationalHintsSynthesizer for GeckoElement<'le> { } } let declarations = unsafe { Gecko_GetHTMLPresentationAttrDeclarationBlock(self.0) }; - let declarations: Option<&RawOffsetArc>> - = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> = + declarations.and_then(|s| s.as_arc_opt()); if let Some(decl) = declarations { hints.push( ApplicableDeclarationBlock::from_declarations(decl.clone_arc(), ServoCascadeLevel::PresHints) ); } let declarations = unsafe { Gecko_GetExtraContentStyleDeclarations(self.0) }; - let declarations: Option<&RawOffsetArc>> - = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> = + declarations.and_then(|s| s.as_arc_opt()); if let Some(decl) = declarations { hints.push( ApplicableDeclarationBlock::from_declarations(decl.clone_arc(), ServoCascadeLevel::PresHints) @@ -1474,8 +1474,8 @@ impl<'le> PresentationalHintsSynthesizer for GeckoElement<'le> { let active = self.get_state().intersects(NonTSPseudoClass::Active.state_flag()); if active { let declarations = unsafe { Gecko_GetActiveLinkAttrDeclarationBlock(self.0) }; - let declarations: Option<&RawOffsetArc>> - = declarations.and_then(|s| s.as_arc_opt()); + let declarations: Option<&RawOffsetArc>> = + declarations.and_then(|s| s.as_arc_opt()); if let Some(decl) = declarations { hints.push( ApplicableDeclarationBlock::from_declarations(decl.clone_arc(), ServoCascadeLevel::PresHints) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index d6024e4a55a..346d4b38853 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -148,7 +148,9 @@ impl ComputedValuesInner { visited_style: None, flags: ComputedValueFlags::empty(), % for style_struct in data.style_structs: - ${style_struct.gecko_name}: Arc::into_raw_offset(style_structs::${style_struct.name}::default(pres_context)), + ${style_struct.gecko_name}: Arc::into_raw_offset( + style_structs::${style_struct.name}::default(pres_context) + ), % endfor } } diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 198f285e8d8..e2dfc46f74d 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -168,7 +168,7 @@ impl PseudoElement { } /// Stub, only Gecko needs this - pub fn pseudo_info(&self) -> () { () } + pub fn pseudo_info(&self) { () } } /// The type used for storing pseudo-class string arguments. diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 045c37c1acd..be2cf878d80 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -3358,7 +3358,6 @@ pub extern "C" fn Servo_StyleSet_HasStateDependency( pub extern "C" fn Servo_GetCustomPropertyValue(computed_values: ServoComputedValuesBorrowed, name: *const nsAString, value: *mut nsAString) -> bool { - let custom_properties = match computed_values.custom_properties() { Some(p) => p, None => return false, diff --git a/tests/unit/style/parsing/mod.rs b/tests/unit/style/parsing/mod.rs index 13998022ed5..a896e6f9aa3 100644 --- a/tests/unit/style/parsing/mod.rs +++ b/tests/unit/style/parsing/mod.rs @@ -11,7 +11,7 @@ use style::context::QuirksMode; use style::font_metrics::ServoMetricsProvider; use style::media_queries::{Device, MediaType}; use style::parser::ParserContext; -use style::properties::{ComputedValues, StyleBuilder}; +use style::properties::{ComputedValues, ComputedValuesInner, StyleBuilder}; use style::stylesheets::{CssRuleType, Origin}; use style::values::computed::{Context, ToComputedValue}; use style_traits::{PARSING_MODE_DEFAULT, ToCss, ParseError}; @@ -49,7 +49,7 @@ fn assert_computed_serialization(f: F, input: &'static str, output: &st T: ToComputedValue, C: ToCss { let viewport_size = TypedSize2D::new(0., 0.); - let initial_style = ComputedValues::initial_values(); + let initial_style = ComputedValuesInner::initial_values(); let device = Device::new(MediaType::Screen, viewport_size); let context = Context {