Auto merge of #14905 - heycam:content, r=Manishearth

stylo: support content property

This is the Servo-side of https://bugzilla.mozilla.org/show_bug.cgi?id=1315155, which @Manishearth has already reviewed.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14905)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-01-07 17:56:17 -08:00 committed by GitHub
commit 5d796a5453
3 changed files with 560 additions and 709 deletions

View file

@ -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::<ThreadSafeAutoRefCnt>() ,
@ -1367,13 +1364,6 @@ pub mod root {
assert_eq!(::std::mem::size_of::<EventTarget>() , 32usize);
assert_eq!(::std::mem::align_of::<EventTarget>() , 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::<Element>() , 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<T> {
pub mStorage: root::mozilla::AlignedStorage2<T>,
}
#[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::<DOMRect>() , 96usize);
assert_eq!(::std::mem::align_of::<DOMRect>() , 8usize);
}
#[test]
fn __bindgen_test_layout_template_1() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 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<T> {
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<root::mozilla::RestyleManagerHandle>;
#[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::<RestyleManagerHandle_Ptr>() ,
8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle_Ptr>() ,
8usize);
}
impl Clone for RestyleManagerHandle_Ptr {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_RestyleManagerHandle() {
assert_eq!(::std::mem::size_of::<RestyleManagerHandle>() ,
8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle>() ,
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::<root::mozilla::DefaultDelete<root::RawServoStyleSet>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::RawServoStyleSet>>()
@ -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::<root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>>()
, 16usize);
assert_eq!(::std::mem::align_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_4() {
fn __bindgen_test_layout_template_3() {
assert_eq!(::std::mem::size_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>>()
, 16usize);
assert_eq!(::std::mem::align_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>>()
@ -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::<root::mozilla::UniquePtr<*mut ::std::os::raw::c_char,
root::JS::FreePolicy>>()
, 8usize);
@ -4387,13 +4426,13 @@ pub mod root {
pub _phantom_0: ::std::marker::PhantomData<CharT>,
}
#[test]
fn __bindgen_test_layout_template_6() {
fn __bindgen_test_layout_template_5() {
assert_eq!(::std::mem::size_of::<root::nsCharTraits<u16>>() , 1usize);
assert_eq!(::std::mem::align_of::<root::nsCharTraits<u16>>() ,
1usize);
}
#[test]
fn __bindgen_test_layout_template_7() {
fn __bindgen_test_layout_template_6() {
assert_eq!(::std::mem::size_of::<root::nsCharTraits<::std::os::raw::c_char>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::nsCharTraits<::std::os::raw::c_char>>()
@ -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::<nsAutoRefCnt>() , 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::<root::nsCOMPtr<root::nsISupports>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsISupports>>()
@ -4984,110 +5020,6 @@ pub mod root {
assert_eq!(::std::mem::size_of::<nsPIDOMWindowInner>() , 232usize);
assert_eq!(::std::mem::align_of::<nsPIDOMWindowInner>() , 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::<EventStates>() , 8usize);
assert_eq!(::std::mem::align_of::<EventStates>() , 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<root::nsRestyleHint> 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::<EventStates>() , 8usize);
assert_eq!(::std::mem::align_of::<EventStates>() , 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);
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<root::nsRestyleHint> for root::nsRestyleHint {
type
Output
=
Self;
#[inline]
fn bitor(self, other: Self) -> Self {
nsRestyleHint(self.0 | other.0)
}
}
#[repr(C)]
/**
* Smart pointer class that can hold a pointer to either a RestyleManager
* or a ServoRestyleManager.
* |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.
*/
#[repr(C)]
#[derive(Debug, Copy)]
pub struct RestyleManagerHandle {
pub mPtr: root::RestyleManagerHandle_Ptr,
}
pub type RestyleManagerHandle_RefPtr =
root::mozilla::HandleRefPtr<root::RestyleManagerHandle>;
#[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::<RestyleManagerHandle_Ptr>() ,
8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle_Ptr>() ,
8usize);
}
impl Clone for RestyleManagerHandle_Ptr {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_RestyleManagerHandle() {
assert_eq!(::std::mem::size_of::<RestyleManagerHandle>() , 8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle>() , 8usize);
}
impl Clone for RestyleManagerHandle {
fn clone(&self) -> Self { *self }
}
pub type nscolor = u32;
#[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<root::mozilla::EffectCompositor>,
pub mTransitionManager: root::RefPtr<root::nsTransitionManager>,
pub mAnimationManager: root::RefPtr<root::nsAnimationManager>,
pub mRestyleManager: root::RestyleManagerHandle_RefPtr,
pub mRestyleManager: root::mozilla::RestyleManagerHandle_RefPtr,
pub mCounterStyleManager: root::RefPtr<root::mozilla::CounterStyleManager>,
pub mMedium: *mut root::nsIAtom,
pub mMediaEmulated: root::nsCOMPtr<root::nsIAtom>,
@ -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<root::nsIPrincipal>,
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::<CachedBorderImageData>() , 8usize);
}
#[test]
fn __bindgen_test_layout_template_9() {
fn __bindgen_test_layout_template_8() {
assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides,
root::mozilla::DefaultDelete<root::nsStyleSides>>>()
, 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::<nsStyleContentData>() , 24usize);
assert_eq!(::std::mem::size_of::<nsStyleContentData>() , 16usize);
assert_eq!(::std::mem::align_of::<nsStyleContentData>() , 8usize);
}
#[repr(C)]
@ -13172,201 +13132,173 @@ pub mod root {
root::nsMainThreadPtrHolder<root::nsIPrincipal>;
pub type ThreadSafeURIHolder = root::nsMainThreadPtrHolder<root::nsIURI>;
#[test]
fn __bindgen_test_layout_template_10() {
fn __bindgen_test_layout_template_9() {
assert_eq!(::std::mem::size_of::<root::JS::TenuredHeap<*mut root::JSObject>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::JS::TenuredHeap<*mut root::JSObject>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_11() {
fn __bindgen_test_layout_template_10() {
assert_eq!(::std::mem::size_of::<root::JS::Heap<*mut root::JSObject>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::JS::Heap<*mut root::JSObject>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_12() {
fn __bindgen_test_layout_template_11() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCString>>() ,
8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::nsCString>>() ,
8usize);
}
#[test]
fn __bindgen_test_layout_template_13() {
assert_eq!(::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
}
#[test]
fn __bindgen_test_layout_template_14() {
fn __bindgen_test_layout_template_12() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIPrincipal>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIPrincipal>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_15() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_16() {
fn __bindgen_test_layout_template_13() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Element>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Element>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_17() {
fn __bindgen_test_layout_template_14() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::Element>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::Element>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_18() {
fn __bindgen_test_layout_template_15() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIObserver>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIObserver>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_19() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCOMPtr<root::nsIObserver>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::nsCOMPtr<root::nsIObserver>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_20() {
fn __bindgen_test_layout_template_16() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIWeakReference>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIWeakReference>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_21() {
fn __bindgen_test_layout_template_17() {
assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<*mut root::nsIContent>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_22() {
fn __bindgen_test_layout_template_18() {
assert_eq!(::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
}
#[test]
fn __bindgen_test_layout_template_19() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::mozilla::dom::TimeoutManager>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::mozilla::dom::TimeoutManager>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_23() {
fn __bindgen_test_layout_template_20() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIRunnable>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIRunnable>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_24() {
fn __bindgen_test_layout_template_21() {
assert_eq!(::std::mem::size_of::<root::mozilla::OwningNonNull<root::nsINode>>()
, 16usize);
assert_eq!(::std::mem::align_of::<root::mozilla::OwningNonNull<root::nsINode>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_25() {
fn __bindgen_test_layout_template_22() {
assert_eq!(::std::mem::size_of::<root::nsTArray<f64>>() , 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<f64>>() , 8usize);
}
#[test]
fn __bindgen_test_layout_template_26() {
fn __bindgen_test_layout_template_23() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_27() {
fn __bindgen_test_layout_template_24() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_28() {
fn __bindgen_test_layout_template_25() {
assert_eq!(::std::mem::size_of::<root::nsMainThreadPtrHolder<root::nsIURI>>()
, 24usize);
assert_eq!(::std::mem::align_of::<root::nsMainThreadPtrHolder<root::nsIURI>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_29() {
fn __bindgen_test_layout_template_26() {
assert_eq!(::std::mem::size_of::<root::nsMainThreadPtrHolder<root::nsIPrincipal>>()
, 24usize);
assert_eq!(::std::mem::align_of::<root::nsMainThreadPtrHolder<root::nsIPrincipal>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_30() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FontFamilyName>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::mozilla::FontFamilyName>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_31() {
assert_eq!(::std::mem::size_of::<root::nsTArray<::std::os::raw::c_uint>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<::std::os::raw::c_uint>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_32() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FramePropertyTable_PropertyValue>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::mozilla::FramePropertyTable_PropertyValue>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_33() {
fn __bindgen_test_layout_template_27() {
assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::nsIFrame>>()
, 16usize);
assert_eq!(::std::mem::align_of::<root::nsPtrHashKey<root::nsIFrame>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_34() {
fn __bindgen_test_layout_template_28() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::DisplayItemClip_RoundedRect>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::mozilla::DisplayItemClip_RoundedRect>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_35() {
fn __bindgen_test_layout_template_29() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_30() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::ProxyBehaviour>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::ProxyBehaviour>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_36() {
fn __bindgen_test_layout_template_31() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::nsStyleSides>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::nsStyleSides>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_37() {
fn __bindgen_test_layout_template_32() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::CachedBorderImageData>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::CachedBorderImageData>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_38() {
fn __bindgen_test_layout_template_33() {
assert_eq!(::std::mem::size_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>()
, 32usize);
assert_eq!(::std::mem::align_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>()

View file

@ -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::<ThreadSafeAutoRefCnt>() ,
@ -1362,13 +1359,6 @@ pub mod root {
assert_eq!(::std::mem::size_of::<EventTarget>() , 32usize);
assert_eq!(::std::mem::align_of::<EventTarget>() , 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::<Element>() , 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<T> {
pub mStorage: root::mozilla::AlignedStorage2<T>,
}
#[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::<DOMRect>() , 88usize);
assert_eq!(::std::mem::align_of::<DOMRect>() , 8usize);
}
#[test]
fn __bindgen_test_layout_template_1() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 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<T> {
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<root::mozilla::RestyleManagerHandle>;
#[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::<RestyleManagerHandle_Ptr>() ,
8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle_Ptr>() ,
8usize);
}
impl Clone for RestyleManagerHandle_Ptr {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_RestyleManagerHandle() {
assert_eq!(::std::mem::size_of::<RestyleManagerHandle>() ,
8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle>() ,
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::<root::mozilla::DefaultDelete<root::RawServoStyleSet>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::RawServoStyleSet>>()
@ -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::<root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>>()
, 16usize);
assert_eq!(::std::mem::align_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_4() {
fn __bindgen_test_layout_template_3() {
assert_eq!(::std::mem::size_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>>()
, 16usize);
assert_eq!(::std::mem::align_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>>()
@ -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::<root::mozilla::UniquePtr<*mut ::std::os::raw::c_char,
root::JS::FreePolicy>>()
, 8usize);
@ -4360,13 +4399,13 @@ pub mod root {
pub _phantom_0: ::std::marker::PhantomData<CharT>,
}
#[test]
fn __bindgen_test_layout_template_6() {
fn __bindgen_test_layout_template_5() {
assert_eq!(::std::mem::size_of::<root::nsCharTraits<u16>>() , 1usize);
assert_eq!(::std::mem::align_of::<root::nsCharTraits<u16>>() ,
1usize);
}
#[test]
fn __bindgen_test_layout_template_7() {
fn __bindgen_test_layout_template_6() {
assert_eq!(::std::mem::size_of::<root::nsCharTraits<::std::os::raw::c_char>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::nsCharTraits<::std::os::raw::c_char>>()
@ -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::<nsAutoRefCnt>() , 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::<root::nsCOMPtr<root::nsISupports>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsISupports>>()
@ -4954,110 +4990,6 @@ pub mod root {
assert_eq!(::std::mem::size_of::<nsPIDOMWindowInner>() , 224usize);
assert_eq!(::std::mem::align_of::<nsPIDOMWindowInner>() , 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::<EventStates>() , 8usize);
assert_eq!(::std::mem::align_of::<EventStates>() , 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<root::nsRestyleHint> 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::<EventStates>() , 8usize);
assert_eq!(::std::mem::align_of::<EventStates>() , 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);
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<root::nsRestyleHint> for root::nsRestyleHint {
type
Output
=
Self;
#[inline]
fn bitor(self, other: Self) -> Self {
nsRestyleHint(self.0 | other.0)
}
}
#[repr(C)]
/**
* Smart pointer class that can hold a pointer to either a RestyleManager
* or a ServoRestyleManager.
* |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.
*/
#[repr(C)]
#[derive(Debug, Copy)]
pub struct RestyleManagerHandle {
pub mPtr: root::RestyleManagerHandle_Ptr,
}
pub type RestyleManagerHandle_RefPtr =
root::mozilla::HandleRefPtr<root::RestyleManagerHandle>;
#[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::<RestyleManagerHandle_Ptr>() ,
8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle_Ptr>() ,
8usize);
}
impl Clone for RestyleManagerHandle_Ptr {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_RestyleManagerHandle() {
assert_eq!(::std::mem::size_of::<RestyleManagerHandle>() , 8usize);
assert_eq!(::std::mem::align_of::<RestyleManagerHandle>() , 8usize);
}
impl Clone for RestyleManagerHandle {
fn clone(&self) -> Self { *self }
}
pub type nscolor = u32;
#[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<root::mozilla::EffectCompositor>,
pub mTransitionManager: root::RefPtr<root::nsTransitionManager>,
pub mAnimationManager: root::RefPtr<root::nsAnimationManager>,
pub mRestyleManager: root::RestyleManagerHandle_RefPtr,
pub mRestyleManager: root::mozilla::RestyleManagerHandle_RefPtr,
pub mCounterStyleManager: root::RefPtr<root::mozilla::CounterStyleManager>,
pub mMedium: *mut root::nsIAtom,
pub mMediaEmulated: root::nsCOMPtr<root::nsIAtom>,
@ -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<root::nsIPrincipal>,
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::<CachedBorderImageData>() , 8usize);
}
#[test]
fn __bindgen_test_layout_template_9() {
fn __bindgen_test_layout_template_8() {
assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides,
root::mozilla::DefaultDelete<root::nsStyleSides>>>()
, 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<root::nsIPrincipal>;
pub type ThreadSafeURIHolder = root::nsMainThreadPtrHolder<root::nsIURI>;
#[test]
fn __bindgen_test_layout_template_10() {
fn __bindgen_test_layout_template_9() {
assert_eq!(::std::mem::size_of::<root::JS::TenuredHeap<*mut root::JSObject>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::JS::TenuredHeap<*mut root::JSObject>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_11() {
fn __bindgen_test_layout_template_10() {
assert_eq!(::std::mem::size_of::<root::JS::Heap<*mut root::JSObject>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::JS::Heap<*mut root::JSObject>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_12() {
fn __bindgen_test_layout_template_11() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCString>>() ,
8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::nsCString>>() ,
8usize);
}
#[test]
fn __bindgen_test_layout_template_13() {
assert_eq!(::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
}
#[test]
fn __bindgen_test_layout_template_14() {
fn __bindgen_test_layout_template_12() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIPrincipal>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIPrincipal>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_15() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_16() {
fn __bindgen_test_layout_template_13() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Element>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Element>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_17() {
fn __bindgen_test_layout_template_14() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::Element>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::Element>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_18() {
fn __bindgen_test_layout_template_15() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIObserver>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIObserver>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_19() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCOMPtr<root::nsIObserver>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::nsCOMPtr<root::nsIObserver>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_20() {
fn __bindgen_test_layout_template_16() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIWeakReference>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIWeakReference>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_21() {
fn __bindgen_test_layout_template_17() {
assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<*mut root::nsIContent>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_22() {
fn __bindgen_test_layout_template_18() {
assert_eq!(::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>() ,
8usize);
}
#[test]
fn __bindgen_test_layout_template_19() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::mozilla::dom::TimeoutManager>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::mozilla::dom::TimeoutManager>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_23() {
fn __bindgen_test_layout_template_20() {
assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIRunnable>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsCOMPtr<root::nsIRunnable>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_24() {
fn __bindgen_test_layout_template_21() {
assert_eq!(::std::mem::size_of::<root::mozilla::OwningNonNull<root::nsINode>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::mozilla::OwningNonNull<root::nsINode>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_25() {
fn __bindgen_test_layout_template_22() {
assert_eq!(::std::mem::size_of::<root::nsTArray<f64>>() , 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<f64>>() , 8usize);
}
#[test]
fn __bindgen_test_layout_template_26() {
fn __bindgen_test_layout_template_23() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_27() {
fn __bindgen_test_layout_template_24() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_28() {
fn __bindgen_test_layout_template_25() {
assert_eq!(::std::mem::size_of::<root::nsMainThreadPtrHolder<root::nsIURI>>()
, 24usize);
assert_eq!(::std::mem::align_of::<root::nsMainThreadPtrHolder<root::nsIURI>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_29() {
fn __bindgen_test_layout_template_26() {
assert_eq!(::std::mem::size_of::<root::nsMainThreadPtrHolder<root::nsIPrincipal>>()
, 24usize);
assert_eq!(::std::mem::align_of::<root::nsMainThreadPtrHolder<root::nsIPrincipal>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_30() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FontFamilyName>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::mozilla::FontFamilyName>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_31() {
assert_eq!(::std::mem::size_of::<root::nsTArray<::std::os::raw::c_uint>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<::std::os::raw::c_uint>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_32() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FramePropertyTable_PropertyValue>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::mozilla::FramePropertyTable_PropertyValue>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_33() {
fn __bindgen_test_layout_template_27() {
assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::nsIFrame>>()
, 16usize);
assert_eq!(::std::mem::align_of::<root::nsPtrHashKey<root::nsIFrame>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_34() {
fn __bindgen_test_layout_template_28() {
assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::DisplayItemClip_RoundedRect>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::nsTArray<root::mozilla::DisplayItemClip_RoundedRect>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_35() {
fn __bindgen_test_layout_template_29() {
assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 8usize);
assert_eq!(::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMRect>>()
, 8usize);
}
#[test]
fn __bindgen_test_layout_template_30() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::ProxyBehaviour>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::ProxyBehaviour>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_36() {
fn __bindgen_test_layout_template_31() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::nsStyleSides>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::nsStyleSides>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_37() {
fn __bindgen_test_layout_template_32() {
assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete<root::CachedBorderImageData>>()
, 1usize);
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::CachedBorderImageData>>()
, 1usize);
}
#[test]
fn __bindgen_test_layout_template_38() {
fn __bindgen_test_layout_template_33() {
assert_eq!(::std::mem::size_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>()
, 32usize);
assert_eq!(::std::mem::align_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>()

View file

@ -2508,7 +2508,6 @@ clip-path
pub fn set_content(&mut self, v: longhands::content::computed_value::T) {
use properties::longhands::content::computed_value::T;
use properties::longhands::content::computed_value::ContentItem;
use gecko_bindings::structs::nsStyleContentData;
use gecko_bindings::structs::nsStyleContentType::*;
use gecko_bindings::bindings::Gecko_ClearStyleContents;
@ -2522,16 +2521,6 @@ clip-path
ptr
}
#[inline(always)]
#[cfg(debug_assertions)]
fn set_image_tracked(contents: &mut nsStyleContentData, val: bool) {
contents.mImageTracked = val;
}
#[inline(always)]
#[cfg(not(debug_assertions))]
fn set_image_tracked(_contents: &mut nsStyleContentData, _val: bool) {}
// Ensure destructors run, otherwise we could leak.
if !self.gecko.mContents.is_empty() {
unsafe {
@ -2546,10 +2535,7 @@ clip-path
// NB: set_len also reserves the appropriate space.
unsafe { self.gecko.mContents.set_len(items.len() as u32) }
for (i, item) in items.into_iter().enumerate() {
// TODO: Servo lacks support for attr(), and URIs,
// We don't support images, but need to remember to
// explicitly initialize mImageTracked in debug builds.
set_image_tracked(&mut self.gecko.mContents[i], false);
// TODO: Servo lacks support for attr(), and URIs.
// NB: Gecko compares the mString value if type is not image
// or URI independently of whatever gets there. In the quote
// cases, they set it to null, so do the same here.