From 8f1f94d42bcdbb6a5a5d22ac1d86825509241a63 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Sat, 7 Jan 2017 09:46:34 +0800 Subject: [PATCH] stylo: Regenerate bindings. --- .../style/gecko_bindings/structs_debug.rs | 628 ++++++++---------- .../style/gecko_bindings/structs_release.rs | 625 ++++++++--------- 2 files changed, 559 insertions(+), 694 deletions(-) diff --git a/components/style/gecko_bindings/structs_debug.rs b/components/style/gecko_bindings/structs_debug.rs index 4c8b3956b937..bb2f68ee737a 100644 --- a/components/style/gecko_bindings/structs_debug.rs +++ b/components/style/gecko_bindings/structs_debug.rs @@ -1223,10 +1223,7 @@ pub mod root { pub struct ThreadSafeAutoRefCnt { pub mValue: u64, } - extern "C" { - #[link_name = "_ZN7mozilla20ThreadSafeAutoRefCnt12isThreadSafeE"] - pub static ThreadSafeAutoRefCnt_isThreadSafe: bool; - } + pub const ThreadSafeAutoRefCnt_isThreadSafe: bool = true; #[test] fn bindgen_test_layout_ThreadSafeAutoRefCnt() { assert_eq!(::std::mem::size_of::() , @@ -1367,13 +1364,6 @@ pub mod root { assert_eq!(::std::mem::size_of::() , 32usize); assert_eq!(::std::mem::align_of::() , 8usize); } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum ExceptionHandling { - eReportExceptions = 0, - eRethrowContentExceptions = 1, - eRethrowExceptions = 2, - } #[repr(C)] #[derive(Debug, Copy)] pub struct AudioContext { @@ -1427,34 +1417,12 @@ pub mod root { impl Clone for Element_MappedAttributeEntry { fn clone(&self) -> Self { *self } } - extern "C" { - #[link_name = "_ZN7mozilla3dom7Element18kFireMutationEventE"] - pub static Element_kFireMutationEvent: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element22kDontFireMutationEventE"] - pub static Element_kDontFireMutationEvent: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element24kNotifyDocumentObserversE"] - pub static Element_kNotifyDocumentObservers: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element28kDontNotifyDocumentObserversE"] - pub static Element_kDontNotifyDocumentObservers: bool; - } - extern "C" { - #[link_name = "_ZN7mozilla3dom7Element17kCallAfterSetAttrE"] - pub static Element_kCallAfterSetAttr: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element21kDontCallAfterSetAttrE"] - pub static Element_kDontCallAfterSetAttr: bool; - } + pub const Element_kFireMutationEvent: bool = true; + pub const Element_kDontFireMutationEvent: bool = false; + pub const Element_kNotifyDocumentObservers: bool = true; + pub const Element_kDontNotifyDocumentObservers: bool = false; + pub const Element_kCallAfterSetAttr: bool = true; + pub const Element_kDontCallAfterSetAttr: bool = false; #[test] fn bindgen_test_layout_Element() { assert_eq!(::std::mem::size_of::() , 136usize); @@ -1511,6 +1479,13 @@ pub mod root { impl Clone for CallbackObject_cycleCollection { fn clone(&self) -> Self { *self } } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum CallbackObject_ExceptionHandling { + eReportExceptions = 0, + eRethrowContentExceptions = 1, + eRethrowExceptions = 2, + } #[repr(C)] #[derive(Debug, Copy)] pub struct CallbackObject_FastCallbackConstructor { @@ -1538,7 +1513,7 @@ pub mod root { pub mAsyncStackSetter: [u64; 7usize], pub mAc: [u64; 4usize], pub mErrorResult: *mut [u64; 4usize], - pub mExceptionHandling: root::mozilla::dom::ExceptionHandling, + pub mExceptionHandling: root::mozilla::dom::CallbackObject_ExceptionHandling, pub mIsMainThread: bool, } #[test] @@ -1772,6 +1747,14 @@ pub mod root { pub struct UnionMember { pub mStorage: root::mozilla::AlignedStorage2, } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum VisibilityState { + Hidden = 0, + Visible = 1, + Prerender = 2, + EndGuard_ = 3, + } #[repr(C)] #[derive(Debug, Copy)] pub struct Animation { @@ -2069,13 +2052,6 @@ pub mod root { assert_eq!(::std::mem::size_of::() , 96usize); assert_eq!(::std::mem::align_of::() , 8usize); } - #[test] - fn __bindgen_test_layout_template_1() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } #[repr(C)] #[derive(Debug)] pub struct DOMIntersectionObserverEntry { @@ -2394,6 +2370,14 @@ pub mod root { impl Clone for ServoStyleSheet { fn clone(&self) -> Self { *self } } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum Side { + eSideTop = 0, + eSideRight = 1, + eSideBottom = 2, + eSideLeft = 3, + } #[repr(C)] #[derive(Debug, Copy)] pub struct SVGAttrAnimationRuleProcessor { @@ -2481,10 +2465,29 @@ pub mod root { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum ConsumeStyleBehavior { Consume = 0, DontConsume = 1, } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum TraversalRootBehavior { Normal = 0, UnstyledChildrenOnly = 1, } + #[repr(u8)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum SheetType { + Agent = 0, + User = 1, + PresHint = 2, + SVGAttrAnimation = 3, + Doc = 4, + ScopedDoc = 5, + StyleAttr = 6, + Override = 7, + Animation = 8, + Transition = 9, + Count = 10, + Unknown = 255, + } pub mod a11y { #[allow(unused_imports)] use self::super::super::super::root; @@ -2879,6 +2882,42 @@ pub mod root { pub struct HandleRefPtr { pub mHandle: T, } + /** + * Smart pointer class that can hold a pointer to either a RestyleManager + * or a ServoRestyleManager. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct RestyleManagerHandle { + pub mPtr: root::mozilla::RestyleManagerHandle_Ptr, + } + pub type RestyleManagerHandle_RefPtr = + root::mozilla::HandleRefPtr; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct RestyleManagerHandle_Ptr { + pub mValue: usize, + } + #[test] + fn bindgen_test_layout_RestyleManagerHandle_Ptr() { + assert_eq!(::std::mem::size_of::() , + 8usize); + assert_eq!(::std::mem::align_of::() , + 8usize); + } + impl Clone for RestyleManagerHandle_Ptr { + fn clone(&self) -> Self { *self } + } + #[test] + fn bindgen_test_layout_RestyleManagerHandle() { + assert_eq!(::std::mem::size_of::() , + 8usize); + assert_eq!(::std::mem::align_of::() , + 8usize); + } + impl Clone for RestyleManagerHandle { + fn clone(&self) -> Self { *self } + } #[repr(C)] #[derive(Debug)] pub struct LangGroupFontPrefs { @@ -3010,7 +3049,7 @@ pub mod root { fn clone(&self) -> Self { *self } } #[test] - fn __bindgen_test_layout_template_2() { + fn __bindgen_test_layout_template_1() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() @@ -3292,14 +3331,14 @@ pub mod root { MAX = 82, } #[test] - fn __bindgen_test_layout_template_3() { + fn __bindgen_test_layout_template_2() { assert_eq!(::std::mem::size_of::>() , 16usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_4() { + fn __bindgen_test_layout_template_3() { assert_eq!(::std::mem::size_of::>() , 16usize); assert_eq!(::std::mem::align_of::>() @@ -3997,7 +4036,7 @@ pub mod root { #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum TenuredHeap__bindgen_ty_1 { maskBits = 0, } #[test] - fn __bindgen_test_layout_template_5() { + fn __bindgen_test_layout_template_4() { assert_eq!(::std::mem::size_of::>() , 8usize); @@ -4387,13 +4426,13 @@ pub mod root { pub _phantom_0: ::std::marker::PhantomData, } #[test] - fn __bindgen_test_layout_template_6() { + fn __bindgen_test_layout_template_5() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_7() { + fn __bindgen_test_layout_template_6() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() @@ -4531,10 +4570,7 @@ pub mod root { pub struct nsAutoRefCnt { pub mValue: root::nsrefcnt, } - extern "C" { - #[link_name = "_ZN12nsAutoRefCnt12isThreadSafeE"] - pub static nsAutoRefCnt_isThreadSafe: bool; - } + pub const nsAutoRefCnt_isThreadSafe: bool = false; #[test] fn bindgen_test_layout_nsAutoRefCnt() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -4613,7 +4649,7 @@ pub mod root { pub mRawPtr: *mut root::nsISupports, } #[test] - fn __bindgen_test_layout_template_8() { + fn __bindgen_test_layout_template_7() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() @@ -4984,110 +5020,6 @@ pub mod root { assert_eq!(::std::mem::size_of::() , 232usize); assert_eq!(::std::mem::align_of::() , 8usize); } - #[repr(u8)] - /** - * Enumeration that represents one of the two supported style system backends. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StyleBackendType { Gecko = 1, Servo = 2, } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum ConsumeStyleBehavior { Consume = 0, DontConsume = 1, } - #[repr(u8)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum SheetType { - Agent = 0, - User = 1, - PresHint = 2, - SVGAttrAnimation = 3, - Doc = 4, - ScopedDoc = 5, - StyleAttr = 6, - Override = 7, - Animation = 8, - Transition = 9, - Count = 10, - Unknown = 255, - } - /** - * EventStates is the class used to represent the event states of nsIContent - * instances. These states are calculated by IntrinsicState() and - * ContentStatesChanged() has to be called when one of them changes thus - * informing the layout/style engine of the change. - * Event states are associated with pseudo-classes. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct EventStates { - pub mStates: root::EventStates_InternalType, - } - pub type EventStates_InternalType = u64; - pub type EventStates_ServoType = u8; - #[test] - fn bindgen_test_layout_EventStates() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); - } - impl Clone for EventStates { - fn clone(&self) -> Self { *self } - } - pub const nsRestyleHint_eRestyle_Self: root::nsRestyleHint = - nsRestyleHint(1); - pub const nsRestyleHint_eRestyle_SomeDescendants: root::nsRestyleHint = - nsRestyleHint(2); - pub const nsRestyleHint_eRestyle_Subtree: root::nsRestyleHint = - nsRestyleHint(4); - pub const nsRestyleHint_eRestyle_LaterSiblings: root::nsRestyleHint = - nsRestyleHint(8); - pub const nsRestyleHint_eRestyle_CSSTransitions: root::nsRestyleHint = - nsRestyleHint(16); - pub const nsRestyleHint_eRestyle_CSSAnimations: root::nsRestyleHint = - nsRestyleHint(32); - pub const nsRestyleHint_eRestyle_SVGAttrAnimations: root::nsRestyleHint = - nsRestyleHint(64); - pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint = - nsRestyleHint(128); - pub const nsRestyleHint_eRestyle_StyleAttribute_Animations: - root::nsRestyleHint = - nsRestyleHint(256); - pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint = - nsRestyleHint(512); - pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint = - nsRestyleHint(1024); - pub const nsRestyleHint_eRestyle_AllHintsWithAnimations: - root::nsRestyleHint = - nsRestyleHint(368); - impl ::std::ops::BitOr for root::nsRestyleHint { - type - Output - = - Self; - #[inline] - fn bitor(self, other: Self) -> Self { - nsRestyleHint(self.0 | other.0) - } - } - #[repr(C)] - /** - * |nsRestyleHint| is a bitfield for the result of - * |HasStateDependentStyle| and |HasAttributeDependentStyle|. When no - * restyling is necessary, use |nsRestyleHint(0)|. - * - * Without eRestyle_Force or eRestyle_ForceDescendants, the restyling process - * can stop processing at a frame when it detects no style changes and it is - * known that the styles of the subtree beneath it will not change, leaving - * the old style context on the frame. eRestyle_Force can be used to skip this - * optimization on a frame, and to force its new style context to be used. - * - * Similarly, eRestyle_ForceDescendants will cause the frame and all of its - * descendants to be traversed and for the new style contexts that are created - * to be set on the frames. - * - * NOTE: When adding new restyle hints, please also add them to - * RestyleManager::RestyleHintToString. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub struct nsRestyleHint(pub u32); /** * Smart pointer class that can hold a pointer to either an nsStyleSet * or a ServoStyleSet. @@ -5118,20 +5050,27 @@ pub mod root { impl Clone for StyleSetHandle { fn clone(&self) -> Self { *self } } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCompatibility { - eCompatibility_FullStandards = 1, - eCompatibility_AlmostStandards = 2, - eCompatibility_NavQuirks = 3, + /** + * EventStates is the class used to represent the event states of nsIContent + * instances. These states are calculated by IntrinsicState() and + * ContentStatesChanged() has to be called when one of them changes thus + * informing the layout/style engine of the change. + * Event states are associated with pseudo-classes. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct EventStates { + pub mStates: root::EventStates_InternalType, } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum VisibilityState { - Hidden = 0, - Visible = 1, - Prerender = 2, - EndGuard_ = 3, + pub type EventStates_InternalType = u64; + pub type EventStates_ServoType = u8; + #[test] + fn bindgen_test_layout_EventStates() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); + } + impl Clone for EventStates { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug)] @@ -5178,7 +5117,7 @@ pub mod root { pub mCompatMode: root::nsCompatibility, pub mReadyState: root::nsIDocument_ReadyState, pub mStyleBackendType: root::StyleBackendType, - pub mVisibilityState: root::VisibilityState, + pub mVisibilityState: root::mozilla::dom::VisibilityState, pub _bitfield_1: u64, pub mType: root::nsIDocument_Type, pub mDefaultElementType: u8, @@ -6378,6 +6317,12 @@ pub mod root { impl Clone for nsIControllers { fn clone(&self) -> Self { *self } } + #[repr(u8)] + /** + * Enumeration that represents one of the two supported style system backends. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StyleBackendType { Gecko = 1, Servo = 2, } pub const nsChangeHint_nsChangeHint_Empty: root::nsChangeHint = nsChangeHint(0); pub const nsChangeHint_nsChangeHint_RepaintFrame: root::nsChangeHint = @@ -6466,49 +6411,71 @@ pub mod root { #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub struct nsChangeHint(pub u32); - /** - * Smart pointer class that can hold a pointer to either a RestyleManager - * or a ServoRestyleManager. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct RestyleManagerHandle { - pub mPtr: root::RestyleManagerHandle_Ptr, + pub const nsRestyleHint_eRestyle_Self: root::nsRestyleHint = + nsRestyleHint(1); + pub const nsRestyleHint_eRestyle_SomeDescendants: root::nsRestyleHint = + nsRestyleHint(2); + pub const nsRestyleHint_eRestyle_Subtree: root::nsRestyleHint = + nsRestyleHint(4); + pub const nsRestyleHint_eRestyle_LaterSiblings: root::nsRestyleHint = + nsRestyleHint(8); + pub const nsRestyleHint_eRestyle_CSSTransitions: root::nsRestyleHint = + nsRestyleHint(16); + pub const nsRestyleHint_eRestyle_CSSAnimations: root::nsRestyleHint = + nsRestyleHint(32); + pub const nsRestyleHint_eRestyle_SVGAttrAnimations: root::nsRestyleHint = + nsRestyleHint(64); + pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint = + nsRestyleHint(128); + pub const nsRestyleHint_eRestyle_StyleAttribute_Animations: + root::nsRestyleHint = + nsRestyleHint(256); + pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint = + nsRestyleHint(512); + pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint = + nsRestyleHint(1024); + pub const nsRestyleHint_eRestyle_AllHintsWithAnimations: + root::nsRestyleHint = + nsRestyleHint(368); + impl ::std::ops::BitOr for root::nsRestyleHint { + type + Output + = + Self; + #[inline] + fn bitor(self, other: Self) -> Self { + nsRestyleHint(self.0 | other.0) + } } - pub type RestyleManagerHandle_RefPtr = - root::mozilla::HandleRefPtr; #[repr(C)] - #[derive(Debug, Copy)] - pub struct RestyleManagerHandle_Ptr { - pub mValue: usize, - } - #[test] - fn bindgen_test_layout_RestyleManagerHandle_Ptr() { - assert_eq!(::std::mem::size_of::() , - 8usize); - assert_eq!(::std::mem::align_of::() , - 8usize); - } - impl Clone for RestyleManagerHandle_Ptr { - fn clone(&self) -> Self { *self } - } - #[test] - fn bindgen_test_layout_RestyleManagerHandle() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); - } - impl Clone for RestyleManagerHandle { - fn clone(&self) -> Self { *self } - } - pub type nscolor = u32; + /** + * |nsRestyleHint| is a bitfield for the result of + * |HasStateDependentStyle| and |HasAttributeDependentStyle|. When no + * restyling is necessary, use |nsRestyleHint(0)|. + * + * Without eRestyle_Force or eRestyle_ForceDescendants, the restyling process + * can stop processing at a frame when it detects no style changes and it is + * known that the styles of the subtree beneath it will not change, leaving + * the old style context on the frame. eRestyle_Force can be used to skip this + * optimization on a frame, and to force its new style context to be used. + * + * Similarly, eRestyle_ForceDescendants will cause the frame and all of its + * descendants to be traversed and for the new style contexts that are created + * to be set on the frames. + * + * NOTE: When adding new restyle hints, please also add them to + * RestyleManager::RestyleHintToString. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub struct nsRestyleHint(pub u32); #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum Side { - eSideTop = 0, - eSideRight = 1, - eSideBottom = 2, - eSideLeft = 3, + pub enum nsCompatibility { + eCompatibility_FullStandards = 1, + eCompatibility_AlmostStandards = 2, + eCompatibility_NavQuirks = 3, } + pub type nscolor = u32; #[repr(C)] #[derive(Debug)] pub struct nsPresContext { @@ -6525,7 +6492,7 @@ pub mod root { pub mEffectCompositor: root::RefPtr, pub mTransitionManager: root::RefPtr, pub mAnimationManager: root::RefPtr, - pub mRestyleManager: root::RestyleManagerHandle_RefPtr, + pub mRestyleManager: root::mozilla::RestyleManagerHandle_RefPtr, pub mCounterStyleManager: root::RefPtr, pub mMedium: *mut root::nsIAtom, pub mMediaEmulated: root::nsCOMPtr, @@ -7348,15 +7315,9 @@ pub mod root { #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum PLDHashTable_SearchReason { ForSearchOrRemove = 0, ForAdd = 1, } - extern "C" { - #[link_name = "_ZN12PLDHashTable12kMaxCapacityE"] - pub static PLDHashTable_kMaxCapacity: u32; - } + pub const PLDHashTable_kMaxCapacity: u32 = 67108864; pub const PLDHashTable_kMinCapacity: u32 = 8; - extern "C" { - #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] - pub static PLDHashTable_kMaxInitialLength: u32; - } + pub const PLDHashTable_kMaxInitialLength: u32 = 33554432; pub const PLDHashTable_kDefaultInitialLength: u32 = 4; pub const PLDHashTable_kHashBits: u32 = 32; pub const PLDHashTable_kGoldenRatio: u32 = 2654435769; @@ -8756,63 +8717,63 @@ pub mod root { impl Clone for nsDOMMutationObserver { fn clone(&self) -> Self { *self } } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_IS_EDITABLE; - pub const NODE_MAY_HAVE_CLASS: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_MAY_HAVE_CLASS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_SHARED_RESTYLE_BIT_1; - pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_SHARED_RESTYLE_BIT_2; - pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_SHARED_RESTYLE_BIT_1; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_152 = - _bindgen_ty_152::NODE_TYPE_SPECIFIC_BITS_OFFSET; + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_IS_EDITABLE; + pub const NODE_MAY_HAVE_CLASS: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_MAY_HAVE_CLASS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_SHARED_RESTYLE_BIT_1; + pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_SHARED_RESTYLE_BIT_2; + pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_SHARED_RESTYLE_BIT_1; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_155 = + _bindgen_ty_155::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_152 { + pub enum _bindgen_ty_155 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -11469,7 +11430,7 @@ pub mod root { pub mSheetPrincipal: root::nsCOMPtr, pub mLineNumber: u32, pub mLineOffset: u32, - pub mLevel: root::SheetType, + pub mLevel: root::mozilla::SheetType, } pub type nsCSSValueTokenStream_HasThreadSafeRefCnt = root::mozilla::FalseType; @@ -11992,7 +11953,7 @@ pub mod root { assert_eq!(::std::mem::align_of::() , 8usize); } #[test] - fn __bindgen_test_layout_template_9() { + fn __bindgen_test_layout_template_8() { assert_eq!(::std::mem::size_of::>>() , 8usize); @@ -12784,13 +12745,12 @@ pub mod root { pub struct nsStyleContentData { pub mType: root::nsStyleContentType, pub mContent: root::nsStyleContentData__bindgen_ty_1, - pub mImageTracked: bool, } #[repr(C)] #[derive(Debug, Copy)] pub struct nsStyleContentData__bindgen_ty_1 { pub mString: root::__BindgenUnionField<*mut u16>, - pub mImage: root::__BindgenUnionField<*mut root::imgRequestProxy>, + pub mImage: root::__BindgenUnionField<*mut root::nsStyleImageRequest>, pub mCounters: root::__BindgenUnionField<*mut root::nsCSSValue_Array>, pub bindgen_union_field: u64, } @@ -12806,7 +12766,7 @@ pub mod root { } #[test] fn bindgen_test_layout_nsStyleContentData() { - assert_eq!(::std::mem::size_of::() , 24usize); + assert_eq!(::std::mem::size_of::() , 16usize); assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] @@ -13172,201 +13132,173 @@ pub mod root { root::nsMainThreadPtrHolder; pub type ThreadSafeURIHolder = root::nsMainThreadPtrHolder; #[test] - fn __bindgen_test_layout_template_10() { + fn __bindgen_test_layout_template_9() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_11() { + fn __bindgen_test_layout_template_10() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_12() { + fn __bindgen_test_layout_template_11() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_13() { - assert_eq!(::std::mem::size_of::>() , - 8usize); - assert_eq!(::std::mem::align_of::>() , - 8usize); - } - #[test] - fn __bindgen_test_layout_template_14() { + fn __bindgen_test_layout_template_12() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_15() { - assert_eq!(::std::mem::size_of::>>() - , 8usize); - assert_eq!(::std::mem::align_of::>>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_16() { + fn __bindgen_test_layout_template_13() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_17() { + fn __bindgen_test_layout_template_14() { assert_eq!(::std::mem::size_of::>>() , 8usize); assert_eq!(::std::mem::align_of::>>() , 8usize); } #[test] - fn __bindgen_test_layout_template_18() { + fn __bindgen_test_layout_template_15() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_19() { - assert_eq!(::std::mem::size_of::>>() - , 8usize); - assert_eq!(::std::mem::align_of::>>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_20() { + fn __bindgen_test_layout_template_16() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_21() { + fn __bindgen_test_layout_template_17() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_22() { + fn __bindgen_test_layout_template_18() { + assert_eq!(::std::mem::size_of::>() , + 8usize); + assert_eq!(::std::mem::align_of::>() , + 8usize); + } + #[test] + fn __bindgen_test_layout_template_19() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_23() { + fn __bindgen_test_layout_template_20() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_24() { + fn __bindgen_test_layout_template_21() { assert_eq!(::std::mem::size_of::>() , 16usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_25() { + fn __bindgen_test_layout_template_22() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_26() { + fn __bindgen_test_layout_template_23() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_27() { + fn __bindgen_test_layout_template_24() { assert_eq!(::std::mem::size_of::>>() , 8usize); assert_eq!(::std::mem::align_of::>>() , 8usize); } #[test] - fn __bindgen_test_layout_template_28() { + fn __bindgen_test_layout_template_25() { assert_eq!(::std::mem::size_of::>() , 24usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_29() { + fn __bindgen_test_layout_template_26() { assert_eq!(::std::mem::size_of::>() , 24usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_30() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_31() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_32() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_33() { + fn __bindgen_test_layout_template_27() { assert_eq!(::std::mem::size_of::>() , 16usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_34() { + fn __bindgen_test_layout_template_28() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_35() { + fn __bindgen_test_layout_template_29() { + assert_eq!(::std::mem::size_of::>() + , 8usize); + assert_eq!(::std::mem::align_of::>() + , 8usize); + } + #[test] + fn __bindgen_test_layout_template_30() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_36() { + fn __bindgen_test_layout_template_31() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_37() { + fn __bindgen_test_layout_template_32() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_38() { + fn __bindgen_test_layout_template_33() { assert_eq!(::std::mem::size_of::>() , 32usize); assert_eq!(::std::mem::align_of::>() diff --git a/components/style/gecko_bindings/structs_release.rs b/components/style/gecko_bindings/structs_release.rs index f226110a161c..00602c8f9c25 100644 --- a/components/style/gecko_bindings/structs_release.rs +++ b/components/style/gecko_bindings/structs_release.rs @@ -1218,10 +1218,7 @@ pub mod root { pub struct ThreadSafeAutoRefCnt { pub mValue: u64, } - extern "C" { - #[link_name = "_ZN7mozilla20ThreadSafeAutoRefCnt12isThreadSafeE"] - pub static ThreadSafeAutoRefCnt_isThreadSafe: bool; - } + pub const ThreadSafeAutoRefCnt_isThreadSafe: bool = true; #[test] fn bindgen_test_layout_ThreadSafeAutoRefCnt() { assert_eq!(::std::mem::size_of::() , @@ -1362,13 +1359,6 @@ pub mod root { assert_eq!(::std::mem::size_of::() , 32usize); assert_eq!(::std::mem::align_of::() , 8usize); } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum ExceptionHandling { - eReportExceptions = 0, - eRethrowContentExceptions = 1, - eRethrowExceptions = 2, - } #[repr(C)] #[derive(Debug, Copy)] pub struct AudioContext { @@ -1422,34 +1412,12 @@ pub mod root { impl Clone for Element_MappedAttributeEntry { fn clone(&self) -> Self { *self } } - extern "C" { - #[link_name = "_ZN7mozilla3dom7Element18kFireMutationEventE"] - pub static Element_kFireMutationEvent: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element22kDontFireMutationEventE"] - pub static Element_kDontFireMutationEvent: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element24kNotifyDocumentObserversE"] - pub static Element_kNotifyDocumentObservers: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element28kDontNotifyDocumentObserversE"] - pub static Element_kDontNotifyDocumentObservers: bool; - } - extern "C" { - #[link_name = "_ZN7mozilla3dom7Element17kCallAfterSetAttrE"] - pub static Element_kCallAfterSetAttr: bool; - } - extern "C" { - #[link_name = - "_ZN7mozilla3dom7Element21kDontCallAfterSetAttrE"] - pub static Element_kDontCallAfterSetAttr: bool; - } + pub const Element_kFireMutationEvent: bool = true; + pub const Element_kDontFireMutationEvent: bool = false; + pub const Element_kNotifyDocumentObservers: bool = true; + pub const Element_kDontNotifyDocumentObservers: bool = false; + pub const Element_kCallAfterSetAttr: bool = true; + pub const Element_kDontCallAfterSetAttr: bool = false; #[test] fn bindgen_test_layout_Element() { assert_eq!(::std::mem::size_of::() , 128usize); @@ -1505,6 +1473,13 @@ pub mod root { impl Clone for CallbackObject_cycleCollection { fn clone(&self) -> Self { *self } } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum CallbackObject_ExceptionHandling { + eReportExceptions = 0, + eRethrowContentExceptions = 1, + eRethrowExceptions = 2, + } #[repr(C)] #[derive(Debug, Copy)] pub struct CallbackObject_FastCallbackConstructor { @@ -1532,7 +1507,7 @@ pub mod root { pub mAsyncStackSetter: [u64; 7usize], pub mAc: [u64; 3usize], pub mErrorResult: *mut [u64; 2usize], - pub mExceptionHandling: root::mozilla::dom::ExceptionHandling, + pub mExceptionHandling: root::mozilla::dom::CallbackObject_ExceptionHandling, pub mIsMainThread: bool, } #[test] @@ -1764,6 +1739,14 @@ pub mod root { pub struct UnionMember { pub mStorage: root::mozilla::AlignedStorage2, } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum VisibilityState { + Hidden = 0, + Visible = 1, + Prerender = 2, + EndGuard_ = 3, + } #[repr(C)] #[derive(Debug, Copy)] pub struct Animation { @@ -2059,13 +2042,6 @@ pub mod root { assert_eq!(::std::mem::size_of::() , 88usize); assert_eq!(::std::mem::align_of::() , 8usize); } - #[test] - fn __bindgen_test_layout_template_1() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } #[repr(C)] #[derive(Debug)] pub struct DOMIntersectionObserverEntry { @@ -2377,6 +2353,14 @@ pub mod root { impl Clone for ServoStyleSheet { fn clone(&self) -> Self { *self } } + #[repr(u32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum Side { + eSideTop = 0, + eSideRight = 1, + eSideBottom = 2, + eSideLeft = 3, + } #[repr(C)] #[derive(Debug, Copy)] pub struct SVGAttrAnimationRuleProcessor { @@ -2464,10 +2448,29 @@ pub mod root { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum ConsumeStyleBehavior { Consume = 0, DontConsume = 1, } + #[repr(i32)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum TraversalRootBehavior { Normal = 0, UnstyledChildrenOnly = 1, } + #[repr(u8)] + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum SheetType { + Agent = 0, + User = 1, + PresHint = 2, + SVGAttrAnimation = 3, + Doc = 4, + ScopedDoc = 5, + StyleAttr = 6, + Override = 7, + Animation = 8, + Transition = 9, + Count = 10, + Unknown = 255, + } pub mod a11y { #[allow(unused_imports)] use self::super::super::super::root; @@ -2862,6 +2865,42 @@ pub mod root { pub struct HandleRefPtr { pub mHandle: T, } + /** + * Smart pointer class that can hold a pointer to either a RestyleManager + * or a ServoRestyleManager. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct RestyleManagerHandle { + pub mPtr: root::mozilla::RestyleManagerHandle_Ptr, + } + pub type RestyleManagerHandle_RefPtr = + root::mozilla::HandleRefPtr; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct RestyleManagerHandle_Ptr { + pub mValue: usize, + } + #[test] + fn bindgen_test_layout_RestyleManagerHandle_Ptr() { + assert_eq!(::std::mem::size_of::() , + 8usize); + assert_eq!(::std::mem::align_of::() , + 8usize); + } + impl Clone for RestyleManagerHandle_Ptr { + fn clone(&self) -> Self { *self } + } + #[test] + fn bindgen_test_layout_RestyleManagerHandle() { + assert_eq!(::std::mem::size_of::() , + 8usize); + assert_eq!(::std::mem::align_of::() , + 8usize); + } + impl Clone for RestyleManagerHandle { + fn clone(&self) -> Self { *self } + } #[repr(C)] #[derive(Debug)] pub struct LangGroupFontPrefs { @@ -2992,7 +3031,7 @@ pub mod root { fn clone(&self) -> Self { *self } } #[test] - fn __bindgen_test_layout_template_2() { + fn __bindgen_test_layout_template_1() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() @@ -3274,14 +3313,14 @@ pub mod root { MAX = 82, } #[test] - fn __bindgen_test_layout_template_3() { + fn __bindgen_test_layout_template_2() { assert_eq!(::std::mem::size_of::>() , 16usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_4() { + fn __bindgen_test_layout_template_3() { assert_eq!(::std::mem::size_of::>() , 16usize); assert_eq!(::std::mem::align_of::>() @@ -3979,7 +4018,7 @@ pub mod root { #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum TenuredHeap__bindgen_ty_1 { maskBits = 0, } #[test] - fn __bindgen_test_layout_template_5() { + fn __bindgen_test_layout_template_4() { assert_eq!(::std::mem::size_of::>() , 8usize); @@ -4360,13 +4399,13 @@ pub mod root { pub _phantom_0: ::std::marker::PhantomData, } #[test] - fn __bindgen_test_layout_template_6() { + fn __bindgen_test_layout_template_5() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_7() { + fn __bindgen_test_layout_template_6() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() @@ -4500,10 +4539,7 @@ pub mod root { pub struct nsAutoRefCnt { pub mValue: root::nsrefcnt, } - extern "C" { - #[link_name = "_ZN12nsAutoRefCnt12isThreadSafeE"] - pub static nsAutoRefCnt_isThreadSafe: bool; - } + pub const nsAutoRefCnt_isThreadSafe: bool = false; #[test] fn bindgen_test_layout_nsAutoRefCnt() { assert_eq!(::std::mem::size_of::() , 8usize); @@ -4583,7 +4619,7 @@ pub mod root { pub mRawPtr: *mut root::nsISupports, } #[test] - fn __bindgen_test_layout_template_8() { + fn __bindgen_test_layout_template_7() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() @@ -4954,110 +4990,6 @@ pub mod root { assert_eq!(::std::mem::size_of::() , 224usize); assert_eq!(::std::mem::align_of::() , 8usize); } - #[repr(u8)] - /** - * Enumeration that represents one of the two supported style system backends. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum StyleBackendType { Gecko = 1, Servo = 2, } - #[repr(i32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum ConsumeStyleBehavior { Consume = 0, DontConsume = 1, } - #[repr(u8)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum SheetType { - Agent = 0, - User = 1, - PresHint = 2, - SVGAttrAnimation = 3, - Doc = 4, - ScopedDoc = 5, - StyleAttr = 6, - Override = 7, - Animation = 8, - Transition = 9, - Count = 10, - Unknown = 255, - } - /** - * EventStates is the class used to represent the event states of nsIContent - * instances. These states are calculated by IntrinsicState() and - * ContentStatesChanged() has to be called when one of them changes thus - * informing the layout/style engine of the change. - * Event states are associated with pseudo-classes. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct EventStates { - pub mStates: root::EventStates_InternalType, - } - pub type EventStates_InternalType = u64; - pub type EventStates_ServoType = u8; - #[test] - fn bindgen_test_layout_EventStates() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); - } - impl Clone for EventStates { - fn clone(&self) -> Self { *self } - } - pub const nsRestyleHint_eRestyle_Self: root::nsRestyleHint = - nsRestyleHint(1); - pub const nsRestyleHint_eRestyle_SomeDescendants: root::nsRestyleHint = - nsRestyleHint(2); - pub const nsRestyleHint_eRestyle_Subtree: root::nsRestyleHint = - nsRestyleHint(4); - pub const nsRestyleHint_eRestyle_LaterSiblings: root::nsRestyleHint = - nsRestyleHint(8); - pub const nsRestyleHint_eRestyle_CSSTransitions: root::nsRestyleHint = - nsRestyleHint(16); - pub const nsRestyleHint_eRestyle_CSSAnimations: root::nsRestyleHint = - nsRestyleHint(32); - pub const nsRestyleHint_eRestyle_SVGAttrAnimations: root::nsRestyleHint = - nsRestyleHint(64); - pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint = - nsRestyleHint(128); - pub const nsRestyleHint_eRestyle_StyleAttribute_Animations: - root::nsRestyleHint = - nsRestyleHint(256); - pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint = - nsRestyleHint(512); - pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint = - nsRestyleHint(1024); - pub const nsRestyleHint_eRestyle_AllHintsWithAnimations: - root::nsRestyleHint = - nsRestyleHint(368); - impl ::std::ops::BitOr for root::nsRestyleHint { - type - Output - = - Self; - #[inline] - fn bitor(self, other: Self) -> Self { - nsRestyleHint(self.0 | other.0) - } - } - #[repr(C)] - /** - * |nsRestyleHint| is a bitfield for the result of - * |HasStateDependentStyle| and |HasAttributeDependentStyle|. When no - * restyling is necessary, use |nsRestyleHint(0)|. - * - * Without eRestyle_Force or eRestyle_ForceDescendants, the restyling process - * can stop processing at a frame when it detects no style changes and it is - * known that the styles of the subtree beneath it will not change, leaving - * the old style context on the frame. eRestyle_Force can be used to skip this - * optimization on a frame, and to force its new style context to be used. - * - * Similarly, eRestyle_ForceDescendants will cause the frame and all of its - * descendants to be traversed and for the new style contexts that are created - * to be set on the frames. - * - * NOTE: When adding new restyle hints, please also add them to - * RestyleManager::RestyleHintToString. - */ - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub struct nsRestyleHint(pub u32); /** * Smart pointer class that can hold a pointer to either an nsStyleSet * or a ServoStyleSet. @@ -5088,20 +5020,27 @@ pub mod root { impl Clone for StyleSetHandle { fn clone(&self) -> Self { *self } } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCompatibility { - eCompatibility_FullStandards = 1, - eCompatibility_AlmostStandards = 2, - eCompatibility_NavQuirks = 3, + /** + * EventStates is the class used to represent the event states of nsIContent + * instances. These states are calculated by IntrinsicState() and + * ContentStatesChanged() has to be called when one of them changes thus + * informing the layout/style engine of the change. + * Event states are associated with pseudo-classes. + */ + #[repr(C)] + #[derive(Debug, Copy)] + pub struct EventStates { + pub mStates: root::EventStates_InternalType, } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum VisibilityState { - Hidden = 0, - Visible = 1, - Prerender = 2, - EndGuard_ = 3, + pub type EventStates_InternalType = u64; + pub type EventStates_ServoType = u8; + #[test] + fn bindgen_test_layout_EventStates() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); + } + impl Clone for EventStates { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug)] @@ -5148,7 +5087,7 @@ pub mod root { pub mCompatMode: root::nsCompatibility, pub mReadyState: root::nsIDocument_ReadyState, pub mStyleBackendType: root::StyleBackendType, - pub mVisibilityState: root::VisibilityState, + pub mVisibilityState: root::mozilla::dom::VisibilityState, pub _bitfield_1: u64, pub mType: root::nsIDocument_Type, pub mDefaultElementType: u8, @@ -6343,6 +6282,12 @@ pub mod root { impl Clone for nsIControllers { fn clone(&self) -> Self { *self } } + #[repr(u8)] + /** + * Enumeration that represents one of the two supported style system backends. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub enum StyleBackendType { Gecko = 1, Servo = 2, } pub const nsChangeHint_nsChangeHint_Empty: root::nsChangeHint = nsChangeHint(0); pub const nsChangeHint_nsChangeHint_RepaintFrame: root::nsChangeHint = @@ -6431,49 +6376,71 @@ pub mod root { #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub struct nsChangeHint(pub u32); - /** - * Smart pointer class that can hold a pointer to either a RestyleManager - * or a ServoRestyleManager. - */ - #[repr(C)] - #[derive(Debug, Copy)] - pub struct RestyleManagerHandle { - pub mPtr: root::RestyleManagerHandle_Ptr, + pub const nsRestyleHint_eRestyle_Self: root::nsRestyleHint = + nsRestyleHint(1); + pub const nsRestyleHint_eRestyle_SomeDescendants: root::nsRestyleHint = + nsRestyleHint(2); + pub const nsRestyleHint_eRestyle_Subtree: root::nsRestyleHint = + nsRestyleHint(4); + pub const nsRestyleHint_eRestyle_LaterSiblings: root::nsRestyleHint = + nsRestyleHint(8); + pub const nsRestyleHint_eRestyle_CSSTransitions: root::nsRestyleHint = + nsRestyleHint(16); + pub const nsRestyleHint_eRestyle_CSSAnimations: root::nsRestyleHint = + nsRestyleHint(32); + pub const nsRestyleHint_eRestyle_SVGAttrAnimations: root::nsRestyleHint = + nsRestyleHint(64); + pub const nsRestyleHint_eRestyle_StyleAttribute: root::nsRestyleHint = + nsRestyleHint(128); + pub const nsRestyleHint_eRestyle_StyleAttribute_Animations: + root::nsRestyleHint = + nsRestyleHint(256); + pub const nsRestyleHint_eRestyle_Force: root::nsRestyleHint = + nsRestyleHint(512); + pub const nsRestyleHint_eRestyle_ForceDescendants: root::nsRestyleHint = + nsRestyleHint(1024); + pub const nsRestyleHint_eRestyle_AllHintsWithAnimations: + root::nsRestyleHint = + nsRestyleHint(368); + impl ::std::ops::BitOr for root::nsRestyleHint { + type + Output + = + Self; + #[inline] + fn bitor(self, other: Self) -> Self { + nsRestyleHint(self.0 | other.0) + } } - pub type RestyleManagerHandle_RefPtr = - root::mozilla::HandleRefPtr; #[repr(C)] - #[derive(Debug, Copy)] - pub struct RestyleManagerHandle_Ptr { - pub mValue: usize, - } - #[test] - fn bindgen_test_layout_RestyleManagerHandle_Ptr() { - assert_eq!(::std::mem::size_of::() , - 8usize); - assert_eq!(::std::mem::align_of::() , - 8usize); - } - impl Clone for RestyleManagerHandle_Ptr { - fn clone(&self) -> Self { *self } - } - #[test] - fn bindgen_test_layout_RestyleManagerHandle() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); - } - impl Clone for RestyleManagerHandle { - fn clone(&self) -> Self { *self } - } - pub type nscolor = u32; + /** + * |nsRestyleHint| is a bitfield for the result of + * |HasStateDependentStyle| and |HasAttributeDependentStyle|. When no + * restyling is necessary, use |nsRestyleHint(0)|. + * + * Without eRestyle_Force or eRestyle_ForceDescendants, the restyling process + * can stop processing at a frame when it detects no style changes and it is + * known that the styles of the subtree beneath it will not change, leaving + * the old style context on the frame. eRestyle_Force can be used to skip this + * optimization on a frame, and to force its new style context to be used. + * + * Similarly, eRestyle_ForceDescendants will cause the frame and all of its + * descendants to be traversed and for the new style contexts that are created + * to be set on the frames. + * + * NOTE: When adding new restyle hints, please also add them to + * RestyleManager::RestyleHintToString. + */ + #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] + pub struct nsRestyleHint(pub u32); #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum Side { - eSideTop = 0, - eSideRight = 1, - eSideBottom = 2, - eSideLeft = 3, + pub enum nsCompatibility { + eCompatibility_FullStandards = 1, + eCompatibility_AlmostStandards = 2, + eCompatibility_NavQuirks = 3, } + pub type nscolor = u32; #[repr(C)] #[derive(Debug)] pub struct nsPresContext { @@ -6489,7 +6456,7 @@ pub mod root { pub mEffectCompositor: root::RefPtr, pub mTransitionManager: root::RefPtr, pub mAnimationManager: root::RefPtr, - pub mRestyleManager: root::RestyleManagerHandle_RefPtr, + pub mRestyleManager: root::mozilla::RestyleManagerHandle_RefPtr, pub mCounterStyleManager: root::RefPtr, pub mMedium: *mut root::nsIAtom, pub mMediaEmulated: root::nsCOMPtr, @@ -7308,15 +7275,9 @@ pub mod root { #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum PLDHashTable_SearchReason { ForSearchOrRemove = 0, ForAdd = 1, } - extern "C" { - #[link_name = "_ZN12PLDHashTable12kMaxCapacityE"] - pub static PLDHashTable_kMaxCapacity: u32; - } + pub const PLDHashTable_kMaxCapacity: u32 = 67108864; pub const PLDHashTable_kMinCapacity: u32 = 8; - extern "C" { - #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] - pub static PLDHashTable_kMaxInitialLength: u32; - } + pub const PLDHashTable_kMaxInitialLength: u32 = 33554432; pub const PLDHashTable_kDefaultInitialLength: u32 = 4; pub const PLDHashTable_kHashBits: u32 = 32; pub const PLDHashTable_kGoldenRatio: u32 = 2654435769; @@ -8693,63 +8654,63 @@ pub mod root { impl Clone for nsDOMMutationObserver { fn clone(&self) -> Self { *self } } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_IS_EDITABLE; - pub const NODE_MAY_HAVE_CLASS: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_MAY_HAVE_CLASS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_SHARED_RESTYLE_BIT_1; - pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_SHARED_RESTYLE_BIT_2; - pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_SHARED_RESTYLE_BIT_1; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_133 = - _bindgen_ty_133::NODE_TYPE_SPECIFIC_BITS_OFFSET; + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_IS_EDITABLE; + pub const NODE_MAY_HAVE_CLASS: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_MAY_HAVE_CLASS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_SHARED_RESTYLE_BIT_1; + pub const NODE_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_SHARED_RESTYLE_BIT_2; + pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_SHARED_RESTYLE_BIT_1; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_136 = + _bindgen_ty_136::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_133 { + pub enum _bindgen_ty_136 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -11401,7 +11362,7 @@ pub mod root { pub mSheetPrincipal: root::nsCOMPtr, pub mLineNumber: u32, pub mLineOffset: u32, - pub mLevel: root::SheetType, + pub mLevel: root::mozilla::SheetType, } pub type nsCSSValueTokenStream_HasThreadSafeRefCnt = root::mozilla::FalseType; @@ -11919,7 +11880,7 @@ pub mod root { assert_eq!(::std::mem::align_of::() , 8usize); } #[test] - fn __bindgen_test_layout_template_9() { + fn __bindgen_test_layout_template_8() { assert_eq!(::std::mem::size_of::>>() , 8usize); @@ -12716,7 +12677,7 @@ pub mod root { #[derive(Debug, Copy)] pub struct nsStyleContentData__bindgen_ty_1 { pub mString: root::__BindgenUnionField<*mut u16>, - pub mImage: root::__BindgenUnionField<*mut root::imgRequestProxy>, + pub mImage: root::__BindgenUnionField<*mut root::nsStyleImageRequest>, pub mCounters: root::__BindgenUnionField<*mut root::nsCSSValue_Array>, pub bindgen_union_field: u64, } @@ -13098,201 +13059,173 @@ pub mod root { root::nsMainThreadPtrHolder; pub type ThreadSafeURIHolder = root::nsMainThreadPtrHolder; #[test] - fn __bindgen_test_layout_template_10() { + fn __bindgen_test_layout_template_9() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_11() { + fn __bindgen_test_layout_template_10() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_12() { + fn __bindgen_test_layout_template_11() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_13() { - assert_eq!(::std::mem::size_of::>() , - 8usize); - assert_eq!(::std::mem::align_of::>() , - 8usize); - } - #[test] - fn __bindgen_test_layout_template_14() { + fn __bindgen_test_layout_template_12() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_15() { - assert_eq!(::std::mem::size_of::>>() - , 8usize); - assert_eq!(::std::mem::align_of::>>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_16() { + fn __bindgen_test_layout_template_13() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_17() { + fn __bindgen_test_layout_template_14() { assert_eq!(::std::mem::size_of::>>() , 8usize); assert_eq!(::std::mem::align_of::>>() , 8usize); } #[test] - fn __bindgen_test_layout_template_18() { + fn __bindgen_test_layout_template_15() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_19() { - assert_eq!(::std::mem::size_of::>>() - , 8usize); - assert_eq!(::std::mem::align_of::>>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_20() { + fn __bindgen_test_layout_template_16() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_21() { + fn __bindgen_test_layout_template_17() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_22() { + fn __bindgen_test_layout_template_18() { + assert_eq!(::std::mem::size_of::>() , + 8usize); + assert_eq!(::std::mem::align_of::>() , + 8usize); + } + #[test] + fn __bindgen_test_layout_template_19() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_23() { + fn __bindgen_test_layout_template_20() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_24() { + fn __bindgen_test_layout_template_21() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_25() { + fn __bindgen_test_layout_template_22() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_26() { + fn __bindgen_test_layout_template_23() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_27() { + fn __bindgen_test_layout_template_24() { assert_eq!(::std::mem::size_of::>>() , 8usize); assert_eq!(::std::mem::align_of::>>() , 8usize); } #[test] - fn __bindgen_test_layout_template_28() { + fn __bindgen_test_layout_template_25() { assert_eq!(::std::mem::size_of::>() , 24usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_29() { + fn __bindgen_test_layout_template_26() { assert_eq!(::std::mem::size_of::>() , 24usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_30() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_31() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_32() { - assert_eq!(::std::mem::size_of::>() - , 8usize); - assert_eq!(::std::mem::align_of::>() - , 8usize); - } - #[test] - fn __bindgen_test_layout_template_33() { + fn __bindgen_test_layout_template_27() { assert_eq!(::std::mem::size_of::>() , 16usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_34() { + fn __bindgen_test_layout_template_28() { assert_eq!(::std::mem::size_of::>() , 8usize); assert_eq!(::std::mem::align_of::>() , 8usize); } #[test] - fn __bindgen_test_layout_template_35() { + fn __bindgen_test_layout_template_29() { + assert_eq!(::std::mem::size_of::>() + , 8usize); + assert_eq!(::std::mem::align_of::>() + , 8usize); + } + #[test] + fn __bindgen_test_layout_template_30() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_36() { + fn __bindgen_test_layout_template_31() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_37() { + fn __bindgen_test_layout_template_32() { assert_eq!(::std::mem::size_of::>() , 1usize); assert_eq!(::std::mem::align_of::>() , 1usize); } #[test] - fn __bindgen_test_layout_template_38() { + fn __bindgen_test_layout_template_33() { assert_eq!(::std::mem::size_of::>() , 32usize); assert_eq!(::std::mem::align_of::>()