From 605c2e0100f6888336d6419f7214dafc0cfa7b4f Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Wed, 19 Oct 2016 12:19:41 +0800 Subject: [PATCH] Regenerate bindings. --- components/style/binding_tools/regen.py | 1 + .../style/gecko_bindings/structs_debug.rs | 1517 ++++++++--------- .../style/gecko_bindings/structs_release.rs | 1465 +++++++--------- .../style/gecko_string_cache/atom_macro.rs | 88 +- 4 files changed, 1341 insertions(+), 1730 deletions(-) diff --git a/components/style/binding_tools/regen.py b/components/style/binding_tools/regen.py index 3c2fbccb8b0..48fe2fe23fc 100755 --- a/components/style/binding_tools/regen.py +++ b/components/style/binding_tools/regen.py @@ -118,6 +118,7 @@ COMPILATION_TARGETS = { "nsCSSValuePairList_heap", "nsCSSValueTokenStream", "nsCSSValueTriplet_heap", + "nsCursorImage", "nsFont", "nsIAtom", "nsMainThreadPtrHandle", diff --git a/components/style/gecko_bindings/structs_debug.rs b/components/style/gecko_bindings/structs_debug.rs index 0a3fad909e7..e3388d438a6 100644 --- a/components/style/gecko_bindings/structs_debug.rs +++ b/components/style/gecko_bindings/structs_debug.rs @@ -229,6 +229,9 @@ pub const NS_THEME_MAC_DISCLOSURE_BUTTON_OPEN: ::std::os::raw::c_uint = 245; pub const NS_THEME_MAC_DISCLOSURE_BUTTON_CLOSED: ::std::os::raw::c_uint = 246; pub const NS_THEME_GTK_INFO_BAR: ::std::os::raw::c_uint = 247; pub const NS_THEME_MAC_SOURCE_LIST: ::std::os::raw::c_uint = 248; +pub const NS_THEME_MAC_SOURCE_LIST_SELECTION: ::std::os::raw::c_uint = 249; +pub const NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION: ::std::os::raw::c_uint = + 250; pub const NS_FONT_VARIANT_NORMAL: ::std::os::raw::c_uint = 0; pub const NS_FONT_VARIANT_SMALL_CAPS: ::std::os::raw::c_uint = 1; pub const NS_CORNER_TOP_LEFT_X: ::std::os::raw::c_uint = 0; @@ -1457,27 +1460,6 @@ pub struct AlignedStorage2_U { pub bindgen_union_field: u64, pub _phantom_0: ::std::marker::PhantomData, } -/** - * Pair is the logical concatenation of an instance of A with an instance B. - * Space is conserved when possible. Neither A nor B may be a final class. - * - * It's typically clearer to have individual A and B member fields. Except if - * you want the space-conserving qualities of Pair, you're probably better off - * not using this! - * - * No guarantees are provided about the memory layout of A and B, the order of - * initialization or destruction of A and B, and so on. (This is approximately - * required to optimize space usage.) The first/second names are merely - * conceptual! - */ -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Pair { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -pub type Pair_Base = [u8; 0usize]; /** * A default deletion policy using plain old operator delete. * @@ -1547,86 +1529,15 @@ impl Clone for JSObject { #[repr(C)] #[derive(Debug, Copy)] pub struct Value { - pub data: jsval_layout, -} -#[test] -fn bindgen_test_layout_Value() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for Value { - fn clone(&self) -> Self { *self } + pub data: Value__bindgen_ty_bindgen_id_54313, } +pub type Value_PayloadType = u64; #[repr(C)] #[derive(Debug, Copy)] -pub struct JSCompartment { - pub _address: u8, -} -impl Clone for JSCompartment { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct atomic<_Tp> { - pub _base: (), - pub _phantom_0: ::std::marker::PhantomData<_Tp>, -} -pub type atomic___base = [u8; 0usize]; -#[repr(C)] -#[derive(Debug, Copy)] -pub struct FreePolicy { - pub _address: u8, -} -#[test] -fn bindgen_test_layout_FreePolicy() { - assert_eq!(::std::mem::size_of::() , 1usize); - assert_eq!(::std::mem::align_of::() , 1usize); -} -impl Clone for FreePolicy { - fn clone(&self) -> Self { *self } -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum JSValueTag { - JSVAL_TAG_MAX_DOUBLE = 131056, - JSVAL_TAG_INT32 = 131057, - JSVAL_TAG_UNDEFINED = 131058, - JSVAL_TAG_STRING = 131061, - JSVAL_TAG_SYMBOL = 131062, - JSVAL_TAG_BOOLEAN = 131059, - JSVAL_TAG_MAGIC = 131060, - JSVAL_TAG_NULL = 131064, - JSVAL_TAG_OBJECT = 131068, - JSVAL_TAG_PRIVATE_GCTHING = 131063, -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum JSWhyMagic { - JS_ELEMENTS_HOLE = 0, - JS_NO_ITER_VALUE = 1, - JS_GENERATOR_CLOSING = 2, - JS_NO_CONSTANT = 3, - JS_THIS_POISON = 4, - JS_ARG_POISON = 5, - JS_SERIALIZE_NO_NODE = 6, - JS_LAZY_ARGUMENTS = 7, - JS_OPTIMIZED_ARGUMENTS = 8, - JS_IS_CONSTRUCTING = 9, - JS_BLOCK_NEEDS_CLONE = 10, - JS_HASH_KEY_EMPTY = 11, - JS_ION_ERROR = 12, - JS_ION_BAILOUT = 13, - JS_OPTIMIZED_OUT = 14, - JS_UNINITIALIZED_LEXICAL = 15, - JS_GENERIC_MAGIC = 16, - JS_WHY_MAGIC_COUNT = 17, -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct jsval_layout { +pub struct Value__bindgen_ty_bindgen_id_54313 { pub asBits: __BindgenUnionField, - pub debugView: __BindgenUnionField, - pub s: __BindgenUnionField, + pub debugView: __BindgenUnionField, + pub s: __BindgenUnionField, pub asDouble: __BindgenUnionField, pub asPtr: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub asWord: __BindgenUnionField, @@ -1635,20 +1546,21 @@ pub struct jsval_layout { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_62698 { +pub struct Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54316 { pub _bitfield_1: u64, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_62698() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54316() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_62698 { +impl Clone for Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54316 + { fn clone(&self) -> Self { *self } } -impl jsval_layout__bindgen_ty_bindgen_id_62698 { +impl Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54316 { #[inline] pub fn payload47(&self) -> u64 { unsafe { @@ -1681,41 +1593,102 @@ impl jsval_layout__bindgen_ty_bindgen_id_62698 { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_62705 { - pub payload: jsval_layout__bindgen_ty_bindgen_id_62705__bindgen_ty_bindgen_id_62706, +pub struct Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54322 { + pub payload: Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54322__bindgen_ty_bindgen_id_54323, } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_62705__bindgen_ty_bindgen_id_62706 { +pub struct Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54322__bindgen_ty_bindgen_id_54323 { pub i32: __BindgenUnionField, pub u32: __BindgenUnionField, pub why: __BindgenUnionField, pub bindgen_union_field: u32, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_62705__bindgen_ty_bindgen_id_62706() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54322__bindgen_ty_bindgen_id_54323() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - jsval_layout__bindgen_ty_bindgen_id_62705__bindgen_ty_bindgen_id_62706 { + Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54322__bindgen_ty_bindgen_id_54323 + { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_62705() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54322() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_62705 { +impl Clone for Value__bindgen_ty_bindgen_id_54313__bindgen_ty_bindgen_id_54322 + { fn clone(&self) -> Self { *self } } -impl Clone for jsval_layout { +#[test] +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_54313() { + assert_eq!(::std::mem::size_of::() , + 8usize); + assert_eq!(::std::mem::align_of::() , + 8usize); +} +impl Clone for Value__bindgen_ty_bindgen_id_54313 { fn clone(&self) -> Self { *self } } +impl Clone for Value { + fn clone(&self) -> Self { *self } +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum JSValueTag { + JSVAL_TAG_MAX_DOUBLE = 131056, + JSVAL_TAG_INT32 = 131057, + JSVAL_TAG_UNDEFINED = 131058, + JSVAL_TAG_STRING = 131061, + JSVAL_TAG_SYMBOL = 131062, + JSVAL_TAG_BOOLEAN = 131059, + JSVAL_TAG_MAGIC = 131060, + JSVAL_TAG_NULL = 131064, + JSVAL_TAG_OBJECT = 131068, + JSVAL_TAG_PRIVATE_GCTHING = 131063, +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct JSCompartment { + pub _address: u8, +} +impl Clone for JSCompartment { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct atomic<_Tp> { + pub _M_i: _Tp, +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum JSWhyMagic { + JS_ELEMENTS_HOLE = 0, + JS_NO_ITER_VALUE = 1, + JS_GENERATOR_CLOSING = 2, + JS_NO_CONSTANT = 3, + JS_THIS_POISON = 4, + JS_ARG_POISON = 5, + JS_SERIALIZE_NO_NODE = 6, + JS_LAZY_ARGUMENTS = 7, + JS_OPTIMIZED_ARGUMENTS = 8, + JS_IS_CONSTRUCTING = 9, + JS_BLOCK_NEEDS_CLONE = 10, + JS_HASH_KEY_EMPTY = 11, + JS_ION_ERROR = 12, + JS_ION_BAILOUT = 13, + JS_OPTIMIZED_OUT = 14, + JS_UNINITIALIZED_LEXICAL = 15, + JS_GENERIC_MAGIC = 16, + JS_WHY_MAGIC_COUNT = 17, +} #[repr(C)] #[derive(Debug)] pub struct nsAString_internal { @@ -1744,7 +1717,7 @@ pub type nsAString_internal_size_type = u32; pub type nsAString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsAString_internal__bindgen_ty_bindgen_id_64575 { +pub enum nsAString_internal__bindgen_ty_bindgen_id_69062 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1781,12 +1754,12 @@ impl Clone for nsSubstringTuple { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_65185 { +pub struct bindgen_vtable__bindgen_id_69672 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_65185, + pub vtable_: *const bindgen_vtable__bindgen_id_69672, } pub type nsStringComparator_char_type = u16; #[test] @@ -1828,7 +1801,7 @@ pub type nsACString_internal_size_type = u32; pub type nsACString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsACString_internal__bindgen_ty_bindgen_id_66415 { +pub enum nsACString_internal__bindgen_ty_bindgen_id_70902 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1890,12 +1863,12 @@ fn bindgen_test_layout_nsCString() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_66967 { +pub struct bindgen_vtable__bindgen_id_71454 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsCStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_66967, + pub vtable_: *const bindgen_vtable__bindgen_id_71454, } pub type nsCStringComparator_char_type = ::std::os::raw::c_char; #[test] @@ -1907,7 +1880,7 @@ impl Clone for nsCStringComparator { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_67011 { +pub struct bindgen_vtable__bindgen_id_71758 { } /** * Basic component object model interface. Objects which implement @@ -1918,7 +1891,7 @@ pub struct bindgen_vtable__bindgen_id_67011 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsISupports { - pub vtable_: *const bindgen_vtable__bindgen_id_67011, + pub vtable_: *const bindgen_vtable__bindgen_id_71758, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1936,7 +1909,7 @@ impl Clone for nsISupports { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_67295 { +pub struct bindgen_vtable__bindgen_id_72042 { } /** * Participant implementation classes @@ -1944,7 +1917,7 @@ pub struct bindgen_vtable__bindgen_id_67295 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsCycleCollectionParticipant { - pub vtable_: *const bindgen_vtable__bindgen_id_67295, + pub vtable_: *const bindgen_vtable__bindgen_id_72042, pub mMightSkip: bool, } #[test] @@ -2255,7 +2228,7 @@ fn bindgen_test_layout_ErrorResult() { #[derive(Debug)] pub struct TErrorResult { pub mResult: nsresult, - pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_74801, + pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_79919, pub mMightHaveUnreportedJSException: bool, pub mUnionState: TErrorResult_UnionState, pub _mOwningThread: nsAutoOwningThread, @@ -2285,7 +2258,7 @@ pub struct TErrorResult_DOMExceptionInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TErrorResult__bindgen_ty_bindgen_id_74801 { +pub struct TErrorResult__bindgen_ty_bindgen_id_79919 { pub mMessage: __BindgenUnionField<*mut TErrorResult_Message>, pub mJSException: __BindgenUnionField, pub mDOMExceptionInfo: __BindgenUnionField<*mut TErrorResult_DOMExceptionInfo>, @@ -2445,7 +2418,7 @@ pub struct nsIPrincipal_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPrincipal__bindgen_ty_bindgen_id_76040 { +pub enum nsIPrincipal__bindgen_ty_bindgen_id_81158 { APP_STATUS_NOT_INSTALLED = 0, APP_STATUS_INSTALLED = 1, APP_STATUS_PRIVILEGED = 2, @@ -2480,7 +2453,7 @@ impl Clone for nsISerializable { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_76208 { +pub struct bindgen_vtable__bindgen_id_81326 { } /** * Class to store the wrapper for an object. This can only be used with objects @@ -2522,7 +2495,7 @@ pub struct bindgen_vtable__bindgen_id_76208 { #[repr(C)] #[derive(Debug)] pub struct nsWrapperCache { - pub vtable_: *const bindgen_vtable__bindgen_id_76208, + pub vtable_: *const bindgen_vtable__bindgen_id_81326, pub mWrapper: *mut JSObject, pub mFlags: nsWrapperCache_FlagsType, } @@ -2547,7 +2520,7 @@ pub type nsWrapperCache_FlagsType = u32; * NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER). */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_76415 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_81533 { WRAPPER_BIT_PRESERVED = 1, } #[repr(u32)] @@ -2556,12 +2529,12 @@ pub enum nsWrapperCache__bindgen_ty_bindgen_id_76415 { * binding. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_76418 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_81536 { WRAPPER_IS_NOT_DOM_BINDING = 2, } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_76421 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_81539 { kWrapperFlagsMask = 3, } #[test] @@ -2595,6 +2568,38 @@ fn bindgen_test_layout_GlobalObject() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pair<_T1, _T2> { + pub first: _T1, + pub second: _T2, +} +pub type pair_first_type<_T1> = _T1; +pub type pair_second_type<_T2> = _T2; +#[repr(C)] +pub struct bindgen_vtable__bindgen_id_129417 { +} +/** + * A class of objects that return source code on demand. + * + * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't + * retain the source code (and doesn't do lazy bytecode generation). If we ever + * need the source code, say, in response to a call to Function.prototype. + * toSource or Debugger.Source.prototype.text, then we call the 'load' member + * function of the instance of this class that has hopefully been registered + * with the runtime, passing the code's URL, and hope that it will be able to + * find the source. + */ +#[repr(C)] +#[derive(Debug)] +pub struct SourceHook { + pub vtable_: *const bindgen_vtable__bindgen_id_129417, +} +#[test] +fn bindgen_test_layout_SourceHook() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct nsScriptObjectTracer { pub _base: nsCycleCollectionParticipant, @@ -2629,69 +2634,196 @@ fn bindgen_test_layout_nsXPCOMCycleCollectionParticipant() { impl Clone for nsXPCOMCycleCollectionParticipant { fn clone(&self) -> Self { *self } } +pub type PLDHashNumber = u32; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pair<_T1, _T2> { - pub first: _T1, - pub second: _T2, +#[derive(Debug)] +pub struct PLDHashTable { + pub mOps: *const PLDHashTableOps, + pub mHashShift: i16, + pub mEntrySize: u32, + pub mEntryCount: u32, + pub mRemovedCount: u32, + pub mEntryStore: PLDHashTable_EntryStore, + pub mChecker: Checker, +} +#[repr(C)] +#[derive(Debug)] +pub struct PLDHashTable_EntryStore { + pub mEntryStore: *mut ::std::os::raw::c_char, + pub mGeneration: u32, +} +#[test] +fn bindgen_test_layout_PLDHashTable_EntryStore() { + assert_eq!(::std::mem::size_of::() , 16usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug)] +pub struct PLDHashTable_Iterator { + pub mTable: *mut PLDHashTable, + pub mStart: *mut ::std::os::raw::c_char, + pub mLimit: *mut ::std::os::raw::c_char, + pub mCurrent: *mut ::std::os::raw::c_char, + pub mNexts: u32, + pub mNextsLimit: u32, + pub mHaveRemoved: bool, +} +#[test] +fn bindgen_test_layout_PLDHashTable_Iterator() { + assert_eq!(::std::mem::size_of::() , 48usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[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; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] + pub static PLDHashTable_kMinCapacity: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] + pub static PLDHashTable_kMaxInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] + pub static PLDHashTable_kDefaultInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable9kHashBitsE"] + pub static PLDHashTable_kHashBits: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] + pub static PLDHashTable_kGoldenRatio: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] + pub static PLDHashTable_kCollisionFlag: PLDHashNumber; +} +#[test] +fn bindgen_test_layout_PLDHashTable() { + assert_eq!(::std::mem::size_of::() , 48usize); + assert_eq!(::std::mem::align_of::() , 8usize); } -pub type pair_first_type<_T1> = _T1; -pub type pair_second_type<_T2> = _T2; #[repr(C)] #[derive(Debug, Copy)] -pub struct input_iterator_tag { - pub _address: u8, +pub struct PLDHashTableOps { + pub hashKey: PLDHashHashKey, + pub matchEntry: PLDHashMatchEntry, + pub moveEntry: PLDHashMoveEntry, + pub clearEntry: PLDHashClearEntry, + pub initEntry: PLDHashInitEntry, } -impl Clone for input_iterator_tag { +#[test] +fn bindgen_test_layout_PLDHashTableOps() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for PLDHashTableOps { fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] -pub struct forward_iterator_tag { - pub _address: u8, +pub struct PLDHashEntryHdr { + pub mKeyHash: PLDHashNumber, } -impl Clone for forward_iterator_tag { +#[test] +fn bindgen_test_layout_PLDHashEntryHdr() { + assert_eq!(::std::mem::size_of::() , 4usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for PLDHashEntryHdr { fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] -pub struct bidirectional_iterator_tag { - pub _address: u8, +pub struct Checker { + pub mState: u32, + pub mIsWritable: u32, } -impl Clone for bidirectional_iterator_tag { +extern "C" { + #[link_name = "_ZN7Checker5kIdleE"] + pub static Checker_kIdle: u32; +} +extern "C" { + #[link_name = "_ZN7Checker6kRead1E"] + pub static Checker_kRead1: u32; +} +extern "C" { + #[link_name = "_ZN7Checker8kReadMaxE"] + pub static Checker_kReadMax: u32; +} +extern "C" { + #[link_name = "_ZN7Checker6kWriteE"] + pub static Checker_kWrite: u32; +} +#[test] +fn bindgen_test_layout_Checker() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for Checker { fn clone(&self) -> Self { *self } } -#[repr(C)] -#[derive(Debug, Copy)] -pub struct random_access_iterator_tag { - pub _address: u8, -} -impl Clone for random_access_iterator_tag { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -pub struct bindgen_vtable__bindgen_id_96162 { -} +pub type PLDHashHashKey = + ::std::option::Option ::std::os::raw::c_uint>; +pub type PLDHashMatchEntry = + ::std::option::Option bool>; +pub type PLDHashMoveEntry = + ::std::option::Option; +pub type PLDHashClearEntry = + ::std::option::Option; +pub type PLDHashInitEntry = + ::std::option::Option; /** - * A class of objects that return source code on demand. + * hashkey wrapper using T* KeyType * - * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't - * retain the source code (and doesn't do lazy bytecode generation). If we ever - * need the source code, say, in response to a call to Function.prototype. - * toSource or Debugger.Source.prototype.text, then we call the 'load' member - * function of the instance of this class that has hopefully been registered - * with the runtime, passing the code's URL, and hope that it will be able to - * find the source. + * @see nsTHashtable::EntryType for specification */ #[repr(C)] #[derive(Debug)] -pub struct SourceHook { - pub vtable_: *const bindgen_vtable__bindgen_id_96162, +pub struct nsPtrHashKey { + pub _base: PLDHashEntryHdr, + pub mKey: *mut T, +} +pub type nsPtrHashKey_KeyType = *mut T; +pub type nsPtrHashKey_KeyTypePointer = *mut T; +#[repr(i32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsPtrHashKey__bindgen_ty_bindgen_id_136858 { ALLOW_MEMMOVE = 0, } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct nsIRunnable { + pub _base: nsISupports, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nsIRunnable_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, } #[test] -fn bindgen_test_layout_SourceHook() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); +fn bindgen_test_layout_nsIRunnable() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for nsIRunnable { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug)] @@ -2782,6 +2914,7 @@ pub struct nsIDocument { pub mAttrStyleSheet: RefPtr, pub mStyleAttrStyleSheet: RefPtr, pub mSVGAttrAnimationRuleProcessor: RefPtr, + pub mImageTracker: RefPtr, pub mActivityObservers: nsAutoPtr<()>, pub mLinksToUpdate: [u64; 6usize], pub mAnimationController: RefPtr, @@ -2848,6 +2981,7 @@ pub struct nsIDocument { pub mChildDocumentUseCounters: [u64; 2usize], pub mNotifiedPageForUseCounter: [u64; 2usize], pub mUserHasInteracted: bool, + pub mPageUnloadingEventTimeStamp: TimeStamp, } pub type nsIDocument_GlobalObject = GlobalObject; pub type nsIDocument_ReferrerPolicyEnum = ReferrerPolicy; @@ -2860,6 +2994,19 @@ pub struct nsIDocument_COMTypeInfo { pub _phantom_0: ::std::marker::PhantomData, pub _phantom_1: ::std::marker::PhantomData, } +#[repr(C)] +#[derive(Debug)] +pub struct nsIDocument_PageUnloadingEventTimeStamp { + pub mDocument: nsCOMPtr, + pub mSet: bool, +} +#[test] +fn bindgen_test_layout_nsIDocument_PageUnloadingEventTimeStamp() { + assert_eq!(::std::mem::size_of::() + , 16usize); + assert_eq!(::std::mem::align_of::() + , 8usize); +} /** * This gets fired when the element that an id refers to changes. * This fires at difficult times. It is generally not safe to do anything @@ -2983,9 +3130,6 @@ pub type nsIDocument_FrameRequestCallbackList = nsTArray>; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDocument__bindgen_ty_bindgen_id_109741 { REQUEST_DISCARD = 1, } -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsIDocument_DeprecatedOperations { eGetAttributeNode = 0, eSetAttributeNode = 1, @@ -3067,7 +3211,7 @@ impl Clone for nsIDocument_FrameRequest { } #[test] fn bindgen_test_layout_nsIDocument() { - assert_eq!(::std::mem::size_of::() , 960usize); + assert_eq!(::std::mem::size_of::() , 976usize); assert_eq!(::std::mem::align_of::() , 8usize); } impl nsIDocument { @@ -3662,7 +3806,7 @@ pub struct nsINode { pub mNextSibling: *mut nsIContent, pub mPreviousSibling: *mut nsIContent, pub mFirstChild: *mut nsIContent, - pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_106638, + pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_143916, pub mSlots: *mut nsINode_nsSlots, pub mServoData: ServoCell<*mut ServoNodeData>, } @@ -3687,7 +3831,7 @@ pub struct nsINode_COMTypeInfo { * Bit-flags to pass (or'ed together) to IsNodeOfType() */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsINode__bindgen_ty_bindgen_id_102763 { +pub enum nsINode__bindgen_ty_bindgen_id_140041 { eCONTENT = 1, eDOCUMENT = 2, eATTRIBUTE = 4, @@ -3702,12 +3846,12 @@ pub enum nsINode__bindgen_ty_bindgen_id_102763 { eFILTER = 2048, } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_103532 { +pub struct bindgen_vtable__bindgen_id_140810 { } #[repr(C)] #[derive(Debug)] pub struct nsINode_nsSlots { - pub vtable_: *const bindgen_vtable__bindgen_id_103532, + pub vtable_: *const bindgen_vtable__bindgen_id_140810, /** * A list of mutation observers */ @@ -3776,19 +3920,19 @@ pub enum nsINode_BooleanFlag { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsINode__bindgen_ty_bindgen_id_106638 { +pub struct nsINode__bindgen_ty_bindgen_id_143916 { pub mPrimaryFrame: __BindgenUnionField<*mut nsIFrame>, pub mSubtreeRoot: __BindgenUnionField<*mut nsINode>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_106638() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_143916() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsINode__bindgen_ty_bindgen_id_106638 { +impl Clone for nsINode__bindgen_ty_bindgen_id_143916 { fn clone(&self) -> Self { *self } } #[test] @@ -3864,7 +4008,7 @@ fn bindgen_test_layout_StyleSetHandle() { impl Clone for StyleSetHandle { fn clone(&self) -> Self { *self } } -#[repr(i32)] +#[repr(u8)] /** * Enumeration that represents one of the two supported style system backends. */ @@ -3942,6 +4086,62 @@ pub enum nsRestyleHint { eRestyle_ForceDescendants = 1024, eRestyle_AllHintsWithAnimations = 368, } +/** + * Instances of this class represent moments in time, or a special + * "null" moment. We do not use the non-monotonic system clock or + * local time, since they can be reset, causing apparent backward + * travel in time, which can confuse algorithms. Instead we measure + * elapsed time according to the system. This time can never go + * backwards (i.e. it never wraps around, at least not in less than + * five million years of system elapsed time). It might not advance + * while the system is sleeping. If TimeStamp::SetNow() is not called + * at all for hours or days, we might not notice the passage of some + * of that time. + * + * We deliberately do not expose a way to convert TimeStamps to some + * particular unit. All you can do is compute a difference between two + * TimeStamps to get a TimeDuration. You can also add a TimeDuration + * to a TimeStamp to get a new TimeStamp. You can't do something + * meaningless like add two TimeStamps. + * + * Internally this is implemented as either a wrapper around + * - high-resolution, monotonic, system clocks if they exist on this + * platform + * - PRIntervalTime otherwise. We detect wraparounds of + * PRIntervalTime and work around them. + * + * This class is similar to C++11's time_point, however it is + * explicitly nullable and provides an IsNull() method. time_point + * is initialized to the clock's epoch and provides a + * time_since_epoch() method that functions similiarly. i.e. + * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); + */ +#[repr(C)] +#[derive(Debug, Copy)] +pub struct TimeStamp { + /** + * When built with PRIntervalTime, a value of 0 means this instance + * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, + * and the high 32 bits represent a counter of the number of + * rollovers of PRIntervalTime that we've seen. This counter starts + * at 1 to avoid a real time colliding with the "null" value. + * + * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum + * time to wrap around is about 2^64/100000 seconds, i.e. about + * 5,849,424 years. + * + * When using a system clock, a value is system dependent. + */ + pub mValue: TimeStampValue, +} +#[test] +fn bindgen_test_layout_TimeStamp() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for TimeStamp { + fn clone(&self) -> Self { *self } +} #[repr(C)] #[derive(Debug, Copy)] pub struct nsIObserver { @@ -4002,14 +4202,6 @@ fn bindgen_test_layout_nsIScriptGlobalObject() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct ShortcutKeyCandidate { - pub _address: u8, -} -impl Clone for ShortcutKeyCandidate { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct nsIVariant { pub _base: nsISupports, } @@ -4029,26 +4221,6 @@ impl Clone for nsIVariant { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug, Copy)] -pub struct nsIRunnable { - pub _base: nsISupports, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nsIRunnable_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -#[test] -fn bindgen_test_layout_nsIRunnable() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for nsIRunnable { - fn clone(&self) -> Self { *self } -} -#[repr(C)] #[derive(Debug)] pub struct Runnable { pub _base: nsIRunnable, @@ -4095,7 +4267,7 @@ pub struct nsIDOMNode_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDOMNode__bindgen_ty_bindgen_id_114596 { +pub enum nsIDOMNode__bindgen_ty_bindgen_id_151876 { ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, @@ -4111,7 +4283,7 @@ pub enum nsIDOMNode__bindgen_ty_bindgen_id_114596 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDOMNode__bindgen_ty_bindgen_id_114815 { +pub enum nsIDOMNode__bindgen_ty_bindgen_id_152095 { DOCUMENT_POSITION_DISCONNECTED = 1, DOCUMENT_POSITION_PRECEDING = 2, DOCUMENT_POSITION_FOLLOWING = 4, @@ -4159,6 +4331,7 @@ impl Clone for nsIControllers { #[derive(Debug)] pub struct nsPresContext { pub _base: nsIObserver, + pub _base_1: u64, pub mRefCnt: nsCycleCollectingAutoRefCnt, pub _mOwningThread: nsAutoOwningThread, pub mType: nsPresContext_nsPresContextType, @@ -4276,7 +4449,7 @@ extern "C" { } #[test] fn bindgen_test_layout_nsPresContext() { - assert_eq!(::std::mem::size_of::() , 1184usize); + assert_eq!(::std::mem::size_of::() , 1192usize); assert_eq!(::std::mem::align_of::() , 8usize); } impl nsPresContext { @@ -4967,273 +5140,6 @@ pub enum Side { eSideBottom = 2, eSideLeft = 3, } -#[repr(C)] -#[derive(Debug)] -pub struct CallbackFunction { - pub _base: CallbackObject, -} -#[test] -fn bindgen_test_layout_CallbackFunction() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject { - pub _base: nsISupports, - pub mRefCnt: nsCycleCollectingAutoRefCnt, - pub _mOwningThread: nsAutoOwningThread, - pub mCallback: u64, - pub mCreationStack: u64, - pub mIncumbentGlobal: nsCOMPtr, - pub mIncumbentJSGlobal: u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CallbackObject_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -pub type CallbackObject_HasThreadSafeRefCnt = FalseType; -#[repr(C)] -#[derive(Debug, Copy)] -pub struct CallbackObject_cycleCollection { - pub _base: nsXPCOMCycleCollectionParticipant, -} -#[test] -fn bindgen_test_layout_CallbackObject_cycleCollection() { - assert_eq!(::std::mem::size_of::() , - 16usize); - assert_eq!(::std::mem::align_of::() , - 8usize); -} -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 { - pub _address: u8, -} -#[test] -fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { - assert_eq!(::std::mem::size_of::() - , 1usize); - assert_eq!(::std::mem::align_of::() - , 1usize); -} -impl Clone for CallbackObject_FastCallbackConstructor { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject_CallSetup { - pub mCx: *mut JSContext, - pub mCompartment: *mut JSCompartment, - pub mAutoEntryScript: [u64; 21usize], - pub mAutoIncumbentScript: [u64; 6usize], - pub mRootedCallable: [u64; 4usize], - pub mAsyncStack: [u64; 4usize], - pub mAsyncStackSetter: [u64; 7usize], - pub mAc: [u64; 4usize], - pub mErrorResult: *mut ErrorResult, - pub mExceptionHandling: CallbackObject_ExceptionHandling, - pub mIsMainThread: bool, -} -#[test] -fn bindgen_test_layout_CallbackObject_CallSetup() { - assert_eq!(::std::mem::size_of::() , 400usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -extern "C" { - #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] - pub static mut CallbackObject__cycleCollectorGlobal: - CallbackObject_cycleCollection; -} -#[test] -fn bindgen_test_layout_CallbackObject() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -pub type PLDHashNumber = u32; -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable { - pub mOps: *const PLDHashTableOps, - pub mHashShift: i16, - pub mEntrySize: u32, - pub mEntryCount: u32, - pub mRemovedCount: u32, - pub mEntryStore: PLDHashTable_EntryStore, - pub mChecker: Checker, -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_EntryStore { - pub mEntryStore: *mut ::std::os::raw::c_char, - pub mGeneration: u32, -} -#[test] -fn bindgen_test_layout_PLDHashTable_EntryStore() { - assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_Iterator { - pub mTable: *mut PLDHashTable, - pub mStart: *mut ::std::os::raw::c_char, - pub mLimit: *mut ::std::os::raw::c_char, - pub mCurrent: *mut ::std::os::raw::c_char, - pub mNexts: u32, - pub mNextsLimit: u32, - pub mHaveRemoved: bool, -} -#[test] -fn bindgen_test_layout_PLDHashTable_Iterator() { - assert_eq!(::std::mem::size_of::() , 48usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[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; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] - pub static PLDHashTable_kMinCapacity: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] - pub static PLDHashTable_kMaxInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] - pub static PLDHashTable_kDefaultInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable9kHashBitsE"] - pub static PLDHashTable_kHashBits: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] - pub static PLDHashTable_kGoldenRatio: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] - pub static PLDHashTable_kCollisionFlag: PLDHashNumber; -} -#[test] -fn bindgen_test_layout_PLDHashTable() { - assert_eq!(::std::mem::size_of::() , 48usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashTableOps { - pub hashKey: PLDHashHashKey, - pub matchEntry: PLDHashMatchEntry, - pub moveEntry: PLDHashMoveEntry, - pub clearEntry: PLDHashClearEntry, - pub initEntry: PLDHashInitEntry, -} -#[test] -fn bindgen_test_layout_PLDHashTableOps() { - assert_eq!(::std::mem::size_of::() , 40usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for PLDHashTableOps { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashEntryHdr { - pub mKeyHash: PLDHashNumber, -} -#[test] -fn bindgen_test_layout_PLDHashEntryHdr() { - assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for PLDHashEntryHdr { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct Checker { - pub mState: u32, - pub mIsWritable: u32, -} -extern "C" { - #[link_name = "_ZN7Checker5kIdleE"] - pub static Checker_kIdle: u32; -} -extern "C" { - #[link_name = "_ZN7Checker6kRead1E"] - pub static Checker_kRead1: u32; -} -extern "C" { - #[link_name = "_ZN7Checker8kReadMaxE"] - pub static Checker_kReadMax: u32; -} -extern "C" { - #[link_name = "_ZN7Checker6kWriteE"] - pub static Checker_kWrite: u32; -} -#[test] -fn bindgen_test_layout_Checker() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for Checker { - fn clone(&self) -> Self { *self } -} -pub type PLDHashHashKey = - ::std::option::Option ::std::os::raw::c_uint>; -pub type PLDHashMatchEntry = - ::std::option::Option bool>; -pub type PLDHashMoveEntry = - ::std::option::Option; -pub type PLDHashClearEntry = - ::std::option::Option; -pub type PLDHashInitEntry = - ::std::option::Option; -/** - * hashkey wrapper using T* KeyType - * - * @see nsTHashtable::EntryType for specification - */ -#[repr(C)] -#[derive(Debug)] -pub struct nsPtrHashKey { - pub _base: PLDHashEntryHdr, - pub mKey: *mut T, -} -pub type nsPtrHashKey_KeyType = *mut T; -pub type nsPtrHashKey_KeyTypePointer = *mut T; -#[repr(i32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPtrHashKey__bindgen_ty_bindgen_id_119345 { ALLOW_MEMMOVE = 0, } /** * A node of content in a document's content model. This interface * is supported by all content objects. @@ -5253,14 +5159,14 @@ pub struct nsIContent_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIContent__bindgen_ty_bindgen_id_120685 { +pub enum nsIContent__bindgen_ty_bindgen_id_156165 { eAllChildren = 0, eAllButXBL = 1, eSkipPlaceholderContent = 2, } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIContent__bindgen_ty_bindgen_id_120921 { +pub enum nsIContent__bindgen_ty_bindgen_id_156401 { ATTR_MISSING = -1, ATTR_VALUE_NO_MATCH = -2, } @@ -5448,11 +5354,6 @@ pub struct FragmentOrElement_nsDOMSlots { * @see nsGenericHTMLElement::GetDataset */ pub mDataset: *mut nsDOMStringMap, - /** - * The .undoManager property. - * @see nsGenericHTMLElement::GetUndoManager - */ - pub mUndoManager: RefPtr, /** * SMIL Overridde style rules (for SMIL animation of CSS properties) * @see nsIContent::GetSMILOverrideStyle @@ -5467,7 +5368,7 @@ pub struct FragmentOrElement_nsDOMSlots { * @see FragmentOrElement::GetAttributes */ pub mAttributeMap: RefPtr, - pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_122054, + pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_157533, /** * An object implementing the .children property for this element. */ @@ -5504,7 +5405,7 @@ pub struct FragmentOrElement_nsDOMSlots { } #[repr(C)] #[derive(Debug, Copy)] -pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_122054 { +pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_157533 { /** * The nearest enclosing content node with a binding that created us. * @see FragmentOrElement::GetBindingParent @@ -5517,19 +5418,19 @@ pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_122054 { pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_122054() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_157533() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_122054 { +impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_157533 { fn clone(&self) -> Self { *self } } #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() , - 168usize); + 160usize); assert_eq!(::std::mem::align_of::() , 8usize); } @@ -5581,21 +5482,91 @@ impl Clone for nsIWeakReference { } pub type nsWeakPtr = nsCOMPtr; #[repr(C)] -#[derive(Debug, Copy)] -pub struct PrefSetting { - pub _address: u8, -} -impl Clone for PrefSetting { - fn clone(&self) -> Self { *self } +#[derive(Debug)] +pub struct CallbackObject { + pub _base: nsISupports, + pub mRefCnt: nsCycleCollectingAutoRefCnt, + pub _mOwningThread: nsAutoOwningThread, + pub mCallback: u64, + pub mCreationStack: u64, + pub mIncumbentGlobal: nsCOMPtr, + pub mIncumbentJSGlobal: u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __bit_const_reference<_Cp> { - pub __seg_: __bit_const_reference___storage_pointer<_Cp>, - pub __mask_: __bit_const_reference___storage_type<_Cp>, +pub struct CallbackObject_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, +} +pub type CallbackObject_HasThreadSafeRefCnt = FalseType; +#[repr(C)] +#[derive(Debug, Copy)] +pub struct CallbackObject_cycleCollection { + pub _base: nsXPCOMCycleCollectionParticipant, +} +#[test] +fn bindgen_test_layout_CallbackObject_cycleCollection() { + assert_eq!(::std::mem::size_of::() , + 16usize); + assert_eq!(::std::mem::align_of::() , + 8usize); +} +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 { + pub _address: u8, +} +#[test] +fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { + assert_eq!(::std::mem::size_of::() + , 1usize); + assert_eq!(::std::mem::align_of::() + , 1usize); +} +impl Clone for CallbackObject_FastCallbackConstructor { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct CallbackObject_CallSetup { + pub mCx: *mut JSContext, + pub mCompartment: *mut JSCompartment, + pub mAutoEntryScript: [u64; 21usize], + pub mAutoIncumbentScript: [u64; 6usize], + pub mRootedCallable: [u64; 4usize], + pub mAsyncStack: [u64; 4usize], + pub mAsyncStackSetter: [u64; 7usize], + pub mAc: [u64; 4usize], + pub mErrorResult: *mut ErrorResult, + pub mExceptionHandling: CallbackObject_ExceptionHandling, + pub mIsMainThread: bool, +} +#[test] +fn bindgen_test_layout_CallbackObject_CallSetup() { + assert_eq!(::std::mem::size_of::() , 400usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +extern "C" { + #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] + pub static mut CallbackObject__cycleCollectorGlobal: + CallbackObject_cycleCollection; +} +#[test] +fn bindgen_test_layout_CallbackObject() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); } -pub type __bit_const_reference___storage_type<_Cp> = _Cp; -pub type __bit_const_reference___storage_pointer<_Cp> = _Cp; #[repr(C)] #[derive(Debug, Copy)] pub struct nsIChannel { @@ -5610,7 +5581,7 @@ pub struct nsIChannel_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIChannel__bindgen_ty_bindgen_id_139557 { +pub enum nsIChannel__bindgen_ty_bindgen_id_169431 { LOAD_DOCUMENT_URI = 65536, LOAD_RETARGETED_DOCUMENT_URI = 131072, LOAD_REPLACE = 262144, @@ -5624,7 +5595,7 @@ pub enum nsIChannel__bindgen_ty_bindgen_id_139557 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIChannel__bindgen_ty_bindgen_id_139577 { +pub enum nsIChannel__bindgen_ty_bindgen_id_169451 { DISPOSITION_INLINE = 0, DISPOSITION_ATTACHMENT = 1, } @@ -5650,7 +5621,7 @@ pub struct nsIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIRequest__bindgen_ty_bindgen_id_139395 { +pub enum nsIRequest__bindgen_ty_bindgen_id_169269 { LOAD_REQUESTMASK = 65535, LOAD_NORMAL = 0, LOAD_BACKGROUND = 1, @@ -5777,26 +5748,6 @@ pub enum SheetParsingMode { eUserSheetFeatures = 1, eAgentSheetFeatures = 2, } -/** - * Superclass for data common to CSSStyleSheet and ServoStyleSheet. - */ -#[repr(C)] -#[derive(Debug, Copy)] -pub struct StyleSheet { - pub mDocument: *mut nsIDocument, - pub mOwningNode: *mut nsINode, - pub mParsingMode: SheetParsingMode, - pub mType: StyleBackendType, - pub mDisabled: bool, -} -#[test] -fn bindgen_test_layout_StyleSheet() { - assert_eq!(::std::mem::size_of::() , 32usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for StyleSheet { - fn clone(&self) -> Self { *self } -} #[repr(C)] #[derive(Debug)] pub struct nsAttrValue { @@ -5816,25 +5767,24 @@ pub enum nsAttrValue_ValueType { eColor = 7, eEnum = 11, ePercent = 15, - eGeckoCSSDeclaration = 16, - eServoCSSDeclaration = 17, - eURL = 18, - eImage = 19, - eAtomArray = 20, - eDoubleValue = 21, - eIntMarginValue = 22, - eSVGAngle = 23, - eSVGIntegerPair = 24, - eSVGLength = 25, - eSVGLengthList = 26, - eSVGNumberList = 27, - eSVGNumberPair = 28, - eSVGPathData = 29, - eSVGPointList = 30, - eSVGPreserveAspectRatio = 31, - eSVGStringList = 32, - eSVGTransformList = 33, - eSVGViewBox = 34, + eCSSDeclaration = 16, + eURL = 17, + eImage = 18, + eAtomArray = 19, + eDoubleValue = 20, + eIntMarginValue = 21, + eSVGAngle = 22, + eSVGIntegerPair = 23, + eSVGLength = 24, + eSVGLengthList = 25, + eSVGNumberList = 26, + eSVGNumberPair = 27, + eSVGPathData = 28, + eSVGPointList = 29, + eSVGPreserveAspectRatio = 30, + eSVGStringList = 31, + eSVGTransformList = 32, + eSVGViewBox = 33, } /** * Structure for a mapping from int (enum) values to strings. When you use @@ -6213,13 +6163,13 @@ pub enum nsIPresShell_ReflowRootHandling { eNoPositionOrSizeChange = 1, eInferFromBitToAdd = 2, } -pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_157849 = - nsIPresShell__bindgen_ty_bindgen_id_157849::SCROLL_TOP; -pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_157849 = - nsIPresShell__bindgen_ty_bindgen_id_157849::SCROLL_BOTTOM; +pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_188023 = + nsIPresShell__bindgen_ty_bindgen_id_188023::SCROLL_TOP; +pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_188023 = + nsIPresShell__bindgen_ty_bindgen_id_188023::SCROLL_BOTTOM; #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_157849 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_188023 { SCROLL_TOP = 0, SCROLL_BOTTOM = 100, SCROLL_CENTER = 50, @@ -6247,7 +6197,7 @@ impl Clone for nsIPresShell_ScrollAxis { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_157880 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_188054 { SCROLL_FIRST_ANCESTOR_ONLY = 1, SCROLL_OVERFLOW_HIDDEN = 2, SCROLL_NO_PARENT_FRAMES = 4, @@ -6294,7 +6244,7 @@ pub enum nsIPresShell__bindgen_ty_bindgen_id_157880 { * transform. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_158335 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_188455 { RENDER_IS_UNTRUSTED = 1, RENDER_IGNORE_VIEWPORT_SCROLLING = 2, RENDER_CARET = 4, @@ -6305,7 +6255,7 @@ pub enum nsIPresShell__bindgen_ty_bindgen_id_158335 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_158353 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_188473 { RENDER_IS_IMAGE = 256, RENDER_AUTO_SCALE = 128, } @@ -6318,31 +6268,30 @@ pub enum nsIPresShell__bindgen_ty_bindgen_id_158353 { * transparent by default. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_158476 { FORCE_DRAW = 1, } +pub enum nsIPresShell__bindgen_ty_bindgen_id_188596 { FORCE_DRAW = 1, } #[repr(C)] #[derive(Debug)] pub struct nsIPresShell_PointerCaptureInfo { pub mPendingContent: nsCOMPtr, pub mOverrideContent: nsCOMPtr, - pub mPrimaryState: bool, } #[test] fn bindgen_test_layout_nsIPresShell_PointerCaptureInfo() { assert_eq!(::std::mem::size_of::() , - 24usize); + 16usize); assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] #[derive(Debug, Copy)] pub struct nsIPresShell_PointerInfo { - pub mActiveState: bool, pub mPointerType: u16, + pub mActiveState: bool, pub mPrimaryState: bool, } #[test] fn bindgen_test_layout_nsIPresShell_PointerInfo() { - assert_eq!(::std::mem::size_of::() , 6usize); + assert_eq!(::std::mem::size_of::() , 4usize); assert_eq!(::std::mem::align_of::() , 2usize); } impl Clone for nsIPresShell_PointerInfo { @@ -6372,14 +6321,6 @@ extern "C" { #[link_name = "_ZN12nsIPresShell12gCaptureInfoE"] pub static mut nsIPresShell_gCaptureInfo: CapturingContentInfo; } -extern "C" { - #[link_name = "_ZN12nsIPresShell19gPointerCaptureListE"] - pub static mut nsIPresShell_gPointerCaptureList: *mut [u64; 6usize]; -} -extern "C" { - #[link_name = "_ZN12nsIPresShell18gActivePointersIdsE"] - pub static mut nsIPresShell_gActivePointersIds: *mut (); -} extern "C" { #[link_name = "_ZN12nsIPresShell14gKeyDownTargetE"] pub static mut nsIPresShell_gKeyDownTarget: *mut nsIContent; @@ -6583,14 +6524,6 @@ fn bindgen_test_layout_nsNodeWeakReference() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsDOMMutationObserver { - pub _address: u8, -} -impl Clone for nsDOMMutationObserver { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct BoxQuadOptions { pub _address: u8, } @@ -6705,67 +6638,67 @@ pub struct DOMPointInit { impl Clone for DOMPointInit { fn clone(&self) -> Self { *self } } -pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_LISTENERMANAGER; -pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_PROPERTIES; -pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_IS_ANONYMOUS_ROOT; -pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; -pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_IS_NATIVE_ANONYMOUS_ROOT; -pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_FORCE_XBL_BINDINGS; -pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_MAY_BE_IN_BINDING_MNGR; -pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_IS_EDITABLE; -pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_MAY_HAVE_CLASS; -pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_IS_IN_SHADOW_TREE; -pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_EMPTY_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_SLOW_SELECTOR; -pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_EDGE_CHILD_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_159889 +pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_LISTENERMANAGER; +pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_PROPERTIES; +pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_IS_ANONYMOUS_ROOT; +pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; +pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_IS_NATIVE_ANONYMOUS_ROOT; +pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_FORCE_XBL_BINDINGS; +pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_MAY_BE_IN_BINDING_MNGR; +pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_IS_EDITABLE; +pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_MAY_HAVE_CLASS; +pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_IS_IN_SHADOW_TREE; +pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_EMPTY_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_SLOW_SELECTOR; +pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_EDGE_CHILD_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_190008 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; -pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_ALL_SELECTOR_FLAGS; -pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_NEEDS_FRAME; -pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_DESCENDANTS_NEED_FRAMES; -pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_ACCESSKEY; -pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_DIRECTION_RTL; -pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_HAS_DIRECTION_LTR; -pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_ALL_DIRECTION_FLAGS; -pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_CHROME_ONLY_ACCESS; -pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; -pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_159889 + _bindgen_ty_bindgen_id_190008::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; +pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_ALL_SELECTOR_FLAGS; +pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_NEEDS_FRAME; +pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_DESCENDANTS_NEED_FRAMES; +pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_ACCESSKEY; +pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_DIRECTION_RTL; +pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_HAS_DIRECTION_LTR; +pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_ALL_DIRECTION_FLAGS; +pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_CHROME_ONLY_ACCESS; +pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; +pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_190008 = - _bindgen_ty_bindgen_id_159889::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_159889 = - _bindgen_ty_bindgen_id_159889::NODE_TYPE_SPECIFIC_BITS_OFFSET; + _bindgen_ty_bindgen_id_190008::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_190008 = + _bindgen_ty_bindgen_id_190008::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum _bindgen_ty_bindgen_id_159889 { +pub enum _bindgen_ty_bindgen_id_190008 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -6823,7 +6756,7 @@ pub struct nsITimer_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsITimer__bindgen_ty_bindgen_id_176393 { +pub enum nsITimer__bindgen_ty_bindgen_id_202542 { TYPE_ONE_SHOT = 0, TYPE_REPEATING_SLACK = 1, TYPE_REPEATING_PRECISE = 2, @@ -6849,7 +6782,7 @@ pub struct nsExpirationState { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsExpirationState__bindgen_ty_bindgen_id_176869 { +pub enum nsExpirationState__bindgen_ty_bindgen_id_203018 { NOT_TRACKED = 15, MAX_INDEX_IN_GENERATION = 268435455, } @@ -6904,6 +6837,7 @@ impl Clone for PRCListStr { fn clone(&self) -> Self { *self } } pub type PRCList = PRCListStr; +pub type TimeStampValue = u64; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct UnionMember { @@ -6923,7 +6857,7 @@ pub struct imgIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgIRequest__bindgen_ty_bindgen_id_177453 { +pub enum imgIRequest__bindgen_ty_bindgen_id_204533 { STATUS_NONE = 0, STATUS_SIZE_AVAILABLE = 1, STATUS_LOAD_COMPLETE = 2, @@ -6935,7 +6869,7 @@ pub enum imgIRequest__bindgen_ty_bindgen_id_177453 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgIRequest__bindgen_ty_bindgen_id_177533 { +pub enum imgIRequest__bindgen_ty_bindgen_id_204613 { CORS_NONE = 1, CORS_ANONYMOUS = 2, CORS_USE_CREDENTIALS = 3, @@ -7005,14 +6939,6 @@ impl Clone for nsIHTMLCollection { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsIObjectLoadingContent { - pub _address: u8, -} -impl Clone for nsIObjectLoadingContent { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct nsIStructuredCloneContainer { pub _address: u8, } @@ -7061,14 +6987,6 @@ impl Clone for ImageLoader { } #[repr(C)] #[derive(Debug, Copy)] -pub struct Animation { - pub _address: u8, -} -impl Clone for Animation { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct AnonymousContent { pub _address: u8, } @@ -7148,6 +7066,16 @@ fn bindgen_test_layout_FrameRequestCallback() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] +#[derive(Debug)] +pub struct CallbackFunction { + pub _base: CallbackObject, +} +#[test] +fn bindgen_test_layout_CallbackFunction() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct FullscreenRequest { pub _address: u8, @@ -7157,10 +7085,10 @@ impl Clone for FullscreenRequest { } #[repr(C)] #[derive(Debug, Copy)] -pub struct UndoManager { +pub struct ImageTracker { pub _address: u8, } -impl Clone for UndoManager { +impl Clone for ImageTracker { fn clone(&self) -> Self { *self } } #[repr(C)] @@ -7201,14 +7129,6 @@ fn bindgen_test_layout_nsAttrName() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -#[derive(Debug, Copy)] -pub struct Declaration { - pub _address: u8, -} -impl Clone for Declaration { - fn clone(&self) -> Self { *self } -} -#[repr(C)] #[derive(Debug)] pub struct URLValue { pub _base: URLValueData, @@ -7219,12 +7139,12 @@ fn bindgen_test_layout_URLValue() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_195912 { +pub struct bindgen_vtable__bindgen_id_215093 { } #[repr(C)] #[derive(Debug)] pub struct URLValueData { - pub vtable_: *const bindgen_vtable__bindgen_id_195912, + pub vtable_: *const bindgen_vtable__bindgen_id_215093, pub mRefCnt: ThreadSafeAutoRefCnt, pub mURI: nsMainThreadPtrHandle, pub mBaseURI: nsMainThreadPtrHandle, @@ -7357,6 +7277,14 @@ pub struct nsDOMStringMap { impl Clone for nsDOMStringMap { fn clone(&self) -> Self { *self } } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct Declaration { + pub _address: u8, +} +impl Clone for Declaration { + fn clone(&self) -> Self { *self } +} /** * Interface used for handling clicks on links */ @@ -7435,7 +7363,7 @@ pub type nsPresArena_FreeList_KeyType = u32; pub type nsPresArena_FreeList_KeyTypePointer = *const ::std::os::raw::c_void; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_198066 { +pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_217247 { ALLOW_MEMMOVE = 0, } #[test] @@ -7462,7 +7390,7 @@ pub struct imgINotificationObserver_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgINotificationObserver__bindgen_ty_bindgen_id_198213 { +pub enum imgINotificationObserver__bindgen_ty_bindgen_id_217394 { SIZE_AVAILABLE = 1, FRAME_UPDATE = 2, FRAME_COMPLETE = 3, @@ -7711,7 +7639,7 @@ pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyTypePointer = *const gfxFontFeatureValueSet_FeatureValueHashKey; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_199467 +pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_218654 { ALLOW_MEMMOVE = 1, } @@ -7757,63 +7685,6 @@ fn bindgen_test_layout_nsFont() { assert_eq!(::std::mem::size_of::() , 88usize); assert_eq!(::std::mem::align_of::() , 8usize); } -pub type TimeStampValue = u64; -/** - * Instances of this class represent moments in time, or a special - * "null" moment. We do not use the non-monotonic system clock or - * local time, since they can be reset, causing apparent backward - * travel in time, which can confuse algorithms. Instead we measure - * elapsed time according to the system. This time can never go - * backwards (i.e. it never wraps around, at least not in less than - * five million years of system elapsed time). It might not advance - * while the system is sleeping. If TimeStamp::SetNow() is not called - * at all for hours or days, we might not notice the passage of some - * of that time. - * - * We deliberately do not expose a way to convert TimeStamps to some - * particular unit. All you can do is compute a difference between two - * TimeStamps to get a TimeDuration. You can also add a TimeDuration - * to a TimeStamp to get a new TimeStamp. You can't do something - * meaningless like add two TimeStamps. - * - * Internally this is implemented as either a wrapper around - * - high-resolution, monotonic, system clocks if they exist on this - * platform - * - PRIntervalTime otherwise. We detect wraparounds of - * PRIntervalTime and work around them. - * - * This class is similar to C++11's time_point, however it is - * explicitly nullable and provides an IsNull() method. time_point - * is initialized to the clock's epoch and provides a - * time_since_epoch() method that functions similiarly. i.e. - * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); - */ -#[repr(C)] -#[derive(Debug, Copy)] -pub struct TimeStamp { - /** - * When built with PRIntervalTime, a value of 0 means this instance - * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, - * and the high 32 bits represent a counter of the number of - * rollovers of PRIntervalTime that we've seen. This counter starts - * at 1 to avoid a real time colliding with the "null" value. - * - * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum - * time to wrap around is about 2^64/100000 seconds, i.e. about - * 5,849,424 years. - * - * When using a system clock, a value is system dependent. - */ - pub mValue: TimeStampValue, -} -#[test] -fn bindgen_test_layout_TimeStamp() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for TimeStamp { - fn clone(&self) -> Self { *self } -} #[repr(C)] #[derive(Debug, Copy)] pub struct FramePropertyDescriptorUntyped { @@ -8107,23 +7978,23 @@ pub enum nsStyleUnit { } #[repr(C)] #[derive(Debug, Copy)] -pub struct _bindgen_ty_bindgen_id_200199 { +pub struct _bindgen_ty_bindgen_id_219259 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mPointer: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout__bindgen_ty_bindgen_id_200199() { - assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_200199>() , +fn bindgen_test_layout__bindgen_ty_bindgen_id_219259() { + assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_219259>() , 8usize); - assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_200199>() , + assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_219259>() , 8usize); } -impl Clone for _bindgen_ty_bindgen_id_200199 { +impl Clone for _bindgen_ty_bindgen_id_219259 { fn clone(&self) -> Self { *self } } -pub type nsStyleUnion = _bindgen_ty_bindgen_id_200199; +pub type nsStyleUnion = _bindgen_ty_bindgen_id_219259; /** * Class that hold a single size specification used by the style * system. The size specification consists of two parts -- a number @@ -8496,30 +8367,6 @@ fn bindgen_test_layout_nsInvalidateRequestList() { assert_eq!(::std::mem::size_of::() , 8usize); assert_eq!(::std::mem::align_of::() , 8usize); } -#[repr(C)] -#[derive(Debug, Copy)] -pub struct DisplayItemClip_RoundedRect { - pub mRect: nsRect, - pub mRadii: [nscoord; 8usize], -} -#[test] -fn bindgen_test_layout_DisplayItemClip_RoundedRect() { - assert_eq!(::std::mem::size_of::() , - 48usize); - assert_eq!(::std::mem::align_of::() , - 4usize); -} -impl Clone for DisplayItemClip_RoundedRect { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct Grid { - pub _address: u8, -} -impl Clone for Grid { - fn clone(&self) -> Self { *self } -} #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSTokenSerializationType { @@ -9190,7 +9037,7 @@ fn bindgen_test_layout_imgRequestProxy() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_209298 { +pub struct bindgen_vtable__bindgen_id_228528 { } /** * An interface for observing changes to image state, as reported by @@ -9207,7 +9054,7 @@ pub struct bindgen_vtable__bindgen_id_209298 { #[repr(C)] #[derive(Debug)] pub struct IProgressObserver { - pub vtable_: *const bindgen_vtable__bindgen_id_209298, + pub vtable_: *const bindgen_vtable__bindgen_id_228528, pub _base: u64, } #[test] @@ -9229,7 +9076,7 @@ pub struct nsISupportsPriority_COMTypeInfo { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsISupportsPriority__bindgen_ty_bindgen_id_209379 { +pub enum nsISupportsPriority__bindgen_ty_bindgen_id_228609 { PRIORITY_HIGHEST = -20, PRIORITY_HIGH = -10, PRIORITY_NORMAL = 0, @@ -9664,7 +9511,7 @@ fn bindgen_test_layout_nsCSSValueFloatColor() { #[derive(Debug)] pub struct nsCSSValue { pub mUnit: nsCSSUnit, - pub mValue: nsCSSValue__bindgen_ty_bindgen_id_212376, + pub mValue: nsCSSValue__bindgen_ty_bindgen_id_231612, } #[repr(C)] #[derive(Debug)] @@ -9680,7 +9527,7 @@ fn bindgen_test_layout_nsCSSValue_Array() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsCSSValue__bindgen_ty_bindgen_id_212376 { +pub struct nsCSSValue__bindgen_ty_bindgen_id_231612 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mString: __BindgenUnionField<*mut nsStringBuffer>, @@ -9705,13 +9552,13 @@ pub struct nsCSSValue__bindgen_ty_bindgen_id_212376 { pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_212376() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_231612() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsCSSValue__bindgen_ty_bindgen_id_212376 { +impl Clone for nsCSSValue__bindgen_ty_bindgen_id_231612 { fn clone(&self) -> Self { *self } } #[test] @@ -9732,12 +9579,12 @@ fn bindgen_test_layout_nsCSSValueGradientStop() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_212584 { +pub struct bindgen_vtable__bindgen_id_231820 { } #[repr(C)] #[derive(Debug, Copy)] pub struct CounterStyle { - pub vtable_: *const bindgen_vtable__bindgen_id_212584, + pub vtable_: *const bindgen_vtable__bindgen_id_231820, pub mStyle: i32, } #[test] @@ -9750,20 +9597,6 @@ impl Clone for CounterStyle { } #[repr(C)] #[derive(Debug, Copy)] -pub struct LookAndFeelInt { - pub id: i32, - pub value: i32, -} -#[test] -fn bindgen_test_layout_LookAndFeelInt() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for LookAndFeelInt { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct imgIContainer { pub _address: u8, } @@ -9926,26 +9759,26 @@ pub struct nsStyleImage { pub mCachedBIData: UniquePtr>, pub mType: nsStyleImageType, - pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_214484, + pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_233720, pub mCropRect: UniquePtr>, pub mImageTracked: bool, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleImage__bindgen_ty_bindgen_id_214484 { +pub struct nsStyleImage__bindgen_ty_bindgen_id_233720 { pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mGradient: __BindgenUnionField<*mut nsStyleGradient>, pub mElementId: __BindgenUnionField<*mut u16>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_214484() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_233720() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleImage__bindgen_ty_bindgen_id_214484 { +impl Clone for nsStyleImage__bindgen_ty_bindgen_id_233720 { fn clone(&self) -> Self { *self } } #[test] @@ -9996,7 +9829,7 @@ pub struct nsStyleImageLayers { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_214539 { +pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_233775 { shorthand = 0, color = 1, image = 2, @@ -10187,45 +10020,45 @@ pub struct nsStyleBorder { pub mFloatEdge: StyleFloatEdge, pub mBoxDecorationBreak: StyleBoxDecorationBreak, pub mBorderStyle: [u8; 4usize], - pub __bindgen_anon_1: nsStyleBorder__bindgen_ty_bindgen_id_215212, + pub __bindgen_anon_1: nsStyleBorder__bindgen_ty_bindgen_id_234446, pub mComputedBorder: nsMargin, pub mBorder: nsMargin, pub mTwipsPerPixel: nscoord, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleBorder__bindgen_ty_bindgen_id_215212 { - pub __bindgen_anon_1: __BindgenUnionField, +pub struct nsStyleBorder__bindgen_ty_bindgen_id_234446 { + pub __bindgen_anon_1: __BindgenUnionField, pub mBorderColor: __BindgenUnionField<[StyleComplexColor; 4usize]>, pub bindgen_union_field: [u32; 8usize], } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleBorder__bindgen_ty_bindgen_id_215212__bindgen_ty_bindgen_id_215213 { +pub struct nsStyleBorder__bindgen_ty_bindgen_id_234446__bindgen_ty_bindgen_id_234447 { pub mBorderTopColor: StyleComplexColor, pub mBorderRightColor: StyleComplexColor, pub mBorderBottomColor: StyleComplexColor, pub mBorderLeftColor: StyleComplexColor, } #[test] -fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_215212__bindgen_ty_bindgen_id_215213() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_234446__bindgen_ty_bindgen_id_234447() { + assert_eq!(::std::mem::size_of::() , 32usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsStyleBorder__bindgen_ty_bindgen_id_215212__bindgen_ty_bindgen_id_215213 { + nsStyleBorder__bindgen_ty_bindgen_id_234446__bindgen_ty_bindgen_id_234447 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_215212() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_234446() { + assert_eq!(::std::mem::size_of::() , 32usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for nsStyleBorder__bindgen_ty_bindgen_id_215212 { +impl Clone for nsStyleBorder__bindgen_ty_bindgen_id_234446 { fn clone(&self) -> Self { *self } } #[test] @@ -10532,7 +10365,7 @@ impl Clone for nsStyleImageOrientation { #[derive(Debug, Copy)] pub struct nsTimingFunction { pub mType: nsTimingFunction_Type, - pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_216172, + pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_235406, } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -10551,56 +10384,56 @@ pub enum nsTimingFunction_Type { pub enum nsTimingFunction_Keyword { Implicit = 0, Explicit = 1, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_216172 { - pub mFunc: __BindgenUnionField, - pub __bindgen_anon_1: __BindgenUnionField, +pub struct nsTimingFunction__bindgen_ty_bindgen_id_235406 { + pub mFunc: __BindgenUnionField, + pub __bindgen_anon_1: __BindgenUnionField, pub bindgen_union_field: [u32; 4usize], } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_216172__bindgen_ty_bindgen_id_216173 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_235406__bindgen_ty_bindgen_id_235407 { pub mX1: f32, pub mY1: f32, pub mX2: f32, pub mY2: f32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_216172__bindgen_ty_bindgen_id_216173() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_235406__bindgen_ty_bindgen_id_235407() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_216172__bindgen_ty_bindgen_id_216173 + nsTimingFunction__bindgen_ty_bindgen_id_235406__bindgen_ty_bindgen_id_235407 { fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_216172__bindgen_ty_bindgen_id_216184 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_235406__bindgen_ty_bindgen_id_235418 { pub mSteps: u32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_216172__bindgen_ty_bindgen_id_216184() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_235406__bindgen_ty_bindgen_id_235418() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_216172__bindgen_ty_bindgen_id_216184 + nsTimingFunction__bindgen_ty_bindgen_id_235406__bindgen_ty_bindgen_id_235418 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_216172() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_235406() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_216172 { +impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_235406 { fn clone(&self) -> Self { *self } } #[test] @@ -10661,13 +10494,13 @@ fn bindgen_test_layout_StyleBasicShape() { #[repr(C)] #[derive(Debug)] pub struct StyleShapeSource { - pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_216555, + pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_235789, pub mType: StyleShapeSourceType, pub mReferenceBox: ReferenceBox, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct StyleShapeSource__bindgen_ty_bindgen_id_216555 { +pub struct StyleShapeSource__bindgen_ty_bindgen_id_235789 { pub mBasicShape: __BindgenUnionField<*mut StyleBasicShape>, pub mURL: __BindgenUnionField<*mut URLValue>, pub bindgen_union_field: u64, @@ -10719,25 +10552,25 @@ pub enum nsStyleContentType { #[derive(Debug)] pub struct nsStyleContentData { pub mType: nsStyleContentType, - pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_216639, + pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_235873, pub mImageTracked: bool, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleContentData__bindgen_ty_bindgen_id_216639 { +pub struct nsStyleContentData__bindgen_ty_bindgen_id_235873 { pub mString: __BindgenUnionField<*mut u16>, pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mCounters: __BindgenUnionField<*mut nsCSSValue_Array>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_216639() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_235873() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_216639 { +impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_235873 { fn clone(&self) -> Self { *self } } #[test] @@ -10860,25 +10693,25 @@ pub enum nsStyleSVGPaintType { #[repr(C)] #[derive(Debug)] pub struct nsStyleSVGPaint { - pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_217086, + pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_236320, pub mType: nsStyleSVGPaintType, pub mFallbackColor: nscolor, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_217086 { +pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_236320 { pub mColor: __BindgenUnionField, pub mPaintServer: __BindgenUnionField<*mut URLValue>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_217086() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_236320() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_217086 { +impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_236320 { fn clone(&self) -> Self { *self } } #[test] @@ -10913,7 +10746,7 @@ pub struct nsStyleSVG { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleSVG__bindgen_ty_bindgen_id_217246 { +pub enum nsStyleSVG__bindgen_ty_bindgen_id_236480 { FILL_OPACITY_SOURCE_MASK = 3, STROKE_OPACITY_SOURCE_MASK = 12, STROKE_DASHARRAY_CONTEXT = 16, @@ -10932,23 +10765,23 @@ fn bindgen_test_layout_nsStyleSVG() { pub struct nsStyleFilter { pub mType: i32, pub mFilterParameter: nsStyleCoord, - pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_217312, + pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_236546, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleFilter__bindgen_ty_bindgen_id_217312 { +pub struct nsStyleFilter__bindgen_ty_bindgen_id_236546 { pub mURL: __BindgenUnionField<*mut URLValue>, pub mDropShadow: __BindgenUnionField<*mut nsCSSShadowArray>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_217312() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_236546() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_217312 { +impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_236546 { fn clone(&self) -> Self { *self } } #[test] diff --git a/components/style/gecko_bindings/structs_release.rs b/components/style/gecko_bindings/structs_release.rs index c13e8761eeb..34325efd3aa 100644 --- a/components/style/gecko_bindings/structs_release.rs +++ b/components/style/gecko_bindings/structs_release.rs @@ -229,6 +229,9 @@ pub const NS_THEME_MAC_DISCLOSURE_BUTTON_OPEN: ::std::os::raw::c_uint = 245; pub const NS_THEME_MAC_DISCLOSURE_BUTTON_CLOSED: ::std::os::raw::c_uint = 246; pub const NS_THEME_GTK_INFO_BAR: ::std::os::raw::c_uint = 247; pub const NS_THEME_MAC_SOURCE_LIST: ::std::os::raw::c_uint = 248; +pub const NS_THEME_MAC_SOURCE_LIST_SELECTION: ::std::os::raw::c_uint = 249; +pub const NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION: ::std::os::raw::c_uint = + 250; pub const NS_FONT_VARIANT_NORMAL: ::std::os::raw::c_uint = 0; pub const NS_FONT_VARIANT_SMALL_CAPS: ::std::os::raw::c_uint = 1; pub const NS_CORNER_TOP_LEFT_X: ::std::os::raw::c_uint = 0; @@ -1457,27 +1460,6 @@ pub struct AlignedStorage2_U { pub bindgen_union_field: u64, pub _phantom_0: ::std::marker::PhantomData, } -/** - * Pair is the logical concatenation of an instance of A with an instance B. - * Space is conserved when possible. Neither A nor B may be a final class. - * - * It's typically clearer to have individual A and B member fields. Except if - * you want the space-conserving qualities of Pair, you're probably better off - * not using this! - * - * No guarantees are provided about the memory layout of A and B, the order of - * initialization or destruction of A and B, and so on. (This is approximately - * required to optimize space usage.) The first/second names are merely - * conceptual! - */ -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Pair { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -pub type Pair_Base = [u8; 0usize]; /** * A default deletion policy using plain old operator delete. * @@ -1547,86 +1529,15 @@ impl Clone for JSObject { #[repr(C)] #[derive(Debug, Copy)] pub struct Value { - pub data: jsval_layout, -} -#[test] -fn bindgen_test_layout_Value() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for Value { - fn clone(&self) -> Self { *self } + pub data: Value__bindgen_ty_bindgen_id_52237, } +pub type Value_PayloadType = u64; #[repr(C)] #[derive(Debug, Copy)] -pub struct JSCompartment { - pub _address: u8, -} -impl Clone for JSCompartment { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct atomic<_Tp> { - pub _base: (), - pub _phantom_0: ::std::marker::PhantomData<_Tp>, -} -pub type atomic___base = [u8; 0usize]; -#[repr(C)] -#[derive(Debug, Copy)] -pub struct FreePolicy { - pub _address: u8, -} -#[test] -fn bindgen_test_layout_FreePolicy() { - assert_eq!(::std::mem::size_of::() , 1usize); - assert_eq!(::std::mem::align_of::() , 1usize); -} -impl Clone for FreePolicy { - fn clone(&self) -> Self { *self } -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum JSValueTag { - JSVAL_TAG_MAX_DOUBLE = 131056, - JSVAL_TAG_INT32 = 131057, - JSVAL_TAG_UNDEFINED = 131058, - JSVAL_TAG_STRING = 131061, - JSVAL_TAG_SYMBOL = 131062, - JSVAL_TAG_BOOLEAN = 131059, - JSVAL_TAG_MAGIC = 131060, - JSVAL_TAG_NULL = 131064, - JSVAL_TAG_OBJECT = 131068, - JSVAL_TAG_PRIVATE_GCTHING = 131063, -} -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum JSWhyMagic { - JS_ELEMENTS_HOLE = 0, - JS_NO_ITER_VALUE = 1, - JS_GENERATOR_CLOSING = 2, - JS_NO_CONSTANT = 3, - JS_THIS_POISON = 4, - JS_ARG_POISON = 5, - JS_SERIALIZE_NO_NODE = 6, - JS_LAZY_ARGUMENTS = 7, - JS_OPTIMIZED_ARGUMENTS = 8, - JS_IS_CONSTRUCTING = 9, - JS_BLOCK_NEEDS_CLONE = 10, - JS_HASH_KEY_EMPTY = 11, - JS_ION_ERROR = 12, - JS_ION_BAILOUT = 13, - JS_OPTIMIZED_OUT = 14, - JS_UNINITIALIZED_LEXICAL = 15, - JS_GENERIC_MAGIC = 16, - JS_WHY_MAGIC_COUNT = 17, -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct jsval_layout { +pub struct Value__bindgen_ty_bindgen_id_52237 { pub asBits: __BindgenUnionField, - pub debugView: __BindgenUnionField, - pub s: __BindgenUnionField, + pub debugView: __BindgenUnionField, + pub s: __BindgenUnionField, pub asDouble: __BindgenUnionField, pub asPtr: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub asWord: __BindgenUnionField, @@ -1635,20 +1546,21 @@ pub struct jsval_layout { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_60504 { +pub struct Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52240 { pub _bitfield_1: u64, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_60504() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52240() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_60504 { +impl Clone for Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52240 + { fn clone(&self) -> Self { *self } } -impl jsval_layout__bindgen_ty_bindgen_id_60504 { +impl Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52240 { #[inline] pub fn payload47(&self) -> u64 { unsafe { @@ -1681,41 +1593,102 @@ impl jsval_layout__bindgen_ty_bindgen_id_60504 { } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_60511 { - pub payload: jsval_layout__bindgen_ty_bindgen_id_60511__bindgen_ty_bindgen_id_60512, +pub struct Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52246 { + pub payload: Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52246__bindgen_ty_bindgen_id_52247, } #[repr(C)] #[derive(Debug, Copy)] -pub struct jsval_layout__bindgen_ty_bindgen_id_60511__bindgen_ty_bindgen_id_60512 { +pub struct Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52246__bindgen_ty_bindgen_id_52247 { pub i32: __BindgenUnionField, pub u32: __BindgenUnionField, pub why: __BindgenUnionField, pub bindgen_union_field: u32, } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_60511__bindgen_ty_bindgen_id_60512() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52246__bindgen_ty_bindgen_id_52247() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - jsval_layout__bindgen_ty_bindgen_id_60511__bindgen_ty_bindgen_id_60512 { + Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52246__bindgen_ty_bindgen_id_52247 + { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_jsval_layout__bindgen_ty_bindgen_id_60511() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52246() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for jsval_layout__bindgen_ty_bindgen_id_60511 { +impl Clone for Value__bindgen_ty_bindgen_id_52237__bindgen_ty_bindgen_id_52246 + { fn clone(&self) -> Self { *self } } -impl Clone for jsval_layout { +#[test] +fn bindgen_test_layout_Value__bindgen_ty_bindgen_id_52237() { + assert_eq!(::std::mem::size_of::() , + 8usize); + assert_eq!(::std::mem::align_of::() , + 8usize); +} +impl Clone for Value__bindgen_ty_bindgen_id_52237 { fn clone(&self) -> Self { *self } } +impl Clone for Value { + fn clone(&self) -> Self { *self } +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum JSValueTag { + JSVAL_TAG_MAX_DOUBLE = 131056, + JSVAL_TAG_INT32 = 131057, + JSVAL_TAG_UNDEFINED = 131058, + JSVAL_TAG_STRING = 131061, + JSVAL_TAG_SYMBOL = 131062, + JSVAL_TAG_BOOLEAN = 131059, + JSVAL_TAG_MAGIC = 131060, + JSVAL_TAG_NULL = 131064, + JSVAL_TAG_OBJECT = 131068, + JSVAL_TAG_PRIVATE_GCTHING = 131063, +} +#[repr(C)] +#[derive(Debug, Copy)] +pub struct JSCompartment { + pub _address: u8, +} +impl Clone for JSCompartment { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct atomic<_Tp> { + pub _M_i: _Tp, +} +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum JSWhyMagic { + JS_ELEMENTS_HOLE = 0, + JS_NO_ITER_VALUE = 1, + JS_GENERATOR_CLOSING = 2, + JS_NO_CONSTANT = 3, + JS_THIS_POISON = 4, + JS_ARG_POISON = 5, + JS_SERIALIZE_NO_NODE = 6, + JS_LAZY_ARGUMENTS = 7, + JS_OPTIMIZED_ARGUMENTS = 8, + JS_IS_CONSTRUCTING = 9, + JS_BLOCK_NEEDS_CLONE = 10, + JS_HASH_KEY_EMPTY = 11, + JS_ION_ERROR = 12, + JS_ION_BAILOUT = 13, + JS_OPTIMIZED_OUT = 14, + JS_UNINITIALIZED_LEXICAL = 15, + JS_GENERIC_MAGIC = 16, + JS_WHY_MAGIC_COUNT = 17, +} #[repr(C)] #[derive(Debug)] pub struct nsAString_internal { @@ -1744,7 +1717,7 @@ pub type nsAString_internal_size_type = u32; pub type nsAString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsAString_internal__bindgen_ty_bindgen_id_62381 { +pub enum nsAString_internal__bindgen_ty_bindgen_id_66857 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1781,12 +1754,12 @@ impl Clone for nsSubstringTuple { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_62991 { +pub struct bindgen_vtable__bindgen_id_67467 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_62991, + pub vtable_: *const bindgen_vtable__bindgen_id_67467, } pub type nsStringComparator_char_type = u16; #[test] @@ -1828,7 +1801,7 @@ pub type nsACString_internal_size_type = u32; pub type nsACString_internal_index_type = u32; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsACString_internal__bindgen_ty_bindgen_id_64221 { +pub enum nsACString_internal__bindgen_ty_bindgen_id_68697 { F_NONE = 0, F_TERMINATED = 1, F_VOIDED = 2, @@ -1890,12 +1863,12 @@ fn bindgen_test_layout_nsCString() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_64773 { +pub struct bindgen_vtable__bindgen_id_69249 { } #[repr(C)] #[derive(Debug, Copy)] pub struct nsCStringComparator { - pub vtable_: *const bindgen_vtable__bindgen_id_64773, + pub vtable_: *const bindgen_vtable__bindgen_id_69249, } pub type nsCStringComparator_char_type = ::std::os::raw::c_char; #[test] @@ -1907,7 +1880,7 @@ impl Clone for nsCStringComparator { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_64817 { +pub struct bindgen_vtable__bindgen_id_69553 { } /** * Basic component object model interface. Objects which implement @@ -1918,7 +1891,7 @@ pub struct bindgen_vtable__bindgen_id_64817 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsISupports { - pub vtable_: *const bindgen_vtable__bindgen_id_64817, + pub vtable_: *const bindgen_vtable__bindgen_id_69553, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1936,7 +1909,7 @@ impl Clone for nsISupports { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_65101 { +pub struct bindgen_vtable__bindgen_id_69837 { } /** * Participant implementation classes @@ -1944,7 +1917,7 @@ pub struct bindgen_vtable__bindgen_id_65101 { #[repr(C)] #[derive(Debug, Copy)] pub struct nsCycleCollectionParticipant { - pub vtable_: *const bindgen_vtable__bindgen_id_65101, + pub vtable_: *const bindgen_vtable__bindgen_id_69837, pub mMightSkip: bool, } #[test] @@ -2269,7 +2242,7 @@ fn bindgen_test_layout_ErrorResult() { #[derive(Debug)] pub struct TErrorResult { pub mResult: nsresult, - pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_69734, + pub __bindgen_anon_1: TErrorResult__bindgen_ty_bindgen_id_74477, pub _phantom_0: ::std::marker::PhantomData, } #[repr(C)] @@ -2286,7 +2259,7 @@ pub struct TErrorResult_DOMExceptionInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TErrorResult__bindgen_ty_bindgen_id_69734 { +pub struct TErrorResult__bindgen_ty_bindgen_id_74477 { pub mMessage: __BindgenUnionField<*mut TErrorResult_Message>, pub mJSException: __BindgenUnionField, pub mDOMExceptionInfo: __BindgenUnionField<*mut TErrorResult_DOMExceptionInfo>, @@ -2432,7 +2405,7 @@ pub struct nsIPrincipal_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPrincipal__bindgen_ty_bindgen_id_70757 { +pub enum nsIPrincipal__bindgen_ty_bindgen_id_75500 { APP_STATUS_NOT_INSTALLED = 0, APP_STATUS_INSTALLED = 1, APP_STATUS_PRIVILEGED = 2, @@ -2467,7 +2440,7 @@ impl Clone for nsISerializable { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_70925 { +pub struct bindgen_vtable__bindgen_id_75668 { } /** * Class to store the wrapper for an object. This can only be used with objects @@ -2509,7 +2482,7 @@ pub struct bindgen_vtable__bindgen_id_70925 { #[repr(C)] #[derive(Debug)] pub struct nsWrapperCache { - pub vtable_: *const bindgen_vtable__bindgen_id_70925, + pub vtable_: *const bindgen_vtable__bindgen_id_75668, pub mWrapper: *mut JSObject, pub mFlags: nsWrapperCache_FlagsType, } @@ -2534,7 +2507,7 @@ pub type nsWrapperCache_FlagsType = u32; * NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER). */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_71121 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_75864 { WRAPPER_BIT_PRESERVED = 1, } #[repr(u32)] @@ -2543,12 +2516,12 @@ pub enum nsWrapperCache__bindgen_ty_bindgen_id_71121 { * binding. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_71124 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_75867 { WRAPPER_IS_NOT_DOM_BINDING = 2, } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsWrapperCache__bindgen_ty_bindgen_id_71127 { +pub enum nsWrapperCache__bindgen_ty_bindgen_id_75870 { kWrapperFlagsMask = 3, } #[test] @@ -2582,6 +2555,38 @@ fn bindgen_test_layout_GlobalObject() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pair<_T1, _T2> { + pub first: _T1, + pub second: _T2, +} +pub type pair_first_type<_T1> = _T1; +pub type pair_second_type<_T2> = _T2; +#[repr(C)] +pub struct bindgen_vtable__bindgen_id_123515 { +} +/** + * A class of objects that return source code on demand. + * + * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't + * retain the source code (and doesn't do lazy bytecode generation). If we ever + * need the source code, say, in response to a call to Function.prototype. + * toSource or Debugger.Source.prototype.text, then we call the 'load' member + * function of the instance of this class that has hopefully been registered + * with the runtime, passing the code's URL, and hope that it will be able to + * find the source. + */ +#[repr(C)] +#[derive(Debug)] +pub struct SourceHook { + pub vtable_: *const bindgen_vtable__bindgen_id_123515, +} +#[test] +fn bindgen_test_layout_SourceHook() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct nsScriptObjectTracer { pub _base: nsCycleCollectionParticipant, @@ -2616,69 +2621,165 @@ fn bindgen_test_layout_nsXPCOMCycleCollectionParticipant() { impl Clone for nsXPCOMCycleCollectionParticipant { fn clone(&self) -> Self { *self } } +pub type PLDHashNumber = u32; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pair<_T1, _T2> { - pub first: _T1, - pub second: _T2, +#[derive(Debug)] +pub struct PLDHashTable { + pub mOps: *const PLDHashTableOps, + pub mHashShift: i16, + pub mEntrySize: u32, + pub mEntryCount: u32, + pub mRemovedCount: u32, + pub mEntryStore: PLDHashTable_EntryStore, +} +#[repr(C)] +#[derive(Debug)] +pub struct PLDHashTable_EntryStore { + pub mEntryStore: *mut ::std::os::raw::c_char, + pub mGeneration: u32, +} +#[test] +fn bindgen_test_layout_PLDHashTable_EntryStore() { + assert_eq!(::std::mem::size_of::() , 16usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] +#[derive(Debug)] +pub struct PLDHashTable_Iterator { + pub mTable: *mut PLDHashTable, + pub mStart: *mut ::std::os::raw::c_char, + pub mLimit: *mut ::std::os::raw::c_char, + pub mCurrent: *mut ::std::os::raw::c_char, + pub mNexts: u32, + pub mNextsLimit: u32, + pub mHaveRemoved: bool, +} +#[test] +fn bindgen_test_layout_PLDHashTable_Iterator() { + assert_eq!(::std::mem::size_of::() , 48usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[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; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] + pub static PLDHashTable_kMinCapacity: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] + pub static PLDHashTable_kMaxInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] + pub static PLDHashTable_kDefaultInitialLength: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable9kHashBitsE"] + pub static PLDHashTable_kHashBits: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] + pub static PLDHashTable_kGoldenRatio: u32; +} +extern "C" { + #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] + pub static PLDHashTable_kCollisionFlag: PLDHashNumber; +} +#[test] +fn bindgen_test_layout_PLDHashTable() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); } -pub type pair_first_type<_T1> = _T1; -pub type pair_second_type<_T2> = _T2; #[repr(C)] #[derive(Debug, Copy)] -pub struct input_iterator_tag { - pub _address: u8, +pub struct PLDHashTableOps { + pub hashKey: PLDHashHashKey, + pub matchEntry: PLDHashMatchEntry, + pub moveEntry: PLDHashMoveEntry, + pub clearEntry: PLDHashClearEntry, + pub initEntry: PLDHashInitEntry, } -impl Clone for input_iterator_tag { +#[test] +fn bindgen_test_layout_PLDHashTableOps() { + assert_eq!(::std::mem::size_of::() , 40usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for PLDHashTableOps { fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] -pub struct forward_iterator_tag { - pub _address: u8, +pub struct PLDHashEntryHdr { + pub mKeyHash: PLDHashNumber, } -impl Clone for forward_iterator_tag { +#[test] +fn bindgen_test_layout_PLDHashEntryHdr() { + assert_eq!(::std::mem::size_of::() , 4usize); + assert_eq!(::std::mem::align_of::() , 4usize); +} +impl Clone for PLDHashEntryHdr { fn clone(&self) -> Self { *self } } -#[repr(C)] -#[derive(Debug, Copy)] -pub struct bidirectional_iterator_tag { - pub _address: u8, -} -impl Clone for bidirectional_iterator_tag { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct random_access_iterator_tag { - pub _address: u8, -} -impl Clone for random_access_iterator_tag { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -pub struct bindgen_vtable__bindgen_id_90813 { -} +pub type PLDHashHashKey = + ::std::option::Option ::std::os::raw::c_uint>; +pub type PLDHashMatchEntry = + ::std::option::Option bool>; +pub type PLDHashMoveEntry = + ::std::option::Option; +pub type PLDHashClearEntry = + ::std::option::Option; +pub type PLDHashInitEntry = + ::std::option::Option; /** - * A class of objects that return source code on demand. + * hashkey wrapper using T* KeyType * - * When code is compiled with setSourceIsLazy(true), SpiderMonkey doesn't - * retain the source code (and doesn't do lazy bytecode generation). If we ever - * need the source code, say, in response to a call to Function.prototype. - * toSource or Debugger.Source.prototype.text, then we call the 'load' member - * function of the instance of this class that has hopefully been registered - * with the runtime, passing the code's URL, and hope that it will be able to - * find the source. + * @see nsTHashtable::EntryType for specification */ #[repr(C)] #[derive(Debug)] -pub struct SourceHook { - pub vtable_: *const bindgen_vtable__bindgen_id_90813, +pub struct nsPtrHashKey { + pub _base: PLDHashEntryHdr, + pub mKey: *mut T, +} +pub type nsPtrHashKey_KeyType = *mut T; +pub type nsPtrHashKey_KeyTypePointer = *mut T; +#[repr(i32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum nsPtrHashKey__bindgen_ty_bindgen_id_130828 { ALLOW_MEMMOVE = 0, } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct nsIRunnable { + pub _base: nsISupports, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nsIRunnable_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, } #[test] -fn bindgen_test_layout_SourceHook() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); +fn bindgen_test_layout_nsIRunnable() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for nsIRunnable { + fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug)] @@ -2769,6 +2870,7 @@ pub struct nsIDocument { pub mAttrStyleSheet: RefPtr, pub mStyleAttrStyleSheet: RefPtr, pub mSVGAttrAnimationRuleProcessor: RefPtr, + pub mImageTracker: RefPtr, pub mActivityObservers: nsAutoPtr<()>, pub mLinksToUpdate: [u64; 5usize], pub mAnimationController: RefPtr, @@ -2830,6 +2932,7 @@ pub struct nsIDocument { pub mChildDocumentUseCounters: [u64; 2usize], pub mNotifiedPageForUseCounter: [u64; 2usize], pub mUserHasInteracted: bool, + pub mPageUnloadingEventTimeStamp: TimeStamp, } pub type nsIDocument_GlobalObject = GlobalObject; pub type nsIDocument_ReferrerPolicyEnum = ReferrerPolicy; @@ -2842,6 +2945,19 @@ pub struct nsIDocument_COMTypeInfo { pub _phantom_0: ::std::marker::PhantomData, pub _phantom_1: ::std::marker::PhantomData, } +#[repr(C)] +#[derive(Debug)] +pub struct nsIDocument_PageUnloadingEventTimeStamp { + pub mDocument: nsCOMPtr, + pub mSet: bool, +} +#[test] +fn bindgen_test_layout_nsIDocument_PageUnloadingEventTimeStamp() { + assert_eq!(::std::mem::size_of::() + , 16usize); + assert_eq!(::std::mem::align_of::() + , 8usize); +} /** * This gets fired when the element that an id refers to changes. * This fires at difficult times. It is generally not safe to do anything @@ -2965,9 +3081,6 @@ pub type nsIDocument_FrameRequestCallbackList = nsTArray>; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDocument__bindgen_ty_bindgen_id_104370 { REQUEST_DISCARD = 1, } -#[repr(u32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsIDocument_DeprecatedOperations { eGetAttributeNode = 0, eSetAttributeNode = 1, @@ -3049,7 +3162,7 @@ impl Clone for nsIDocument_FrameRequest { } #[test] fn bindgen_test_layout_nsIDocument() { - assert_eq!(::std::mem::size_of::() , 936usize); + assert_eq!(::std::mem::size_of::() , 944usize); assert_eq!(::std::mem::align_of::() , 8usize); } impl nsIDocument { @@ -3644,7 +3757,7 @@ pub struct nsINode { pub mNextSibling: *mut nsIContent, pub mPreviousSibling: *mut nsIContent, pub mFirstChild: *mut nsIContent, - pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_101267, + pub __bindgen_anon_1: nsINode__bindgen_ty_bindgen_id_137848, pub mSlots: *mut nsINode_nsSlots, pub mServoData: ServoCell<*mut ServoNodeData>, } @@ -3669,7 +3782,7 @@ pub struct nsINode_COMTypeInfo { * Bit-flags to pass (or'ed together) to IsNodeOfType() */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsINode__bindgen_ty_bindgen_id_97405 { +pub enum nsINode__bindgen_ty_bindgen_id_133986 { eCONTENT = 1, eDOCUMENT = 2, eATTRIBUTE = 4, @@ -3684,12 +3797,12 @@ pub enum nsINode__bindgen_ty_bindgen_id_97405 { eFILTER = 2048, } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_98174 { +pub struct bindgen_vtable__bindgen_id_134755 { } #[repr(C)] #[derive(Debug)] pub struct nsINode_nsSlots { - pub vtable_: *const bindgen_vtable__bindgen_id_98174, + pub vtable_: *const bindgen_vtable__bindgen_id_134755, /** * A list of mutation observers */ @@ -3758,19 +3871,19 @@ pub enum nsINode_BooleanFlag { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsINode__bindgen_ty_bindgen_id_101267 { +pub struct nsINode__bindgen_ty_bindgen_id_137848 { pub mPrimaryFrame: __BindgenUnionField<*mut nsIFrame>, pub mSubtreeRoot: __BindgenUnionField<*mut nsINode>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_101267() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsINode__bindgen_ty_bindgen_id_137848() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsINode__bindgen_ty_bindgen_id_101267 { +impl Clone for nsINode__bindgen_ty_bindgen_id_137848 { fn clone(&self) -> Self { *self } } #[test] @@ -3846,7 +3959,7 @@ fn bindgen_test_layout_StyleSetHandle() { impl Clone for StyleSetHandle { fn clone(&self) -> Self { *self } } -#[repr(i32)] +#[repr(u8)] /** * Enumeration that represents one of the two supported style system backends. */ @@ -3924,6 +4037,62 @@ pub enum nsRestyleHint { eRestyle_ForceDescendants = 1024, eRestyle_AllHintsWithAnimations = 368, } +/** + * Instances of this class represent moments in time, or a special + * "null" moment. We do not use the non-monotonic system clock or + * local time, since they can be reset, causing apparent backward + * travel in time, which can confuse algorithms. Instead we measure + * elapsed time according to the system. This time can never go + * backwards (i.e. it never wraps around, at least not in less than + * five million years of system elapsed time). It might not advance + * while the system is sleeping. If TimeStamp::SetNow() is not called + * at all for hours or days, we might not notice the passage of some + * of that time. + * + * We deliberately do not expose a way to convert TimeStamps to some + * particular unit. All you can do is compute a difference between two + * TimeStamps to get a TimeDuration. You can also add a TimeDuration + * to a TimeStamp to get a new TimeStamp. You can't do something + * meaningless like add two TimeStamps. + * + * Internally this is implemented as either a wrapper around + * - high-resolution, monotonic, system clocks if they exist on this + * platform + * - PRIntervalTime otherwise. We detect wraparounds of + * PRIntervalTime and work around them. + * + * This class is similar to C++11's time_point, however it is + * explicitly nullable and provides an IsNull() method. time_point + * is initialized to the clock's epoch and provides a + * time_since_epoch() method that functions similiarly. i.e. + * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); + */ +#[repr(C)] +#[derive(Debug, Copy)] +pub struct TimeStamp { + /** + * When built with PRIntervalTime, a value of 0 means this instance + * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, + * and the high 32 bits represent a counter of the number of + * rollovers of PRIntervalTime that we've seen. This counter starts + * at 1 to avoid a real time colliding with the "null" value. + * + * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum + * time to wrap around is about 2^64/100000 seconds, i.e. about + * 5,849,424 years. + * + * When using a system clock, a value is system dependent. + */ + pub mValue: TimeStampValue, +} +#[test] +fn bindgen_test_layout_TimeStamp() { + assert_eq!(::std::mem::size_of::() , 8usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +impl Clone for TimeStamp { + fn clone(&self) -> Self { *self } +} #[repr(C)] #[derive(Debug, Copy)] pub struct nsIObserver { @@ -3984,14 +4153,6 @@ fn bindgen_test_layout_nsIScriptGlobalObject() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct ShortcutKeyCandidate { - pub _address: u8, -} -impl Clone for ShortcutKeyCandidate { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct nsIVariant { pub _base: nsISupports, } @@ -4011,26 +4172,6 @@ impl Clone for nsIVariant { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug, Copy)] -pub struct nsIRunnable { - pub _base: nsISupports, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nsIRunnable_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -#[test] -fn bindgen_test_layout_nsIRunnable() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for nsIRunnable { - fn clone(&self) -> Self { *self } -} -#[repr(C)] #[derive(Debug)] pub struct Runnable { pub _base: nsIRunnable, @@ -4077,7 +4218,7 @@ pub struct nsIDOMNode_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDOMNode__bindgen_ty_bindgen_id_109371 { +pub enum nsIDOMNode__bindgen_ty_bindgen_id_145954 { ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, @@ -4093,7 +4234,7 @@ pub enum nsIDOMNode__bindgen_ty_bindgen_id_109371 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIDOMNode__bindgen_ty_bindgen_id_109590 { +pub enum nsIDOMNode__bindgen_ty_bindgen_id_146173 { DOCUMENT_POSITION_DISCONNECTED = 1, DOCUMENT_POSITION_PRECEDING = 2, DOCUMENT_POSITION_FOLLOWING = 4, @@ -4141,6 +4282,7 @@ impl Clone for nsIControllers { #[derive(Debug)] pub struct nsPresContext { pub _base: nsIObserver, + pub _base_1: u64, pub mRefCnt: nsCycleCollectingAutoRefCnt, pub _mOwningThread: nsAutoOwningThread, pub mType: nsPresContext_nsPresContextType, @@ -4255,7 +4397,7 @@ extern "C" { } #[test] fn bindgen_test_layout_nsPresContext() { - assert_eq!(::std::mem::size_of::() , 1160usize); + assert_eq!(::std::mem::size_of::() , 1168usize); assert_eq!(::std::mem::align_of::() , 8usize); } impl nsPresContext { @@ -4946,242 +5088,6 @@ pub enum Side { eSideBottom = 2, eSideLeft = 3, } -#[repr(C)] -#[derive(Debug)] -pub struct CallbackFunction { - pub _base: CallbackObject, -} -#[test] -fn bindgen_test_layout_CallbackFunction() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject { - pub _base: nsISupports, - pub mRefCnt: nsCycleCollectingAutoRefCnt, - pub _mOwningThread: nsAutoOwningThread, - pub mCallback: u64, - pub mCreationStack: u64, - pub mIncumbentGlobal: nsCOMPtr, - pub mIncumbentJSGlobal: u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CallbackObject_COMTypeInfo { - pub _address: u8, - pub _phantom_0: ::std::marker::PhantomData, - pub _phantom_1: ::std::marker::PhantomData, -} -pub type CallbackObject_HasThreadSafeRefCnt = FalseType; -#[repr(C)] -#[derive(Debug, Copy)] -pub struct CallbackObject_cycleCollection { - pub _base: nsXPCOMCycleCollectionParticipant, -} -#[test] -fn bindgen_test_layout_CallbackObject_cycleCollection() { - assert_eq!(::std::mem::size_of::() , - 16usize); - assert_eq!(::std::mem::align_of::() , - 8usize); -} -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 { - pub _address: u8, -} -#[test] -fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { - assert_eq!(::std::mem::size_of::() - , 1usize); - assert_eq!(::std::mem::align_of::() - , 1usize); -} -impl Clone for CallbackObject_FastCallbackConstructor { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug)] -pub struct CallbackObject_CallSetup { - pub mCx: *mut JSContext, - pub mCompartment: *mut JSCompartment, - pub mAutoEntryScript: [u64; 19usize], - pub mAutoIncumbentScript: [u64; 5usize], - pub mRootedCallable: [u64; 4usize], - pub mAsyncStack: [u64; 4usize], - pub mAsyncStackSetter: [u64; 7usize], - pub mAc: [u64; 3usize], - pub mErrorResult: *mut ErrorResult, - pub mExceptionHandling: CallbackObject_ExceptionHandling, - pub mIsMainThread: bool, -} -#[test] -fn bindgen_test_layout_CallbackObject_CallSetup() { - assert_eq!(::std::mem::size_of::() , 368usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -extern "C" { - #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] - pub static mut CallbackObject__cycleCollectorGlobal: - CallbackObject_cycleCollection; -} -#[test] -fn bindgen_test_layout_CallbackObject() { - assert_eq!(::std::mem::size_of::() , 56usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -pub type PLDHashNumber = u32; -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable { - pub mOps: *const PLDHashTableOps, - pub mHashShift: i16, - pub mEntrySize: u32, - pub mEntryCount: u32, - pub mRemovedCount: u32, - pub mEntryStore: PLDHashTable_EntryStore, -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_EntryStore { - pub mEntryStore: *mut ::std::os::raw::c_char, - pub mGeneration: u32, -} -#[test] -fn bindgen_test_layout_PLDHashTable_EntryStore() { - assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug)] -pub struct PLDHashTable_Iterator { - pub mTable: *mut PLDHashTable, - pub mStart: *mut ::std::os::raw::c_char, - pub mLimit: *mut ::std::os::raw::c_char, - pub mCurrent: *mut ::std::os::raw::c_char, - pub mNexts: u32, - pub mNextsLimit: u32, - pub mHaveRemoved: bool, -} -#[test] -fn bindgen_test_layout_PLDHashTable_Iterator() { - assert_eq!(::std::mem::size_of::() , 48usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[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; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kMinCapacityE"] - pub static PLDHashTable_kMinCapacity: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable17kMaxInitialLengthE"] - pub static PLDHashTable_kMaxInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable21kDefaultInitialLengthE"] - pub static PLDHashTable_kDefaultInitialLength: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable9kHashBitsE"] - pub static PLDHashTable_kHashBits: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable12kGoldenRatioE"] - pub static PLDHashTable_kGoldenRatio: u32; -} -extern "C" { - #[link_name = "_ZN12PLDHashTable14kCollisionFlagE"] - pub static PLDHashTable_kCollisionFlag: PLDHashNumber; -} -#[test] -fn bindgen_test_layout_PLDHashTable() { - assert_eq!(::std::mem::size_of::() , 40usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashTableOps { - pub hashKey: PLDHashHashKey, - pub matchEntry: PLDHashMatchEntry, - pub moveEntry: PLDHashMoveEntry, - pub clearEntry: PLDHashClearEntry, - pub initEntry: PLDHashInitEntry, -} -#[test] -fn bindgen_test_layout_PLDHashTableOps() { - assert_eq!(::std::mem::size_of::() , 40usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for PLDHashTableOps { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct PLDHashEntryHdr { - pub mKeyHash: PLDHashNumber, -} -#[test] -fn bindgen_test_layout_PLDHashEntryHdr() { - assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for PLDHashEntryHdr { - fn clone(&self) -> Self { *self } -} -pub type PLDHashHashKey = - ::std::option::Option ::std::os::raw::c_uint>; -pub type PLDHashMatchEntry = - ::std::option::Option bool>; -pub type PLDHashMoveEntry = - ::std::option::Option; -pub type PLDHashClearEntry = - ::std::option::Option; -pub type PLDHashInitEntry = - ::std::option::Option; -/** - * hashkey wrapper using T* KeyType - * - * @see nsTHashtable::EntryType for specification - */ -#[repr(C)] -#[derive(Debug)] -pub struct nsPtrHashKey { - pub _base: PLDHashEntryHdr, - pub mKey: *mut T, -} -pub type nsPtrHashKey_KeyType = *mut T; -pub type nsPtrHashKey_KeyTypePointer = *mut T; -#[repr(i32)] -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPtrHashKey__bindgen_ty_bindgen_id_113952 { ALLOW_MEMMOVE = 0, } /** * A node of content in a document's content model. This interface * is supported by all content objects. @@ -5201,14 +5107,14 @@ pub struct nsIContent_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIContent__bindgen_ty_bindgen_id_115292 { +pub enum nsIContent__bindgen_ty_bindgen_id_150194 { eAllChildren = 0, eAllButXBL = 1, eSkipPlaceholderContent = 2, } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIContent__bindgen_ty_bindgen_id_115528 { +pub enum nsIContent__bindgen_ty_bindgen_id_150430 { ATTR_MISSING = -1, ATTR_VALUE_NO_MATCH = -2, } @@ -5396,11 +5302,6 @@ pub struct FragmentOrElement_nsDOMSlots { * @see nsGenericHTMLElement::GetDataset */ pub mDataset: *mut nsDOMStringMap, - /** - * The .undoManager property. - * @see nsGenericHTMLElement::GetUndoManager - */ - pub mUndoManager: RefPtr, /** * SMIL Overridde style rules (for SMIL animation of CSS properties) * @see nsIContent::GetSMILOverrideStyle @@ -5415,7 +5316,7 @@ pub struct FragmentOrElement_nsDOMSlots { * @see FragmentOrElement::GetAttributes */ pub mAttributeMap: RefPtr, - pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_116625, + pub __bindgen_anon_1: FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_151526, /** * An object implementing the .children property for this element. */ @@ -5452,7 +5353,7 @@ pub struct FragmentOrElement_nsDOMSlots { } #[repr(C)] #[derive(Debug, Copy)] -pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_116625 { +pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_151526 { /** * The nearest enclosing content node with a binding that created us. * @see FragmentOrElement::GetBindingParent @@ -5465,19 +5366,19 @@ pub struct FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_116625 { pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_116625() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_151526() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_116625 { +impl Clone for FragmentOrElement_nsDOMSlots__bindgen_ty_bindgen_id_151526 { fn clone(&self) -> Self { *self } } #[test] fn bindgen_test_layout_FragmentOrElement_nsDOMSlots() { assert_eq!(::std::mem::size_of::() , - 168usize); + 160usize); assert_eq!(::std::mem::align_of::() , 8usize); } @@ -5529,21 +5430,91 @@ impl Clone for nsIWeakReference { } pub type nsWeakPtr = nsCOMPtr; #[repr(C)] -#[derive(Debug, Copy)] -pub struct PrefSetting { - pub _address: u8, -} -impl Clone for PrefSetting { - fn clone(&self) -> Self { *self } +#[derive(Debug)] +pub struct CallbackObject { + pub _base: nsISupports, + pub mRefCnt: nsCycleCollectingAutoRefCnt, + pub _mOwningThread: nsAutoOwningThread, + pub mCallback: u64, + pub mCreationStack: u64, + pub mIncumbentGlobal: nsCOMPtr, + pub mIncumbentJSGlobal: u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __bit_const_reference<_Cp> { - pub __seg_: __bit_const_reference___storage_pointer<_Cp>, - pub __mask_: __bit_const_reference___storage_type<_Cp>, +pub struct CallbackObject_COMTypeInfo { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData, + pub _phantom_1: ::std::marker::PhantomData, +} +pub type CallbackObject_HasThreadSafeRefCnt = FalseType; +#[repr(C)] +#[derive(Debug, Copy)] +pub struct CallbackObject_cycleCollection { + pub _base: nsXPCOMCycleCollectionParticipant, +} +#[test] +fn bindgen_test_layout_CallbackObject_cycleCollection() { + assert_eq!(::std::mem::size_of::() , + 16usize); + assert_eq!(::std::mem::align_of::() , + 8usize); +} +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 { + pub _address: u8, +} +#[test] +fn bindgen_test_layout_CallbackObject_FastCallbackConstructor() { + assert_eq!(::std::mem::size_of::() + , 1usize); + assert_eq!(::std::mem::align_of::() + , 1usize); +} +impl Clone for CallbackObject_FastCallbackConstructor { + fn clone(&self) -> Self { *self } +} +#[repr(C)] +#[derive(Debug)] +pub struct CallbackObject_CallSetup { + pub mCx: *mut JSContext, + pub mCompartment: *mut JSCompartment, + pub mAutoEntryScript: [u64; 19usize], + pub mAutoIncumbentScript: [u64; 5usize], + pub mRootedCallable: [u64; 4usize], + pub mAsyncStack: [u64; 4usize], + pub mAsyncStackSetter: [u64; 7usize], + pub mAc: [u64; 3usize], + pub mErrorResult: *mut ErrorResult, + pub mExceptionHandling: CallbackObject_ExceptionHandling, + pub mIsMainThread: bool, +} +#[test] +fn bindgen_test_layout_CallbackObject_CallSetup() { + assert_eq!(::std::mem::size_of::() , 368usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +extern "C" { + #[link_name = "_ZN7mozilla3dom14CallbackObject21_cycleCollectorGlobalE"] + pub static mut CallbackObject__cycleCollectorGlobal: + CallbackObject_cycleCollection; +} +#[test] +fn bindgen_test_layout_CallbackObject() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); } -pub type __bit_const_reference___storage_type<_Cp> = _Cp; -pub type __bit_const_reference___storage_pointer<_Cp> = _Cp; #[repr(C)] #[derive(Debug, Copy)] pub struct nsIChannel { @@ -5558,7 +5529,7 @@ pub struct nsIChannel_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIChannel__bindgen_ty_bindgen_id_133809 { +pub enum nsIChannel__bindgen_ty_bindgen_id_163111 { LOAD_DOCUMENT_URI = 65536, LOAD_RETARGETED_DOCUMENT_URI = 131072, LOAD_REPLACE = 262144, @@ -5572,7 +5543,7 @@ pub enum nsIChannel__bindgen_ty_bindgen_id_133809 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIChannel__bindgen_ty_bindgen_id_133829 { +pub enum nsIChannel__bindgen_ty_bindgen_id_163131 { DISPOSITION_INLINE = 0, DISPOSITION_ATTACHMENT = 1, } @@ -5598,7 +5569,7 @@ pub struct nsIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIRequest__bindgen_ty_bindgen_id_133647 { +pub enum nsIRequest__bindgen_ty_bindgen_id_162949 { LOAD_REQUESTMASK = 65535, LOAD_NORMAL = 0, LOAD_BACKGROUND = 1, @@ -5725,26 +5696,6 @@ pub enum SheetParsingMode { eUserSheetFeatures = 1, eAgentSheetFeatures = 2, } -/** - * Superclass for data common to CSSStyleSheet and ServoStyleSheet. - */ -#[repr(C)] -#[derive(Debug, Copy)] -pub struct StyleSheet { - pub mDocument: *mut nsIDocument, - pub mOwningNode: *mut nsINode, - pub mParsingMode: SheetParsingMode, - pub mType: StyleBackendType, - pub mDisabled: bool, -} -#[test] -fn bindgen_test_layout_StyleSheet() { - assert_eq!(::std::mem::size_of::() , 32usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for StyleSheet { - fn clone(&self) -> Self { *self } -} #[repr(C)] #[derive(Debug)] pub struct nsAttrValue { @@ -5764,25 +5715,24 @@ pub enum nsAttrValue_ValueType { eColor = 7, eEnum = 11, ePercent = 15, - eGeckoCSSDeclaration = 16, - eServoCSSDeclaration = 17, - eURL = 18, - eImage = 19, - eAtomArray = 20, - eDoubleValue = 21, - eIntMarginValue = 22, - eSVGAngle = 23, - eSVGIntegerPair = 24, - eSVGLength = 25, - eSVGLengthList = 26, - eSVGNumberList = 27, - eSVGNumberPair = 28, - eSVGPathData = 29, - eSVGPointList = 30, - eSVGPreserveAspectRatio = 31, - eSVGStringList = 32, - eSVGTransformList = 33, - eSVGViewBox = 34, + eCSSDeclaration = 16, + eURL = 17, + eImage = 18, + eAtomArray = 19, + eDoubleValue = 20, + eIntMarginValue = 21, + eSVGAngle = 22, + eSVGIntegerPair = 23, + eSVGLength = 24, + eSVGLengthList = 25, + eSVGNumberList = 26, + eSVGNumberPair = 27, + eSVGPathData = 28, + eSVGPointList = 29, + eSVGPreserveAspectRatio = 30, + eSVGStringList = 31, + eSVGTransformList = 32, + eSVGViewBox = 33, } /** * Structure for a mapping from int (enum) values to strings. When you use @@ -6159,13 +6109,13 @@ pub enum nsIPresShell_ReflowRootHandling { eNoPositionOrSizeChange = 1, eInferFromBitToAdd = 2, } -pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_152078 = - nsIPresShell__bindgen_ty_bindgen_id_152078::SCROLL_TOP; -pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_152078 = - nsIPresShell__bindgen_ty_bindgen_id_152078::SCROLL_BOTTOM; +pub const SCROLL_LEFT: nsIPresShell__bindgen_ty_bindgen_id_181668 = + nsIPresShell__bindgen_ty_bindgen_id_181668::SCROLL_TOP; +pub const SCROLL_RIGHT: nsIPresShell__bindgen_ty_bindgen_id_181668 = + nsIPresShell__bindgen_ty_bindgen_id_181668::SCROLL_BOTTOM; #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_152078 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_181668 { SCROLL_TOP = 0, SCROLL_BOTTOM = 100, SCROLL_CENTER = 50, @@ -6193,7 +6143,7 @@ impl Clone for nsIPresShell_ScrollAxis { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_152109 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_181699 { SCROLL_FIRST_ANCESTOR_ONLY = 1, SCROLL_OVERFLOW_HIDDEN = 2, SCROLL_NO_PARENT_FRAMES = 4, @@ -6240,7 +6190,7 @@ pub enum nsIPresShell__bindgen_ty_bindgen_id_152109 { * transform. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_152533 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_182069 { RENDER_IS_UNTRUSTED = 1, RENDER_IGNORE_VIEWPORT_SCROLLING = 2, RENDER_CARET = 4, @@ -6251,7 +6201,7 @@ pub enum nsIPresShell__bindgen_ty_bindgen_id_152533 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_152551 { +pub enum nsIPresShell__bindgen_ty_bindgen_id_182087 { RENDER_IS_IMAGE = 256, RENDER_AUTO_SCALE = 128, } @@ -6264,31 +6214,30 @@ pub enum nsIPresShell__bindgen_ty_bindgen_id_152551 { * transparent by default. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsIPresShell__bindgen_ty_bindgen_id_152667 { FORCE_DRAW = 1, } +pub enum nsIPresShell__bindgen_ty_bindgen_id_182203 { FORCE_DRAW = 1, } #[repr(C)] #[derive(Debug)] pub struct nsIPresShell_PointerCaptureInfo { pub mPendingContent: nsCOMPtr, pub mOverrideContent: nsCOMPtr, - pub mPrimaryState: bool, } #[test] fn bindgen_test_layout_nsIPresShell_PointerCaptureInfo() { assert_eq!(::std::mem::size_of::() , - 24usize); + 16usize); assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] #[derive(Debug, Copy)] pub struct nsIPresShell_PointerInfo { - pub mActiveState: bool, pub mPointerType: u16, + pub mActiveState: bool, pub mPrimaryState: bool, } #[test] fn bindgen_test_layout_nsIPresShell_PointerInfo() { - assert_eq!(::std::mem::size_of::() , 6usize); + assert_eq!(::std::mem::size_of::() , 4usize); assert_eq!(::std::mem::align_of::() , 2usize); } impl Clone for nsIPresShell_PointerInfo { @@ -6318,14 +6267,6 @@ extern "C" { #[link_name = "_ZN12nsIPresShell12gCaptureInfoE"] pub static mut nsIPresShell_gCaptureInfo: CapturingContentInfo; } -extern "C" { - #[link_name = "_ZN12nsIPresShell19gPointerCaptureListE"] - pub static mut nsIPresShell_gPointerCaptureList: *mut [u64; 5usize]; -} -extern "C" { - #[link_name = "_ZN12nsIPresShell18gActivePointersIdsE"] - pub static mut nsIPresShell_gActivePointersIds: *mut (); -} extern "C" { #[link_name = "_ZN12nsIPresShell14gKeyDownTargetE"] pub static mut nsIPresShell_gKeyDownTarget: *mut nsIContent; @@ -6529,14 +6470,6 @@ fn bindgen_test_layout_nsNodeWeakReference() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsDOMMutationObserver { - pub _address: u8, -} -impl Clone for nsDOMMutationObserver { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct BoxQuadOptions { pub _address: u8, } @@ -6651,67 +6584,67 @@ pub struct DOMPointInit { impl Clone for DOMPointInit { fn clone(&self) -> Self { *self } } -pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_LISTENERMANAGER; -pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_PROPERTIES; -pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_IS_ANONYMOUS_ROOT; -pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; -pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_IS_NATIVE_ANONYMOUS_ROOT; -pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_FORCE_XBL_BINDINGS; -pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_MAY_BE_IN_BINDING_MNGR; -pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_IS_EDITABLE; -pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_MAY_HAVE_CLASS; -pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_IS_IN_SHADOW_TREE; -pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_EMPTY_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_SLOW_SELECTOR; -pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_EDGE_CHILD_SELECTOR; -pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_154054 +pub const NODE_HAS_LISTENERMANAGER: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_LISTENERMANAGER; +pub const NODE_HAS_PROPERTIES: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_PROPERTIES; +pub const NODE_IS_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_IS_ANONYMOUS_ROOT; +pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; +pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_IS_NATIVE_ANONYMOUS_ROOT; +pub const NODE_FORCE_XBL_BINDINGS: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_FORCE_XBL_BINDINGS; +pub const NODE_MAY_BE_IN_BINDING_MNGR: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_MAY_BE_IN_BINDING_MNGR; +pub const NODE_IS_EDITABLE: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_IS_EDITABLE; +pub const NODE_MAY_HAVE_CLASS: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_MAY_HAVE_CLASS; +pub const NODE_IS_IN_SHADOW_TREE: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_IS_IN_SHADOW_TREE; +pub const NODE_HAS_EMPTY_SELECTOR: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_EMPTY_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_SLOW_SELECTOR; +pub const NODE_HAS_EDGE_CHILD_SELECTOR: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_EDGE_CHILD_SELECTOR; +pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: _bindgen_ty_bindgen_id_183589 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; -pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_ALL_SELECTOR_FLAGS; -pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_NEEDS_FRAME; -pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_DESCENDANTS_NEED_FRAMES; -pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_ACCESSKEY; -pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_DIRECTION_RTL; -pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_HAS_DIRECTION_LTR; -pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_ALL_DIRECTION_FLAGS; -pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_CHROME_ONLY_ACCESS; -pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; -pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_SHARED_RESTYLE_BIT_1; -pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_154054 + _bindgen_ty_bindgen_id_183589::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; +pub const NODE_ALL_SELECTOR_FLAGS: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_ALL_SELECTOR_FLAGS; +pub const NODE_NEEDS_FRAME: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_NEEDS_FRAME; +pub const NODE_DESCENDANTS_NEED_FRAMES: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_DESCENDANTS_NEED_FRAMES; +pub const NODE_HAS_ACCESSKEY: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_ACCESSKEY; +pub const NODE_HAS_DIRECTION_RTL: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_DIRECTION_RTL; +pub const NODE_HAS_DIRECTION_LTR: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_HAS_DIRECTION_LTR; +pub const NODE_ALL_DIRECTION_FLAGS: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_ALL_DIRECTION_FLAGS; +pub const NODE_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_CHROME_ONLY_ACCESS; +pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; +pub const NODE_SHARED_RESTYLE_BIT_1: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_SHARED_RESTYLE_BIT_2: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_IS_DIRTY_FOR_SERVO: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_SHARED_RESTYLE_BIT_1; +pub const NODE_HAS_DIRTY_DESCENDANTS_FOR_SERVO: _bindgen_ty_bindgen_id_183589 = - _bindgen_ty_bindgen_id_154054::NODE_SHARED_RESTYLE_BIT_2; -pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_154054 = - _bindgen_ty_bindgen_id_154054::NODE_TYPE_SPECIFIC_BITS_OFFSET; + _bindgen_ty_bindgen_id_183589::NODE_SHARED_RESTYLE_BIT_2; +pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: _bindgen_ty_bindgen_id_183589 = + _bindgen_ty_bindgen_id_183589::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum _bindgen_ty_bindgen_id_154054 { +pub enum _bindgen_ty_bindgen_id_183589 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -6769,7 +6702,7 @@ pub struct nsITimer_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsITimer__bindgen_ty_bindgen_id_170703 { +pub enum nsITimer__bindgen_ty_bindgen_id_196121 { TYPE_ONE_SHOT = 0, TYPE_REPEATING_SLACK = 1, TYPE_REPEATING_PRECISE = 2, @@ -6795,7 +6728,7 @@ pub struct nsExpirationState { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsExpirationState__bindgen_ty_bindgen_id_171179 { +pub enum nsExpirationState__bindgen_ty_bindgen_id_196597 { NOT_TRACKED = 15, MAX_INDEX_IN_GENERATION = 268435455, } @@ -6850,6 +6783,7 @@ impl Clone for PRCListStr { fn clone(&self) -> Self { *self } } pub type PRCList = PRCListStr; +pub type TimeStampValue = u64; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct UnionMember { @@ -6869,7 +6803,7 @@ pub struct imgIRequest_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgIRequest__bindgen_ty_bindgen_id_171763 { +pub enum imgIRequest__bindgen_ty_bindgen_id_198112 { STATUS_NONE = 0, STATUS_SIZE_AVAILABLE = 1, STATUS_LOAD_COMPLETE = 2, @@ -6881,7 +6815,7 @@ pub enum imgIRequest__bindgen_ty_bindgen_id_171763 { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgIRequest__bindgen_ty_bindgen_id_171843 { +pub enum imgIRequest__bindgen_ty_bindgen_id_198192 { CORS_NONE = 1, CORS_ANONYMOUS = 2, CORS_USE_CREDENTIALS = 3, @@ -6951,14 +6885,6 @@ impl Clone for nsIHTMLCollection { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsIObjectLoadingContent { - pub _address: u8, -} -impl Clone for nsIObjectLoadingContent { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct nsIStructuredCloneContainer { pub _address: u8, } @@ -7007,14 +6933,6 @@ impl Clone for ImageLoader { } #[repr(C)] #[derive(Debug, Copy)] -pub struct Animation { - pub _address: u8, -} -impl Clone for Animation { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct AnonymousContent { pub _address: u8, } @@ -7094,6 +7012,16 @@ fn bindgen_test_layout_FrameRequestCallback() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] +#[derive(Debug)] +pub struct CallbackFunction { + pub _base: CallbackObject, +} +#[test] +fn bindgen_test_layout_CallbackFunction() { + assert_eq!(::std::mem::size_of::() , 56usize); + assert_eq!(::std::mem::align_of::() , 8usize); +} +#[repr(C)] #[derive(Debug, Copy)] pub struct FullscreenRequest { pub _address: u8, @@ -7103,10 +7031,10 @@ impl Clone for FullscreenRequest { } #[repr(C)] #[derive(Debug, Copy)] -pub struct UndoManager { +pub struct ImageTracker { pub _address: u8, } -impl Clone for UndoManager { +impl Clone for ImageTracker { fn clone(&self) -> Self { *self } } #[repr(C)] @@ -7147,14 +7075,6 @@ fn bindgen_test_layout_nsAttrName() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -#[derive(Debug, Copy)] -pub struct Declaration { - pub _address: u8, -} -impl Clone for Declaration { - fn clone(&self) -> Self { *self } -} -#[repr(C)] #[derive(Debug)] pub struct URLValue { pub _base: URLValueData, @@ -7165,12 +7085,12 @@ fn bindgen_test_layout_URLValue() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_190132 { +pub struct bindgen_vtable__bindgen_id_208594 { } #[repr(C)] #[derive(Debug)] pub struct URLValueData { - pub vtable_: *const bindgen_vtable__bindgen_id_190132, + pub vtable_: *const bindgen_vtable__bindgen_id_208594, pub mRefCnt: ThreadSafeAutoRefCnt, pub mURI: nsMainThreadPtrHandle, pub mBaseURI: nsMainThreadPtrHandle, @@ -7303,6 +7223,14 @@ pub struct nsDOMStringMap { impl Clone for nsDOMStringMap { fn clone(&self) -> Self { *self } } +#[repr(C)] +#[derive(Debug, Copy)] +pub struct Declaration { + pub _address: u8, +} +impl Clone for Declaration { + fn clone(&self) -> Self { *self } +} /** * Interface used for handling clicks on links */ @@ -7381,7 +7309,7 @@ pub type nsPresArena_FreeList_KeyType = u32; pub type nsPresArena_FreeList_KeyTypePointer = *const ::std::os::raw::c_void; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_192286 { +pub enum nsPresArena_FreeList__bindgen_ty_bindgen_id_210748 { ALLOW_MEMMOVE = 0, } #[test] @@ -7408,7 +7336,7 @@ pub struct imgINotificationObserver_COMTypeInfo { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum imgINotificationObserver__bindgen_ty_bindgen_id_192433 { +pub enum imgINotificationObserver__bindgen_ty_bindgen_id_210895 { SIZE_AVAILABLE = 1, FRAME_UPDATE = 2, FRAME_COMPLETE = 3, @@ -7657,7 +7585,7 @@ pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyTypePointer = *const gfxFontFeatureValueSet_FeatureValueHashKey; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_193671 +pub enum gfxFontFeatureValueSet_FeatureValueHashEntry__bindgen_ty_bindgen_id_212139 { ALLOW_MEMMOVE = 1, } @@ -7703,63 +7631,6 @@ fn bindgen_test_layout_nsFont() { assert_eq!(::std::mem::size_of::() , 88usize); assert_eq!(::std::mem::align_of::() , 8usize); } -pub type TimeStampValue = u64; -/** - * Instances of this class represent moments in time, or a special - * "null" moment. We do not use the non-monotonic system clock or - * local time, since they can be reset, causing apparent backward - * travel in time, which can confuse algorithms. Instead we measure - * elapsed time according to the system. This time can never go - * backwards (i.e. it never wraps around, at least not in less than - * five million years of system elapsed time). It might not advance - * while the system is sleeping. If TimeStamp::SetNow() is not called - * at all for hours or days, we might not notice the passage of some - * of that time. - * - * We deliberately do not expose a way to convert TimeStamps to some - * particular unit. All you can do is compute a difference between two - * TimeStamps to get a TimeDuration. You can also add a TimeDuration - * to a TimeStamp to get a new TimeStamp. You can't do something - * meaningless like add two TimeStamps. - * - * Internally this is implemented as either a wrapper around - * - high-resolution, monotonic, system clocks if they exist on this - * platform - * - PRIntervalTime otherwise. We detect wraparounds of - * PRIntervalTime and work around them. - * - * This class is similar to C++11's time_point, however it is - * explicitly nullable and provides an IsNull() method. time_point - * is initialized to the clock's epoch and provides a - * time_since_epoch() method that functions similiarly. i.e. - * t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero(); - */ -#[repr(C)] -#[derive(Debug, Copy)] -pub struct TimeStamp { - /** - * When built with PRIntervalTime, a value of 0 means this instance - * is "null". Otherwise, the low 32 bits represent a PRIntervalTime, - * and the high 32 bits represent a counter of the number of - * rollovers of PRIntervalTime that we've seen. This counter starts - * at 1 to avoid a real time colliding with the "null" value. - * - * PR_INTERVAL_MAX is set at 100,000 ticks per second. So the minimum - * time to wrap around is about 2^64/100000 seconds, i.e. about - * 5,849,424 years. - * - * When using a system clock, a value is system dependent. - */ - pub mValue: TimeStampValue, -} -#[test] -fn bindgen_test_layout_TimeStamp() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for TimeStamp { - fn clone(&self) -> Self { *self } -} #[repr(C)] #[derive(Debug, Copy)] pub struct FramePropertyDescriptorUntyped { @@ -8053,23 +7924,23 @@ pub enum nsStyleUnit { } #[repr(C)] #[derive(Debug, Copy)] -pub struct _bindgen_ty_bindgen_id_194403 { +pub struct _bindgen_ty_bindgen_id_212744 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mPointer: __BindgenUnionField<*mut ::std::os::raw::c_void>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout__bindgen_ty_bindgen_id_194403() { - assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_194403>() , +fn bindgen_test_layout__bindgen_ty_bindgen_id_212744() { + assert_eq!(::std::mem::size_of::<_bindgen_ty_bindgen_id_212744>() , 8usize); - assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_194403>() , + assert_eq!(::std::mem::align_of::<_bindgen_ty_bindgen_id_212744>() , 8usize); } -impl Clone for _bindgen_ty_bindgen_id_194403 { +impl Clone for _bindgen_ty_bindgen_id_212744 { fn clone(&self) -> Self { *self } } -pub type nsStyleUnion = _bindgen_ty_bindgen_id_194403; +pub type nsStyleUnion = _bindgen_ty_bindgen_id_212744; /** * Class that hold a single size specification used by the style * system. The size specification consists of two parts -- a number @@ -8442,30 +8313,6 @@ fn bindgen_test_layout_nsInvalidateRequestList() { assert_eq!(::std::mem::size_of::() , 8usize); assert_eq!(::std::mem::align_of::() , 8usize); } -#[repr(C)] -#[derive(Debug, Copy)] -pub struct DisplayItemClip_RoundedRect { - pub mRect: nsRect, - pub mRadii: [nscoord; 8usize], -} -#[test] -fn bindgen_test_layout_DisplayItemClip_RoundedRect() { - assert_eq!(::std::mem::size_of::() , - 48usize); - assert_eq!(::std::mem::align_of::() , - 4usize); -} -impl Clone for DisplayItemClip_RoundedRect { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct Grid { - pub _address: u8, -} -impl Clone for Grid { - fn clone(&self) -> Self { *self } -} #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSTokenSerializationType { @@ -9136,7 +8983,7 @@ fn bindgen_test_layout_imgRequestProxy() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_203447 { +pub struct bindgen_vtable__bindgen_id_221958 { } /** * An interface for observing changes to image state, as reported by @@ -9153,7 +9000,7 @@ pub struct bindgen_vtable__bindgen_id_203447 { #[repr(C)] #[derive(Debug)] pub struct IProgressObserver { - pub vtable_: *const bindgen_vtable__bindgen_id_203447, + pub vtable_: *const bindgen_vtable__bindgen_id_221958, pub _base: u64, } #[test] @@ -9175,7 +9022,7 @@ pub struct nsISupportsPriority_COMTypeInfo { } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsISupportsPriority__bindgen_ty_bindgen_id_203523 { +pub enum nsISupportsPriority__bindgen_ty_bindgen_id_222034 { PRIORITY_HIGHEST = -20, PRIORITY_HIGH = -10, PRIORITY_NORMAL = 0, @@ -9610,7 +9457,7 @@ fn bindgen_test_layout_nsCSSValueFloatColor() { #[derive(Debug)] pub struct nsCSSValue { pub mUnit: nsCSSUnit, - pub mValue: nsCSSValue__bindgen_ty_bindgen_id_206520, + pub mValue: nsCSSValue__bindgen_ty_bindgen_id_225037, } #[repr(C)] #[derive(Debug)] @@ -9626,7 +9473,7 @@ fn bindgen_test_layout_nsCSSValue_Array() { } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsCSSValue__bindgen_ty_bindgen_id_206520 { +pub struct nsCSSValue__bindgen_ty_bindgen_id_225037 { pub mInt: __BindgenUnionField, pub mFloat: __BindgenUnionField, pub mString: __BindgenUnionField<*mut nsStringBuffer>, @@ -9651,13 +9498,13 @@ pub struct nsCSSValue__bindgen_ty_bindgen_id_206520 { pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_206520() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsCSSValue__bindgen_ty_bindgen_id_225037() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsCSSValue__bindgen_ty_bindgen_id_206520 { +impl Clone for nsCSSValue__bindgen_ty_bindgen_id_225037 { fn clone(&self) -> Self { *self } } #[test] @@ -9678,12 +9525,12 @@ fn bindgen_test_layout_nsCSSValueGradientStop() { assert_eq!(::std::mem::align_of::() , 8usize); } #[repr(C)] -pub struct bindgen_vtable__bindgen_id_206728 { +pub struct bindgen_vtable__bindgen_id_225245 { } #[repr(C)] #[derive(Debug, Copy)] pub struct CounterStyle { - pub vtable_: *const bindgen_vtable__bindgen_id_206728, + pub vtable_: *const bindgen_vtable__bindgen_id_225245, pub mStyle: i32, } #[test] @@ -9696,20 +9543,6 @@ impl Clone for CounterStyle { } #[repr(C)] #[derive(Debug, Copy)] -pub struct LookAndFeelInt { - pub id: i32, - pub value: i32, -} -#[test] -fn bindgen_test_layout_LookAndFeelInt() { - assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() , 4usize); -} -impl Clone for LookAndFeelInt { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct imgIContainer { pub _address: u8, } @@ -9872,25 +9705,25 @@ pub struct nsStyleImage { pub mCachedBIData: UniquePtr>, pub mType: nsStyleImageType, - pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_208628, + pub __bindgen_anon_1: nsStyleImage__bindgen_ty_bindgen_id_227145, pub mCropRect: UniquePtr>, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleImage__bindgen_ty_bindgen_id_208628 { +pub struct nsStyleImage__bindgen_ty_bindgen_id_227145 { pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mGradient: __BindgenUnionField<*mut nsStyleGradient>, pub mElementId: __BindgenUnionField<*mut u16>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_208628() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleImage__bindgen_ty_bindgen_id_227145() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleImage__bindgen_ty_bindgen_id_208628 { +impl Clone for nsStyleImage__bindgen_ty_bindgen_id_227145 { fn clone(&self) -> Self { *self } } #[test] @@ -9941,7 +9774,7 @@ pub struct nsStyleImageLayers { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_208681 { +pub enum nsStyleImageLayers__bindgen_ty_bindgen_id_227198 { shorthand = 0, color = 1, image = 2, @@ -10132,45 +9965,45 @@ pub struct nsStyleBorder { pub mFloatEdge: StyleFloatEdge, pub mBoxDecorationBreak: StyleBoxDecorationBreak, pub mBorderStyle: [u8; 4usize], - pub __bindgen_anon_1: nsStyleBorder__bindgen_ty_bindgen_id_209354, + pub __bindgen_anon_1: nsStyleBorder__bindgen_ty_bindgen_id_227869, pub mComputedBorder: nsMargin, pub mBorder: nsMargin, pub mTwipsPerPixel: nscoord, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleBorder__bindgen_ty_bindgen_id_209354 { - pub __bindgen_anon_1: __BindgenUnionField, +pub struct nsStyleBorder__bindgen_ty_bindgen_id_227869 { + pub __bindgen_anon_1: __BindgenUnionField, pub mBorderColor: __BindgenUnionField<[StyleComplexColor; 4usize]>, pub bindgen_union_field: [u32; 8usize], } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleBorder__bindgen_ty_bindgen_id_209354__bindgen_ty_bindgen_id_209355 { +pub struct nsStyleBorder__bindgen_ty_bindgen_id_227869__bindgen_ty_bindgen_id_227870 { pub mBorderTopColor: StyleComplexColor, pub mBorderRightColor: StyleComplexColor, pub mBorderBottomColor: StyleComplexColor, pub mBorderLeftColor: StyleComplexColor, } #[test] -fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_209354__bindgen_ty_bindgen_id_209355() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_227869__bindgen_ty_bindgen_id_227870() { + assert_eq!(::std::mem::size_of::() , 32usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsStyleBorder__bindgen_ty_bindgen_id_209354__bindgen_ty_bindgen_id_209355 { + nsStyleBorder__bindgen_ty_bindgen_id_227869__bindgen_ty_bindgen_id_227870 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_209354() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleBorder__bindgen_ty_bindgen_id_227869() { + assert_eq!(::std::mem::size_of::() , 32usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for nsStyleBorder__bindgen_ty_bindgen_id_209354 { +impl Clone for nsStyleBorder__bindgen_ty_bindgen_id_227869 { fn clone(&self) -> Self { *self } } #[test] @@ -10477,7 +10310,7 @@ impl Clone for nsStyleImageOrientation { #[derive(Debug, Copy)] pub struct nsTimingFunction { pub mType: nsTimingFunction_Type, - pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_210314, + pub __bindgen_anon_1: nsTimingFunction__bindgen_ty_bindgen_id_228829, } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -10496,56 +10329,56 @@ pub enum nsTimingFunction_Type { pub enum nsTimingFunction_Keyword { Implicit = 0, Explicit = 1, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_210314 { - pub mFunc: __BindgenUnionField, - pub __bindgen_anon_1: __BindgenUnionField, +pub struct nsTimingFunction__bindgen_ty_bindgen_id_228829 { + pub mFunc: __BindgenUnionField, + pub __bindgen_anon_1: __BindgenUnionField, pub bindgen_union_field: [u32; 4usize], } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_210314__bindgen_ty_bindgen_id_210315 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_228829__bindgen_ty_bindgen_id_228830 { pub mX1: f32, pub mY1: f32, pub mX2: f32, pub mY2: f32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_210314__bindgen_ty_bindgen_id_210315() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_228829__bindgen_ty_bindgen_id_228830() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_210314__bindgen_ty_bindgen_id_210315 + nsTimingFunction__bindgen_ty_bindgen_id_228829__bindgen_ty_bindgen_id_228830 { fn clone(&self) -> Self { *self } } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsTimingFunction__bindgen_ty_bindgen_id_210314__bindgen_ty_bindgen_id_210326 { +pub struct nsTimingFunction__bindgen_ty_bindgen_id_228829__bindgen_ty_bindgen_id_228841 { pub mSteps: u32, } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_210314__bindgen_ty_bindgen_id_210326() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_228829__bindgen_ty_bindgen_id_228841() { + assert_eq!(::std::mem::size_of::() , 4usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } impl Clone for - nsTimingFunction__bindgen_ty_bindgen_id_210314__bindgen_ty_bindgen_id_210326 + nsTimingFunction__bindgen_ty_bindgen_id_228829__bindgen_ty_bindgen_id_228841 { fn clone(&self) -> Self { *self } } #[test] -fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_210314() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsTimingFunction__bindgen_ty_bindgen_id_228829() { + assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 4usize); } -impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_210314 { +impl Clone for nsTimingFunction__bindgen_ty_bindgen_id_228829 { fn clone(&self) -> Self { *self } } #[test] @@ -10606,13 +10439,13 @@ fn bindgen_test_layout_StyleBasicShape() { #[repr(C)] #[derive(Debug)] pub struct StyleShapeSource { - pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_210697, + pub __bindgen_anon_1: StyleShapeSource__bindgen_ty_bindgen_id_229212, pub mType: StyleShapeSourceType, pub mReferenceBox: ReferenceBox, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct StyleShapeSource__bindgen_ty_bindgen_id_210697 { +pub struct StyleShapeSource__bindgen_ty_bindgen_id_229212 { pub mBasicShape: __BindgenUnionField<*mut StyleBasicShape>, pub mURL: __BindgenUnionField<*mut URLValue>, pub bindgen_union_field: u64, @@ -10664,24 +10497,24 @@ pub enum nsStyleContentType { #[derive(Debug)] pub struct nsStyleContentData { pub mType: nsStyleContentType, - pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_210781, + pub mContent: nsStyleContentData__bindgen_ty_bindgen_id_229296, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleContentData__bindgen_ty_bindgen_id_210781 { +pub struct nsStyleContentData__bindgen_ty_bindgen_id_229296 { pub mString: __BindgenUnionField<*mut u16>, pub mImage: __BindgenUnionField<*mut imgRequestProxy>, pub mCounters: __BindgenUnionField<*mut nsCSSValue_Array>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_210781() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleContentData__bindgen_ty_bindgen_id_229296() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_210781 { +impl Clone for nsStyleContentData__bindgen_ty_bindgen_id_229296 { fn clone(&self) -> Self { *self } } #[test] @@ -10804,25 +10637,25 @@ pub enum nsStyleSVGPaintType { #[repr(C)] #[derive(Debug)] pub struct nsStyleSVGPaint { - pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_211226, + pub mPaint: nsStyleSVGPaint__bindgen_ty_bindgen_id_229741, pub mType: nsStyleSVGPaintType, pub mFallbackColor: nscolor, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_211226 { +pub struct nsStyleSVGPaint__bindgen_ty_bindgen_id_229741 { pub mColor: __BindgenUnionField, pub mPaintServer: __BindgenUnionField<*mut URLValue>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_211226() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleSVGPaint__bindgen_ty_bindgen_id_229741() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_211226 { +impl Clone for nsStyleSVGPaint__bindgen_ty_bindgen_id_229741 { fn clone(&self) -> Self { *self } } #[test] @@ -10857,7 +10690,7 @@ pub struct nsStyleSVG { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub enum nsStyleSVG__bindgen_ty_bindgen_id_211386 { +pub enum nsStyleSVG__bindgen_ty_bindgen_id_229901 { FILL_OPACITY_SOURCE_MASK = 3, STROKE_OPACITY_SOURCE_MASK = 12, STROKE_DASHARRAY_CONTEXT = 16, @@ -10876,23 +10709,23 @@ fn bindgen_test_layout_nsStyleSVG() { pub struct nsStyleFilter { pub mType: i32, pub mFilterParameter: nsStyleCoord, - pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_211452, + pub __bindgen_anon_1: nsStyleFilter__bindgen_ty_bindgen_id_229967, } #[repr(C)] #[derive(Debug, Copy)] -pub struct nsStyleFilter__bindgen_ty_bindgen_id_211452 { +pub struct nsStyleFilter__bindgen_ty_bindgen_id_229967 { pub mURL: __BindgenUnionField<*mut URLValue>, pub mDropShadow: __BindgenUnionField<*mut nsCSSShadowArray>, pub bindgen_union_field: u64, } #[test] -fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_211452() { - assert_eq!(::std::mem::size_of::() +fn bindgen_test_layout_nsStyleFilter__bindgen_ty_bindgen_id_229967() { + assert_eq!(::std::mem::size_of::() , 8usize); - assert_eq!(::std::mem::align_of::() + assert_eq!(::std::mem::align_of::() , 8usize); } -impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_211452 { +impl Clone for nsStyleFilter__bindgen_ty_bindgen_id_229967 { fn clone(&self) -> Self { *self } } #[test] diff --git a/components/style/gecko_string_cache/atom_macro.rs b/components/style/gecko_string_cache/atom_macro.rs index 3df64268221..2c19395c51c 100644 --- a/components/style/gecko_string_cache/atom_macro.rs +++ b/components/style/gecko_string_cache/atom_macro.rs @@ -162,8 +162,6 @@ cfg_if! { pub static nsGkAtoms_any: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms6mozappE"] pub static nsGkAtoms_mozapp: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms9mozwidgetE"] - pub static nsGkAtoms_mozwidget: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms6appletE"] pub static nsGkAtoms_applet: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms12applyImportsE"] @@ -1072,6 +1070,8 @@ cfg_if! { pub static nsGkAtoms_listrows: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms4loadE"] pub static nsGkAtoms_load: *mut nsIAtom; + #[link_name = "_ZN9nsGkAtoms16loadingprincipalE"] + pub static nsGkAtoms_loadingprincipal: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms9localedirE"] pub static nsGkAtoms_localedir: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms9localNameE"] @@ -1352,6 +1352,8 @@ cfg_if! { pub static nsGkAtoms_onantennaavailablechange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms12onAppCommandE"] pub static nsGkAtoms_onAppCommand: *mut nsIAtom; + #[link_name = "_ZN9nsGkAtoms14onappinstalledE"] + pub static nsGkAtoms_onappinstalled: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms18onattributechangedE"] pub static nsGkAtoms_onattributechanged: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms18onattributereadreqE"] @@ -1422,8 +1424,6 @@ cfg_if! { pub static nsGkAtoms_oncompositionstart: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms19oncompositionupdateE"] pub static nsGkAtoms_oncompositionupdate: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms21onconfigurationchangeE"] - pub static nsGkAtoms_onconfigurationchange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms9onconnectE"] pub static nsGkAtoms_onconnect: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms11onconnectedE"] @@ -1536,8 +1536,6 @@ cfg_if! { pub static nsGkAtoms_onerror: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms9onevictedE"] pub static nsGkAtoms_onevicted: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms15onfacesdetectedE"] - pub static nsGkAtoms_onfacesdetected: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms8onfailedE"] pub static nsGkAtoms_onfailed: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms7onfetchE"] @@ -1718,8 +1716,6 @@ cfg_if! { pub static nsGkAtoms_onpendingchange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms10onpichangeE"] pub static nsGkAtoms_onpichange: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms9onpictureE"] - pub static nsGkAtoms_onpicture: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms19onpointerlockchangeE"] pub static nsGkAtoms_onpointerlockchange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms18onpointerlockerrorE"] @@ -1734,10 +1730,6 @@ cfg_if! { pub static nsGkAtoms_onpopupshowing: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms12onpopupshownE"] pub static nsGkAtoms_onpopupshown: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms8onposterE"] - pub static nsGkAtoms_onposter: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms20onpreviewstatechangeE"] - pub static nsGkAtoms_onpreviewstatechange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms18onpullphonebookreqE"] pub static nsGkAtoms_onpullphonebookreq: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms19onpullvcardentryreqE"] @@ -1768,8 +1760,6 @@ cfg_if! { pub static nsGkAtoms_onreadystatechange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms10onreceivedE"] pub static nsGkAtoms_onreceived: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms21onrecorderstatechangeE"] - pub static nsGkAtoms_onrecorderstatechange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms12onremoteheldE"] pub static nsGkAtoms_onremoteheld: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms15onremoteresumedE"] @@ -1810,8 +1800,6 @@ cfg_if! { pub static nsGkAtoms_onset: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms6onshowE"] pub static nsGkAtoms_onshow: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms9onshutterE"] - pub static nsGkAtoms_onshutter: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms13onstatechangeE"] pub static nsGkAtoms_onstatechange: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms15onstatuschangedE"] @@ -2528,8 +2516,6 @@ cfg_if! { pub static nsGkAtoms_underflow: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms12undeterminedE"] pub static nsGkAtoms_undetermined: *mut nsIAtom; - #[link_name = "_ZN9nsGkAtoms9undoscopeE"] - pub static nsGkAtoms_undoscope: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms6unloadE"] pub static nsGkAtoms_unload: *mut nsIAtom; #[link_name = "_ZN9nsGkAtoms17unparsedEntityUriE"] @@ -5081,8 +5067,6 @@ cfg_if! { pub static nsGkAtoms_any: *mut nsIAtom; #[link_name = "?mozapp@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_mozapp: *mut nsIAtom; - #[link_name = "?mozwidget@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_mozwidget: *mut nsIAtom; #[link_name = "?applet@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_applet: *mut nsIAtom; #[link_name = "?applyImports@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -5991,6 +5975,8 @@ cfg_if! { pub static nsGkAtoms_listrows: *mut nsIAtom; #[link_name = "?load@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_load: *mut nsIAtom; + #[link_name = "?loadingprincipal@nsGkAtoms@@2PEAVnsIAtom@@EA"] + pub static nsGkAtoms_loadingprincipal: *mut nsIAtom; #[link_name = "?localedir@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_localedir: *mut nsIAtom; #[link_name = "?localName@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -6271,6 +6257,8 @@ cfg_if! { pub static nsGkAtoms_onantennaavailablechange: *mut nsIAtom; #[link_name = "?onAppCommand@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onAppCommand: *mut nsIAtom; + #[link_name = "?onappinstalled@nsGkAtoms@@2PEAVnsIAtom@@EA"] + pub static nsGkAtoms_onappinstalled: *mut nsIAtom; #[link_name = "?onattributechanged@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onattributechanged: *mut nsIAtom; #[link_name = "?onattributereadreq@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -6341,8 +6329,6 @@ cfg_if! { pub static nsGkAtoms_oncompositionstart: *mut nsIAtom; #[link_name = "?oncompositionupdate@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_oncompositionupdate: *mut nsIAtom; - #[link_name = "?onconfigurationchange@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_onconfigurationchange: *mut nsIAtom; #[link_name = "?onconnect@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onconnect: *mut nsIAtom; #[link_name = "?onconnected@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -6455,8 +6441,6 @@ cfg_if! { pub static nsGkAtoms_onerror: *mut nsIAtom; #[link_name = "?onevicted@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onevicted: *mut nsIAtom; - #[link_name = "?onfacesdetected@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_onfacesdetected: *mut nsIAtom; #[link_name = "?onfailed@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onfailed: *mut nsIAtom; #[link_name = "?onfetch@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -6637,8 +6621,6 @@ cfg_if! { pub static nsGkAtoms_onpendingchange: *mut nsIAtom; #[link_name = "?onpichange@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onpichange: *mut nsIAtom; - #[link_name = "?onpicture@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_onpicture: *mut nsIAtom; #[link_name = "?onpointerlockchange@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onpointerlockchange: *mut nsIAtom; #[link_name = "?onpointerlockerror@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -6653,10 +6635,6 @@ cfg_if! { pub static nsGkAtoms_onpopupshowing: *mut nsIAtom; #[link_name = "?onpopupshown@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onpopupshown: *mut nsIAtom; - #[link_name = "?onposter@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_onposter: *mut nsIAtom; - #[link_name = "?onpreviewstatechange@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_onpreviewstatechange: *mut nsIAtom; #[link_name = "?onpullphonebookreq@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onpullphonebookreq: *mut nsIAtom; #[link_name = "?onpullvcardentryreq@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -6687,8 +6665,6 @@ cfg_if! { pub static nsGkAtoms_onreadystatechange: *mut nsIAtom; #[link_name = "?onreceived@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onreceived: *mut nsIAtom; - #[link_name = "?onrecorderstatechange@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_onrecorderstatechange: *mut nsIAtom; #[link_name = "?onremoteheld@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onremoteheld: *mut nsIAtom; #[link_name = "?onremoteresumed@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -6729,8 +6705,6 @@ cfg_if! { pub static nsGkAtoms_onset: *mut nsIAtom; #[link_name = "?onshow@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onshow: *mut nsIAtom; - #[link_name = "?onshutter@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_onshutter: *mut nsIAtom; #[link_name = "?onstatechange@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_onstatechange: *mut nsIAtom; #[link_name = "?onstatuschanged@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -7447,8 +7421,6 @@ cfg_if! { pub static nsGkAtoms_underflow: *mut nsIAtom; #[link_name = "?undetermined@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_undetermined: *mut nsIAtom; - #[link_name = "?undoscope@nsGkAtoms@@2PEAVnsIAtom@@EA"] - pub static nsGkAtoms_undoscope: *mut nsIAtom; #[link_name = "?unload@nsGkAtoms@@2PEAVnsIAtom@@EA"] pub static nsGkAtoms_unload: *mut nsIAtom; #[link_name = "?unparsedEntityUri@nsGkAtoms@@2PEAVnsIAtom@@EA"] @@ -10000,8 +9972,6 @@ cfg_if! { pub static nsGkAtoms_any: *mut nsIAtom; #[link_name = "\x01?mozapp@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_mozapp: *mut nsIAtom; - #[link_name = "\x01?mozwidget@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_mozwidget: *mut nsIAtom; #[link_name = "\x01?applet@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_applet: *mut nsIAtom; #[link_name = "\x01?applyImports@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -10910,6 +10880,8 @@ cfg_if! { pub static nsGkAtoms_listrows: *mut nsIAtom; #[link_name = "\x01?load@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_load: *mut nsIAtom; + #[link_name = "\x01?loadingprincipal@nsGkAtoms@@2PAVnsIAtom@@A"] + pub static nsGkAtoms_loadingprincipal: *mut nsIAtom; #[link_name = "\x01?localedir@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_localedir: *mut nsIAtom; #[link_name = "\x01?localName@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -11190,6 +11162,8 @@ cfg_if! { pub static nsGkAtoms_onantennaavailablechange: *mut nsIAtom; #[link_name = "\x01?onAppCommand@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onAppCommand: *mut nsIAtom; + #[link_name = "\x01?onappinstalled@nsGkAtoms@@2PAVnsIAtom@@A"] + pub static nsGkAtoms_onappinstalled: *mut nsIAtom; #[link_name = "\x01?onattributechanged@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onattributechanged: *mut nsIAtom; #[link_name = "\x01?onattributereadreq@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -11260,8 +11234,6 @@ cfg_if! { pub static nsGkAtoms_oncompositionstart: *mut nsIAtom; #[link_name = "\x01?oncompositionupdate@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_oncompositionupdate: *mut nsIAtom; - #[link_name = "\x01?onconfigurationchange@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_onconfigurationchange: *mut nsIAtom; #[link_name = "\x01?onconnect@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onconnect: *mut nsIAtom; #[link_name = "\x01?onconnected@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -11374,8 +11346,6 @@ cfg_if! { pub static nsGkAtoms_onerror: *mut nsIAtom; #[link_name = "\x01?onevicted@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onevicted: *mut nsIAtom; - #[link_name = "\x01?onfacesdetected@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_onfacesdetected: *mut nsIAtom; #[link_name = "\x01?onfailed@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onfailed: *mut nsIAtom; #[link_name = "\x01?onfetch@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -11556,8 +11526,6 @@ cfg_if! { pub static nsGkAtoms_onpendingchange: *mut nsIAtom; #[link_name = "\x01?onpichange@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onpichange: *mut nsIAtom; - #[link_name = "\x01?onpicture@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_onpicture: *mut nsIAtom; #[link_name = "\x01?onpointerlockchange@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onpointerlockchange: *mut nsIAtom; #[link_name = "\x01?onpointerlockerror@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -11572,10 +11540,6 @@ cfg_if! { pub static nsGkAtoms_onpopupshowing: *mut nsIAtom; #[link_name = "\x01?onpopupshown@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onpopupshown: *mut nsIAtom; - #[link_name = "\x01?onposter@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_onposter: *mut nsIAtom; - #[link_name = "\x01?onpreviewstatechange@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_onpreviewstatechange: *mut nsIAtom; #[link_name = "\x01?onpullphonebookreq@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onpullphonebookreq: *mut nsIAtom; #[link_name = "\x01?onpullvcardentryreq@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -11606,8 +11570,6 @@ cfg_if! { pub static nsGkAtoms_onreadystatechange: *mut nsIAtom; #[link_name = "\x01?onreceived@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onreceived: *mut nsIAtom; - #[link_name = "\x01?onrecorderstatechange@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_onrecorderstatechange: *mut nsIAtom; #[link_name = "\x01?onremoteheld@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onremoteheld: *mut nsIAtom; #[link_name = "\x01?onremoteresumed@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -11648,8 +11610,6 @@ cfg_if! { pub static nsGkAtoms_onset: *mut nsIAtom; #[link_name = "\x01?onshow@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onshow: *mut nsIAtom; - #[link_name = "\x01?onshutter@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_onshutter: *mut nsIAtom; #[link_name = "\x01?onstatechange@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_onstatechange: *mut nsIAtom; #[link_name = "\x01?onstatuschanged@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -12366,8 +12326,6 @@ cfg_if! { pub static nsGkAtoms_underflow: *mut nsIAtom; #[link_name = "\x01?undetermined@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_undetermined: *mut nsIAtom; - #[link_name = "\x01?undoscope@nsGkAtoms@@2PAVnsIAtom@@A"] - pub static nsGkAtoms_undoscope: *mut nsIAtom; #[link_name = "\x01?unload@nsGkAtoms@@2PAVnsIAtom@@A"] pub static nsGkAtoms_unload: *mut nsIAtom; #[link_name = "\x01?unparsedEntityUri@nsGkAtoms@@2PAVnsIAtom@@A"] @@ -14922,8 +14880,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_any as *mut _) } }; ("mozapp") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_mozapp as *mut _) } }; -("mozwidget") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_mozwidget as *mut _) } }; ("applet") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_applet as *mut _) } }; ("apply-imports") => @@ -15832,6 +15788,8 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_listrows as *mut _) } }; ("load") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_load as *mut _) } }; +("loadingprincipal") => + { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_loadingprincipal as *mut _) } }; ("localedir") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_localedir as *mut _) } }; ("local-name") => @@ -16112,6 +16070,8 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onantennaavailablechange as *mut _) } }; ("onAppCommand") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onAppCommand as *mut _) } }; +("onappinstalled") => + { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onappinstalled as *mut _) } }; ("onattributechanged") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onattributechanged as *mut _) } }; ("onattributereadreq") => @@ -16182,8 +16142,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_oncompositionstart as *mut _) } }; ("oncompositionupdate") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_oncompositionupdate as *mut _) } }; -("onconfigurationchange") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onconfigurationchange as *mut _) } }; ("onconnect") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onconnect as *mut _) } }; ("onconnected") => @@ -16296,8 +16254,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onerror as *mut _) } }; ("onevicted") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onevicted as *mut _) } }; -("onfacesdetected") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onfacesdetected as *mut _) } }; ("onfailed") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onfailed as *mut _) } }; ("onfetch") => @@ -16478,8 +16434,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpendingchange as *mut _) } }; ("onpichange") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpichange as *mut _) } }; -("onpicture") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpicture as *mut _) } }; ("onpointerlockchange") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpointerlockchange as *mut _) } }; ("onpointerlockerror") => @@ -16494,10 +16448,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpopupshowing as *mut _) } }; ("onpopupshown") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpopupshown as *mut _) } }; -("onposter") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onposter as *mut _) } }; -("onpreviewstatechange") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpreviewstatechange as *mut _) } }; ("onpullphonebookreq") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onpullphonebookreq as *mut _) } }; ("onpullvcardentryreq") => @@ -16528,8 +16478,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onreadystatechange as *mut _) } }; ("onreceived") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onreceived as *mut _) } }; -("onrecorderstatechange") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onrecorderstatechange as *mut _) } }; ("onremoteheld") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onremoteheld as *mut _) } }; ("onremoteresumed") => @@ -16570,8 +16518,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onset as *mut _) } }; ("onshow") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onshow as *mut _) } }; -("onshutter") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onshutter as *mut _) } }; ("onstatechange") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_onstatechange as *mut _) } }; ("onstatuschanged") => @@ -17288,8 +17234,6 @@ macro_rules! atom { { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_underflow as *mut _) } }; ("undetermined") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_undetermined as *mut _) } }; -("undoscope") => - { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_undoscope as *mut _) } }; ("unload") => { unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_unload as *mut _) } }; ("unparsed-entity-uri") =>