diff options
Diffstat (limited to 'components/style/gecko_bindings/structs_debug.rs')
-rw-r--r-- | components/style/gecko_bindings/structs_debug.rs | 267 |
1 files changed, 103 insertions, 164 deletions
diff --git a/components/style/gecko_bindings/structs_debug.rs b/components/style/gecko_bindings/structs_debug.rs index 8fbdbe20112..f09f413df7a 100644 --- a/components/style/gecko_bindings/structs_debug.rs +++ b/components/style/gecko_bindings/structs_debug.rs @@ -1388,17 +1388,6 @@ pub enum nsresult { NS_ERROR_DOM_FILESYSTEM_PATH_EXISTS_ERR = 2154364932, NS_ERROR_DOM_FILESYSTEM_TYPE_MISMATCH_ERR = 2154364933, NS_ERROR_DOM_FILESYSTEM_UNKNOWN_ERR = 2154364934, - NS_ERROR_DOM_BLUETOOTH_FAIL = 2154430465, - NS_ERROR_DOM_BLUETOOTH_NOT_READY = 2154430466, - NS_ERROR_DOM_BLUETOOTH_NOMEM = 2154430467, - NS_ERROR_DOM_BLUETOOTH_BUSY = 2154430468, - NS_ERROR_DOM_BLUETOOTH_DONE = 2154430469, - NS_ERROR_DOM_BLUETOOTH_UNSUPPORTED = 2154430470, - NS_ERROR_DOM_BLUETOOTH_PARM_INVALID = 2154430471, - NS_ERROR_DOM_BLUETOOTH_UNHANDLED = 2154430472, - NS_ERROR_DOM_BLUETOOTH_AUTH_FAILURE = 2154430473, - NS_ERROR_DOM_BLUETOOTH_RMT_DEV_DOWN = 2154430474, - NS_ERROR_DOM_BLUETOOTH_AUTH_REJECTED = 2154430475, NS_ERROR_SIGNED_APP_MANIFEST_INVALID = 2154496001, NS_ERROR_DOM_ANIM_MISSING_PROPS_ERR = 2154561537, NS_ERROR_DOM_PUSH_INVALID_REGISTRATION_ERR = 2154627073, @@ -1434,6 +1423,38 @@ pub enum nsresult { } pub type nsrefcnt = MozRefCountType; #[repr(C)] +#[derive(Debug)] +pub struct OwningNonNull<T> { + pub mPtr: RefPtr<T>, + pub mInited: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct StaticRefPtr<T> { + pub mRawPtr: *mut T, +} +#[repr(C)] +#[derive(Debug)] +pub struct RefPtr<T> { + pub mRawPtr: *mut T, +} +pub type RefPtr_element_type<T> = T; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RefPtr_Proxy<T, R, Args> { + pub _phantom_0: ::std::marker::PhantomData<T>, + pub _phantom_1: ::std::marker::PhantomData<R>, + pub _phantom_2: ::std::marker::PhantomData<Args>, +} +pub type RefPtr_Proxy_member_function = [u8; 0usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RefPtr_ConstRemovingRefPtrTraits<T, U> { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData<T>, + pub _phantom_1: ::std::marker::PhantomData<U>, +} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct AlignedStorage2<T> { pub u: AlignedStorage2_U<T>, @@ -1640,12 +1661,10 @@ impl Clone for JSCompartment { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct atomic<_Tp> { - pub _base: (), - pub _phantom_0: ::std::marker::PhantomData<_Tp>, + pub _M_i: _Tp, } -pub type atomic___base = [u8; 0usize]; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum JSWhyMagic { @@ -2081,38 +2100,6 @@ impl Clone for PLHashAllocOps { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug)] -pub struct OwningNonNull<T> { - pub mPtr: RefPtr<T>, - pub mInited: bool, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct StaticRefPtr<T> { - pub mRawPtr: *mut T, -} -#[repr(C)] -#[derive(Debug)] -pub struct RefPtr<T> { - pub mRawPtr: *mut T, -} -pub type RefPtr_element_type<T> = T; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RefPtr_Proxy<T, R, Args> { - pub _phantom_0: ::std::marker::PhantomData<T>, - pub _phantom_1: ::std::marker::PhantomData<R>, - pub _phantom_2: ::std::marker::PhantomData<Args>, -} -pub type RefPtr_Proxy_member_function = [u8; 0usize]; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RefPtr_ConstRemovingRefPtrTraits<T, U> { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData<T>, - pub _phantom_1: ::std::marker::PhantomData<U>, -} -#[repr(C)] #[derive(Debug, Copy)] pub struct nsAutoOwningThread { pub mThread: *mut ::std::os::raw::c_void, @@ -2633,38 +2620,6 @@ pub struct pair<_T1, _T2> { pub type pair_first_type<_T1> = _T1; pub type pair_second_type<_T2> = _T2; #[repr(C)] -#[derive(Debug, Copy)] -pub struct input_iterator_tag { - pub _address: u8, -} -impl Clone for input_iterator_tag { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct forward_iterator_tag { - pub _address: u8, -} -impl Clone for forward_iterator_tag { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct bidirectional_iterator_tag { - pub _address: u8, -} -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, -} -impl Clone for random_access_iterator_tag { - fn clone(&self) -> Self { *self } -} -#[repr(C)] pub struct SourceHook__bindgen_vtable { } /** @@ -5731,14 +5686,6 @@ impl Clone for nsIWeakReference { } pub type nsWeakPtr = nsCOMPtr<nsIWeakReference>; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __bit_const_reference<_Cp> { - pub __seg_: __bit_const_reference___storage_pointer<_Cp>, - pub __mask_: __bit_const_reference___storage_type<_Cp>, -} -pub type __bit_const_reference___storage_type<_Cp> = _Cp; -pub type __bit_const_reference___storage_pointer<_Cp> = _Cp; -#[repr(C)] #[derive(Debug, Copy)] pub struct nsIChannel { pub _base: nsIRequest, @@ -6902,63 +6849,63 @@ pub struct DOMPointInit { impl Clone for DOMPointInit { fn clone(&self) -> Self { *self } } -pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_LISTENERMANAGER; -pub const NODE_HAS_PROPERTIES: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_PROPERTIES; -pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_22 = - _bindgen_ty_22::NODE_IS_ANONYMOUS_ROOT; -pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_22 = - _bindgen_ty_22::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; -pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_22 = - _bindgen_ty_22::NODE_IS_NATIVE_ANONYMOUS_ROOT; -pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_22 = - _bindgen_ty_22::NODE_FORCE_XBL_BINDINGS; -pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_22 = - _bindgen_ty_22::NODE_MAY_BE_IN_BINDING_MNGR; -pub const NODE_IS_EDITABLE: _bindgen_ty_22 = _bindgen_ty_22::NODE_IS_EDITABLE; -pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_22 = - _bindgen_ty_22::NODE_MAY_HAVE_CLASS; -pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_22 = - _bindgen_ty_22::NODE_IS_IN_SHADOW_TREE; -pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_EMPTY_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_SLOW_SELECTOR; -pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_EDGE_CHILD_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; -pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_22 = - _bindgen_ty_22::NODE_ALL_SELECTOR_FLAGS; -pub const NODE_NEEDS_FRAME: _bindgen_ty_22 = _bindgen_ty_22::NODE_NEEDS_FRAME; -pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_22 = - _bindgen_ty_22::NODE_DESCENDANTS_NEED_FRAMES; -pub const NODE_HAS_ACCESSKEY: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_ACCESSKEY; -pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_DIRECTION_RTL; -pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_22 = - _bindgen_ty_22::NODE_HAS_DIRECTION_LTR; -pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_22 = - _bindgen_ty_22::NODE_ALL_DIRECTION_FLAGS; -pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_22 = - _bindgen_ty_22::NODE_CHROME_ONLY_ACCESS; -pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_22 = - _bindgen_ty_22::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; -pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_22 = - _bindgen_ty_22::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_22 = - _bindgen_ty_22::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_22 = - _bindgen_ty_22::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_22 = - _bindgen_ty_22::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_22 = - _bindgen_ty_22::NODE_TYPE_SPECIFIC_BITS_OFFSET; +pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_LISTENERMANAGER; +pub const NODE_HAS_PROPERTIES: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_PROPERTIES; +pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_67 = + _bindgen_ty_67::NODE_IS_ANONYMOUS_ROOT; +pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_67 = + _bindgen_ty_67::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; +pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_67 = + _bindgen_ty_67::NODE_IS_NATIVE_ANONYMOUS_ROOT; +pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_67 = + _bindgen_ty_67::NODE_FORCE_XBL_BINDINGS; +pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_67 = + _bindgen_ty_67::NODE_MAY_BE_IN_BINDING_MNGR; +pub const NODE_IS_EDITABLE: _bindgen_ty_67 = _bindgen_ty_67::NODE_IS_EDITABLE; +pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_67 = + _bindgen_ty_67::NODE_MAY_HAVE_CLASS; +pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_67 = + _bindgen_ty_67::NODE_IS_IN_SHADOW_TREE; +pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_EMPTY_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_SLOW_SELECTOR; +pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_EDGE_CHILD_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; +pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_67 = + _bindgen_ty_67::NODE_ALL_SELECTOR_FLAGS; +pub const NODE_NEEDS_FRAME: _bindgen_ty_67 = _bindgen_ty_67::NODE_NEEDS_FRAME; +pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_67 = + _bindgen_ty_67::NODE_DESCENDANTS_NEED_FRAMES; +pub const NODE_HAS_ACCESSKEY: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_ACCESSKEY; +pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_DIRECTION_RTL; +pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_67 = + _bindgen_ty_67::NODE_HAS_DIRECTION_LTR; +pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_67 = + _bindgen_ty_67::NODE_ALL_DIRECTION_FLAGS; +pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_67 = + _bindgen_ty_67::NODE_CHROME_ONLY_ACCESS; +pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_67 = + _bindgen_ty_67::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; +pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_67 = + _bindgen_ty_67::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_67 = + _bindgen_ty_67::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_67 = + _bindgen_ty_67::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_67 = + _bindgen_ty_67::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_67 = + _bindgen_ty_67::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum _bindgen_ty_22 { +pub enum _bindgen_ty_67 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -8355,21 +8302,21 @@ pub enum nsStyleUnit { } #[repr(C)] #[derive(Debug, Copy)] -pub struct _bindgen_ty_10 { +pub struct _bindgen_ty_25 { pub mInt: __BindgenUnionField<i32>, pub mFloat: __BindgenUnionField<f32>, pub mPointer: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout__bindgen_ty_10() { - assert_eq!(::std::mem::size_of::<_bindgen_ty_10>() , 8usize); - assert_eq!(::std::mem::align_of::<_bindgen_ty_10>() , 8usize); +fn bindgen_test_layout__bindgen_ty_25() { + assert_eq!(::std::mem::size_of::<_bindgen_ty_25>() , 8usize); + assert_eq!(::std::mem::align_of::<_bindgen_ty_25>() , 8usize); } -impl Clone for _bindgen_ty_10 { +impl Clone for _bindgen_ty_25 { fn clone(&self) -> Self { *self } } -pub type nsStyleUnion = _bindgen_ty_10; +pub type nsStyleUnion = _bindgen_ty_25; /** * Class that hold a single size specification used by the style * system. The size specification consists of two parts -- a number @@ -10200,18 +10147,12 @@ fn bindgen_test_layout_nsStyleGradient() { * RequestDiscard() are made to the imgRequestProxy and ImageTracker as * appropriate, according to the mode flags passed in to the constructor. * - * The main thread constructor takes a pointer to the already-created - * imgRequestProxy, and the css::ImageValue that was used while creating it. - * The ImageValue object is only used to grab the URL details to store - * into mBaseURI and mURIString. - * - * The off-main-thread constructor creates a new css::ImageValue to - * hold all the data required to resolve the imgRequestProxy later. This - * constructor also stores the URL details into mbaseURI and mURIString. - * The ImageValue is held on to in mImageTracker until the Resolve call. - * - * We use mBaseURI and mURIString so that we can perform nsStyleImageRequest - * equality comparisons without needing an imgRequestProxy. + * The main thread constructor takes a pointer to the css::ImageValue that + * is the specified url() value, while the off-main-thread constructor + * creates a new css::ImageValue to represent the url() information passed + * to the constructor. This ImageValue is held on to for the comparisons done + * in DefinitelyEquals(), so that we don't need to call into the non-OMT-safe + * Equals() on the nsIURI objects returned from imgRequestProxy::GetURI(). */ #[repr(C)] #[derive(Debug)] @@ -10220,18 +10161,16 @@ pub struct nsStyleImageRequest { pub mRequestProxy: RefPtr<imgRequestProxy>, pub mImageValue: RefPtr<ImageValue>, pub mImageTracker: RefPtr<ImageTracker>, - pub mBaseURI: nsMainThreadPtrHandle<nsIURI>, - pub mURIString: RefPtr<nsStringBuffer>, pub mModeFlags: nsStyleImageRequest_Mode, pub mResolved: bool, } #[repr(u8)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleImageRequest_Mode { Track = 1, Lock = 2, Discard = 4, } +pub enum nsStyleImageRequest_Mode { Track = 1, Discard = 2, } pub type nsStyleImageRequest_HasThreadSafeRefCnt = TrueType; #[test] fn bindgen_test_layout_nsStyleImageRequest() { - assert_eq!(::std::mem::size_of::<nsStyleImageRequest>() , 56usize); + assert_eq!(::std::mem::size_of::<nsStyleImageRequest>() , 40usize); assert_eq!(::std::mem::align_of::<nsStyleImageRequest>() , 8usize); } #[repr(u32)] |