diff options
author | J. Ryan Stinnett <jryans@gmail.com> | 2017-08-22 11:00:56 -0500 |
---|---|---|
committer | J. Ryan Stinnett <jryans@gmail.com> | 2017-08-22 11:00:56 -0500 |
commit | d76abed401cd42902b97ce43a0eb4adf4908bb5b (patch) | |
tree | 789e7096181d3bfda8d5eed662af0ff27ee3661e /components/style/gecko/generated/structs_release.rs | |
parent | 214c59b25ea009f6431ddb8d4fab2806e5299450 (diff) | |
download | servo-d76abed401cd42902b97ce43a0eb4adf4908bb5b.tar.gz servo-d76abed401cd42902b97ce43a0eb4adf4908bb5b.zip |
Update Stylo bindings
Diffstat (limited to 'components/style/gecko/generated/structs_release.rs')
-rw-r--r-- | components/style/gecko/generated/structs_release.rs | 121 |
1 files changed, 43 insertions, 78 deletions
diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index b725ff39f85..20db0475bc0 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -1371,6 +1371,7 @@ pub mod root { #[allow(unused_imports)] use self::super::super::super::root; #[repr(C)] + #[derive(Debug)] pub struct ErrorReporter { pub mError: root::nsAutoString, pub mErrorLine: ::nsstring::nsStringRepr, @@ -10142,30 +10143,12 @@ pub mod root { impl Clone for nsString_Segment { fn clone(&self) -> Self { *self } } - #[repr(C)] - pub struct nsAutoString { - pub _base: root::nsFixedString, - pub mStorage: [root::mozilla::detail::nsStringRepr_char_type; 64usize], - } - pub type nsAutoString_self_type = root::nsAutoString; - pub const nsAutoString_kDefaultStorageSize: - root::nsAutoString__bindgen_ty_1 = - nsAutoString__bindgen_ty_1::kDefaultStorageSize; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsAutoString__bindgen_ty_1 { kDefaultStorageSize = 64, } - #[test] - fn bindgen_test_layout_nsAutoString() { - assert_eq!(::std::mem::size_of::<nsAutoString>() , 160usize , concat ! - ( "Size of: " , stringify ! ( nsAutoString ) )); - assert_eq! (::std::mem::align_of::<nsAutoString>() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsAutoString ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsAutoString ) ) . mStorage as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsAutoString ) , - "::" , stringify ! ( mStorage ) )); + pub type nsAutoStringN_self_type = u8; + extern "C" { + #[link_name = "kStorageSize"] + pub static nsAutoStringN_kStorageSize: usize; } + pub type nsAutoString = [u64; 20usize]; #[repr(C)] pub struct nsStringComparator__bindgen_vtable(::std::os::raw::c_void); #[repr(C)] @@ -10372,6 +10355,14 @@ pub mod root { pub struct nsCycleCollectingAutoRefCnt { pub mRefCntAndFlags: usize, } + pub type nsCycleCollectingAutoRefCnt_Suspect = + ::std::option::Option<unsafe extern "C" fn(aPtr: + *mut ::std::os::raw::c_void, + aCp: + *mut root::nsCycleCollectionParticipant, + aRefCnt: + *mut root::nsCycleCollectingAutoRefCnt, + aShouldDelete: *mut bool)>; #[test] fn bindgen_test_layout_nsCycleCollectingAutoRefCnt() { assert_eq!(::std::mem::size_of::<nsCycleCollectingAutoRefCnt>() , @@ -10441,32 +10432,6 @@ pub mod root { pub mAlign: root::__BindgenUnionField<u8>, pub bindgen_union_field: u64, } - #[repr(C)] - #[derive(Debug)] - pub struct nsFixedString { - pub _base: ::nsstring::nsStringRepr, - pub mFixedCapacity: root::mozilla::detail::nsStringRepr_size_type, - pub mFixedBuf: *mut root::mozilla::detail::nsStringRepr_char_type, - } - pub type nsFixedString_self_type = root::nsFixedString; - pub type nsFixedString_fixed_string_type = root::nsFixedString; - #[test] - fn bindgen_test_layout_nsFixedString() { - assert_eq!(::std::mem::size_of::<nsFixedString>() , 32usize , concat ! - ( "Size of: " , stringify ! ( nsFixedString ) )); - assert_eq! (::std::mem::align_of::<nsFixedString>() , 8usize , concat - ! ( "Alignment of " , stringify ! ( nsFixedString ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsFixedString ) ) . mFixedCapacity as - * const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsFixedString ) , - "::" , stringify ! ( mFixedCapacity ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsFixedString ) ) . mFixedBuf as * - const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsFixedString ) , - "::" , stringify ! ( mFixedBuf ) )); - } pub type PRUint32 = ::std::os::raw::c_uint; pub type PRIntn = ::std::os::raw::c_int; pub type PRUintn = ::std::os::raw::c_uint; @@ -33299,7 +33264,7 @@ pub mod root { root::nsTArray<root::mozilla::gfx::FontVariation> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_226349_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_226420_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsCSSSelector>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33655,7 +33620,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_228146_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_228220_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::StyleSheet>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33816,7 +33781,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_iterator_open0_input_iterator_tag_UniquePtr_open1_JSErrorNotes_Note_DeletePolicy_open2_JSErrorNotes_Note_close2_close1_long__bindgen_ty_id_233737__bindgen_ty_id_233744_close0_instantiation() { + fn __bindgen_test_layout_iterator_open0_input_iterator_tag_UniquePtr_open1_JSErrorNotes_Note_DeletePolicy_open2_JSErrorNotes_Note_close2_close1_long__bindgen_ty_id_233812__bindgen_ty_id_233819_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::std::iterator>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34064,7 +34029,7 @@ pub mod root { root::RefPtr<root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_236234_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_236309_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::dom::Element>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34132,7 +34097,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_236536_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_236611_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::dom::Element>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34244,7 +34209,7 @@ pub mod root { root::RefPtr<root::mozilla::URLExtraData> ) )); } #[test] - fn __bindgen_test_layout_NotNull_open0__bindgen_ty_id_237078_close0_instantiation() { + fn __bindgen_test_layout_NotNull_open0__bindgen_ty_id_237156_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::mozilla::NotNull<*const root::mozilla::Encoding>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34646,7 +34611,7 @@ pub mod root { root::RefPtr<root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_237497_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_237575_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::StyleSheet>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34736,7 +34701,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_237894_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_237973_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::StyleSheet>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34837,7 +34802,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_238855_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_238934_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::StyleSheet>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34926,7 +34891,7 @@ pub mod root { root::RefPtr<root::nsCSSFontFaceRule> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_239158_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_239237_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34937,7 +34902,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_239163_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_239242_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34994,7 +34959,7 @@ pub mod root { root::RefPtr<root::mozilla::CSSStyleSheet> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_239638_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_239717_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::StyleSheet>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35629,7 +35594,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_242464_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_242543_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut ::std::os::raw::c_void>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35708,7 +35673,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_248737_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_248811_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::dom::AudioContext>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35741,7 +35706,7 @@ pub mod root { root::RefPtr<root::mozilla::dom::CallbackObject> ) )); } #[test] - fn __bindgen_test_layout_Heap_open0__bindgen_ty_id_249906_close0_instantiation() { + fn __bindgen_test_layout_Heap_open0__bindgen_ty_id_249980_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::JS::Heap<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35752,7 +35717,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Heap_open0__bindgen_ty_id_249910_close0_instantiation() { + fn __bindgen_test_layout_Heap_open0__bindgen_ty_id_249984_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::JS::Heap<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35774,7 +35739,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_open0__bindgen_ty_id_249917_close0_instantiation() { + fn __bindgen_test_layout_TenuredHeap_open0__bindgen_ty_id_249991_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::JS::TenuredHeap>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35853,7 +35818,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_251022_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_251096_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsISupports>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -36048,7 +36013,7 @@ pub mod root { root::nsTArray<f64> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_252470_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_252544_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::dom::Element>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -36153,7 +36118,7 @@ pub mod root { root::nsRefPtrHashKey<root::nsIAtom> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_254864_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_254917_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::CounterStyle>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -36854,7 +36819,7 @@ pub mod root { root::RefPtr<root::nsStyleImageRequest> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_257346_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_257399_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsISupports>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37091,7 +37056,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_265158_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_265211_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37102,7 +37067,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_265163_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_265216_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37190,7 +37155,7 @@ pub mod root { root::RefPtr<root::mozilla::dom::ShadowRoot> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_265276_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_265329_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37477,7 +37442,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_266856_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_266909_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37499,7 +37464,7 @@ pub mod root { root::RefPtr<root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_267014_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_267067_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37510,7 +37475,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_267019_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_267072_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37642,7 +37607,7 @@ pub mod root { root::nsTArray<root::mozilla::gfx::FontVariation> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_269540_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_269589_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::css::DocumentRule>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37653,7 +37618,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_269546_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0__bindgen_ty_id_269595_close0_instantiation() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::css::DocumentRule>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( |