aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-04-04 19:34:06 -0400
committerGitHub <noreply@github.com>2018-04-04 19:34:06 -0400
commit8c35be94c2910a50bbb7106449bab4e231697aea (patch)
treedac6db9b8acd3c2a984334c456216182c3c10df0
parente06f0d32d0c3973d460a3035d2adfea298c8e5fe (diff)
parent80ab893e3aa8eec0d3fbaa03f6ac3c8f70e7f35f (diff)
downloadservo-8c35be94c2910a50bbb7106449bab4e231697aea.tar.gz
servo-8c35be94c2910a50bbb7106449bab4e231697aea.zip
Auto merge of #20541 - upsuper:counter-style, r=emilio
Use Servo data to back @counter-style rule in Gecko This is the Servo side changes of [bug 1449068](https://bugzilla.mozilla.org/show_bug.cgi?id=1449068). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20541) <!-- Reviewable:end -->
-rw-r--r--components/style/counter_style/mod.rs203
-rw-r--r--components/style/gecko/arc_types.rs10
-rw-r--r--components/style/gecko/generated/atom_macro.rs128
-rw-r--r--components/style/gecko/generated/bindings.rs114
-rw-r--r--components/style/gecko/generated/pseudo_element_definition.rs290
-rw-r--r--components/style/gecko/generated/structs.rs32066
-rw-r--r--components/style/gecko/rules.rs100
-rw-r--r--components/style/gecko_bindings/sugar/refptr.rs3
-rw-r--r--components/style/stylesheets/counter_style_rule.rs17
-rw-r--r--components/style/stylesheets/mod.rs3
-rw-r--r--components/style/stylesheets/rule_parser.rs15
-rw-r--r--components/style/stylist.rs4
-rw-r--r--ports/geckolib/glue.rs301
13 files changed, 16633 insertions, 16621 deletions
diff --git a/components/style/counter_style/mod.rs b/components/style/counter_style/mod.rs
index 8ef206fd64e..e3453c2b954 100644
--- a/components/style/counter_style/mod.rs
+++ b/components/style/counter_style/mod.rs
@@ -8,15 +8,14 @@
use Atom;
use cssparser::{AtRuleParser, DeclarationListParser, DeclarationParser};
-use cssparser::{Parser, Token, CowRcStr};
+use cssparser::{Parser, Token, CowRcStr, SourceLocation};
use error_reporting::{ContextualParseError, ParseErrorReporter};
-#[cfg(feature = "gecko")] use gecko::rules::CounterStyleDescriptors;
-#[cfg(feature = "gecko")] use gecko_bindings::structs::{ nsCSSCounterDesc, nsCSSValue };
use parser::{ParserContext, ParserErrorContext, Parse};
use selectors::parser::SelectorParseErrorKind;
use shared_lock::{SharedRwLockReadGuard, ToCssWithGuard};
-use std::borrow::Cow;
use std::fmt::{self, Write};
+use std::mem;
+use std::num::Wrapping;
use std::ops::Range;
use str::CssStringWriter;
use style_traits::{Comma, CssWriter, OneOrMoreSeparated, ParseError};
@@ -56,13 +55,17 @@ pub fn parse_counter_style_name<'i, 't>(
include!("predefined.rs")
}
+fn is_valid_name_definition(ident: &CustomIdent) -> bool {
+ ident.0 != atom!("decimal") && ident.0 != atom!("disc")
+}
+
/// Parse the prelude of an @counter-style rule
pub fn parse_counter_style_name_definition<'i, 't>(
input: &mut Parser<'i, 't>
) -> Result<CustomIdent, ParseError<'i>> {
parse_counter_style_name(input)
.and_then(|ident| {
- if ident.0 == atom!("decimal") || ident.0 == atom!("disc") {
+ if !is_valid_name_definition(&ident) {
Err(input.new_custom_error(StyleParseErrorKind::UnspecifiedError))
} else {
Ok(ident)
@@ -71,15 +74,17 @@ pub fn parse_counter_style_name_definition<'i, 't>(
}
/// Parse the body (inside `{}`) of an @counter-style rule
-pub fn parse_counter_style_body<'i, 't, R>(name: CustomIdent,
- context: &ParserContext,
- error_context: &ParserErrorContext<R>,
- input: &mut Parser<'i, 't>)
- -> Result<CounterStyleRuleData, ParseError<'i>>
+pub fn parse_counter_style_body<'i, 't, R>(
+ name: CustomIdent,
+ context: &ParserContext,
+ error_context: &ParserErrorContext<R>,
+ input: &mut Parser<'i, 't>,
+ location: SourceLocation,
+) -> Result<CounterStyleRuleData, ParseError<'i>>
where R: ParseErrorReporter
{
let start = input.current_source_location();
- let mut rule = CounterStyleRuleData::empty(name);
+ let mut rule = CounterStyleRuleData::empty(name, location);
{
let parser = CounterStyleRuleParser {
context: context,
@@ -94,7 +99,7 @@ pub fn parse_counter_style_body<'i, 't, R>(name: CustomIdent,
}
}
}
- let error = match *rule.system() {
+ let error = match *rule.resolved_system() {
ref system @ System::Cyclic |
ref system @ System::Fixed { .. } |
ref system @ System::Symbolic |
@@ -142,68 +147,60 @@ impl<'a, 'b, 'i> AtRuleParser<'i> for CounterStyleRuleParser<'a, 'b> {
type Error = StyleParseErrorKind<'i>;
}
-macro_rules! accessor {
- (#[$doc: meta] $name: tt $ident: ident: $ty: ty = !) => {
- #[$doc]
- pub fn $ident(&self) -> Option<&$ty> {
- self.$ident.as_ref()
+macro_rules! checker {
+ ($self:ident._($value:ident)) => {};
+ ($self:ident.$checker:ident($value:ident)) => {
+ if !$self.$checker(&$value) {
+ return false;
}
};
-
- (#[$doc: meta] $name: tt $ident: ident: $ty: ty = $initial: expr) => {
- #[$doc]
- pub fn $ident(&self) -> Cow<$ty> {
- if let Some(ref value) = self.$ident {
- Cow::Borrowed(value)
- } else {
- Cow::Owned($initial)
- }
- }
- }
}
macro_rules! counter_style_descriptors {
(
- $( #[$doc: meta] $name: tt $ident: ident / $gecko_ident: ident: $ty: ty = $initial: tt )+
+ $( #[$doc: meta] $name: tt $ident: ident / $setter: ident [$checker: tt]: $ty: ty, )+
) => {
/// An @counter-style rule
#[derive(Clone, Debug)]
pub struct CounterStyleRuleData {
name: CustomIdent,
+ generation: Wrapping<u32>,
$(
#[$doc]
$ident: Option<$ty>,
)+
+ /// Line and column of the @counter-style rule source code.
+ pub source_location: SourceLocation,
}
impl CounterStyleRuleData {
- fn empty(name: CustomIdent) -> Self {
+ fn empty(name: CustomIdent, source_location: SourceLocation) -> Self {
CounterStyleRuleData {
name: name,
+ generation: Wrapping(0),
$(
$ident: None,
)+
+ source_location,
}
}
- /// Get the name of the counter style rule.
- pub fn name(&self) -> &CustomIdent {
- &self.name
- }
-
$(
- accessor!(#[$doc] $name $ident: $ty = $initial);
+ #[$doc]
+ pub fn $ident(&self) -> Option<&$ty> {
+ self.$ident.as_ref()
+ }
)+
- /// Convert to Gecko types
- #[cfg(feature = "gecko")]
- pub fn set_descriptors(self, descriptors: &mut CounterStyleDescriptors) {
- $(
- if let Some(value) = self.$ident {
- descriptors[nsCSSCounterDesc::$gecko_ident as usize].set_from(value)
- }
- )*
- }
+ $(
+ #[$doc]
+ pub fn $setter(&mut self, value: $ty) -> bool {
+ checker!(self.$checker(value));
+ self.$ident = Some(value);
+ self.generation += Wrapping(1);
+ true
+ }
+ )+
}
impl<'a, 'b, 'i> DeclarationParser<'i> for CounterStyleRuleParser<'a, 'b> {
@@ -244,79 +241,95 @@ macro_rules! counter_style_descriptors {
dest.write_str("}")
}
}
-
- /// Parse a descriptor into an `nsCSSValue`.
- #[cfg(feature = "gecko")]
- pub fn parse_counter_style_descriptor<'i, 't>(
- context: &ParserContext,
- input: &mut Parser<'i, 't>,
- descriptor: nsCSSCounterDesc,
- value: &mut nsCSSValue
- ) -> Result<(), ParseError<'i>> {
- match descriptor {
- $(
- nsCSSCounterDesc::$gecko_ident => {
- let v: $ty =
- input.parse_entirely(|i| Parse::parse(context, i))?;
- value.set_from(v);
- }
- )*
- nsCSSCounterDesc::eCSSCounterDesc_COUNT |
- nsCSSCounterDesc::eCSSCounterDesc_UNKNOWN => {
- panic!("invalid counter descriptor");
- }
- }
- Ok(())
- }
}
}
counter_style_descriptors! {
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-system>
- "system" system / eCSSCounterDesc_System: System = {
- System::Symbolic
- }
+ "system" system / set_system [check_system]: System,
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-negative>
- "negative" negative / eCSSCounterDesc_Negative: Negative = {
- Negative(Symbol::String("-".to_owned()), None)
- }
+ "negative" negative / set_negative [_]: Negative,
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-prefix>
- "prefix" prefix / eCSSCounterDesc_Prefix: Symbol = {
- Symbol::String("".to_owned())
- }
+ "prefix" prefix / set_prefix [_]: Symbol,
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-suffix>
- "suffix" suffix / eCSSCounterDesc_Suffix: Symbol = {
- Symbol::String(". ".to_owned())
- }
+ "suffix" suffix / set_suffix [_]: Symbol,
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-range>
- "range" range / eCSSCounterDesc_Range: Ranges = {
- Ranges(Vec::new()) // Empty Vec represents 'auto'
- }
+ "range" range / set_range [_]: Ranges,
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-pad>
- "pad" pad / eCSSCounterDesc_Pad: Pad = {
- Pad(Integer::new(0), Symbol::String("".to_owned()))
- }
+ "pad" pad / set_pad [_]: Pad,
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-fallback>
- "fallback" fallback / eCSSCounterDesc_Fallback: Fallback = {
- // FIXME https://bugzilla.mozilla.org/show_bug.cgi?id=1359323 use atom!()
- Fallback(CustomIdent(Atom::from("decimal")))
- }
+ "fallback" fallback / set_fallback [_]: Fallback,
/// <https://drafts.csswg.org/css-counter-styles/#descdef-counter-style-symbols>
- "symbols" symbols / eCSSCounterDesc_Symbols: Symbols = !
+ "symbols" symbols / set_symbols [check_symbols]: Symbols,
/// <https://drafts.csswg.org/css-counter-styles/#descdef-counter-style-additive-symbols>
- "additive-symbols" additive_symbols / eCSSCounterDesc_AdditiveSymbols: AdditiveSymbols = !
+ "additive-symbols" additive_symbols /
+ set_additive_symbols [check_additive_symbols]: AdditiveSymbols,
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-speak-as>
- "speak-as" speak_as / eCSSCounterDesc_SpeakAs: SpeakAs = {
- SpeakAs::Auto
+ "speak-as" speak_as / set_speak_as [_]: SpeakAs,
+}
+
+// Implements the special checkers for some setters.
+// See <https://drafts.csswg.org/css-counter-styles/#the-csscounterstylerule-interface>
+impl CounterStyleRuleData {
+ /// Check that the system is effectively not changed. Only params
+ /// of system descriptor is changeable.
+ fn check_system(&self, value: &System) -> bool {
+ mem::discriminant(self.resolved_system()) == mem::discriminant(value)
+ }
+
+ fn check_symbols(&self, value: &Symbols) -> bool {
+ match *self.resolved_system() {
+ // These two systems require at least two symbols.
+ System::Numeric | System::Alphabetic => value.0.len() >= 2,
+ // No symbols should be set for extends system.
+ System::Extends(_) => false,
+ _ => true,
+ }
+ }
+
+ fn check_additive_symbols(&self, _value: &AdditiveSymbols) -> bool {
+ match *self.resolved_system() {
+ // No additive symbols should be set for extends system.
+ System::Extends(_) => false,
+ _ => true,
+ }
+ }
+}
+
+impl CounterStyleRuleData {
+ /// Get the name of the counter style rule.
+ pub fn name(&self) -> &CustomIdent {
+ &self.name
+ }
+
+ /// Set the name of the counter style rule. Caller must ensure that
+ /// the name is valid.
+ pub fn set_name(&mut self, name: CustomIdent) {
+ debug_assert!(is_valid_name_definition(&name));
+ self.name = name;
+ }
+
+ /// Get the current generation of the counter style rule.
+ pub fn generation(&self) -> u32 {
+ self.generation.0
+ }
+
+ /// Get the system of this counter style rule, default to
+ /// `symbolic` if not specified.
+ pub fn resolved_system(&self) -> &System {
+ match self.system {
+ Some(ref system) => system,
+ None => &System::Symbolic,
+ }
}
}
diff --git a/components/style/gecko/arc_types.rs b/components/style/gecko/arc_types.rs
index eaf9eb607fc..4a11375797d 100644
--- a/components/style/gecko/arc_types.rs
+++ b/components/style/gecko/arc_types.rs
@@ -8,7 +8,7 @@
#![allow(non_snake_case, missing_docs)]
-use gecko_bindings::bindings::{RawServoFontFeatureValuesRule, RawServoImportRule};
+use gecko_bindings::bindings::{RawServoCounterStyleRule, RawServoFontFeatureValuesRule, RawServoImportRule};
use gecko_bindings::bindings::{RawServoKeyframe, RawServoKeyframesRule, RawServoSupportsRule};
use gecko_bindings::bindings::{RawServoMediaRule, RawServoNamespaceRule, RawServoPageRule};
use gecko_bindings::bindings::{RawServoRuleNode, RawServoRuleNodeStrong, RawServoDocumentRule};
@@ -23,8 +23,9 @@ use rule_tree::StrongRuleNode;
use servo_arc::{Arc, ArcBorrow};
use shared_lock::Locked;
use std::{mem, ptr};
-use stylesheets::{CssRules, StylesheetContents, StyleRule, ImportRule, KeyframesRule, MediaRule};
-use stylesheets::{FontFaceRule, FontFeatureValuesRule, NamespaceRule, PageRule, SupportsRule, DocumentRule};
+use stylesheets::{CssRules, CounterStyleRule, FontFaceRule, FontFeatureValuesRule};
+use stylesheets::{ImportRule, KeyframesRule, MediaRule, StylesheetContents, StyleRule};
+use stylesheets::{NamespaceRule, PageRule, SupportsRule, DocumentRule};
use stylesheets::keyframes_rule::Keyframe;
macro_rules! impl_arc_ffi {
@@ -94,6 +95,9 @@ impl_arc_ffi!(Locked<FontFeatureValuesRule> => RawServoFontFeatureValuesRule
impl_arc_ffi!(Locked<FontFaceRule> => RawServoFontFaceRule
[Servo_FontFaceRule_AddRef, Servo_FontFaceRule_Release]);
+impl_arc_ffi!(Locked<CounterStyleRule> => RawServoCounterStyleRule
+ [Servo_CounterStyleRule_AddRef, Servo_CounterStyleRule_Release]);
+
// RuleNode is a Arc-like type but it does not use Arc.
impl StrongRuleNode {
diff --git a/components/style/gecko/generated/atom_macro.rs b/components/style/gecko/generated/atom_macro.rs
index 7584d056c8d..844cce18986 100644
--- a/components/style/gecko/generated/atom_macro.rs
+++ b/components/style/gecko/generated/atom_macro.rs
@@ -90,8 +90,6 @@ cfg_if! {
pub static nsGkAtoms_action: *mut nsStaticAtom;
#[link_name = "_ZN9nsGkAtoms6activeE"]
pub static nsGkAtoms_active: *mut nsStaticAtom;
- #[link_name = "_ZN9nsGkAtoms19activetitlebarcolorE"]
- pub static nsGkAtoms_activetitlebarcolor: *mut nsStaticAtom;
#[link_name = "_ZN9nsGkAtoms13activateontabE"]
pub static nsGkAtoms_activateontab: *mut nsStaticAtom;
#[link_name = "_ZN9nsGkAtoms7actuateE"]
@@ -1088,8 +1086,6 @@ cfg_if! {
pub static nsGkAtoms_implements: *mut nsStaticAtom;
#[link_name = "_ZN9nsGkAtoms6importE"]
pub static nsGkAtoms_import: *mut nsStaticAtom;
- #[link_name = "_ZN9nsGkAtoms21inactivetitlebarcolorE"]
- pub static nsGkAtoms_inactivetitlebarcolor: *mut nsStaticAtom;
#[link_name = "_ZN9nsGkAtoms7includeE"]
pub static nsGkAtoms_include: *mut nsStaticAtom;
#[link_name = "_ZN9nsGkAtoms8includesE"]
@@ -5128,10 +5124,22 @@ cfg_if! {
pub static nsCSSPseudoElements_placeholder: *mut nsICSSPseudoElement;
#[link_name = "_ZN19nsCSSPseudoElements14mozColorSwatchE"]
pub static nsCSSPseudoElements_mozColorSwatch: *mut nsICSSPseudoElement;
- #[link_name = "_ZN14nsCSSAnonBoxes7mozTextE"]
- pub static nsCSSAnonBoxes_mozText: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes14oofPlaceholderE"]
pub static nsCSSAnonBoxes_oofPlaceholder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "_ZN14nsCSSAnonBoxes24horizontalFramesetBorderE"]
+ pub static nsCSSAnonBoxes_horizontalFramesetBorder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "_ZN14nsCSSAnonBoxes22verticalFramesetBorderE"]
+ pub static nsCSSAnonBoxes_verticalFramesetBorder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "_ZN14nsCSSAnonBoxes13framesetBlankE"]
+ pub static nsCSSAnonBoxes_framesetBlank: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "_ZN14nsCSSAnonBoxes13tableColGroupE"]
+ pub static nsCSSAnonBoxes_tableColGroup: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "_ZN14nsCSSAnonBoxes8tableColE"]
+ pub static nsCSSAnonBoxes_tableCol: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "_ZN14nsCSSAnonBoxes9pageBreakE"]
+ pub static nsCSSAnonBoxes_pageBreak: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "_ZN14nsCSSAnonBoxes7mozTextE"]
+ pub static nsCSSAnonBoxes_mozText: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes23firstLetterContinuationE"]
pub static nsCSSAnonBoxes_firstLetterContinuation: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes27mozBlockInsideInlineWrapperE"]
@@ -5140,10 +5148,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_mozMathMLAnonymousBlock: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes20mozXULAnonymousBlockE"]
pub static nsCSSAnonBoxes_mozXULAnonymousBlock: *mut nsICSSAnonBoxPseudo;
- #[link_name = "_ZN14nsCSSAnonBoxes24horizontalFramesetBorderE"]
- pub static nsCSSAnonBoxes_horizontalFramesetBorder: *mut nsICSSAnonBoxPseudo;
- #[link_name = "_ZN14nsCSSAnonBoxes22verticalFramesetBorderE"]
- pub static nsCSSAnonBoxes_verticalFramesetBorder: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes12mozLineFrameE"]
pub static nsCSSAnonBoxes_mozLineFrame: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes13buttonContentE"]
@@ -5154,8 +5158,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_dropDownList: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes15fieldsetContentE"]
pub static nsCSSAnonBoxes_fieldsetContent: *mut nsICSSAnonBoxPseudo;
- #[link_name = "_ZN14nsCSSAnonBoxes13framesetBlankE"]
- pub static nsCSSAnonBoxes_framesetBlank: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes30mozDisplayComboboxControlFrameE"]
pub static nsCSSAnonBoxes_mozDisplayComboboxControlFrame: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes17htmlCanvasContentE"]
@@ -5166,10 +5168,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_table: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes9tableCellE"]
pub static nsCSSAnonBoxes_tableCell: *mut nsICSSAnonBoxPseudo;
- #[link_name = "_ZN14nsCSSAnonBoxes13tableColGroupE"]
- pub static nsCSSAnonBoxes_tableColGroup: *mut nsICSSAnonBoxPseudo;
- #[link_name = "_ZN14nsCSSAnonBoxes8tableColE"]
- pub static nsCSSAnonBoxes_tableCol: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes12tableWrapperE"]
pub static nsCSSAnonBoxes_tableWrapper: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes13tableRowGroupE"]
@@ -5178,8 +5176,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_tableRow: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes6canvasE"]
pub static nsCSSAnonBoxes_canvas: *mut nsICSSAnonBoxPseudo;
- #[link_name = "_ZN14nsCSSAnonBoxes9pageBreakE"]
- pub static nsCSSAnonBoxes_pageBreak: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes4pageE"]
pub static nsCSSAnonBoxes_page: *mut nsICSSAnonBoxPseudo;
#[link_name = "_ZN14nsCSSAnonBoxes11pageContentE"]
@@ -5315,8 +5311,6 @@ cfg_if! {
pub static nsGkAtoms_action: *mut nsStaticAtom;
#[link_name = "?active@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
pub static nsGkAtoms_active: *mut nsStaticAtom;
- #[link_name = "?activetitlebarcolor@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
- pub static nsGkAtoms_activetitlebarcolor: *mut nsStaticAtom;
#[link_name = "?activateontab@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
pub static nsGkAtoms_activateontab: *mut nsStaticAtom;
#[link_name = "?actuate@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
@@ -6313,8 +6307,6 @@ cfg_if! {
pub static nsGkAtoms_implements: *mut nsStaticAtom;
#[link_name = "?import@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
pub static nsGkAtoms_import: *mut nsStaticAtom;
- #[link_name = "?inactivetitlebarcolor@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
- pub static nsGkAtoms_inactivetitlebarcolor: *mut nsStaticAtom;
#[link_name = "?include@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
pub static nsGkAtoms_include: *mut nsStaticAtom;
#[link_name = "?includes@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
@@ -10353,10 +10345,22 @@ cfg_if! {
pub static nsCSSPseudoElements_placeholder: *mut nsICSSPseudoElement;
#[link_name = "?mozColorSwatch@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
pub static nsCSSPseudoElements_mozColorSwatch: *mut nsICSSPseudoElement;
- #[link_name = "?mozText@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
- pub static nsCSSAnonBoxes_mozText: *mut nsICSSAnonBoxPseudo;
#[link_name = "?oofPlaceholder@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_oofPlaceholder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "?horizontalFramesetBorder@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
+ pub static nsCSSAnonBoxes_horizontalFramesetBorder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "?verticalFramesetBorder@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
+ pub static nsCSSAnonBoxes_verticalFramesetBorder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "?framesetBlank@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
+ pub static nsCSSAnonBoxes_framesetBlank: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "?tableColGroup@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
+ pub static nsCSSAnonBoxes_tableColGroup: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "?tableCol@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
+ pub static nsCSSAnonBoxes_tableCol: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "?pageBreak@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
+ pub static nsCSSAnonBoxes_pageBreak: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "?mozText@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
+ pub static nsCSSAnonBoxes_mozText: *mut nsICSSAnonBoxPseudo;
#[link_name = "?firstLetterContinuation@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_firstLetterContinuation: *mut nsICSSAnonBoxPseudo;
#[link_name = "?mozBlockInsideInlineWrapper@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
@@ -10365,10 +10369,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_mozMathMLAnonymousBlock: *mut nsICSSAnonBoxPseudo;
#[link_name = "?mozXULAnonymousBlock@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_mozXULAnonymousBlock: *mut nsICSSAnonBoxPseudo;
- #[link_name = "?horizontalFramesetBorder@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
- pub static nsCSSAnonBoxes_horizontalFramesetBorder: *mut nsICSSAnonBoxPseudo;
- #[link_name = "?verticalFramesetBorder@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
- pub static nsCSSAnonBoxes_verticalFramesetBorder: *mut nsICSSAnonBoxPseudo;
#[link_name = "?mozLineFrame@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_mozLineFrame: *mut nsICSSAnonBoxPseudo;
#[link_name = "?buttonContent@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
@@ -10379,8 +10379,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_dropDownList: *mut nsICSSAnonBoxPseudo;
#[link_name = "?fieldsetContent@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_fieldsetContent: *mut nsICSSAnonBoxPseudo;
- #[link_name = "?framesetBlank@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
- pub static nsCSSAnonBoxes_framesetBlank: *mut nsICSSAnonBoxPseudo;
#[link_name = "?mozDisplayComboboxControlFrame@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_mozDisplayComboboxControlFrame: *mut nsICSSAnonBoxPseudo;
#[link_name = "?htmlCanvasContent@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
@@ -10391,10 +10389,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_table: *mut nsICSSAnonBoxPseudo;
#[link_name = "?tableCell@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_tableCell: *mut nsICSSAnonBoxPseudo;
- #[link_name = "?tableColGroup@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
- pub static nsCSSAnonBoxes_tableColGroup: *mut nsICSSAnonBoxPseudo;
- #[link_name = "?tableCol@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
- pub static nsCSSAnonBoxes_tableCol: *mut nsICSSAnonBoxPseudo;
#[link_name = "?tableWrapper@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_tableWrapper: *mut nsICSSAnonBoxPseudo;
#[link_name = "?tableRowGroup@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
@@ -10403,8 +10397,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_tableRow: *mut nsICSSAnonBoxPseudo;
#[link_name = "?canvas@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_canvas: *mut nsICSSAnonBoxPseudo;
- #[link_name = "?pageBreak@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
- pub static nsCSSAnonBoxes_pageBreak: *mut nsICSSAnonBoxPseudo;
#[link_name = "?page@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
pub static nsCSSAnonBoxes_page: *mut nsICSSAnonBoxPseudo;
#[link_name = "?pageContent@nsCSSAnonBoxes@@2PEAVnsICSSAnonBoxPseudo@@EA"]
@@ -10540,8 +10532,6 @@ cfg_if! {
pub static nsGkAtoms_action: *mut nsStaticAtom;
#[link_name = "\x01?active@nsGkAtoms@@2PAVnsStaticAtom@@A"]
pub static nsGkAtoms_active: *mut nsStaticAtom;
- #[link_name = "\x01?activetitlebarcolor@nsGkAtoms@@2PAVnsStaticAtom@@A"]
- pub static nsGkAtoms_activetitlebarcolor: *mut nsStaticAtom;
#[link_name = "\x01?activateontab@nsGkAtoms@@2PAVnsStaticAtom@@A"]
pub static nsGkAtoms_activateontab: *mut nsStaticAtom;
#[link_name = "\x01?actuate@nsGkAtoms@@2PAVnsStaticAtom@@A"]
@@ -11538,8 +11528,6 @@ cfg_if! {
pub static nsGkAtoms_implements: *mut nsStaticAtom;
#[link_name = "\x01?import@nsGkAtoms@@2PAVnsStaticAtom@@A"]
pub static nsGkAtoms_import: *mut nsStaticAtom;
- #[link_name = "\x01?inactivetitlebarcolor@nsGkAtoms@@2PAVnsStaticAtom@@A"]
- pub static nsGkAtoms_inactivetitlebarcolor: *mut nsStaticAtom;
#[link_name = "\x01?include@nsGkAtoms@@2PAVnsStaticAtom@@A"]
pub static nsGkAtoms_include: *mut nsStaticAtom;
#[link_name = "\x01?includes@nsGkAtoms@@2PAVnsStaticAtom@@A"]
@@ -15578,10 +15566,22 @@ cfg_if! {
pub static nsCSSPseudoElements_placeholder: *mut nsICSSPseudoElement;
#[link_name = "\x01?mozColorSwatch@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
pub static nsCSSPseudoElements_mozColorSwatch: *mut nsICSSPseudoElement;
- #[link_name = "\x01?mozText@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
- pub static nsCSSAnonBoxes_mozText: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?oofPlaceholder@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_oofPlaceholder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "\x01?horizontalFramesetBorder@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
+ pub static nsCSSAnonBoxes_horizontalFramesetBorder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "\x01?verticalFramesetBorder@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
+ pub static nsCSSAnonBoxes_verticalFramesetBorder: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "\x01?framesetBlank@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
+ pub static nsCSSAnonBoxes_framesetBlank: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "\x01?tableColGroup@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
+ pub static nsCSSAnonBoxes_tableColGroup: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "\x01?tableCol@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
+ pub static nsCSSAnonBoxes_tableCol: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "\x01?pageBreak@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
+ pub static nsCSSAnonBoxes_pageBreak: *mut nsICSSAnonBoxPseudo;
+ #[link_name = "\x01?mozText@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
+ pub static nsCSSAnonBoxes_mozText: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?firstLetterContinuation@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_firstLetterContinuation: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?mozBlockInsideInlineWrapper@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
@@ -15590,10 +15590,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_mozMathMLAnonymousBlock: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?mozXULAnonymousBlock@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_mozXULAnonymousBlock: *mut nsICSSAnonBoxPseudo;
- #[link_name = "\x01?horizontalFramesetBorder@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
- pub static nsCSSAnonBoxes_horizontalFramesetBorder: *mut nsICSSAnonBoxPseudo;
- #[link_name = "\x01?verticalFramesetBorder@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
- pub static nsCSSAnonBoxes_verticalFramesetBorder: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?mozLineFrame@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_mozLineFrame: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?buttonContent@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
@@ -15604,8 +15600,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_dropDownList: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?fieldsetContent@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_fieldsetContent: *mut nsICSSAnonBoxPseudo;
- #[link_name = "\x01?framesetBlank@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
- pub static nsCSSAnonBoxes_framesetBlank: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?mozDisplayComboboxControlFrame@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_mozDisplayComboboxControlFrame: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?htmlCanvasContent@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
@@ -15616,10 +15610,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_table: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?tableCell@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_tableCell: *mut nsICSSAnonBoxPseudo;
- #[link_name = "\x01?tableColGroup@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
- pub static nsCSSAnonBoxes_tableColGroup: *mut nsICSSAnonBoxPseudo;
- #[link_name = "\x01?tableCol@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
- pub static nsCSSAnonBoxes_tableCol: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?tableWrapper@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_tableWrapper: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?tableRowGroup@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
@@ -15628,8 +15618,6 @@ cfg_if! {
pub static nsCSSAnonBoxes_tableRow: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?canvas@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_canvas: *mut nsICSSAnonBoxPseudo;
- #[link_name = "\x01?pageBreak@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
- pub static nsCSSAnonBoxes_pageBreak: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?page@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
pub static nsCSSAnonBoxes_page: *mut nsICSSAnonBoxPseudo;
#[link_name = "\x01?pageContent@nsCSSAnonBoxes@@2PAVnsICSSAnonBoxPseudo@@A"]
@@ -15768,8 +15756,6 @@ macro_rules! atom {
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_action as *mut _) } }};
("active") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_active as *mut _) } }};
-("activetitlebarcolor") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_activetitlebarcolor as *mut _) } }};
("activateontab") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_activateontab as *mut _) } }};
("actuate") =>
@@ -16766,8 +16752,6 @@ macro_rules! atom {
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_implements as *mut _) } }};
("import") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_import as *mut _) } }};
-("inactivetitlebarcolor") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_inactivetitlebarcolor as *mut _) } }};
("include") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_include as *mut _) } }};
("includes") =>
@@ -20806,10 +20790,22 @@ macro_rules! atom {
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_placeholder as *mut _) } }};
(":-moz-color-swatch") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_mozColorSwatch as *mut _) } }};
-(":-moz-text") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_mozText as *mut _) } }};
(":-moz-oof-placeholder") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_oofPlaceholder as *mut _) } }};
+(":-moz-hframeset-border") =>
+ {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_horizontalFramesetBorder as *mut _) } }};
+(":-moz-vframeset-border") =>
+ {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_verticalFramesetBorder as *mut _) } }};
+(":-moz-frameset-blank") =>
+ {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_framesetBlank as *mut _) } }};
+(":-moz-table-column-group") =>
+ {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_tableColGroup as *mut _) } }};
+(":-moz-table-column") =>
+ {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_tableCol as *mut _) } }};
+(":-moz-pagebreak") =>
+ {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_pageBreak as *mut _) } }};
+(":-moz-text") =>
+ {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_mozText as *mut _) } }};
(":-moz-first-letter-continuation") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_firstLetterContinuation as *mut _) } }};
(":-moz-block-inside-inline-wrapper") =>
@@ -20818,10 +20814,6 @@ macro_rules! atom {
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_mozMathMLAnonymousBlock as *mut _) } }};
(":-moz-xul-anonymous-block") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_mozXULAnonymousBlock as *mut _) } }};
-(":-moz-hframeset-border") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_horizontalFramesetBorder as *mut _) } }};
-(":-moz-vframeset-border") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_verticalFramesetBorder as *mut _) } }};
(":-moz-line-frame") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_mozLineFrame as *mut _) } }};
(":-moz-button-content") =>
@@ -20832,8 +20824,6 @@ macro_rules! atom {
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_dropDownList as *mut _) } }};
(":-moz-fieldset-content") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_fieldsetContent as *mut _) } }};
-(":-moz-frameset-blank") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_framesetBlank as *mut _) } }};
(":-moz-display-comboboxcontrol-frame") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_mozDisplayComboboxControlFrame as *mut _) } }};
(":-moz-html-canvas-content") =>
@@ -20844,10 +20834,6 @@ macro_rules! atom {
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_table as *mut _) } }};
(":-moz-table-cell") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_tableCell as *mut _) } }};
-(":-moz-table-column-group") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_tableColGroup as *mut _) } }};
-(":-moz-table-column") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_tableCol as *mut _) } }};
(":-moz-table-wrapper") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_tableWrapper as *mut _) } }};
(":-moz-table-row-group") =>
@@ -20856,8 +20842,6 @@ macro_rules! atom {
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_tableRow as *mut _) } }};
(":-moz-canvas") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_canvas as *mut _) } }};
-(":-moz-pagebreak") =>
- {{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_pageBreak as *mut _) } }};
(":-moz-page") =>
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSAnonBoxes_page as *mut _) } }};
(":-moz-pagecontent") =>
diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs
index 53b1c6358b2..82207334ac2 100644
--- a/components/style/gecko/generated/bindings.rs
+++ b/components/style/gecko/generated/bindings.rs
@@ -76,7 +76,6 @@ use gecko_bindings::structs::StyleShapeSource;
use gecko_bindings::structs::StyleTransition;
use gecko_bindings::structs::gfxFontFeatureValueSet;
use gecko_bindings::structs::nsCSSCounterDesc;
-use gecko_bindings::structs::nsCSSCounterStyleRule;
use gecko_bindings::structs::nsCSSFontDesc;
use gecko_bindings::structs::nsCSSKeyword;
use gecko_bindings::structs::nsCSSPropertyID;
@@ -433,6 +432,11 @@ pub struct RawServoRuleNode(RawServoRuleNodeVoid);
pub type RawServoFontFaceRuleStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoFontFaceRule>;
pub type RawServoFontFaceRuleBorrowed<'a> = &'a RawServoFontFaceRule;
pub type RawServoFontFaceRuleBorrowedOrNull<'a> = Option<&'a RawServoFontFaceRule>;
+pub type RawServoCounterStyleRuleStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoCounterStyleRule>;
+pub type RawServoCounterStyleRuleBorrowed<'a> = &'a RawServoCounterStyleRule;
+pub type RawServoCounterStyleRuleBorrowedOrNull<'a> = Option<&'a RawServoCounterStyleRule>;
+enum RawServoCounterStyleRuleVoid { }
+pub struct RawServoCounterStyleRule(RawServoCounterStyleRuleVoid);
extern "C" {
pub fn Gecko_EnsureTArrayCapacity(
@@ -551,6 +555,12 @@ extern "C" {
pub fn Servo_FontFaceRule_Release(ptr: RawServoFontFaceRuleBorrowed);
}
extern "C" {
+ pub fn Servo_CounterStyleRule_AddRef(ptr: RawServoCounterStyleRuleBorrowed);
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_Release(ptr: RawServoCounterStyleRuleBorrowed);
+}
+extern "C" {
pub fn Servo_StyleSet_Drop(ptr: RawServoStyleSetOwned);
}
extern "C" {
@@ -1573,26 +1583,6 @@ extern "C" {
) -> *const ::std::os::raw::c_char;
}
extern "C" {
- pub fn Gecko_CSSCounterStyle_Create(name: *mut nsAtom) -> *mut nsCSSCounterStyleRule;
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyle_Clone(
- rule: *const nsCSSCounterStyleRule,
- ) -> *mut nsCSSCounterStyleRule;
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyle_GetCssText(
- rule: *const nsCSSCounterStyleRule,
- result: *mut nsAString,
- );
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyleRule_AddRef(aPtr: *mut nsCSSCounterStyleRule);
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyleRule_Release(aPtr: *mut nsCSSCounterStyleRule);
-}
-extern "C" {
pub fn Gecko_IsDocumentBody(element: RawGeckoElementBorrowed) -> bool;
}
extern "C" {
@@ -2140,7 +2130,7 @@ extern "C" {
pub fn Servo_StyleSet_GetCounterStyleRule(
set: RawServoStyleSetBorrowed,
name: *mut nsAtom,
- ) -> *mut nsCSSCounterStyleRule;
+ ) -> *const RawServoCounterStyleRule;
}
extern "C" {
pub fn Servo_StyleSet_BuildFontFeatureValueSet(
@@ -2473,7 +2463,21 @@ extern "C" {
pub fn Servo_CssRules_GetCounterStyleRuleAt(
rules: ServoCssRulesBorrowed,
index: u32,
- ) -> *mut nsCSSCounterStyleRule;
+ line: *mut u32,
+ column: *mut u32,
+ ) -> RawServoCounterStyleRuleStrong;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_Debug(
+ rule: RawServoCounterStyleRuleBorrowed,
+ result: *mut nsACString,
+ );
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetCssText(
+ rule: RawServoCounterStyleRuleBorrowed,
+ result: *mut nsAString,
+ );
}
extern "C" {
pub fn Servo_StyleRule_GetStyle(
@@ -2676,6 +2680,56 @@ extern "C" {
);
}
extern "C" {
+ pub fn Servo_CounterStyleRule_GetName(rule: RawServoCounterStyleRuleBorrowed) -> *mut nsAtom;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_SetName(
+ rule: RawServoCounterStyleRuleBorrowed,
+ name: *const nsACString,
+ ) -> bool;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetGeneration(rule: RawServoCounterStyleRuleBorrowed) -> u32;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetSystem(rule: RawServoCounterStyleRuleBorrowed) -> u8;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetExtended(
+ rule: RawServoCounterStyleRuleBorrowed,
+ ) -> *mut nsAtom;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetFixedFirstValue(rule: RawServoCounterStyleRuleBorrowed)
+ -> i32;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetFallback(
+ rule: RawServoCounterStyleRuleBorrowed,
+ ) -> *mut nsAtom;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetDescriptor(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ result: nsCSSValueBorrowedMut,
+ );
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetDescriptorCssText(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ result: *mut nsAString,
+ );
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_SetDescriptor(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ value: *const nsACString,
+ ) -> bool;
+}
+extern "C" {
pub fn Servo_ParseProperty(
property: nsCSSPropertyID,
value: *const nsACString,
@@ -3318,17 +3372,6 @@ extern "C" {
) -> bool;
}
extern "C" {
- pub fn Servo_ParseCounterStyleName(value: *const nsACString) -> *mut nsAtom;
-}
-extern "C" {
- pub fn Servo_ParseCounterStyleDescriptor(
- aDescriptor: nsCSSCounterDesc,
- aValue: *const nsACString,
- aURLExtraData: *mut RawGeckoURLExtraData,
- aResult: *mut nsCSSValue,
- ) -> bool;
-}
-extern "C" {
pub fn Servo_ParseFontShorthandForMatching(
value: *const nsAString,
data: *mut RawGeckoURLExtraData,
@@ -3342,6 +3385,9 @@ extern "C" {
pub fn Servo_Property_IsShorthand(name: *const nsACString, found: *mut bool) -> bool;
}
extern "C" {
+ pub fn Servo_PseudoClass_GetStates(name: *const nsACString) -> u64;
+}
+extern "C" {
pub fn Gecko_CreateCSSErrorReporter(
sheet: *mut ServoStyleSheet,
loader: *mut Loader,
diff --git a/components/style/gecko/generated/pseudo_element_definition.rs b/components/style/gecko/generated/pseudo_element_definition.rs
index 70de6c61109..dcda57bd4a3 100644
--- a/components/style/gecko/generated/pseudo_element_definition.rs
+++ b/components/style/gecko/generated/pseudo_element_definition.rs
@@ -55,10 +55,22 @@ pub enum PseudoElement {
Placeholder,
/// :-moz-color-swatch
MozColorSwatch,
- /// :-moz-text
- MozText,
/// :-moz-oof-placeholder
OofPlaceholder,
+ /// :-moz-hframeset-border
+ HorizontalFramesetBorder,
+ /// :-moz-vframeset-border
+ VerticalFramesetBorder,
+ /// :-moz-frameset-blank
+ FramesetBlank,
+ /// :-moz-table-column-group
+ TableColGroup,
+ /// :-moz-table-column
+ TableCol,
+ /// :-moz-pagebreak
+ PageBreak,
+ /// :-moz-text
+ MozText,
/// :-moz-first-letter-continuation
FirstLetterContinuation,
/// :-moz-block-inside-inline-wrapper
@@ -67,10 +79,6 @@ pub enum PseudoElement {
MozMathMLAnonymousBlock,
/// :-moz-xul-anonymous-block
MozXULAnonymousBlock,
- /// :-moz-hframeset-border
- HorizontalFramesetBorder,
- /// :-moz-vframeset-border
- VerticalFramesetBorder,
/// :-moz-line-frame
MozLineFrame,
/// :-moz-button-content
@@ -81,8 +89,6 @@ pub enum PseudoElement {
DropDownList,
/// :-moz-fieldset-content
FieldsetContent,
- /// :-moz-frameset-blank
- FramesetBlank,
/// :-moz-display-comboboxcontrol-frame
MozDisplayComboboxControlFrame,
/// :-moz-html-canvas-content
@@ -93,10 +99,6 @@ pub enum PseudoElement {
Table,
/// :-moz-table-cell
TableCell,
- /// :-moz-table-column-group
- TableColGroup,
- /// :-moz-table-column
- TableCol,
/// :-moz-table-wrapper
TableWrapper,
/// :-moz-table-row-group
@@ -105,8 +107,6 @@ pub enum PseudoElement {
TableRow,
/// :-moz-canvas
Canvas,
- /// :-moz-pagebreak
- PageBreak,
/// :-moz-page
Page,
/// :-moz-pagecontent
@@ -229,32 +229,32 @@ impl PseudoElement {
PseudoElement::MozPlaceholder => atom!(":-moz-placeholder"),
PseudoElement::Placeholder => atom!(":placeholder"),
PseudoElement::MozColorSwatch => atom!(":-moz-color-swatch"),
- PseudoElement::MozText => atom!(":-moz-text"),
PseudoElement::OofPlaceholder => atom!(":-moz-oof-placeholder"),
+ PseudoElement::HorizontalFramesetBorder => atom!(":-moz-hframeset-border"),
+ PseudoElement::VerticalFramesetBorder => atom!(":-moz-vframeset-border"),
+ PseudoElement::FramesetBlank => atom!(":-moz-frameset-blank"),
+ PseudoElement::TableColGroup => atom!(":-moz-table-column-group"),
+ PseudoElement::TableCol => atom!(":-moz-table-column"),
+ PseudoElement::PageBreak => atom!(":-moz-pagebreak"),
+ PseudoElement::MozText => atom!(":-moz-text"),
PseudoElement::FirstLetterContinuation => atom!(":-moz-first-letter-continuation"),
PseudoElement::MozBlockInsideInlineWrapper => atom!(":-moz-block-inside-inline-wrapper"),
PseudoElement::MozMathMLAnonymousBlock => atom!(":-moz-mathml-anonymous-block"),
PseudoElement::MozXULAnonymousBlock => atom!(":-moz-xul-anonymous-block"),
- PseudoElement::HorizontalFramesetBorder => atom!(":-moz-hframeset-border"),
- PseudoElement::VerticalFramesetBorder => atom!(":-moz-vframeset-border"),
PseudoElement::MozLineFrame => atom!(":-moz-line-frame"),
PseudoElement::ButtonContent => atom!(":-moz-button-content"),
PseudoElement::CellContent => atom!(":-moz-cell-content"),
PseudoElement::DropDownList => atom!(":-moz-dropdown-list"),
PseudoElement::FieldsetContent => atom!(":-moz-fieldset-content"),
- PseudoElement::FramesetBlank => atom!(":-moz-frameset-blank"),
PseudoElement::MozDisplayComboboxControlFrame => atom!(":-moz-display-comboboxcontrol-frame"),
PseudoElement::HtmlCanvasContent => atom!(":-moz-html-canvas-content"),
PseudoElement::InlineTable => atom!(":-moz-inline-table"),
PseudoElement::Table => atom!(":-moz-table"),
PseudoElement::TableCell => atom!(":-moz-table-cell"),
- PseudoElement::TableColGroup => atom!(":-moz-table-column-group"),
- PseudoElement::TableCol => atom!(":-moz-table-column"),
PseudoElement::TableWrapper => atom!(":-moz-table-wrapper"),
PseudoElement::TableRowGroup => atom!(":-moz-table-row-group"),
PseudoElement::TableRow => atom!(":-moz-table-row"),
PseudoElement::Canvas => atom!(":-moz-canvas"),
- PseudoElement::PageBreak => atom!(":-moz-pagebreak"),
PseudoElement::Page => atom!(":-moz-page"),
PseudoElement::PageContent => atom!(":-moz-pagecontent"),
PseudoElement::PageSequence => atom!(":-moz-page-sequence"),
@@ -318,32 +318,32 @@ impl PseudoElement {
PseudoElement::MozPlaceholder => 22,
PseudoElement::Placeholder => 23,
PseudoElement::MozColorSwatch => 24,
- PseudoElement::MozText => 25,
- PseudoElement::OofPlaceholder => 26,
- PseudoElement::FirstLetterContinuation => 27,
- PseudoElement::MozBlockInsideInlineWrapper => 28,
- PseudoElement::MozMathMLAnonymousBlock => 29,
- PseudoElement::MozXULAnonymousBlock => 30,
- PseudoElement::HorizontalFramesetBorder => 31,
- PseudoElement::VerticalFramesetBorder => 32,
- PseudoElement::MozLineFrame => 33,
- PseudoElement::ButtonContent => 34,
- PseudoElement::CellContent => 35,
- PseudoElement::DropDownList => 36,
- PseudoElement::FieldsetContent => 37,
- PseudoElement::FramesetBlank => 38,
- PseudoElement::MozDisplayComboboxControlFrame => 39,
- PseudoElement::HtmlCanvasContent => 40,
- PseudoElement::InlineTable => 41,
- PseudoElement::Table => 42,
- PseudoElement::TableCell => 43,
- PseudoElement::TableColGroup => 44,
- PseudoElement::TableCol => 45,
- PseudoElement::TableWrapper => 46,
- PseudoElement::TableRowGroup => 47,
- PseudoElement::TableRow => 48,
- PseudoElement::Canvas => 49,
- PseudoElement::PageBreak => 50,
+ PseudoElement::OofPlaceholder => 25,
+ PseudoElement::HorizontalFramesetBorder => 26,
+ PseudoElement::VerticalFramesetBorder => 27,
+ PseudoElement::FramesetBlank => 28,
+ PseudoElement::TableColGroup => 29,
+ PseudoElement::TableCol => 30,
+ PseudoElement::PageBreak => 31,
+ PseudoElement::MozText => 32,
+ PseudoElement::FirstLetterContinuation => 33,
+ PseudoElement::MozBlockInsideInlineWrapper => 34,
+ PseudoElement::MozMathMLAnonymousBlock => 35,
+ PseudoElement::MozXULAnonymousBlock => 36,
+ PseudoElement::MozLineFrame => 37,
+ PseudoElement::ButtonContent => 38,
+ PseudoElement::CellContent => 39,
+ PseudoElement::DropDownList => 40,
+ PseudoElement::FieldsetContent => 41,
+ PseudoElement::MozDisplayComboboxControlFrame => 42,
+ PseudoElement::HtmlCanvasContent => 43,
+ PseudoElement::InlineTable => 44,
+ PseudoElement::Table => 45,
+ PseudoElement::TableCell => 46,
+ PseudoElement::TableWrapper => 47,
+ PseudoElement::TableRowGroup => 48,
+ PseudoElement::TableRow => 49,
+ PseudoElement::Canvas => 50,
PseudoElement::Page => 51,
PseudoElement::PageContent => 52,
PseudoElement::PageSequence => 53,
@@ -472,32 +472,32 @@ impl PseudoElement {
#[inline]
pub fn is_anon_box(&self) -> bool {
match *self {
- PseudoElement::MozText => true,
PseudoElement::OofPlaceholder => true,
+ PseudoElement::HorizontalFramesetBorder => true,
+ PseudoElement::VerticalFramesetBorder => true,
+ PseudoElement::FramesetBlank => true,
+ PseudoElement::TableColGroup => true,
+ PseudoElement::TableCol => true,
+ PseudoElement::PageBreak => true,
+ PseudoElement::MozText => true,
PseudoElement::FirstLetterContinuation => true,
PseudoElement::MozBlockInsideInlineWrapper => true,
PseudoElement::MozMathMLAnonymousBlock => true,
PseudoElement::MozXULAnonymousBlock => true,
- PseudoElement::HorizontalFramesetBorder => true,
- PseudoElement::VerticalFramesetBorder => true,
PseudoElement::MozLineFrame => true,
PseudoElement::ButtonContent => true,
PseudoElement::CellContent => true,
PseudoElement::DropDownList => true,
PseudoElement::FieldsetContent => true,
- PseudoElement::FramesetBlank => true,
PseudoElement::MozDisplayComboboxControlFrame => true,
PseudoElement::HtmlCanvasContent => true,
PseudoElement::InlineTable => true,
PseudoElement::Table => true,
PseudoElement::TableCell => true,
- PseudoElement::TableColGroup => true,
- PseudoElement::TableCol => true,
PseudoElement::TableWrapper => true,
PseudoElement::TableRowGroup => true,
PseudoElement::TableRow => true,
PseudoElement::Canvas => true,
- PseudoElement::PageBreak => true,
PseudoElement::Page => true,
PseudoElement::PageContent => true,
PseudoElement::PageSequence => true,
@@ -613,10 +613,22 @@ impl PseudoElement {
structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder,
PseudoElement::MozColorSwatch =>
structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch,
- PseudoElement::MozText =>
- structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::OofPlaceholder =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
+ PseudoElement::HorizontalFramesetBorder =>
+ structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
+ PseudoElement::VerticalFramesetBorder =>
+ structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
+ PseudoElement::FramesetBlank =>
+ structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
+ PseudoElement::TableColGroup =>
+ structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
+ PseudoElement::TableCol =>
+ structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
+ PseudoElement::PageBreak =>
+ structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
+ PseudoElement::MozText =>
+ structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::FirstLetterContinuation =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::MozBlockInsideInlineWrapper =>
@@ -625,10 +637,6 @@ impl PseudoElement {
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::MozXULAnonymousBlock =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
- PseudoElement::HorizontalFramesetBorder =>
- structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
- PseudoElement::VerticalFramesetBorder =>
- structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::MozLineFrame =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::ButtonContent =>
@@ -639,8 +647,6 @@ impl PseudoElement {
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::FieldsetContent =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
- PseudoElement::FramesetBlank =>
- structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::MozDisplayComboboxControlFrame =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::HtmlCanvasContent =>
@@ -651,10 +657,6 @@ impl PseudoElement {
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::TableCell =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
- PseudoElement::TableColGroup =>
- structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
- PseudoElement::TableCol =>
- structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::TableWrapper =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::TableRowGroup =>
@@ -663,8 +665,6 @@ impl PseudoElement {
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::Canvas =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
- PseudoElement::PageBreak =>
- structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::Page =>
structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS,
PseudoElement::PageContent =>
@@ -844,32 +844,32 @@ impl PseudoElement {
PseudoElement::MozPlaceholder => CSSPseudoElementType::mozPlaceholder,
PseudoElement::Placeholder => CSSPseudoElementType::placeholder,
PseudoElement::MozColorSwatch => CSSPseudoElementType::mozColorSwatch,
- PseudoElement::MozText => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::OofPlaceholder => CSSPseudoElementType::NonInheritingAnonBox,
+ PseudoElement::HorizontalFramesetBorder => CSSPseudoElementType::NonInheritingAnonBox,
+ PseudoElement::VerticalFramesetBorder => CSSPseudoElementType::NonInheritingAnonBox,
+ PseudoElement::FramesetBlank => CSSPseudoElementType::NonInheritingAnonBox,
+ PseudoElement::TableColGroup => CSSPseudoElementType::NonInheritingAnonBox,
+ PseudoElement::TableCol => CSSPseudoElementType::NonInheritingAnonBox,
+ PseudoElement::PageBreak => CSSPseudoElementType::NonInheritingAnonBox,
+ PseudoElement::MozText => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::FirstLetterContinuation => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::MozBlockInsideInlineWrapper => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::MozMathMLAnonymousBlock => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::MozXULAnonymousBlock => CSSPseudoElementType_InheritingAnonBox,
- PseudoElement::HorizontalFramesetBorder => CSSPseudoElementType::NonInheritingAnonBox,
- PseudoElement::VerticalFramesetBorder => CSSPseudoElementType::NonInheritingAnonBox,
PseudoElement::MozLineFrame => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::ButtonContent => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::CellContent => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::DropDownList => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::FieldsetContent => CSSPseudoElementType_InheritingAnonBox,
- PseudoElement::FramesetBlank => CSSPseudoElementType::NonInheritingAnonBox,
PseudoElement::MozDisplayComboboxControlFrame => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::HtmlCanvasContent => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::InlineTable => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::Table => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::TableCell => CSSPseudoElementType_InheritingAnonBox,
- PseudoElement::TableColGroup => CSSPseudoElementType::NonInheritingAnonBox,
- PseudoElement::TableCol => CSSPseudoElementType::NonInheritingAnonBox,
PseudoElement::TableWrapper => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::TableRowGroup => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::TableRow => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::Canvas => CSSPseudoElementType_InheritingAnonBox,
- PseudoElement::PageBreak => CSSPseudoElementType::NonInheritingAnonBox,
PseudoElement::Page => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::PageContent => CSSPseudoElementType_InheritingAnonBox,
PseudoElement::PageSequence => CSSPseudoElementType_InheritingAnonBox,
@@ -1006,12 +1006,30 @@ impl PseudoElement {
if atom == &atom!(":-moz-color-swatch") {
return Some(PseudoElement::MozColorSwatch);
}
- if atom == &atom!(":-moz-text") {
- return Some(PseudoElement::MozText);
- }
if atom == &atom!(":-moz-oof-placeholder") {
return Some(PseudoElement::OofPlaceholder);
}
+ if atom == &atom!(":-moz-hframeset-border") {
+ return Some(PseudoElement::HorizontalFramesetBorder);
+ }
+ if atom == &atom!(":-moz-vframeset-border") {
+ return Some(PseudoElement::VerticalFramesetBorder);
+ }
+ if atom == &atom!(":-moz-frameset-blank") {
+ return Some(PseudoElement::FramesetBlank);
+ }
+ if atom == &atom!(":-moz-table-column-group") {
+ return Some(PseudoElement::TableColGroup);
+ }
+ if atom == &atom!(":-moz-table-column") {
+ return Some(PseudoElement::TableCol);
+ }
+ if atom == &atom!(":-moz-pagebreak") {
+ return Some(PseudoElement::PageBreak);
+ }
+ if atom == &atom!(":-moz-text") {
+ return Some(PseudoElement::MozText);
+ }
if atom == &atom!(":-moz-first-letter-continuation") {
return Some(PseudoElement::FirstLetterContinuation);
}
@@ -1024,12 +1042,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-xul-anonymous-block") {
return Some(PseudoElement::MozXULAnonymousBlock);
}
- if atom == &atom!(":-moz-hframeset-border") {
- return Some(PseudoElement::HorizontalFramesetBorder);
- }
- if atom == &atom!(":-moz-vframeset-border") {
- return Some(PseudoElement::VerticalFramesetBorder);
- }
if atom == &atom!(":-moz-line-frame") {
return Some(PseudoElement::MozLineFrame);
}
@@ -1045,9 +1057,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-fieldset-content") {
return Some(PseudoElement::FieldsetContent);
}
- if atom == &atom!(":-moz-frameset-blank") {
- return Some(PseudoElement::FramesetBlank);
- }
if atom == &atom!(":-moz-display-comboboxcontrol-frame") {
return Some(PseudoElement::MozDisplayComboboxControlFrame);
}
@@ -1063,12 +1072,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-table-cell") {
return Some(PseudoElement::TableCell);
}
- if atom == &atom!(":-moz-table-column-group") {
- return Some(PseudoElement::TableColGroup);
- }
- if atom == &atom!(":-moz-table-column") {
- return Some(PseudoElement::TableCol);
- }
if atom == &atom!(":-moz-table-wrapper") {
return Some(PseudoElement::TableWrapper);
}
@@ -1081,9 +1084,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-canvas") {
return Some(PseudoElement::Canvas);
}
- if atom == &atom!(":-moz-pagebreak") {
- return Some(PseudoElement::PageBreak);
- }
if atom == &atom!(":-moz-page") {
return Some(PseudoElement::Page);
}
@@ -1161,12 +1161,30 @@ impl PseudoElement {
/// Construct a pseudo-element from an anonymous box `Atom`.
#[inline]
pub fn from_anon_box_atom(atom: &Atom) -> Option<Self> {
- if atom == &atom!(":-moz-text") {
- return Some(PseudoElement::MozText);
- }
if atom == &atom!(":-moz-oof-placeholder") {
return Some(PseudoElement::OofPlaceholder);
}
+ if atom == &atom!(":-moz-hframeset-border") {
+ return Some(PseudoElement::HorizontalFramesetBorder);
+ }
+ if atom == &atom!(":-moz-vframeset-border") {
+ return Some(PseudoElement::VerticalFramesetBorder);
+ }
+ if atom == &atom!(":-moz-frameset-blank") {
+ return Some(PseudoElement::FramesetBlank);
+ }
+ if atom == &atom!(":-moz-table-column-group") {
+ return Some(PseudoElement::TableColGroup);
+ }
+ if atom == &atom!(":-moz-table-column") {
+ return Some(PseudoElement::TableCol);
+ }
+ if atom == &atom!(":-moz-pagebreak") {
+ return Some(PseudoElement::PageBreak);
+ }
+ if atom == &atom!(":-moz-text") {
+ return Some(PseudoElement::MozText);
+ }
if atom == &atom!(":-moz-first-letter-continuation") {
return Some(PseudoElement::FirstLetterContinuation);
}
@@ -1179,12 +1197,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-xul-anonymous-block") {
return Some(PseudoElement::MozXULAnonymousBlock);
}
- if atom == &atom!(":-moz-hframeset-border") {
- return Some(PseudoElement::HorizontalFramesetBorder);
- }
- if atom == &atom!(":-moz-vframeset-border") {
- return Some(PseudoElement::VerticalFramesetBorder);
- }
if atom == &atom!(":-moz-line-frame") {
return Some(PseudoElement::MozLineFrame);
}
@@ -1200,9 +1212,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-fieldset-content") {
return Some(PseudoElement::FieldsetContent);
}
- if atom == &atom!(":-moz-frameset-blank") {
- return Some(PseudoElement::FramesetBlank);
- }
if atom == &atom!(":-moz-display-comboboxcontrol-frame") {
return Some(PseudoElement::MozDisplayComboboxControlFrame);
}
@@ -1218,12 +1227,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-table-cell") {
return Some(PseudoElement::TableCell);
}
- if atom == &atom!(":-moz-table-column-group") {
- return Some(PseudoElement::TableColGroup);
- }
- if atom == &atom!(":-moz-table-column") {
- return Some(PseudoElement::TableCol);
- }
if atom == &atom!(":-moz-table-wrapper") {
return Some(PseudoElement::TableWrapper);
}
@@ -1236,9 +1239,6 @@ impl PseudoElement {
if atom == &atom!(":-moz-canvas") {
return Some(PseudoElement::Canvas);
}
- if atom == &atom!(":-moz-pagebreak") {
- return Some(PseudoElement::PageBreak);
- }
if atom == &atom!(":-moz-page") {
return Some(PseudoElement::Page);
}
@@ -1440,12 +1440,30 @@ impl PseudoElement {
"-moz-color-swatch" => {
return Some(PseudoElement::MozColorSwatch)
}
- "-moz-text" => {
- return Some(PseudoElement::MozText)
- }
"-moz-oof-placeholder" => {
return Some(PseudoElement::OofPlaceholder)
}
+ "-moz-hframeset-border" => {
+ return Some(PseudoElement::HorizontalFramesetBorder)
+ }
+ "-moz-vframeset-border" => {
+ return Some(PseudoElement::VerticalFramesetBorder)
+ }
+ "-moz-frameset-blank" => {
+ return Some(PseudoElement::FramesetBlank)
+ }
+ "-moz-table-column-group" => {
+ return Some(PseudoElement::TableColGroup)
+ }
+ "-moz-table-column" => {
+ return Some(PseudoElement::TableCol)
+ }
+ "-moz-pagebreak" => {
+ return Some(PseudoElement::PageBreak)
+ }
+ "-moz-text" => {
+ return Some(PseudoElement::MozText)
+ }
"-moz-first-letter-continuation" => {
return Some(PseudoElement::FirstLetterContinuation)
}
@@ -1458,12 +1476,6 @@ impl PseudoElement {
"-moz-xul-anonymous-block" => {
return Some(PseudoElement::MozXULAnonymousBlock)
}
- "-moz-hframeset-border" => {
- return Some(PseudoElement::HorizontalFramesetBorder)
- }
- "-moz-vframeset-border" => {
- return Some(PseudoElement::VerticalFramesetBorder)
- }
"-moz-line-frame" => {
return Some(PseudoElement::MozLineFrame)
}
@@ -1479,9 +1491,6 @@ impl PseudoElement {
"-moz-fieldset-content" => {
return Some(PseudoElement::FieldsetContent)
}
- "-moz-frameset-blank" => {
- return Some(PseudoElement::FramesetBlank)
- }
"-moz-display-comboboxcontrol-frame" => {
return Some(PseudoElement::MozDisplayComboboxControlFrame)
}
@@ -1497,12 +1506,6 @@ impl PseudoElement {
"-moz-table-cell" => {
return Some(PseudoElement::TableCell)
}
- "-moz-table-column-group" => {
- return Some(PseudoElement::TableColGroup)
- }
- "-moz-table-column" => {
- return Some(PseudoElement::TableCol)
- }
"-moz-table-wrapper" => {
return Some(PseudoElement::TableWrapper)
}
@@ -1515,9 +1518,6 @@ impl PseudoElement {
"-moz-canvas" => {
return Some(PseudoElement::Canvas)
}
- "-moz-pagebreak" => {
- return Some(PseudoElement::PageBreak)
- }
"-moz-page" => {
return Some(PseudoElement::Page)
}
@@ -1664,32 +1664,32 @@ impl ToCss for PseudoElement {
PseudoElement::MozPlaceholder => dest.write_str(":-moz-placeholder")?,
PseudoElement::Placeholder => dest.write_str(":placeholder")?,
PseudoElement::MozColorSwatch => dest.write_str(":-moz-color-swatch")?,
- PseudoElement::MozText => dest.write_str(":-moz-text")?,
PseudoElement::OofPlaceholder => dest.write_str(":-moz-oof-placeholder")?,
+ PseudoElement::HorizontalFramesetBorder => dest.write_str(":-moz-hframeset-border")?,
+ PseudoElement::VerticalFramesetBorder => dest.write_str(":-moz-vframeset-border")?,
+ PseudoElement::FramesetBlank => dest.write_str(":-moz-frameset-blank")?,
+ PseudoElement::TableColGroup => dest.write_str(":-moz-table-column-group")?,
+ PseudoElement::TableCol => dest.write_str(":-moz-table-column")?,
+ PseudoElement::PageBreak => dest.write_str(":-moz-pagebreak")?,
+ PseudoElement::MozText => dest.write_str(":-moz-text")?,
PseudoElement::FirstLetterContinuation => dest.write_str(":-moz-first-letter-continuation")?,
PseudoElement::MozBlockInsideInlineWrapper => dest.write_str(":-moz-block-inside-inline-wrapper")?,
PseudoElement::MozMathMLAnonymousBlock => dest.write_str(":-moz-mathml-anonymous-block")?,
PseudoElement::MozXULAnonymousBlock => dest.write_str(":-moz-xul-anonymous-block")?,
- PseudoElement::HorizontalFramesetBorder => dest.write_str(":-moz-hframeset-border")?,
- PseudoElement::VerticalFramesetBorder => dest.write_str(":-moz-vframeset-border")?,
PseudoElement::MozLineFrame => dest.write_str(":-moz-line-frame")?,
PseudoElement::ButtonContent => dest.write_str(":-moz-button-content")?,
PseudoElement::CellContent => dest.write_str(":-moz-cell-content")?,
PseudoElement::DropDownList => dest.write_str(":-moz-dropdown-list")?,
PseudoElement::FieldsetContent => dest.write_str(":-moz-fieldset-content")?,
- PseudoElement::FramesetBlank => dest.write_str(":-moz-frameset-blank")?,
PseudoElement::MozDisplayComboboxControlFrame => dest.write_str(":-moz-display-comboboxcontrol-frame")?,
PseudoElement::HtmlCanvasContent => dest.write_str(":-moz-html-canvas-content")?,
PseudoElement::InlineTable => dest.write_str(":-moz-inline-table")?,
PseudoElement::Table => dest.write_str(":-moz-table")?,
PseudoElement::TableCell => dest.write_str(":-moz-table-cell")?,
- PseudoElement::TableColGroup => dest.write_str(":-moz-table-column-group")?,
- PseudoElement::TableCol => dest.write_str(":-moz-table-column")?,
PseudoElement::TableWrapper => dest.write_str(":-moz-table-wrapper")?,
PseudoElement::TableRowGroup => dest.write_str(":-moz-table-row-group")?,
PseudoElement::TableRow => dest.write_str(":-moz-table-row")?,
PseudoElement::Canvas => dest.write_str(":-moz-canvas")?,
- PseudoElement::PageBreak => dest.write_str(":-moz-pagebreak")?,
PseudoElement::Page => dest.write_str(":-moz-page")?,
PseudoElement::PageContent => dest.write_str(":-moz-pagecontent")?,
PseudoElement::PageSequence => dest.write_str(":-moz-page-sequence")?,
diff --git a/components/style/gecko/generated/structs.rs b/components/style/gecko/generated/structs.rs
index 96f02d1fc50..b4b5eee045e 100644
--- a/components/style/gecko/generated/structs.rs
+++ b/components/style/gecko/generated/structs.rs
@@ -826,15 +826,6 @@ pub mod root {
pub const NS_STYLE_SCROLL_SNAP_TYPE_NONE: u32 = 0;
pub const NS_STYLE_SCROLL_SNAP_TYPE_MANDATORY: u32 = 1;
pub const NS_STYLE_SCROLL_SNAP_TYPE_PROXIMITY: u32 = 2;
- pub const CSS_PSEUDO_ELEMENT_IS_CSS2: u32 = 1;
- pub const CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS: u32 = 2;
- pub const CSS_PSEUDO_ELEMENT_SUPPORTS_STYLE_ATTRIBUTE: u32 = 4;
- pub const CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE: u32 = 8;
- pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS: u32 = 16;
- pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_CHROME: u32 = 32;
- pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS_AND_CHROME: u32 = 48;
- pub const CSS_PSEUDO_ELEMENT_IS_JS_CREATED_NAC: u32 = 64;
- pub const CSS_PSEUDO_ELEMENT_IS_FLEX_OR_GRID_ITEM: u32 = 128;
pub const kNameSpaceID_Unknown: i32 = -1;
pub const kNameSpaceID_XMLNS: u32 = 1;
pub const kNameSpaceID_XML: u32 = 2;
@@ -849,6 +840,15 @@ pub mod root {
pub const kNameSpaceID_disabled_MathML: u32 = 11;
pub const kNameSpaceID_disabled_SVG: u32 = 12;
pub const kNameSpaceID_LastBuiltin: u32 = 12;
+ pub const CSS_PSEUDO_ELEMENT_IS_CSS2: u32 = 1;
+ pub const CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS: u32 = 2;
+ pub const CSS_PSEUDO_ELEMENT_SUPPORTS_STYLE_ATTRIBUTE: u32 = 4;
+ pub const CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE: u32 = 8;
+ pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS: u32 = 16;
+ pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_CHROME: u32 = 32;
+ pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS_AND_CHROME: u32 = 48;
+ pub const CSS_PSEUDO_ELEMENT_IS_JS_CREATED_NAC: u32 = 64;
+ pub const CSS_PSEUDO_ELEMENT_IS_FLEX_OR_GRID_ITEM: u32 = 128;
pub const kNameSpaceID_Wildcard: i32 = -2147483648;
pub const NS_AUTHOR_SPECIFIED_BACKGROUND: u32 = 1;
pub const NS_AUTHOR_SPECIFIED_BORDER: u32 = 2;
@@ -904,8 +904,6 @@ pub mod root {
}
pub type pair_first_type<_T1> = _T1;
pub type pair_second_type<_T2> = _T2;
- pub type pair__PCCP = u8;
- pub type pair__PCCFP = u8;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct input_iterator_tag {
@@ -954,33 +952,15 @@ pub mod root {
pub _M_bpos: usize,
}
}
- pub mod __gnu_cxx {
- #[allow(unused_imports)]
- use self::super::super::root;
- }
- pub type __int8_t = ::std::os::raw::c_schar;
- pub type __uint8_t = ::std::os::raw::c_uchar;
- pub type __int16_t = ::std::os::raw::c_short;
- pub type __uint16_t = ::std::os::raw::c_ushort;
- pub type __int32_t = ::std::os::raw::c_int;
- pub type __uint32_t = ::std::os::raw::c_uint;
- pub type __int64_t = ::std::os::raw::c_long;
- pub type __uint64_t = ::std::os::raw::c_ulong;
pub mod mozilla {
#[allow(unused_imports)]
use self::super::super::root;
- pub type fallible_t = root::std::nothrow_t;
- pub type IntegralConstant_ValueType<T> = T;
- pub type IntegralConstant_Type = u8;
- /// Convenient aliases.
- pub type TrueType = u8;
- pub type FalseType = u8;
pub mod detail {
#[allow(unused_imports)]
use self::super::super::super::root;
pub const StringDataFlags_TERMINATED: root::mozilla::detail::StringDataFlags = 1;
pub const StringDataFlags_VOIDED: root::mozilla::detail::StringDataFlags = 2;
- pub const StringDataFlags_SHARED: root::mozilla::detail::StringDataFlags = 4;
+ pub const StringDataFlags_REFCOUNTED: root::mozilla::detail::StringDataFlags = 4;
pub const StringDataFlags_OWNED: root::mozilla::detail::StringDataFlags = 8;
pub const StringDataFlags_INLINE: root::mozilla::detail::StringDataFlags = 16;
pub const StringDataFlags_LITERAL: root::mozilla::detail::StringDataFlags = 32;
@@ -1044,11 +1024,6 @@ pub mod root {
pub type VariantTag_Type = u8;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
- pub struct WeakReference {
- pub _address: u8,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
pub struct FreePolicy {
pub _address: u8,
}
@@ -1093,6 +1068,11 @@ pub mod root {
);
}
#[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct WeakReference {
+ pub _address: u8,
+ }
+ #[repr(C)]
#[derive(Debug)]
pub struct ConditionVariableImpl {
pub platformData_: [*mut ::std::os::raw::c_void; 6usize],
@@ -1134,62 +1114,13 @@ pub mod root {
);
}
}
+ pub type fallible_t = root::std::nothrow_t;
+ pub type IntegralConstant_ValueType<T> = T;
+ pub type IntegralConstant_Type = u8;
+ /// Convenient aliases.
+ pub type TrueType = u8;
+ pub type FalseType = u8;
pub type Conditional_Type<A> = A;
- pub const ArenaObjectID_eArenaObjectID_DummyBeforeFirstObjectID:
- root::mozilla::ArenaObjectID = 171;
- pub const ArenaObjectID_eArenaObjectID_GeckoComputedStyle: root::mozilla::ArenaObjectID =
- 172;
- pub const ArenaObjectID_eArenaObjectID_nsLineBox: root::mozilla::ArenaObjectID = 173;
- pub const ArenaObjectID_eArenaObjectID_nsRuleNode: root::mozilla::ArenaObjectID = 174;
- pub const ArenaObjectID_eArenaObjectID_DisplayItemData: root::mozilla::ArenaObjectID = 175;
- pub const ArenaObjectID_eArenaObjectID_nsInheritedStyleData: root::mozilla::ArenaObjectID =
- 176;
- pub const ArenaObjectID_eArenaObjectID_nsResetStyleData: root::mozilla::ArenaObjectID = 177;
- pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleData:
- root::mozilla::ArenaObjectID = 178;
- pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleDataEntry:
- root::mozilla::ArenaObjectID = 179;
- pub const ArenaObjectID_eArenaObjectID_nsFrameList: root::mozilla::ArenaObjectID = 180;
- pub const ArenaObjectID_eArenaObjectID_CustomCounterStyle: root::mozilla::ArenaObjectID =
- 181;
- pub const ArenaObjectID_eArenaObjectID_DependentBuiltinCounterStyle:
- root::mozilla::ArenaObjectID = 182;
- pub const ArenaObjectID_eArenaObjectID_nsCallbackEventRequest:
- root::mozilla::ArenaObjectID = 183;
- pub const ArenaObjectID_eArenaObjectID_nsIntervalSet_Interval:
- root::mozilla::ArenaObjectID = 184;
- pub const ArenaObjectID_eArenaObjectID_CellData: root::mozilla::ArenaObjectID = 185;
- pub const ArenaObjectID_eArenaObjectID_BCCellData: root::mozilla::ArenaObjectID = 186;
- pub const ArenaObjectID_eArenaObjectID_nsStyleFont: root::mozilla::ArenaObjectID = 187;
- pub const ArenaObjectID_eArenaObjectID_nsStyleColor: root::mozilla::ArenaObjectID = 188;
- pub const ArenaObjectID_eArenaObjectID_nsStyleList: root::mozilla::ArenaObjectID = 189;
- pub const ArenaObjectID_eArenaObjectID_nsStyleText: root::mozilla::ArenaObjectID = 190;
- pub const ArenaObjectID_eArenaObjectID_nsStyleVisibility: root::mozilla::ArenaObjectID =
- 191;
- pub const ArenaObjectID_eArenaObjectID_nsStyleUserInterface: root::mozilla::ArenaObjectID =
- 192;
- pub const ArenaObjectID_eArenaObjectID_nsStyleTableBorder: root::mozilla::ArenaObjectID =
- 193;
- pub const ArenaObjectID_eArenaObjectID_nsStyleSVG: root::mozilla::ArenaObjectID = 194;
- pub const ArenaObjectID_eArenaObjectID_nsStyleVariables: root::mozilla::ArenaObjectID = 195;
- pub const ArenaObjectID_eArenaObjectID_nsStyleBackground: root::mozilla::ArenaObjectID =
- 196;
- pub const ArenaObjectID_eArenaObjectID_nsStylePosition: root::mozilla::ArenaObjectID = 197;
- pub const ArenaObjectID_eArenaObjectID_nsStyleTextReset: root::mozilla::ArenaObjectID = 198;
- pub const ArenaObjectID_eArenaObjectID_nsStyleDisplay: root::mozilla::ArenaObjectID = 199;
- pub const ArenaObjectID_eArenaObjectID_nsStyleContent: root::mozilla::ArenaObjectID = 200;
- pub const ArenaObjectID_eArenaObjectID_nsStyleUIReset: root::mozilla::ArenaObjectID = 201;
- pub const ArenaObjectID_eArenaObjectID_nsStyleTable: root::mozilla::ArenaObjectID = 202;
- pub const ArenaObjectID_eArenaObjectID_nsStyleMargin: root::mozilla::ArenaObjectID = 203;
- pub const ArenaObjectID_eArenaObjectID_nsStylePadding: root::mozilla::ArenaObjectID = 204;
- pub const ArenaObjectID_eArenaObjectID_nsStyleBorder: root::mozilla::ArenaObjectID = 205;
- pub const ArenaObjectID_eArenaObjectID_nsStyleOutline: root::mozilla::ArenaObjectID = 206;
- pub const ArenaObjectID_eArenaObjectID_nsStyleXUL: root::mozilla::ArenaObjectID = 207;
- pub const ArenaObjectID_eArenaObjectID_nsStyleSVGReset: root::mozilla::ArenaObjectID = 208;
- pub const ArenaObjectID_eArenaObjectID_nsStyleColumn: root::mozilla::ArenaObjectID = 209;
- pub const ArenaObjectID_eArenaObjectID_nsStyleEffects: root::mozilla::ArenaObjectID = 210;
- pub const ArenaObjectID_eArenaObjectID_COUNT: root::mozilla::ArenaObjectID = 211;
- pub type ArenaObjectID = u32;
/// This class is designed to cause crashes when various kinds of memory
/// corruption are observed. For instance, let's say we have a class C where we
/// suspect out-of-bounds writes to some members. We can insert a member of type
@@ -1893,6 +1824,120 @@ pub mod root {
NonSystem = 1,
}
#[repr(C)]
+ pub struct URLParams {
+ pub mParams: root::nsTArray<root::mozilla::dom::URLParams_Param>,
+ }
+ #[repr(C)]
+ pub struct URLParams_ForEachIterator__bindgen_vtable(::std::os::raw::c_void);
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct URLParams_ForEachIterator {
+ pub vtable_: *const URLParams_ForEachIterator__bindgen_vtable,
+ }
+ #[test]
+ fn bindgen_test_layout_URLParams_ForEachIterator() {
+ assert_eq!(
+ ::std::mem::size_of::<URLParams_ForEachIterator>(),
+ 8usize,
+ concat!("Size of: ", stringify!(URLParams_ForEachIterator))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<URLParams_ForEachIterator>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(URLParams_ForEachIterator))
+ );
+ }
+ impl Clone for URLParams_ForEachIterator {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ pub struct URLParams_Param {
+ pub mKey: ::nsstring::nsStringRepr,
+ pub mValue: ::nsstring::nsStringRepr,
+ }
+ #[test]
+ fn bindgen_test_layout_URLParams_Param() {
+ assert_eq!(
+ ::std::mem::size_of::<URLParams_Param>(),
+ 32usize,
+ concat!("Size of: ", stringify!(URLParams_Param))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<URLParams_Param>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(URLParams_Param))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<URLParams_Param>())).mKey as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLParams_Param),
+ "::",
+ stringify!(mKey)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<URLParams_Param>())).mValue as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLParams_Param),
+ "::",
+ stringify!(mValue)
+ )
+ );
+ }
+ #[test]
+ fn bindgen_test_layout_URLParams() {
+ assert_eq!(
+ ::std::mem::size_of::<URLParams>(),
+ 8usize,
+ concat!("Size of: ", stringify!(URLParams))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<URLParams>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(URLParams))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<URLParams>())).mParams as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLParams),
+ "::",
+ stringify!(mParams)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct DocGroup {
+ _unused: [u8; 0],
+ }
+ impl Clone for DocGroup {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct TabGroup {
+ _unused: [u8; 0],
+ }
+ impl Clone for TabGroup {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Nullable {
pub _address: u8,
@@ -1931,64 +1976,100 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct CSSImportRule {
+ pub struct ImageTracker {
_unused: [u8; 0],
}
- impl Clone for CSSImportRule {
+ impl Clone for ImageTracker {
fn clone(&self) -> Self {
*self
}
}
- /// Struct that stores info on an attribute. The name and value must either both
- /// be null or both be non-null.
- ///
- /// Note that, just as the pointers returned by GetAttrNameAt, the pointers that
- /// this struct hold are only valid until the element or its attributes are
- /// mutated (directly or via script).
#[repr(C)]
- #[derive(Debug, Copy)]
- pub struct BorrowedAttrInfo {
- pub mName: *const root::nsAttrName,
- pub mValue: *const root::nsAttrValue,
+ pub struct SRIMetadata {
+ pub mHashes: root::nsTArray<root::nsCString>,
+ pub mIntegrityString: ::nsstring::nsStringRepr,
+ pub mAlgorithm: root::nsCString,
+ pub mAlgorithmType: i8,
+ pub mEmpty: bool,
}
+ pub const SRIMetadata_MAX_ALTERNATE_HASHES: u32 = 256;
+ pub const SRIMetadata_UNKNOWN_ALGORITHM: i8 = -1;
#[test]
- fn bindgen_test_layout_BorrowedAttrInfo() {
+ fn bindgen_test_layout_SRIMetadata() {
assert_eq!(
- ::std::mem::size_of::<BorrowedAttrInfo>(),
- 16usize,
- concat!("Size of: ", stringify!(BorrowedAttrInfo))
+ ::std::mem::size_of::<SRIMetadata>(),
+ 48usize,
+ concat!("Size of: ", stringify!(SRIMetadata))
);
assert_eq!(
- ::std::mem::align_of::<BorrowedAttrInfo>(),
+ ::std::mem::align_of::<SRIMetadata>(),
8usize,
- concat!("Alignment of ", stringify!(BorrowedAttrInfo))
+ concat!("Alignment of ", stringify!(SRIMetadata))
);
assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<BorrowedAttrInfo>())).mName as *const _ as usize
- },
+ unsafe { &(*(::std::ptr::null::<SRIMetadata>())).mHashes as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
- stringify!(BorrowedAttrInfo),
+ stringify!(SRIMetadata),
"::",
- stringify!(mName)
+ stringify!(mHashes)
)
);
assert_eq!(
unsafe {
- &(*(::std::ptr::null::<BorrowedAttrInfo>())).mValue as *const _ as usize
+ &(*(::std::ptr::null::<SRIMetadata>())).mIntegrityString as *const _
+ as usize
},
8usize,
concat!(
"Offset of field: ",
- stringify!(BorrowedAttrInfo),
+ stringify!(SRIMetadata),
"::",
- stringify!(mValue)
+ stringify!(mIntegrityString)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<SRIMetadata>())).mAlgorithm as *const _ as usize
+ },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(SRIMetadata),
+ "::",
+ stringify!(mAlgorithm)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<SRIMetadata>())).mAlgorithmType as *const _ as usize
+ },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(SRIMetadata),
+ "::",
+ stringify!(mAlgorithmType)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<SRIMetadata>())).mEmpty as *const _ as usize },
+ 41usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(SRIMetadata),
+ "::",
+ stringify!(mEmpty)
)
);
}
- impl Clone for BorrowedAttrInfo {
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct CSSImportRule {
+ _unused: [u8; 0],
+ }
+ impl Clone for CSSImportRule {
fn clone(&self) -> Self {
*self
}
@@ -2280,16 +2361,6 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct DocGroup {
- _unused: [u8; 0],
- }
- impl Clone for DocGroup {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
pub struct DOMPoint {
_unused: [u8; 0],
}
@@ -2349,16 +2420,6 @@ pub mod root {
}
}
#[repr(C)]
- #[derive(Debug, Copy)]
- pub struct TabGroup {
- _unused: [u8; 0],
- }
- impl Clone for TabGroup {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
pub struct DispatcherTrait__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
#[derive(Debug, Copy)]
@@ -2441,6 +2502,70 @@ pub mod root {
root::mozilla::dom::LargeAllocStatus = 4;
pub const LargeAllocStatus_NON_WIN32: root::mozilla::dom::LargeAllocStatus = 5;
pub type LargeAllocStatus = u8;
+ /// Struct that stores info on an attribute. The name and value must either both
+ /// be null or both be non-null.
+ ///
+ /// Note that, just as the pointers returned by GetAttrNameAt, the pointers that
+ /// this struct hold are only valid until the element or its attributes are
+ /// mutated (directly or via script).
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct BorrowedAttrInfo {
+ pub mName: *const root::nsAttrName,
+ pub mValue: *const root::nsAttrValue,
+ }
+ #[test]
+ fn bindgen_test_layout_BorrowedAttrInfo() {
+ assert_eq!(
+ ::std::mem::size_of::<BorrowedAttrInfo>(),
+ 16usize,
+ concat!("Size of: ", stringify!(BorrowedAttrInfo))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<BorrowedAttrInfo>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(BorrowedAttrInfo))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<BorrowedAttrInfo>())).mName as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(BorrowedAttrInfo),
+ "::",
+ stringify!(mName)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<BorrowedAttrInfo>())).mValue as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(BorrowedAttrInfo),
+ "::",
+ stringify!(mValue)
+ )
+ );
+ }
+ impl Clone for BorrowedAttrInfo {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct FontFaceSet {
+ _unused: [u8; 0],
+ }
+ impl Clone for FontFaceSet {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct StyleSheetList {
@@ -2605,16 +2730,6 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct FontFaceSet {
- _unused: [u8; 0],
- }
- impl Clone for FontFaceSet {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
pub struct FullscreenRequest {
_unused: [u8; 0],
}
@@ -2625,16 +2740,6 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct ImageTracker {
- _unused: [u8; 0],
- }
- impl Clone for ImageTracker {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
pub struct HTMLImageElement {
_unused: [u8; 0],
}
@@ -2685,203 +2790,6 @@ pub mod root {
}
}
#[repr(C)]
- #[derive(Debug, Copy)]
- pub struct FrameRequestCallback {
- pub _bindgen_opaque_blob: [u64; 6usize],
- }
- #[test]
- fn bindgen_test_layout_FrameRequestCallback() {
- assert_eq!(
- ::std::mem::size_of::<FrameRequestCallback>(),
- 48usize,
- concat!("Size of: ", stringify!(FrameRequestCallback))
- );
- assert_eq!(
- ::std::mem::align_of::<FrameRequestCallback>(),
- 8usize,
- concat!("Alignment of ", stringify!(FrameRequestCallback))
- );
- }
- impl Clone for FrameRequestCallback {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- pub struct URLParams {
- pub mParams: root::nsTArray<root::mozilla::dom::URLParams_Param>,
- }
- #[repr(C)]
- pub struct URLParams_ForEachIterator__bindgen_vtable(::std::os::raw::c_void);
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct URLParams_ForEachIterator {
- pub vtable_: *const URLParams_ForEachIterator__bindgen_vtable,
- }
- #[test]
- fn bindgen_test_layout_URLParams_ForEachIterator() {
- assert_eq!(
- ::std::mem::size_of::<URLParams_ForEachIterator>(),
- 8usize,
- concat!("Size of: ", stringify!(URLParams_ForEachIterator))
- );
- assert_eq!(
- ::std::mem::align_of::<URLParams_ForEachIterator>(),
- 8usize,
- concat!("Alignment of ", stringify!(URLParams_ForEachIterator))
- );
- }
- impl Clone for URLParams_ForEachIterator {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- pub struct URLParams_Param {
- pub mKey: ::nsstring::nsStringRepr,
- pub mValue: ::nsstring::nsStringRepr,
- }
- #[test]
- fn bindgen_test_layout_URLParams_Param() {
- assert_eq!(
- ::std::mem::size_of::<URLParams_Param>(),
- 32usize,
- concat!("Size of: ", stringify!(URLParams_Param))
- );
- assert_eq!(
- ::std::mem::align_of::<URLParams_Param>(),
- 8usize,
- concat!("Alignment of ", stringify!(URLParams_Param))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<URLParams_Param>())).mKey as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(URLParams_Param),
- "::",
- stringify!(mKey)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<URLParams_Param>())).mValue as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(URLParams_Param),
- "::",
- stringify!(mValue)
- )
- );
- }
- #[test]
- fn bindgen_test_layout_URLParams() {
- assert_eq!(
- ::std::mem::size_of::<URLParams>(),
- 8usize,
- concat!("Size of: ", stringify!(URLParams))
- );
- assert_eq!(
- ::std::mem::align_of::<URLParams>(),
- 8usize,
- concat!("Alignment of ", stringify!(URLParams))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<URLParams>())).mParams as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(URLParams),
- "::",
- stringify!(mParams)
- )
- );
- }
- #[repr(C)]
- pub struct SRIMetadata {
- pub mHashes: root::nsTArray<root::nsCString>,
- pub mIntegrityString: ::nsstring::nsStringRepr,
- pub mAlgorithm: root::nsCString,
- pub mAlgorithmType: i8,
- pub mEmpty: bool,
- }
- pub const SRIMetadata_MAX_ALTERNATE_HASHES: u32 = 256;
- pub const SRIMetadata_UNKNOWN_ALGORITHM: i8 = -1;
- #[test]
- fn bindgen_test_layout_SRIMetadata() {
- assert_eq!(
- ::std::mem::size_of::<SRIMetadata>(),
- 48usize,
- concat!("Size of: ", stringify!(SRIMetadata))
- );
- assert_eq!(
- ::std::mem::align_of::<SRIMetadata>(),
- 8usize,
- concat!("Alignment of ", stringify!(SRIMetadata))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<SRIMetadata>())).mHashes as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(SRIMetadata),
- "::",
- stringify!(mHashes)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<SRIMetadata>())).mIntegrityString as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(SRIMetadata),
- "::",
- stringify!(mIntegrityString)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<SRIMetadata>())).mAlgorithm as *const _ as usize
- },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(SRIMetadata),
- "::",
- stringify!(mAlgorithm)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<SRIMetadata>())).mAlgorithmType as *const _ as usize
- },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(SRIMetadata),
- "::",
- stringify!(mAlgorithmType)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<SRIMetadata>())).mEmpty as *const _ as usize },
- 41usize,
- concat!(
- "Offset of field: ",
- stringify!(SRIMetadata),
- "::",
- stringify!(mEmpty)
- )
- );
- }
- #[repr(C)]
#[derive(Debug)]
pub struct OwningNodeOrString {
pub mType: root::mozilla::dom::OwningNodeOrString_Type,
@@ -2996,15 +2904,13 @@ pub mod root {
#[repr(C)]
pub struct FragmentOrElement {
pub _base: root::nsIContent,
- pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
/// Array containing all attributes and children for this element
pub mAttrsAndChildren: root::nsAttrAndChildArray,
}
- pub type FragmentOrElement_HasThreadSafeRefCnt = root::mozilla::FalseType;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FragmentOrElement_cycleCollection {
- pub _base: root::nsXPCOMCycleCollectionParticipant,
+ pub _base: root::nsIContent_cycleCollection,
}
#[test]
fn bindgen_test_layout_FragmentOrElement_cycleCollection() {
@@ -3292,18 +3198,6 @@ pub mod root {
);
assert_eq!(
unsafe {
- &(*(::std::ptr::null::<FragmentOrElement>())).mRefCnt as *const _ as usize
- },
- 88usize,
- concat!(
- "Offset of field: ",
- stringify!(FragmentOrElement),
- "::",
- stringify!(mRefCnt)
- )
- );
- assert_eq!(
- unsafe {
&(*(::std::ptr::null::<FragmentOrElement>())).mAttrsAndChildren as *const _
as usize
},
@@ -3369,6 +3263,29 @@ pub mod root {
);
}
#[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct FrameRequestCallback {
+ pub _bindgen_opaque_blob: [u64; 6usize],
+ }
+ #[test]
+ fn bindgen_test_layout_FrameRequestCallback() {
+ assert_eq!(
+ ::std::mem::size_of::<FrameRequestCallback>(),
+ 48usize,
+ concat!("Size of: ", stringify!(FrameRequestCallback))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<FrameRequestCallback>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(FrameRequestCallback))
+ );
+ }
+ impl Clone for FrameRequestCallback {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
#[derive(Debug)]
pub struct DOMRectReadOnly {
pub _base: root::nsISupports,
@@ -4795,442 +4712,15 @@ pub mod root {
Contain = 1,
None = 2,
}
- pub const MediaFeatureChangeReason_ViewportChange: root::mozilla::MediaFeatureChangeReason =
- 1;
- pub const MediaFeatureChangeReason_ZoomChange: root::mozilla::MediaFeatureChangeReason = 2;
- pub const MediaFeatureChangeReason_MinFontSizeChange:
- root::mozilla::MediaFeatureChangeReason = 4;
- pub const MediaFeatureChangeReason_ResolutionChange:
- root::mozilla::MediaFeatureChangeReason = 8;
- pub const MediaFeatureChangeReason_MediumChange: root::mozilla::MediaFeatureChangeReason =
- 16;
- pub const MediaFeatureChangeReason_SizeModeChange: root::mozilla::MediaFeatureChangeReason =
- 32;
- pub const MediaFeatureChangeReason_SystemMetricsChange:
- root::mozilla::MediaFeatureChangeReason = 64;
- pub const MediaFeatureChangeReason_DeviceSizeIsPageSizeChange:
- root::mozilla::MediaFeatureChangeReason = 128;
- pub const MediaFeatureChangeReason_DisplayModeChange:
- root::mozilla::MediaFeatureChangeReason = 256;
- pub type MediaFeatureChangeReason = i32;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct MediaFeatureChange {
- pub mRestyleHint: root::nsRestyleHint,
- pub mChangeHint: root::nsChangeHint,
- pub mReason: root::mozilla::MediaFeatureChangeReason,
- }
- #[test]
- fn bindgen_test_layout_MediaFeatureChange() {
- assert_eq!(
- ::std::mem::size_of::<MediaFeatureChange>(),
- 12usize,
- concat!("Size of: ", stringify!(MediaFeatureChange))
- );
- assert_eq!(
- ::std::mem::align_of::<MediaFeatureChange>(),
- 4usize,
- concat!("Alignment of ", stringify!(MediaFeatureChange))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<MediaFeatureChange>())).mRestyleHint as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(MediaFeatureChange),
- "::",
- stringify!(mRestyleHint)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<MediaFeatureChange>())).mChangeHint as *const _ as usize
- },
- 4usize,
- concat!(
- "Offset of field: ",
- stringify!(MediaFeatureChange),
- "::",
- stringify!(mChangeHint)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<MediaFeatureChange>())).mReason as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(MediaFeatureChange),
- "::",
- stringify!(mReason)
- )
- );
- }
- impl Clone for MediaFeatureChange {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub mod external {
- #[allow(unused_imports)]
- use self::super::super::super::root;
- /// AtomicRefCounted<T> is like RefCounted<T>, with an atomically updated
- /// reference counter.
- ///
- /// NOTE: Please do not use this class, use NS_INLINE_DECL_THREADSAFE_REFCOUNTING
- /// instead.
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct AtomicRefCounted {
- pub _address: u8,
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct SupportsWeakPtr {
- pub _address: u8,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct WeakPtr {
- pub _address: u8,
- }
- pub type WeakPtr_WeakReference = u8;
- /// Event messages
- pub type EventMessageType = u16;
- pub const EventMessage_eVoidEvent: root::mozilla::EventMessage = 0;
- pub const EventMessage_eAllEvents: root::mozilla::EventMessage = 1;
- pub const EventMessage_eWindowClose: root::mozilla::EventMessage = 2;
- pub const EventMessage_eKeyPress: root::mozilla::EventMessage = 3;
- pub const EventMessage_eKeyUp: root::mozilla::EventMessage = 4;
- pub const EventMessage_eKeyDown: root::mozilla::EventMessage = 5;
- pub const EventMessage_eKeyDownOnPlugin: root::mozilla::EventMessage = 6;
- pub const EventMessage_eKeyUpOnPlugin: root::mozilla::EventMessage = 7;
- pub const EventMessage_eAccessKeyNotFound: root::mozilla::EventMessage = 8;
- pub const EventMessage_eResize: root::mozilla::EventMessage = 9;
- pub const EventMessage_eScroll: root::mozilla::EventMessage = 10;
- pub const EventMessage_eInstall: root::mozilla::EventMessage = 11;
- pub const EventMessage_eAppInstalled: root::mozilla::EventMessage = 12;
- pub const EventMessage_ePluginActivate: root::mozilla::EventMessage = 13;
- pub const EventMessage_ePluginFocus: root::mozilla::EventMessage = 14;
- pub const EventMessage_eOffline: root::mozilla::EventMessage = 15;
- pub const EventMessage_eOnline: root::mozilla::EventMessage = 16;
- pub const EventMessage_eLanguageChange: root::mozilla::EventMessage = 17;
- pub const EventMessage_eMouseMove: root::mozilla::EventMessage = 18;
- pub const EventMessage_eMouseUp: root::mozilla::EventMessage = 19;
- pub const EventMessage_eMouseDown: root::mozilla::EventMessage = 20;
- pub const EventMessage_eMouseEnterIntoWidget: root::mozilla::EventMessage = 21;
- pub const EventMessage_eMouseExitFromWidget: root::mozilla::EventMessage = 22;
- pub const EventMessage_eMouseDoubleClick: root::mozilla::EventMessage = 23;
- pub const EventMessage_eMouseClick: root::mozilla::EventMessage = 24;
- pub const EventMessage_eMouseAuxClick: root::mozilla::EventMessage = 25;
- pub const EventMessage_eMouseActivate: root::mozilla::EventMessage = 26;
- pub const EventMessage_eMouseOver: root::mozilla::EventMessage = 27;
- pub const EventMessage_eMouseOut: root::mozilla::EventMessage = 28;
- pub const EventMessage_eMouseHitTest: root::mozilla::EventMessage = 29;
- pub const EventMessage_eMouseEnter: root::mozilla::EventMessage = 30;
- pub const EventMessage_eMouseLeave: root::mozilla::EventMessage = 31;
- pub const EventMessage_eMouseTouchDrag: root::mozilla::EventMessage = 32;
- pub const EventMessage_eMouseLongTap: root::mozilla::EventMessage = 33;
- pub const EventMessage_eMouseEventFirst: root::mozilla::EventMessage = 18;
- pub const EventMessage_eMouseEventLast: root::mozilla::EventMessage = 33;
- pub const EventMessage_ePointerMove: root::mozilla::EventMessage = 34;
- pub const EventMessage_ePointerUp: root::mozilla::EventMessage = 35;
- pub const EventMessage_ePointerDown: root::mozilla::EventMessage = 36;
- pub const EventMessage_ePointerOver: root::mozilla::EventMessage = 37;
- pub const EventMessage_ePointerOut: root::mozilla::EventMessage = 38;
- pub const EventMessage_ePointerEnter: root::mozilla::EventMessage = 39;
- pub const EventMessage_ePointerLeave: root::mozilla::EventMessage = 40;
- pub const EventMessage_ePointerCancel: root::mozilla::EventMessage = 41;
- pub const EventMessage_ePointerGotCapture: root::mozilla::EventMessage = 42;
- pub const EventMessage_ePointerLostCapture: root::mozilla::EventMessage = 43;
- pub const EventMessage_ePointerEventFirst: root::mozilla::EventMessage = 34;
- pub const EventMessage_ePointerEventLast: root::mozilla::EventMessage = 43;
- pub const EventMessage_eContextMenu: root::mozilla::EventMessage = 44;
- pub const EventMessage_eLoad: root::mozilla::EventMessage = 45;
- pub const EventMessage_eUnload: root::mozilla::EventMessage = 46;
- pub const EventMessage_eHashChange: root::mozilla::EventMessage = 47;
- pub const EventMessage_eImageAbort: root::mozilla::EventMessage = 48;
- pub const EventMessage_eLoadError: root::mozilla::EventMessage = 49;
- pub const EventMessage_eLoadEnd: root::mozilla::EventMessage = 50;
- pub const EventMessage_ePopState: root::mozilla::EventMessage = 51;
- pub const EventMessage_eStorage: root::mozilla::EventMessage = 52;
- pub const EventMessage_eBeforeUnload: root::mozilla::EventMessage = 53;
- pub const EventMessage_eReadyStateChange: root::mozilla::EventMessage = 54;
- pub const EventMessage_eFormSubmit: root::mozilla::EventMessage = 55;
- pub const EventMessage_eFormReset: root::mozilla::EventMessage = 56;
- pub const EventMessage_eFormChange: root::mozilla::EventMessage = 57;
- pub const EventMessage_eFormSelect: root::mozilla::EventMessage = 58;
- pub const EventMessage_eFormInvalid: root::mozilla::EventMessage = 59;
- pub const EventMessage_eFormCheckboxStateChange: root::mozilla::EventMessage = 60;
- pub const EventMessage_eFormRadioStateChange: root::mozilla::EventMessage = 61;
- pub const EventMessage_eFocus: root::mozilla::EventMessage = 62;
- pub const EventMessage_eBlur: root::mozilla::EventMessage = 63;
- pub const EventMessage_eFocusIn: root::mozilla::EventMessage = 64;
- pub const EventMessage_eFocusOut: root::mozilla::EventMessage = 65;
- pub const EventMessage_eDragEnter: root::mozilla::EventMessage = 66;
- pub const EventMessage_eDragOver: root::mozilla::EventMessage = 67;
- pub const EventMessage_eDragExit: root::mozilla::EventMessage = 68;
- pub const EventMessage_eDrag: root::mozilla::EventMessage = 69;
- pub const EventMessage_eDragEnd: root::mozilla::EventMessage = 70;
- pub const EventMessage_eDragStart: root::mozilla::EventMessage = 71;
- pub const EventMessage_eDrop: root::mozilla::EventMessage = 72;
- pub const EventMessage_eDragLeave: root::mozilla::EventMessage = 73;
- pub const EventMessage_eDragDropEventFirst: root::mozilla::EventMessage = 66;
- pub const EventMessage_eDragDropEventLast: root::mozilla::EventMessage = 73;
- pub const EventMessage_eXULPopupShowing: root::mozilla::EventMessage = 74;
- pub const EventMessage_eXULPopupShown: root::mozilla::EventMessage = 75;
- pub const EventMessage_eXULPopupPositioned: root::mozilla::EventMessage = 76;
- pub const EventMessage_eXULPopupHiding: root::mozilla::EventMessage = 77;
- pub const EventMessage_eXULPopupHidden: root::mozilla::EventMessage = 78;
- pub const EventMessage_eXULBroadcast: root::mozilla::EventMessage = 79;
- pub const EventMessage_eXULCommandUpdate: root::mozilla::EventMessage = 80;
- pub const EventMessage_eLegacyMouseLineOrPageScroll: root::mozilla::EventMessage = 81;
- pub const EventMessage_eLegacyMousePixelScroll: root::mozilla::EventMessage = 82;
- pub const EventMessage_eScrollPortUnderflow: root::mozilla::EventMessage = 83;
- pub const EventMessage_eScrollPortOverflow: root::mozilla::EventMessage = 84;
- pub const EventMessage_eLegacySubtreeModified: root::mozilla::EventMessage = 85;
- pub const EventMessage_eLegacyNodeInserted: root::mozilla::EventMessage = 86;
- pub const EventMessage_eLegacyNodeRemoved: root::mozilla::EventMessage = 87;
- pub const EventMessage_eLegacyNodeRemovedFromDocument: root::mozilla::EventMessage = 88;
- pub const EventMessage_eLegacyNodeInsertedIntoDocument: root::mozilla::EventMessage = 89;
- pub const EventMessage_eLegacyAttrModified: root::mozilla::EventMessage = 90;
- pub const EventMessage_eLegacyCharacterDataModified: root::mozilla::EventMessage = 91;
- pub const EventMessage_eLegacyMutationEventFirst: root::mozilla::EventMessage = 85;
- pub const EventMessage_eLegacyMutationEventLast: root::mozilla::EventMessage = 91;
- pub const EventMessage_eUnidentifiedEvent: root::mozilla::EventMessage = 92;
- pub const EventMessage_eCompositionStart: root::mozilla::EventMessage = 93;
- pub const EventMessage_eCompositionEnd: root::mozilla::EventMessage = 94;
- pub const EventMessage_eCompositionUpdate: root::mozilla::EventMessage = 95;
- pub const EventMessage_eCompositionChange: root::mozilla::EventMessage = 96;
- pub const EventMessage_eCompositionCommitAsIs: root::mozilla::EventMessage = 97;
- pub const EventMessage_eCompositionCommit: root::mozilla::EventMessage = 98;
- pub const EventMessage_eCompositionCommitRequestHandled: root::mozilla::EventMessage = 99;
- pub const EventMessage_eLegacyDOMActivate: root::mozilla::EventMessage = 100;
- pub const EventMessage_eLegacyDOMFocusIn: root::mozilla::EventMessage = 101;
- pub const EventMessage_eLegacyDOMFocusOut: root::mozilla::EventMessage = 102;
- pub const EventMessage_ePageShow: root::mozilla::EventMessage = 103;
- pub const EventMessage_ePageHide: root::mozilla::EventMessage = 104;
- pub const EventMessage_eSVGLoad: root::mozilla::EventMessage = 105;
- pub const EventMessage_eSVGUnload: root::mozilla::EventMessage = 106;
- pub const EventMessage_eSVGResize: root::mozilla::EventMessage = 107;
- pub const EventMessage_eSVGScroll: root::mozilla::EventMessage = 108;
- pub const EventMessage_eSVGZoom: root::mozilla::EventMessage = 109;
- pub const EventMessage_eXULCommand: root::mozilla::EventMessage = 110;
- pub const EventMessage_eCopy: root::mozilla::EventMessage = 111;
- pub const EventMessage_eCut: root::mozilla::EventMessage = 112;
- pub const EventMessage_ePaste: root::mozilla::EventMessage = 113;
- pub const EventMessage_ePasteNoFormatting: root::mozilla::EventMessage = 114;
- pub const EventMessage_eQuerySelectedText: root::mozilla::EventMessage = 115;
- pub const EventMessage_eQueryTextContent: root::mozilla::EventMessage = 116;
- pub const EventMessage_eQueryCaretRect: root::mozilla::EventMessage = 117;
- pub const EventMessage_eQueryTextRect: root::mozilla::EventMessage = 118;
- pub const EventMessage_eQueryTextRectArray: root::mozilla::EventMessage = 119;
- pub const EventMessage_eQueryEditorRect: root::mozilla::EventMessage = 120;
- pub const EventMessage_eQueryContentState: root::mozilla::EventMessage = 121;
- pub const EventMessage_eQuerySelectionAsTransferable: root::mozilla::EventMessage = 122;
- pub const EventMessage_eQueryCharacterAtPoint: root::mozilla::EventMessage = 123;
- pub const EventMessage_eQueryDOMWidgetHittest: root::mozilla::EventMessage = 124;
- pub const EventMessage_eLoadStart: root::mozilla::EventMessage = 125;
- pub const EventMessage_eProgress: root::mozilla::EventMessage = 126;
- pub const EventMessage_eSuspend: root::mozilla::EventMessage = 127;
- pub const EventMessage_eEmptied: root::mozilla::EventMessage = 128;
- pub const EventMessage_eStalled: root::mozilla::EventMessage = 129;
- pub const EventMessage_ePlay: root::mozilla::EventMessage = 130;
- pub const EventMessage_ePause: root::mozilla::EventMessage = 131;
- pub const EventMessage_eLoadedMetaData: root::mozilla::EventMessage = 132;
- pub const EventMessage_eLoadedData: root::mozilla::EventMessage = 133;
- pub const EventMessage_eWaiting: root::mozilla::EventMessage = 134;
- pub const EventMessage_ePlaying: root::mozilla::EventMessage = 135;
- pub const EventMessage_eCanPlay: root::mozilla::EventMessage = 136;
- pub const EventMessage_eCanPlayThrough: root::mozilla::EventMessage = 137;
- pub const EventMessage_eSeeking: root::mozilla::EventMessage = 138;
- pub const EventMessage_eSeeked: root::mozilla::EventMessage = 139;
- pub const EventMessage_eTimeUpdate: root::mozilla::EventMessage = 140;
- pub const EventMessage_eEnded: root::mozilla::EventMessage = 141;
- pub const EventMessage_eRateChange: root::mozilla::EventMessage = 142;
- pub const EventMessage_eDurationChange: root::mozilla::EventMessage = 143;
- pub const EventMessage_eVolumeChange: root::mozilla::EventMessage = 144;
- pub const EventMessage_eAfterPaint: root::mozilla::EventMessage = 145;
- pub const EventMessage_eSwipeGestureMayStart: root::mozilla::EventMessage = 146;
- pub const EventMessage_eSwipeGestureStart: root::mozilla::EventMessage = 147;
- pub const EventMessage_eSwipeGestureUpdate: root::mozilla::EventMessage = 148;
- pub const EventMessage_eSwipeGestureEnd: root::mozilla::EventMessage = 149;
- pub const EventMessage_eSwipeGesture: root::mozilla::EventMessage = 150;
- pub const EventMessage_eMagnifyGestureStart: root::mozilla::EventMessage = 151;
- pub const EventMessage_eMagnifyGestureUpdate: root::mozilla::EventMessage = 152;
- pub const EventMessage_eMagnifyGesture: root::mozilla::EventMessage = 153;
- pub const EventMessage_eRotateGestureStart: root::mozilla::EventMessage = 154;
- pub const EventMessage_eRotateGestureUpdate: root::mozilla::EventMessage = 155;
- pub const EventMessage_eRotateGesture: root::mozilla::EventMessage = 156;
- pub const EventMessage_eTapGesture: root::mozilla::EventMessage = 157;
- pub const EventMessage_ePressTapGesture: root::mozilla::EventMessage = 158;
- pub const EventMessage_eEdgeUIStarted: root::mozilla::EventMessage = 159;
- pub const EventMessage_eEdgeUICanceled: root::mozilla::EventMessage = 160;
- pub const EventMessage_eEdgeUICompleted: root::mozilla::EventMessage = 161;
- pub const EventMessage_ePluginInputEvent: root::mozilla::EventMessage = 162;
- pub const EventMessage_eSetSelection: root::mozilla::EventMessage = 163;
- pub const EventMessage_eContentCommandCut: root::mozilla::EventMessage = 164;
- pub const EventMessage_eContentCommandCopy: root::mozilla::EventMessage = 165;
- pub const EventMessage_eContentCommandPaste: root::mozilla::EventMessage = 166;
- pub const EventMessage_eContentCommandDelete: root::mozilla::EventMessage = 167;
- pub const EventMessage_eContentCommandUndo: root::mozilla::EventMessage = 168;
- pub const EventMessage_eContentCommandRedo: root::mozilla::EventMessage = 169;
- pub const EventMessage_eContentCommandPasteTransferable: root::mozilla::EventMessage = 170;
- pub const EventMessage_eContentCommandLookUpDictionary: root::mozilla::EventMessage = 171;
- pub const EventMessage_eContentCommandScroll: root::mozilla::EventMessage = 172;
- pub const EventMessage_eGestureNotify: root::mozilla::EventMessage = 173;
- pub const EventMessage_eScrolledAreaChanged: root::mozilla::EventMessage = 174;
- pub const EventMessage_eTransitionStart: root::mozilla::EventMessage = 175;
- pub const EventMessage_eTransitionRun: root::mozilla::EventMessage = 176;
- pub const EventMessage_eTransitionEnd: root::mozilla::EventMessage = 177;
- pub const EventMessage_eTransitionCancel: root::mozilla::EventMessage = 178;
- pub const EventMessage_eAnimationStart: root::mozilla::EventMessage = 179;
- pub const EventMessage_eAnimationEnd: root::mozilla::EventMessage = 180;
- pub const EventMessage_eAnimationIteration: root::mozilla::EventMessage = 181;
- pub const EventMessage_eAnimationCancel: root::mozilla::EventMessage = 182;
- pub const EventMessage_eWebkitTransitionEnd: root::mozilla::EventMessage = 183;
- pub const EventMessage_eWebkitAnimationStart: root::mozilla::EventMessage = 184;
- pub const EventMessage_eWebkitAnimationEnd: root::mozilla::EventMessage = 185;
- pub const EventMessage_eWebkitAnimationIteration: root::mozilla::EventMessage = 186;
- pub const EventMessage_eSMILBeginEvent: root::mozilla::EventMessage = 187;
- pub const EventMessage_eSMILEndEvent: root::mozilla::EventMessage = 188;
- pub const EventMessage_eSMILRepeatEvent: root::mozilla::EventMessage = 189;
- pub const EventMessage_eAudioProcess: root::mozilla::EventMessage = 190;
- pub const EventMessage_eAudioComplete: root::mozilla::EventMessage = 191;
- pub const EventMessage_eBeforeScriptExecute: root::mozilla::EventMessage = 192;
- pub const EventMessage_eAfterScriptExecute: root::mozilla::EventMessage = 193;
- pub const EventMessage_eBeforePrint: root::mozilla::EventMessage = 194;
- pub const EventMessage_eAfterPrint: root::mozilla::EventMessage = 195;
- pub const EventMessage_eMessage: root::mozilla::EventMessage = 196;
- pub const EventMessage_eMessageError: root::mozilla::EventMessage = 197;
- pub const EventMessage_eOpen: root::mozilla::EventMessage = 198;
- pub const EventMessage_eDeviceOrientation: root::mozilla::EventMessage = 199;
- pub const EventMessage_eAbsoluteDeviceOrientation: root::mozilla::EventMessage = 200;
- pub const EventMessage_eDeviceMotion: root::mozilla::EventMessage = 201;
- pub const EventMessage_eDeviceProximity: root::mozilla::EventMessage = 202;
- pub const EventMessage_eUserProximity: root::mozilla::EventMessage = 203;
- pub const EventMessage_eDeviceLight: root::mozilla::EventMessage = 204;
- pub const EventMessage_eVRDisplayActivate: root::mozilla::EventMessage = 205;
- pub const EventMessage_eVRDisplayDeactivate: root::mozilla::EventMessage = 206;
- pub const EventMessage_eVRDisplayConnect: root::mozilla::EventMessage = 207;
- pub const EventMessage_eVRDisplayDisconnect: root::mozilla::EventMessage = 208;
- pub const EventMessage_eVRDisplayPresentChange: root::mozilla::EventMessage = 209;
- pub const EventMessage_eShow: root::mozilla::EventMessage = 210;
- pub const EventMessage_eFullscreenChange: root::mozilla::EventMessage = 211;
- pub const EventMessage_eFullscreenError: root::mozilla::EventMessage = 212;
- pub const EventMessage_eMozFullscreenChange: root::mozilla::EventMessage = 213;
- pub const EventMessage_eMozFullscreenError: root::mozilla::EventMessage = 214;
- pub const EventMessage_eTouchStart: root::mozilla::EventMessage = 215;
- pub const EventMessage_eTouchMove: root::mozilla::EventMessage = 216;
- pub const EventMessage_eTouchEnd: root::mozilla::EventMessage = 217;
- pub const EventMessage_eTouchCancel: root::mozilla::EventMessage = 218;
- pub const EventMessage_eTouchPointerCancel: root::mozilla::EventMessage = 219;
- pub const EventMessage_ePointerLockChange: root::mozilla::EventMessage = 220;
- pub const EventMessage_ePointerLockError: root::mozilla::EventMessage = 221;
- pub const EventMessage_eMozPointerLockChange: root::mozilla::EventMessage = 222;
- pub const EventMessage_eMozPointerLockError: root::mozilla::EventMessage = 223;
- pub const EventMessage_eWheel: root::mozilla::EventMessage = 224;
- pub const EventMessage_eWheelOperationStart: root::mozilla::EventMessage = 225;
- pub const EventMessage_eWheelOperationEnd: root::mozilla::EventMessage = 226;
- pub const EventMessage_eTimeChange: root::mozilla::EventMessage = 227;
- pub const EventMessage_eNetworkUpload: root::mozilla::EventMessage = 228;
- pub const EventMessage_eNetworkDownload: root::mozilla::EventMessage = 229;
- pub const EventMessage_eMediaRecorderDataAvailable: root::mozilla::EventMessage = 230;
- pub const EventMessage_eMediaRecorderWarning: root::mozilla::EventMessage = 231;
- pub const EventMessage_eMediaRecorderStop: root::mozilla::EventMessage = 232;
- pub const EventMessage_eGamepadButtonDown: root::mozilla::EventMessage = 233;
- pub const EventMessage_eGamepadButtonUp: root::mozilla::EventMessage = 234;
- pub const EventMessage_eGamepadAxisMove: root::mozilla::EventMessage = 235;
- pub const EventMessage_eGamepadConnected: root::mozilla::EventMessage = 236;
- pub const EventMessage_eGamepadDisconnected: root::mozilla::EventMessage = 237;
- pub const EventMessage_eGamepadEventFirst: root::mozilla::EventMessage = 233;
- pub const EventMessage_eGamepadEventLast: root::mozilla::EventMessage = 237;
- pub const EventMessage_eEditorInput: root::mozilla::EventMessage = 238;
- pub const EventMessage_eSelectStart: root::mozilla::EventMessage = 239;
- pub const EventMessage_eSelectionChange: root::mozilla::EventMessage = 240;
- pub const EventMessage_eVisibilityChange: root::mozilla::EventMessage = 241;
- pub const EventMessage_eToggle: root::mozilla::EventMessage = 242;
- pub const EventMessage_eClose: root::mozilla::EventMessage = 243;
- pub const EventMessage_eEventMessage_MaxValue: root::mozilla::EventMessage = 244;
- pub type EventMessage = u16;
- /// Event class IDs
- pub type EventClassIDType = u8;
- pub const EventClassID_eBasicEventClass: root::mozilla::EventClassID = 0;
- pub const EventClassID_eGUIEventClass: root::mozilla::EventClassID = 1;
- pub const EventClassID_eInputEventClass: root::mozilla::EventClassID = 2;
- pub const EventClassID_eUIEventClass: root::mozilla::EventClassID = 3;
- pub const EventClassID_eKeyboardEventClass: root::mozilla::EventClassID = 4;
- pub const EventClassID_eCompositionEventClass: root::mozilla::EventClassID = 5;
- pub const EventClassID_eQueryContentEventClass: root::mozilla::EventClassID = 6;
- pub const EventClassID_eSelectionEventClass: root::mozilla::EventClassID = 7;
- pub const EventClassID_eEditorInputEventClass: root::mozilla::EventClassID = 8;
- pub const EventClassID_eMouseEventBaseClass: root::mozilla::EventClassID = 9;
- pub const EventClassID_eMouseEventClass: root::mozilla::EventClassID = 10;
- pub const EventClassID_eDragEventClass: root::mozilla::EventClassID = 11;
- pub const EventClassID_eMouseScrollEventClass: root::mozilla::EventClassID = 12;
- pub const EventClassID_eWheelEventClass: root::mozilla::EventClassID = 13;
- pub const EventClassID_ePointerEventClass: root::mozilla::EventClassID = 14;
- pub const EventClassID_eGestureNotifyEventClass: root::mozilla::EventClassID = 15;
- pub const EventClassID_eSimpleGestureEventClass: root::mozilla::EventClassID = 16;
- pub const EventClassID_eTouchEventClass: root::mozilla::EventClassID = 17;
- pub const EventClassID_eScrollPortEventClass: root::mozilla::EventClassID = 18;
- pub const EventClassID_eScrollAreaEventClass: root::mozilla::EventClassID = 19;
- pub const EventClassID_eFormEventClass: root::mozilla::EventClassID = 20;
- pub const EventClassID_eClipboardEventClass: root::mozilla::EventClassID = 21;
- pub const EventClassID_eFocusEventClass: root::mozilla::EventClassID = 22;
- pub const EventClassID_eTransitionEventClass: root::mozilla::EventClassID = 23;
- pub const EventClassID_eAnimationEventClass: root::mozilla::EventClassID = 24;
- pub const EventClassID_eSMILTimeEventClass: root::mozilla::EventClassID = 25;
- pub const EventClassID_eCommandEventClass: root::mozilla::EventClassID = 26;
- pub const EventClassID_eContentCommandEventClass: root::mozilla::EventClassID = 27;
- pub const EventClassID_ePluginEventClass: root::mozilla::EventClassID = 28;
- pub const EventClassID_eMutationEventClass: root::mozilla::EventClassID = 29;
- pub type EventClassID = u8;
- pub type AtomArray = root::nsTArray<root::RefPtr<root::nsAtom>>;
- /// EventStates is the class used to represent the event states of nsIContent
- /// instances. These states are calculated by IntrinsicState() and
- /// ContentStatesChanged() has to be called when one of them changes thus
- /// informing the layout/style engine of the change.
- /// Event states are associated with pseudo-classes.
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct EventStates {
- pub mStates: root::mozilla::EventStates_InternalType,
- }
- pub type EventStates_InternalType = u64;
- pub type EventStates_ServoType = u64;
- #[test]
- fn bindgen_test_layout_EventStates() {
- assert_eq!(
- ::std::mem::size_of::<EventStates>(),
- 8usize,
- concat!("Size of: ", stringify!(EventStates))
- );
- assert_eq!(
- ::std::mem::align_of::<EventStates>(),
- 8usize,
- concat!("Alignment of ", stringify!(EventStates))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<EventStates>())).mStates as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(EventStates),
- "::",
- stringify!(mStates)
- )
- );
- }
- impl Clone for EventStates {
- fn clone(&self) -> Self {
- *self
- }
- }
+ /// The default of not using CORS to validate cross-origin loads.
+ pub const CORSMode_CORS_NONE: root::mozilla::CORSMode = 0;
+ /// Validate cross-site loads using CORS, but do not send any credentials
+ /// (cookies, HTTP auth logins, etc) along with the request.
+ pub const CORSMode_CORS_ANONYMOUS: root::mozilla::CORSMode = 1;
+ /// Validate cross-site loads using CORS, and send credentials such as cookies
+ /// and HTTP auth logins along with the request.
+ pub const CORSMode_CORS_USE_CREDENTIALS: root::mozilla::CORSMode = 2;
+ pub type CORSMode = u8;
pub const ServoTraversalFlags_Empty: root::mozilla::ServoTraversalFlags = 0;
pub const ServoTraversalFlags_AnimationOnly: root::mozilla::ServoTraversalFlags = 1;
pub const ServoTraversalFlags_ForCSSRuleChanges: root::mozilla::ServoTraversalFlags = 2;
@@ -5370,70 +4860,688 @@ pub mod root {
*self
}
}
- pub const StyleBackendType_None: root::mozilla::StyleBackendType = 0;
- pub const StyleBackendType_Gecko: root::mozilla::StyleBackendType = 1;
- pub const StyleBackendType_Servo: root::mozilla::StyleBackendType = 2;
- /// Enumeration that represents one of the two supported style system backends.
- pub type StyleBackendType = u8;
- pub mod css {
- #[allow(unused_imports)]
- use self::super::super::super::root;
- #[repr(u8)]
- /// Enum defining the mode in which a sheet is to be parsed. This is
- /// usually, but not always, the same as the cascade level at which the
- /// sheet will apply (see nsStyleSet.h). Most of the Loader APIs only
- /// support loading of author sheets.
- ///
- /// Author sheets are the normal case: styles embedded in or linked
- /// from HTML pages. They are also the most restricted.
- ///
- /// User sheets can do anything author sheets can do, and also get
- /// access to a few CSS extensions that are not yet suitable for
- /// exposure on the public Web, but are very useful for expressing
- /// user style overrides, such as @-moz-document rules.
- ///
- /// XXX: eUserSheetFeatures was added in bug 1035091, but some patches in
- /// that bug never landed to use this enum value. Currently, all the features
- /// in user sheet are also available in author sheet.
+ pub type TimeStampValue = u64;
+ /// Instances of this class represent the length of an interval of time.
+ /// Negative durations are allowed, meaning the end is before the start.
+ ///
+ /// Internally the duration is stored as a int64_t in units of
+ /// PR_TicksPerSecond() when building with NSPR interval timers, or a
+ /// system-dependent unit when building with system clocks. The
+ /// system-dependent unit must be constant, otherwise the semantics of
+ /// this class would be broken.
+ ///
+ /// The ValueCalculator template parameter determines how arithmetic
+ /// operations are performed on the integer count of ticks (mValue).
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct BaseTimeDuration {
+ pub mValue: i64,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct BaseTimeDuration__SomethingVeryRandomHere {
+ _unused: [u8; 0],
+ }
+ /// Perform arithmetic operations on the value of a BaseTimeDuration without
+ /// doing strict checks on the range of values.
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct TimeDurationValueCalculator {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_TimeDurationValueCalculator() {
+ assert_eq!(
+ ::std::mem::size_of::<TimeDurationValueCalculator>(),
+ 1usize,
+ concat!("Size of: ", stringify!(TimeDurationValueCalculator))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<TimeDurationValueCalculator>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(TimeDurationValueCalculator))
+ );
+ }
+ impl Clone for TimeDurationValueCalculator {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// Specialization of BaseTimeDuration that uses TimeDurationValueCalculator for
+ /// arithmetic on the mValue member.
+ ///
+ /// Use this class for time durations that are *not* expected to hold values of
+ /// Forever (or the negative equivalent) or when such time duration are *not*
+ /// expected to be used in arithmetic operations.
+ pub type TimeDuration = root::mozilla::BaseTimeDuration;
+ /// 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.
///
- /// Agent sheets have access to all author- and user-sheet features
- /// plus more extensions that are necessary for internal use but,
- /// again, not yet suitable for exposure on the public Web. Some of
- /// these are outright unsafe to expose; in particular, incorrect
- /// styling of anonymous box pseudo-elements can violate layout
- /// invariants.
+ /// 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.
///
- /// Agent sheets that do not use any unsafe rules could use
- /// eSafeAgentSheetFeatures when creating the sheet. This enum value allows
- /// Servo backend to recognize the sheets as the agent level, but Gecko
- /// backend will parse it under _author_ level.
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum SheetParsingMode {
- eAuthorSheetFeatures = 0,
- eUserSheetFeatures = 1,
- eAgentSheetFeatures = 2,
- eSafeAgentSheetFeatures = 3,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct GroupRule {
- _unused: [u8; 0],
+ /// When using a system clock, a value is system dependent.
+ pub mValue: root::mozilla::TimeStampValue,
+ }
+ #[test]
+ fn bindgen_test_layout_TimeStamp() {
+ assert_eq!(
+ ::std::mem::size_of::<TimeStamp>(),
+ 8usize,
+ concat!("Size of: ", stringify!(TimeStamp))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<TimeStamp>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(TimeStamp))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<TimeStamp>())).mValue as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(TimeStamp),
+ "::",
+ stringify!(mValue)
+ )
+ );
+ }
+ impl Clone for TimeStamp {
+ fn clone(&self) -> Self {
+ *self
}
- impl Clone for GroupRule {
- fn clone(&self) -> Self {
- *self
- }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct MallocAllocPolicy {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_MallocAllocPolicy() {
+ assert_eq!(
+ ::std::mem::size_of::<MallocAllocPolicy>(),
+ 1usize,
+ concat!("Size of: ", stringify!(MallocAllocPolicy))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<MallocAllocPolicy>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(MallocAllocPolicy))
+ );
+ }
+ impl Clone for MallocAllocPolicy {
+ fn clone(&self) -> Self {
+ *self
}
+ }
+ pub type Vector_Impl = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct Vector_CapacityAndReserved {
+ pub mCapacity: usize,
+ }
+ pub type Vector_ElementType<T> = T;
+ pub const Vector_InlineLength: root::mozilla::Vector__bindgen_ty_1 = 0;
+ pub type Vector__bindgen_ty_1 = i32;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct Vector_Range<T> {
+ pub mCur: *mut T,
+ pub mEnd: *mut T,
+ pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct Vector_ConstRange<T> {
+ pub mCur: *mut T,
+ pub mEnd: *mut T,
+ pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
+ }
+ pub mod binding_danger {
+ #[allow(unused_imports)]
+ use self::super::super::super::root;
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct ImageLoader {
- _unused: [u8; 0],
+ pub struct AssertAndSuppressCleanupPolicy {
+ pub _address: u8,
}
- impl Clone for ImageLoader {
+ pub const AssertAndSuppressCleanupPolicy_assertHandled: bool = true;
+ pub const AssertAndSuppressCleanupPolicy_suppress: bool = true;
+ #[test]
+ fn bindgen_test_layout_AssertAndSuppressCleanupPolicy() {
+ assert_eq!(
+ ::std::mem::size_of::<AssertAndSuppressCleanupPolicy>(),
+ 1usize,
+ concat!("Size of: ", stringify!(AssertAndSuppressCleanupPolicy))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<AssertAndSuppressCleanupPolicy>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(AssertAndSuppressCleanupPolicy))
+ );
+ }
+ impl Clone for AssertAndSuppressCleanupPolicy {
fn clone(&self) -> Self {
*self
}
}
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct URLExtraData {
+ pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
+ pub mBaseURI: root::nsCOMPtr,
+ pub mReferrer: root::nsCOMPtr,
+ pub mPrincipal: root::nsCOMPtr,
+ pub mIsChrome: bool,
+ }
+ pub type URLExtraData_HasThreadSafeRefCnt = root::mozilla::TrueType;
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla12URLExtraData6sDummyE"]
+ pub static mut URLExtraData_sDummy:
+ root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>;
+ }
+ #[test]
+ fn bindgen_test_layout_URLExtraData() {
+ assert_eq!(
+ ::std::mem::size_of::<URLExtraData>(),
+ 40usize,
+ concat!("Size of: ", stringify!(URLExtraData))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<URLExtraData>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(URLExtraData))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<URLExtraData>())).mRefCnt as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLExtraData),
+ "::",
+ stringify!(mRefCnt)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<URLExtraData>())).mBaseURI as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLExtraData),
+ "::",
+ stringify!(mBaseURI)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<URLExtraData>())).mReferrer as *const _ as usize },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLExtraData),
+ "::",
+ stringify!(mReferrer)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<URLExtraData>())).mPrincipal as *const _ as usize },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLExtraData),
+ "::",
+ stringify!(mPrincipal)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<URLExtraData>())).mIsChrome as *const _ as usize },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(URLExtraData),
+ "::",
+ stringify!(mIsChrome)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_StaticRefPtr_open0_URLExtraData_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>>(),
+ 8usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>>(),
+ 8usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>)
+ )
+ );
+ }
+ pub const CSSEnabledState_eForAllContent: root::mozilla::CSSEnabledState = 0;
+ pub const CSSEnabledState_eInUASheets: root::mozilla::CSSEnabledState = 1;
+ pub const CSSEnabledState_eInChrome: root::mozilla::CSSEnabledState = 2;
+ pub const CSSEnabledState_eIgnoreEnabledState: root::mozilla::CSSEnabledState = 255;
+ pub type CSSEnabledState = i32;
+ pub const UseCounter_eUseCounter_UNKNOWN: root::mozilla::UseCounter = -1;
+ pub const UseCounter_eUseCounter_SVGSVGElement_getElementById: root::mozilla::UseCounter =
+ 0;
+ pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_getter:
+ root::mozilla::UseCounter = 1;
+ pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_setter:
+ root::mozilla::UseCounter = 2;
+ pub const UseCounter_eUseCounter_property_Fill: root::mozilla::UseCounter = 3;
+ pub const UseCounter_eUseCounter_property_FillOpacity: root::mozilla::UseCounter = 4;
+ pub const UseCounter_eUseCounter_XMLDocument_async_getter: root::mozilla::UseCounter = 5;
+ pub const UseCounter_eUseCounter_XMLDocument_async_setter: root::mozilla::UseCounter = 6;
+ pub const UseCounter_eUseCounter_DOMError_name_getter: root::mozilla::UseCounter = 7;
+ pub const UseCounter_eUseCounter_DOMError_name_setter: root::mozilla::UseCounter = 8;
+ pub const UseCounter_eUseCounter_DOMError_message_getter: root::mozilla::UseCounter = 9;
+ pub const UseCounter_eUseCounter_DOMError_message_setter: root::mozilla::UseCounter = 10;
+ pub const UseCounter_eUseCounter_custom_DOMErrorConstructor: root::mozilla::UseCounter = 11;
+ pub const UseCounter_eUseCounter_PushManager_subscribe: root::mozilla::UseCounter = 12;
+ pub const UseCounter_eUseCounter_PushSubscription_unsubscribe: root::mozilla::UseCounter =
+ 13;
+ pub const UseCounter_eUseCounter_Window_sidebar_getter: root::mozilla::UseCounter = 14;
+ pub const UseCounter_eUseCounter_Window_sidebar_setter: root::mozilla::UseCounter = 15;
+ pub const UseCounter_eUseCounter_OfflineResourceList_swapCache: root::mozilla::UseCounter =
+ 16;
+ pub const UseCounter_eUseCounter_OfflineResourceList_update: root::mozilla::UseCounter = 17;
+ pub const UseCounter_eUseCounter_OfflineResourceList_status_getter:
+ root::mozilla::UseCounter = 18;
+ pub const UseCounter_eUseCounter_OfflineResourceList_status_setter:
+ root::mozilla::UseCounter = 19;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_getter:
+ root::mozilla::UseCounter = 20;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_setter:
+ root::mozilla::UseCounter = 21;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onerror_getter:
+ root::mozilla::UseCounter = 22;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onerror_setter:
+ root::mozilla::UseCounter = 23;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_getter:
+ root::mozilla::UseCounter = 24;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_setter:
+ root::mozilla::UseCounter = 25;
+ pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_getter:
+ root::mozilla::UseCounter = 26;
+ pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_setter:
+ root::mozilla::UseCounter = 27;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_getter:
+ root::mozilla::UseCounter = 28;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_setter:
+ root::mozilla::UseCounter = 29;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_getter:
+ root::mozilla::UseCounter = 30;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_setter:
+ root::mozilla::UseCounter = 31;
+ pub const UseCounter_eUseCounter_OfflineResourceList_oncached_getter:
+ root::mozilla::UseCounter = 32;
+ pub const UseCounter_eUseCounter_OfflineResourceList_oncached_setter:
+ root::mozilla::UseCounter = 33;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_getter:
+ root::mozilla::UseCounter = 34;
+ pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_setter:
+ root::mozilla::UseCounter = 35;
+ pub const UseCounter_eUseCounter_IDBDatabase_createMutableFile: root::mozilla::UseCounter =
+ 36;
+ pub const UseCounter_eUseCounter_IDBDatabase_mozCreateFileHandle:
+ root::mozilla::UseCounter = 37;
+ pub const UseCounter_eUseCounter_IDBMutableFile_open: root::mozilla::UseCounter = 38;
+ pub const UseCounter_eUseCounter_IDBMutableFile_getFile: root::mozilla::UseCounter = 39;
+ pub const UseCounter_eUseCounter_DataTransfer_addElement: root::mozilla::UseCounter = 40;
+ pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_getter:
+ root::mozilla::UseCounter = 41;
+ pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_setter:
+ root::mozilla::UseCounter = 42;
+ pub const UseCounter_eUseCounter_DataTransfer_mozCursor_getter: root::mozilla::UseCounter =
+ 43;
+ pub const UseCounter_eUseCounter_DataTransfer_mozCursor_setter: root::mozilla::UseCounter =
+ 44;
+ pub const UseCounter_eUseCounter_DataTransfer_mozTypesAt: root::mozilla::UseCounter = 45;
+ pub const UseCounter_eUseCounter_DataTransfer_mozClearDataAt: root::mozilla::UseCounter =
+ 46;
+ pub const UseCounter_eUseCounter_DataTransfer_mozSetDataAt: root::mozilla::UseCounter = 47;
+ pub const UseCounter_eUseCounter_DataTransfer_mozGetDataAt: root::mozilla::UseCounter = 48;
+ pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_getter:
+ root::mozilla::UseCounter = 49;
+ pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_setter:
+ root::mozilla::UseCounter = 50;
+ pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_getter:
+ root::mozilla::UseCounter = 51;
+ pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_setter:
+ root::mozilla::UseCounter = 52;
+ pub const UseCounter_eUseCounter_custom_JS_asmjs: root::mozilla::UseCounter = 53;
+ pub const UseCounter_eUseCounter_custom_JS_wasm: root::mozilla::UseCounter = 54;
+ pub const UseCounter_eUseCounter_console_assert: root::mozilla::UseCounter = 55;
+ pub const UseCounter_eUseCounter_console_clear: root::mozilla::UseCounter = 56;
+ pub const UseCounter_eUseCounter_console_count: root::mozilla::UseCounter = 57;
+ pub const UseCounter_eUseCounter_console_debug: root::mozilla::UseCounter = 58;
+ pub const UseCounter_eUseCounter_console_error: root::mozilla::UseCounter = 59;
+ pub const UseCounter_eUseCounter_console_info: root::mozilla::UseCounter = 60;
+ pub const UseCounter_eUseCounter_console_log: root::mozilla::UseCounter = 61;
+ pub const UseCounter_eUseCounter_console_table: root::mozilla::UseCounter = 62;
+ pub const UseCounter_eUseCounter_console_trace: root::mozilla::UseCounter = 63;
+ pub const UseCounter_eUseCounter_console_warn: root::mozilla::UseCounter = 64;
+ pub const UseCounter_eUseCounter_console_dir: root::mozilla::UseCounter = 65;
+ pub const UseCounter_eUseCounter_console_dirxml: root::mozilla::UseCounter = 66;
+ pub const UseCounter_eUseCounter_console_group: root::mozilla::UseCounter = 67;
+ pub const UseCounter_eUseCounter_console_groupCollapsed: root::mozilla::UseCounter = 68;
+ pub const UseCounter_eUseCounter_console_groupEnd: root::mozilla::UseCounter = 69;
+ pub const UseCounter_eUseCounter_console_time: root::mozilla::UseCounter = 70;
+ pub const UseCounter_eUseCounter_console_timeEnd: root::mozilla::UseCounter = 71;
+ pub const UseCounter_eUseCounter_console_exception: root::mozilla::UseCounter = 72;
+ pub const UseCounter_eUseCounter_console_timeStamp: root::mozilla::UseCounter = 73;
+ pub const UseCounter_eUseCounter_console_profile: root::mozilla::UseCounter = 74;
+ pub const UseCounter_eUseCounter_console_profileEnd: root::mozilla::UseCounter = 75;
+ pub const UseCounter_eUseCounter_EnablePrivilege: root::mozilla::UseCounter = 76;
+ pub const UseCounter_eUseCounter_DOMExceptionCode: root::mozilla::UseCounter = 77;
+ pub const UseCounter_eUseCounter_MutationEvent: root::mozilla::UseCounter = 78;
+ pub const UseCounter_eUseCounter_Components: root::mozilla::UseCounter = 79;
+ pub const UseCounter_eUseCounter_PrefixedVisibilityAPI: root::mozilla::UseCounter = 80;
+ pub const UseCounter_eUseCounter_NodeIteratorDetach: root::mozilla::UseCounter = 81;
+ pub const UseCounter_eUseCounter_LenientThis: root::mozilla::UseCounter = 82;
+ pub const UseCounter_eUseCounter_MozGetAsFile: root::mozilla::UseCounter = 83;
+ pub const UseCounter_eUseCounter_UseOfCaptureEvents: root::mozilla::UseCounter = 84;
+ pub const UseCounter_eUseCounter_UseOfReleaseEvents: root::mozilla::UseCounter = 85;
+ pub const UseCounter_eUseCounter_UseOfDOM3LoadMethod: root::mozilla::UseCounter = 86;
+ pub const UseCounter_eUseCounter_ChromeUseOfDOM3LoadMethod: root::mozilla::UseCounter = 87;
+ pub const UseCounter_eUseCounter_ShowModalDialog: root::mozilla::UseCounter = 88;
+ pub const UseCounter_eUseCounter_SyncXMLHttpRequest: root::mozilla::UseCounter = 89;
+ pub const UseCounter_eUseCounter_Window_Cc_ontrollers: root::mozilla::UseCounter = 90;
+ pub const UseCounter_eUseCounter_ImportXULIntoContent: root::mozilla::UseCounter = 91;
+ pub const UseCounter_eUseCounter_PannerNodeDoppler: root::mozilla::UseCounter = 92;
+ pub const UseCounter_eUseCounter_NavigatorGetUserMedia: root::mozilla::UseCounter = 93;
+ pub const UseCounter_eUseCounter_WebrtcDeprecatedPrefix: root::mozilla::UseCounter = 94;
+ pub const UseCounter_eUseCounter_RTCPeerConnectionGetStreams: root::mozilla::UseCounter =
+ 95;
+ pub const UseCounter_eUseCounter_AppCache: root::mozilla::UseCounter = 96;
+ pub const UseCounter_eUseCounter_AppCacheInsecure: root::mozilla::UseCounter = 97;
+ pub const UseCounter_eUseCounter_PrefixedImageSmoothingEnabled: root::mozilla::UseCounter =
+ 98;
+ pub const UseCounter_eUseCounter_PrefixedFullscreenAPI: root::mozilla::UseCounter = 99;
+ pub const UseCounter_eUseCounter_LenientSetter: root::mozilla::UseCounter = 100;
+ pub const UseCounter_eUseCounter_FileLastModifiedDate: root::mozilla::UseCounter = 101;
+ pub const UseCounter_eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap:
+ root::mozilla::UseCounter = 102;
+ pub const UseCounter_eUseCounter_URLCreateObjectURL_MediaStream: root::mozilla::UseCounter =
+ 103;
+ pub const UseCounter_eUseCounter_XMLBaseAttribute: root::mozilla::UseCounter = 104;
+ pub const UseCounter_eUseCounter_WindowContentUntrusted: root::mozilla::UseCounter = 105;
+ pub const UseCounter_eUseCounter_RegisterProtocolHandlerInsecure:
+ root::mozilla::UseCounter = 106;
+ pub const UseCounter_eUseCounter_MixedDisplayObjectSubrequest: root::mozilla::UseCounter =
+ 107;
+ pub const UseCounter_eUseCounter_MotionEvent: root::mozilla::UseCounter = 108;
+ pub const UseCounter_eUseCounter_OrientationEvent: root::mozilla::UseCounter = 109;
+ pub const UseCounter_eUseCounter_ProximityEvent: root::mozilla::UseCounter = 110;
+ pub const UseCounter_eUseCounter_AmbientLightEvent: root::mozilla::UseCounter = 111;
+ pub const UseCounter_eUseCounter_IDBOpenDBOptions_StorageType: root::mozilla::UseCounter =
+ 112;
+ pub const UseCounter_eUseCounter_GetPropertyCSSValue: root::mozilla::UseCounter = 113;
+ pub const UseCounter_eUseCounter_Count: root::mozilla::UseCounter = 114;
+ pub type UseCounter = i16;
+ pub const LogLevel_Disabled: root::mozilla::LogLevel = 0;
+ pub const LogLevel_Error: root::mozilla::LogLevel = 1;
+ pub const LogLevel_Warning: root::mozilla::LogLevel = 2;
+ pub const LogLevel_Info: root::mozilla::LogLevel = 3;
+ pub const LogLevel_Debug: root::mozilla::LogLevel = 4;
+ pub const LogLevel_Verbose: root::mozilla::LogLevel = 5;
+ pub type LogLevel = i32;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct LogModule {
+ pub mName: *mut ::std::os::raw::c_char,
+ pub mLevel: u32,
+ }
+ #[test]
+ fn bindgen_test_layout_LogModule() {
+ assert_eq!(
+ ::std::mem::size_of::<LogModule>(),
+ 16usize,
+ concat!("Size of: ", stringify!(LogModule))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<LogModule>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(LogModule))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<LogModule>())).mName as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LogModule),
+ "::",
+ stringify!(mName)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<LogModule>())).mLevel as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LogModule),
+ "::",
+ stringify!(mLevel)
+ )
+ );
+ }
+ /// Helper class that lazy loads the given log module. This is safe to use for
+ /// declaring static references to log modules and can be used as a replacement
+ /// for accessing a LogModule directly.
+ ///
+ /// Example usage:
+ /// static LazyLogModule sLayoutLog("layout");
+ ///
+ /// void Foo() {
+ /// MOZ_LOG(sLayoutLog, LogLevel::Verbose, ("Entering foo"));
+ /// }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct LazyLogModule {
+ pub mLogName: *const ::std::os::raw::c_char,
+ pub mLog: u64,
+ }
+ #[test]
+ fn bindgen_test_layout_LazyLogModule() {
+ assert_eq!(
+ ::std::mem::size_of::<LazyLogModule>(),
+ 16usize,
+ concat!("Size of: ", stringify!(LazyLogModule))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<LazyLogModule>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(LazyLogModule))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<LazyLogModule>())).mLogName as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LazyLogModule),
+ "::",
+ stringify!(mLogName)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<LazyLogModule>())).mLog as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LazyLogModule),
+ "::",
+ stringify!(mLog)
+ )
+ );
+ }
+ impl Clone for LazyLogModule {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct Runnable {
+ pub _base: root::nsIRunnable,
+ pub _base_1: root::nsINamed,
+ pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
+ pub mName: *const ::std::os::raw::c_char,
+ }
+ pub type Runnable_HasThreadSafeRefCnt = root::mozilla::TrueType;
+ #[test]
+ fn bindgen_test_layout_Runnable() {
+ assert_eq!(
+ ::std::mem::size_of::<Runnable>(),
+ 32usize,
+ concat!("Size of: ", stringify!(Runnable))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<Runnable>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(Runnable))
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct CancelableRunnable {
+ pub _base: root::mozilla::Runnable,
+ pub _base_1: root::nsICancelableRunnable,
+ }
+ #[test]
+ fn bindgen_test_layout_CancelableRunnable() {
+ assert_eq!(
+ ::std::mem::size_of::<CancelableRunnable>(),
+ 40usize,
+ concat!("Size of: ", stringify!(CancelableRunnable))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<CancelableRunnable>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(CancelableRunnable))
+ );
+ }
+ /// BlockingResourceBase
+ /// Base class of resources that might block clients trying to acquire them.
+ /// Does debugging and deadlock detection in DEBUG builds.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct BlockingResourceBase {
+ pub _address: u8,
+ }
+ pub const BlockingResourceBase_BlockingResourceType_eMutex:
+ root::mozilla::BlockingResourceBase_BlockingResourceType = 0;
+ pub const BlockingResourceBase_BlockingResourceType_eReentrantMonitor:
+ root::mozilla::BlockingResourceBase_BlockingResourceType = 1;
+ pub const BlockingResourceBase_BlockingResourceType_eCondVar:
+ root::mozilla::BlockingResourceBase_BlockingResourceType = 2;
+ pub const BlockingResourceBase_BlockingResourceType_eRecursiveMutex:
+ root::mozilla::BlockingResourceBase_BlockingResourceType = 3;
+ pub type BlockingResourceBase_BlockingResourceType = u32;
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla20BlockingResourceBase17kResourceTypeNameE"]
+ pub static mut BlockingResourceBase_kResourceTypeName:
+ [*const ::std::os::raw::c_char; 0usize];
+ }
+ #[test]
+ fn bindgen_test_layout_BlockingResourceBase() {
+ assert_eq!(
+ ::std::mem::size_of::<BlockingResourceBase>(),
+ 1usize,
+ concat!("Size of: ", stringify!(BlockingResourceBase))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<BlockingResourceBase>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(BlockingResourceBase))
+ );
+ }
+ /// OffTheBooksMutex is identical to Mutex, except that OffTheBooksMutex doesn't
+ /// include leak checking. Sometimes you want to intentionally "leak" a mutex
+ /// until shutdown; in these cases, OffTheBooksMutex is for you.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct OffTheBooksMutex {
+ pub _base: root::mozilla::detail::MutexImpl,
+ }
+ #[test]
+ fn bindgen_test_layout_OffTheBooksMutex() {
+ assert_eq!(
+ ::std::mem::size_of::<OffTheBooksMutex>(),
+ 40usize,
+ concat!("Size of: ", stringify!(OffTheBooksMutex))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<OffTheBooksMutex>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(OffTheBooksMutex))
+ );
+ }
+ /// Mutex
+ /// When possible, use MutexAutoLock/MutexAutoUnlock to lock/unlock this
+ /// mutex within a scope, instead of calling Lock/Unlock directly.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct Mutex {
+ pub _base: root::mozilla::OffTheBooksMutex,
+ }
+ #[test]
+ fn bindgen_test_layout_Mutex() {
+ assert_eq!(
+ ::std::mem::size_of::<Mutex>(),
+ 40usize,
+ concat!("Size of: ", stringify!(Mutex))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<Mutex>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(Mutex))
+ );
+ }
+ pub mod css {
+ #[allow(unused_imports)]
+ use self::super::super::super::root;
#[repr(C)]
pub struct URLValueData__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
@@ -5979,6 +6087,42 @@ pub mod root {
)
);
}
+ #[repr(u8)]
+ /// Enum defining the mode in which a sheet is to be parsed. This is
+ /// usually, but not always, the same as the cascade level at which the
+ /// sheet will apply (see nsStyleSet.h). Most of the Loader APIs only
+ /// support loading of author sheets.
+ ///
+ /// Author sheets are the normal case: styles embedded in or linked
+ /// from HTML pages. They are also the most restricted.
+ ///
+ /// User sheets can do anything author sheets can do, and also get
+ /// access to a few CSS extensions that are not yet suitable for
+ /// exposure on the public Web, but are very useful for expressing
+ /// user style overrides, such as @-moz-document rules.
+ ///
+ /// XXX: eUserSheetFeatures was added in bug 1035091, but some patches in
+ /// that bug never landed to use this enum value. Currently, all the features
+ /// in user sheet are also available in author sheet.
+ ///
+ /// Agent sheets have access to all author- and user-sheet features
+ /// plus more extensions that are necessary for internal use but,
+ /// again, not yet suitable for exposure on the public Web. Some of
+ /// these are outright unsafe to expose; in particular, incorrect
+ /// styling of anonymous box pseudo-elements can violate layout
+ /// invariants.
+ ///
+ /// Agent sheets that do not use any unsafe rules could use
+ /// eSafeAgentSheetFeatures when creating the sheet. This enum value allows
+ /// Servo backend to recognize the sheets as the agent level, but Gecko
+ /// backend will parse it under _author_ level.
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum SheetParsingMode {
+ eAuthorSheetFeatures = 0,
+ eUserSheetFeatures = 1,
+ eAgentSheetFeatures = 2,
+ eSafeAgentSheetFeatures = 3,
+ }
/// Style sheet reuse *
#[repr(C)]
pub struct LoaderReusableStyleSheets {
@@ -6021,7 +6165,6 @@ pub mod root {
pub mDatasToNotifyOn: u32,
pub mCompatMode: root::nsCompatibility,
pub mPreferredSheet: ::nsstring::nsStringRepr,
- pub mStyleBackendType: [u8; 2usize],
pub mEnabled: bool,
pub mReporter: root::nsCOMPtr,
}
@@ -6223,20 +6366,8 @@ pub mod root {
)
);
assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<Loader>())).mStyleBackendType as *const _ as usize
- },
- 80usize,
- concat!(
- "Offset of field: ",
- stringify!(Loader),
- "::",
- stringify!(mStyleBackendType)
- )
- );
- assert_eq!(
unsafe { &(*(::std::ptr::null::<Loader>())).mEnabled as *const _ as usize },
- 82usize,
+ 80usize,
concat!(
"Offset of field: ",
stringify!(Loader),
@@ -6258,8 +6389,7 @@ pub mod root {
#[repr(C)]
pub struct SheetLoadData {
pub _base: root::nsIRunnable,
- pub _base_1: root::nsIUnicharStreamLoaderObserver,
- pub _base_2: root::nsIThreadObserver,
+ pub _base_1: root::nsIThreadObserver,
pub mRefCnt: root::nsAutoRefCnt,
pub mLoader: root::RefPtr<root::mozilla::css::Loader>,
pub mTitle: ::nsstring::nsStringRepr,
@@ -6282,7 +6412,7 @@ pub mod root {
fn bindgen_test_layout_SheetLoadData() {
assert_eq!(
::std::mem::size_of::<SheetLoadData>(),
- 152usize,
+ 144usize,
concat!("Size of: ", stringify!(SheetLoadData))
);
assert_eq!(
@@ -6497,13 +6627,23 @@ pub mod root {
}
}
#[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct ImageLoader {
+ _unused: [u8; 0],
+ }
+ impl Clone for ImageLoader {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
#[derive(Debug)]
pub struct Rule {
pub _base: root::nsISupports,
pub _base_1: root::nsWrapperCache,
pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
pub mSheet: *mut root::mozilla::StyleSheet,
- pub mParentRule: *mut root::mozilla::css::GroupRule,
+ pub mParentRule: *mut root::mozilla::css::Rule,
pub mLineNumber: u32,
pub mColumnNumber: u32,
}
@@ -6531,21 +6671,6 @@ pub mod root {
*self
}
}
- pub const Rule_UNKNOWN_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 0;
- pub const Rule_CHARSET_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 1;
- pub const Rule_IMPORT_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 2;
- pub const Rule_NAMESPACE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 3;
- pub const Rule_STYLE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 4;
- pub const Rule_MEDIA_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 5;
- pub const Rule_FONT_FACE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 6;
- pub const Rule_PAGE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 7;
- pub const Rule_KEYFRAME_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 8;
- pub const Rule_KEYFRAMES_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 9;
- pub const Rule_DOCUMENT_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 10;
- pub const Rule_SUPPORTS_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 11;
- pub const Rule_FONT_FEATURE_VALUES_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 12;
- pub const Rule_COUNTER_STYLE_RULE: root::mozilla::css::Rule__bindgen_ty_1 = 13;
- pub type Rule__bindgen_ty_1 = u32;
extern "C" {
#[link_name = "\u{1}_ZN7mozilla3css4Rule21_cycleCollectorGlobalE"]
pub static mut Rule__cycleCollectorGlobal: root::mozilla::css::Rule_cycleCollection;
@@ -6568,7 +6693,6 @@ pub mod root {
pub mError: root::nsAutoString,
pub mErrorLine: ::nsstring::nsStringRepr,
pub mFileName: ::nsstring::nsStringRepr,
- pub mScanner: *const root::nsCSSScanner,
pub mSheet: *const root::mozilla::StyleSheet,
pub mLoader: *const root::mozilla::css::Loader,
pub mURI: *mut root::nsIURI,
@@ -6581,7 +6705,7 @@ pub mod root {
fn bindgen_test_layout_ErrorReporter() {
assert_eq!(
::std::mem::size_of::<ErrorReporter>(),
- 240usize,
+ 232usize,
concat!("Size of: ", stringify!(ErrorReporter))
);
assert_eq!(
@@ -6627,21 +6751,9 @@ pub mod root {
);
assert_eq!(
unsafe {
- &(*(::std::ptr::null::<ErrorReporter>())).mScanner as *const _ as usize
- },
- 184usize,
- concat!(
- "Offset of field: ",
- stringify!(ErrorReporter),
- "::",
- stringify!(mScanner)
- )
- );
- assert_eq!(
- unsafe {
&(*(::std::ptr::null::<ErrorReporter>())).mSheet as *const _ as usize
},
- 192usize,
+ 184usize,
concat!(
"Offset of field: ",
stringify!(ErrorReporter),
@@ -6653,7 +6765,7 @@ pub mod root {
unsafe {
&(*(::std::ptr::null::<ErrorReporter>())).mLoader as *const _ as usize
},
- 200usize,
+ 192usize,
concat!(
"Offset of field: ",
stringify!(ErrorReporter),
@@ -6663,7 +6775,7 @@ pub mod root {
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ErrorReporter>())).mURI as *const _ as usize },
- 208usize,
+ 200usize,
concat!(
"Offset of field: ",
stringify!(ErrorReporter),
@@ -6676,7 +6788,7 @@ pub mod root {
&(*(::std::ptr::null::<ErrorReporter>())).mInnerWindowID as *const _
as usize
},
- 216usize,
+ 208usize,
concat!(
"Offset of field: ",
stringify!(ErrorReporter),
@@ -6689,7 +6801,7 @@ pub mod root {
&(*(::std::ptr::null::<ErrorReporter>())).mErrorLineNumber as *const _
as usize
},
- 224usize,
+ 216usize,
concat!(
"Offset of field: ",
stringify!(ErrorReporter),
@@ -6702,7 +6814,7 @@ pub mod root {
&(*(::std::ptr::null::<ErrorReporter>())).mPrevErrorLineNumber as *const _
as usize
},
- 228usize,
+ 220usize,
concat!(
"Offset of field: ",
stringify!(ErrorReporter),
@@ -6715,7 +6827,7 @@ pub mod root {
&(*(::std::ptr::null::<ErrorReporter>())).mErrorColNumber as *const _
as usize
},
- 232usize,
+ 224usize,
concat!(
"Offset of field: ",
stringify!(ErrorReporter),
@@ -6739,207 +6851,6 @@ pub mod root {
#[allow(unused_imports)]
use self::super::super::super::root;
}
- pub type TimeStampValue = u64;
- /// Instances of this class represent the length of an interval of time.
- /// Negative durations are allowed, meaning the end is before the start.
- ///
- /// Internally the duration is stored as a int64_t in units of
- /// PR_TicksPerSecond() when building with NSPR interval timers, or a
- /// system-dependent unit when building with system clocks. The
- /// system-dependent unit must be constant, otherwise the semantics of
- /// this class would be broken.
- ///
- /// The ValueCalculator template parameter determines how arithmetic
- /// operations are performed on the integer count of ticks (mValue).
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct BaseTimeDuration {
- pub mValue: i64,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct BaseTimeDuration__SomethingVeryRandomHere {
- _unused: [u8; 0],
- }
- /// Perform arithmetic operations on the value of a BaseTimeDuration without
- /// doing strict checks on the range of values.
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct TimeDurationValueCalculator {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_TimeDurationValueCalculator() {
- assert_eq!(
- ::std::mem::size_of::<TimeDurationValueCalculator>(),
- 1usize,
- concat!("Size of: ", stringify!(TimeDurationValueCalculator))
- );
- assert_eq!(
- ::std::mem::align_of::<TimeDurationValueCalculator>(),
- 1usize,
- concat!("Alignment of ", stringify!(TimeDurationValueCalculator))
- );
- }
- impl Clone for TimeDurationValueCalculator {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// Specialization of BaseTimeDuration that uses TimeDurationValueCalculator for
- /// arithmetic on the mValue member.
- ///
- /// Use this class for time durations that are *not* expected to hold values of
- /// Forever (or the negative equivalent) or when such time duration are *not*
- /// expected to be used in arithmetic operations.
- pub type TimeDuration = root::mozilla::BaseTimeDuration;
- /// 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: root::mozilla::TimeStampValue,
- }
- #[test]
- fn bindgen_test_layout_TimeStamp() {
- assert_eq!(
- ::std::mem::size_of::<TimeStamp>(),
- 8usize,
- concat!("Size of: ", stringify!(TimeStamp))
- );
- assert_eq!(
- ::std::mem::align_of::<TimeStamp>(),
- 8usize,
- concat!("Alignment of ", stringify!(TimeStamp))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<TimeStamp>())).mValue as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(TimeStamp),
- "::",
- stringify!(mValue)
- )
- );
- }
- impl Clone for TimeStamp {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct MallocAllocPolicy {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_MallocAllocPolicy() {
- assert_eq!(
- ::std::mem::size_of::<MallocAllocPolicy>(),
- 1usize,
- concat!("Size of: ", stringify!(MallocAllocPolicy))
- );
- assert_eq!(
- ::std::mem::align_of::<MallocAllocPolicy>(),
- 1usize,
- concat!("Alignment of ", stringify!(MallocAllocPolicy))
- );
- }
- impl Clone for MallocAllocPolicy {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type Vector_Impl = u8;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct Vector_CapacityAndReserved {
- pub mCapacity: usize,
- }
- pub type Vector_ElementType<T> = T;
- pub const Vector_InlineLength: root::mozilla::Vector__bindgen_ty_1 = 0;
- pub type Vector__bindgen_ty_1 = i32;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct Vector_Range<T> {
- pub mCur: *mut T,
- pub mEnd: *mut T,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct Vector_ConstRange<T> {
- pub mCur: *mut T,
- pub mEnd: *mut T,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
- }
- pub mod binding_danger {
- #[allow(unused_imports)]
- use self::super::super::super::root;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct AssertAndSuppressCleanupPolicy {
- pub _address: u8,
- }
- pub const AssertAndSuppressCleanupPolicy_assertHandled: bool = true;
- pub const AssertAndSuppressCleanupPolicy_suppress: bool = true;
- #[test]
- fn bindgen_test_layout_AssertAndSuppressCleanupPolicy() {
- assert_eq!(
- ::std::mem::size_of::<AssertAndSuppressCleanupPolicy>(),
- 1usize,
- concat!("Size of: ", stringify!(AssertAndSuppressCleanupPolicy))
- );
- assert_eq!(
- ::std::mem::align_of::<AssertAndSuppressCleanupPolicy>(),
- 1usize,
- concat!("Alignment of ", stringify!(AssertAndSuppressCleanupPolicy))
- );
- }
- impl Clone for AssertAndSuppressCleanupPolicy {
- fn clone(&self) -> Self {
- *self
- }
- }
- }
pub mod net {
#[allow(unused_imports)]
use self::super::super::super::root;
@@ -6957,1539 +6868,6 @@ pub mod root {
pub const ReferrerPolicy_RP_Unset: root::mozilla::net::ReferrerPolicy = 0;
pub type ReferrerPolicy = u32;
}
- /// The default of not using CORS to validate cross-origin loads.
- pub const CORSMode_CORS_NONE: root::mozilla::CORSMode = 0;
- /// Validate cross-site loads using CORS, but do not send any credentials
- /// (cookies, HTTP auth logins, etc) along with the request.
- pub const CORSMode_CORS_ANONYMOUS: root::mozilla::CORSMode = 1;
- /// Validate cross-site loads using CORS, and send credentials such as cookies
- /// and HTTP auth logins along with the request.
- pub const CORSMode_CORS_USE_CREDENTIALS: root::mozilla::CORSMode = 2;
- pub type CORSMode = u8;
- /// Superclass for data common to CSSStyleSheet and ServoStyleSheet.
- #[repr(C)]
- pub struct StyleSheet {
- pub _base: root::nsICSSLoaderObserver,
- pub _base_1: root::nsWrapperCache,
- pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
- pub mParent: *mut root::mozilla::StyleSheet,
- pub mTitle: ::nsstring::nsStringRepr,
- pub mDocument: *mut root::nsIDocument,
- pub mOwningNode: *mut root::nsINode,
- pub mOwnerRule: *mut root::mozilla::dom::CSSImportRule,
- pub mMedia: root::RefPtr<root::mozilla::dom::MediaList>,
- pub mNext: root::RefPtr<root::mozilla::StyleSheet>,
- pub mParsingMode: root::mozilla::css::SheetParsingMode,
- pub mType: root::mozilla::StyleBackendType,
- pub mDisabled: bool,
- pub mDirtyFlags: u8,
- pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode,
- pub mInner: *mut root::mozilla::StyleSheetInfo,
- pub mStyleSets: root::nsTArray<root::mozilla::StyleSetHandle>,
- }
- pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct StyleSheet_cycleCollection {
- pub _base: root::nsXPCOMCycleCollectionParticipant,
- }
- #[test]
- fn bindgen_test_layout_StyleSheet_cycleCollection() {
- assert_eq!(
- ::std::mem::size_of::<StyleSheet_cycleCollection>(),
- 16usize,
- concat!("Size of: ", stringify!(StyleSheet_cycleCollection))
- );
- assert_eq!(
- ::std::mem::align_of::<StyleSheet_cycleCollection>(),
- 8usize,
- concat!("Alignment of ", stringify!(StyleSheet_cycleCollection))
- );
- }
- impl Clone for StyleSheet_cycleCollection {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const StyleSheet_ChangeType_Added: root::mozilla::StyleSheet_ChangeType = 0;
- pub const StyleSheet_ChangeType_Removed: root::mozilla::StyleSheet_ChangeType = 1;
- pub const StyleSheet_ChangeType_ApplicableStateChanged:
- root::mozilla::StyleSheet_ChangeType = 2;
- pub const StyleSheet_ChangeType_RuleAdded: root::mozilla::StyleSheet_ChangeType = 3;
- pub const StyleSheet_ChangeType_RuleRemoved: root::mozilla::StyleSheet_ChangeType = 4;
- pub const StyleSheet_ChangeType_RuleChanged: root::mozilla::StyleSheet_ChangeType = 5;
- /// The different changes that a stylesheet may go through.
- ///
- /// Used by the StyleSets in order to handle more efficiently some kinds of
- /// changes.
- pub type StyleSheet_ChangeType = i32;
- pub const StyleSheet_DocumentAssociationMode_OwnedByDocument:
- root::mozilla::StyleSheet_DocumentAssociationMode = 0;
- pub const StyleSheet_DocumentAssociationMode_NotOwnedByDocument:
- root::mozilla::StyleSheet_DocumentAssociationMode = 1;
- pub type StyleSheet_DocumentAssociationMode = u8;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct StyleSheet_ChildSheetListBuilder {
- pub sheetSlot: *mut root::RefPtr<root::mozilla::StyleSheet>,
- pub parent: *mut root::mozilla::StyleSheet,
- }
- #[test]
- fn bindgen_test_layout_StyleSheet_ChildSheetListBuilder() {
- assert_eq!(
- ::std::mem::size_of::<StyleSheet_ChildSheetListBuilder>(),
- 16usize,
- concat!("Size of: ", stringify!(StyleSheet_ChildSheetListBuilder))
- );
- assert_eq!(
- ::std::mem::align_of::<StyleSheet_ChildSheetListBuilder>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(StyleSheet_ChildSheetListBuilder)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<StyleSheet_ChildSheetListBuilder>())).sheetSlot
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(StyleSheet_ChildSheetListBuilder),
- "::",
- stringify!(sheetSlot)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<StyleSheet_ChildSheetListBuilder>())).parent as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(StyleSheet_ChildSheetListBuilder),
- "::",
- stringify!(parent)
- )
- );
- }
- impl Clone for StyleSheet_ChildSheetListBuilder {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const StyleSheet_dirtyFlagAttributes_FORCED_UNIQUE_INNER:
- root::mozilla::StyleSheet_dirtyFlagAttributes = 1;
- pub const StyleSheet_dirtyFlagAttributes_MODIFIED_RULES:
- root::mozilla::StyleSheet_dirtyFlagAttributes = 2;
- pub type StyleSheet_dirtyFlagAttributes = u32;
- extern "C" {
- #[link_name = "\u{1}_ZN7mozilla10StyleSheet21_cycleCollectorGlobalE"]
- pub static mut StyleSheet__cycleCollectorGlobal:
- root::mozilla::StyleSheet_cycleCollection;
- }
- #[test]
- fn bindgen_test_layout_StyleSheet() {
- assert_eq!(
- ::std::mem::size_of::<StyleSheet>(),
- 128usize,
- concat!("Size of: ", stringify!(StyleSheet))
- );
- assert_eq!(
- ::std::mem::align_of::<StyleSheet>(),
- 8usize,
- concat!("Alignment of ", stringify!(StyleSheet))
- );
- }
- pub const CSSEnabledState_eForAllContent: root::mozilla::CSSEnabledState = 0;
- pub const CSSEnabledState_eInUASheets: root::mozilla::CSSEnabledState = 1;
- pub const CSSEnabledState_eInChrome: root::mozilla::CSSEnabledState = 2;
- pub const CSSEnabledState_eIgnoreEnabledState: root::mozilla::CSSEnabledState = 255;
- pub type CSSEnabledState = i32;
- pub type CSSPseudoElementTypeBase = u8;
- pub const CSSPseudoElementType_InheritingAnonBox: root::mozilla::CSSPseudoElementType =
- CSSPseudoElementType::Count;
- #[repr(u8)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum CSSPseudoElementType {
- after = 0,
- before = 1,
- backdrop = 2,
- cue = 3,
- firstLetter = 4,
- firstLine = 5,
- mozSelection = 6,
- mozFocusInner = 7,
- mozFocusOuter = 8,
- mozListBullet = 9,
- mozListNumber = 10,
- mozMathAnonymous = 11,
- mozNumberWrapper = 12,
- mozNumberText = 13,
- mozNumberSpinBox = 14,
- mozNumberSpinUp = 15,
- mozNumberSpinDown = 16,
- mozProgressBar = 17,
- mozRangeTrack = 18,
- mozRangeProgress = 19,
- mozRangeThumb = 20,
- mozMeterBar = 21,
- mozPlaceholder = 22,
- placeholder = 23,
- mozColorSwatch = 24,
- Count = 25,
- NonInheritingAnonBox = 26,
- XULTree = 27,
- NotPseudo = 28,
- MAX = 29,
- }
- /// Smart pointer class that can hold a pointer to either an nsStyleSet
- /// or a ServoStyleSet.
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct StyleSetHandle {
- pub mPtr: root::mozilla::StyleSetHandle_Ptr,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct StyleSetHandle_Ptr {
- pub mValue: usize,
- }
- #[test]
- fn bindgen_test_layout_StyleSetHandle_Ptr() {
- assert_eq!(
- ::std::mem::size_of::<StyleSetHandle_Ptr>(),
- 8usize,
- concat!("Size of: ", stringify!(StyleSetHandle_Ptr))
- );
- assert_eq!(
- ::std::mem::align_of::<StyleSetHandle_Ptr>(),
- 8usize,
- concat!("Alignment of ", stringify!(StyleSetHandle_Ptr))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<StyleSetHandle_Ptr>())).mValue as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(StyleSetHandle_Ptr),
- "::",
- stringify!(mValue)
- )
- );
- }
- impl Clone for StyleSetHandle_Ptr {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_StyleSetHandle() {
- assert_eq!(
- ::std::mem::size_of::<StyleSetHandle>(),
- 8usize,
- concat!("Size of: ", stringify!(StyleSetHandle))
- );
- assert_eq!(
- ::std::mem::align_of::<StyleSetHandle>(),
- 8usize,
- concat!("Alignment of ", stringify!(StyleSetHandle))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<StyleSetHandle>())).mPtr as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(StyleSetHandle),
- "::",
- stringify!(mPtr)
- )
- );
- }
- impl Clone for StyleSetHandle {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct SeenPtrs {
- pub _bindgen_opaque_blob: [u64; 4usize],
- }
- #[test]
- fn bindgen_test_layout_SeenPtrs() {
- assert_eq!(
- ::std::mem::size_of::<SeenPtrs>(),
- 32usize,
- concat!("Size of: ", stringify!(SeenPtrs))
- );
- assert_eq!(
- ::std::mem::align_of::<SeenPtrs>(),
- 8usize,
- concat!("Alignment of ", stringify!(SeenPtrs))
- );
- }
- impl Clone for SeenPtrs {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct EventListenerManager {
- _unused: [u8; 0],
- }
- impl Clone for EventListenerManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub mod widget {
- #[allow(unused_imports)]
- use self::super::super::super::root;
- /// Contains IMEStatus plus information about the current
- /// input context that the IME can use as hints if desired.
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct IMEState {
- pub mEnabled: root::mozilla::widget::IMEState_Enabled,
- pub mOpen: root::mozilla::widget::IMEState_Open,
- }
- /// 'Disabled' means the user cannot use IME. So, the IME open state should
- /// be 'closed' during 'disabled'.
- pub const IMEState_Enabled_DISABLED: root::mozilla::widget::IMEState_Enabled = 0;
- /// 'Enabled' means the user can use IME.
- pub const IMEState_Enabled_ENABLED: root::mozilla::widget::IMEState_Enabled = 1;
- /// 'Password' state is a special case for the password editors.
- /// E.g., on mac, the password editors should disable the non-Roman
- /// keyboard layouts at getting focus. Thus, the password editor may have
- /// special rules on some platforms.
- pub const IMEState_Enabled_PASSWORD: root::mozilla::widget::IMEState_Enabled = 2;
- /// This state is used when a plugin is focused.
- /// When a plug-in is focused content, we should send native events
- /// directly. Because we don't process some native events, but they may
- /// be needed by the plug-in.
- pub const IMEState_Enabled_PLUGIN: root::mozilla::widget::IMEState_Enabled = 3;
- /// 'Unknown' is useful when you cache this enum. So, this shouldn't be
- /// used with nsIWidget::SetInputContext().
- pub const IMEState_Enabled_UNKNOWN: root::mozilla::widget::IMEState_Enabled = 4;
- /// IME enabled states, the mEnabled value of
- /// SetInputContext()/GetInputContext() should be one value of following
- /// values.
- ///
- /// WARNING: If you change these values, you also need to edit:
- /// nsIDOMWindowUtils.idl
- /// nsContentUtils::GetWidgetStatusFromIMEStatus
- pub type IMEState_Enabled = u32;
- /// 'Unsupported' means the platform cannot return actual IME open state.
- /// This value is used only by GetInputContext().
- pub const IMEState_Open_OPEN_STATE_NOT_SUPPORTED: root::mozilla::widget::IMEState_Open =
- 0;
- /// 'Don't change' means the widget shouldn't change IME open state when
- /// SetInputContext() is called.
- pub const IMEState_Open_DONT_CHANGE_OPEN_STATE: root::mozilla::widget::IMEState_Open =
- 0;
- /// 'Open' means that IME should compose in its primary language (or latest
- /// input mode except direct ASCII character input mode). Even if IME is
- /// opened by this value, users should be able to close IME by theirselves.
- /// Web contents can specify this value by |ime-mode: active;|.
- pub const IMEState_Open_OPEN: root::mozilla::widget::IMEState_Open = 1;
- /// 'Closed' means that IME shouldn't handle key events (or should handle
- /// as ASCII character inputs on mobile device). Even if IME is closed by
- /// this value, users should be able to open IME by theirselves.
- /// Web contents can specify this value by |ime-mode: inactive;|.
- pub const IMEState_Open_CLOSED: root::mozilla::widget::IMEState_Open = 2;
- /// IME open states the mOpen value of SetInputContext() should be one value of
- /// OPEN, CLOSE or DONT_CHANGE_OPEN_STATE. GetInputContext() should return
- /// OPEN, CLOSE or OPEN_STATE_NOT_SUPPORTED.
- pub type IMEState_Open = u32;
- #[test]
- fn bindgen_test_layout_IMEState() {
- assert_eq!(
- ::std::mem::size_of::<IMEState>(),
- 8usize,
- concat!("Size of: ", stringify!(IMEState))
- );
- assert_eq!(
- ::std::mem::align_of::<IMEState>(),
- 4usize,
- concat!("Alignment of ", stringify!(IMEState))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<IMEState>())).mEnabled as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(IMEState),
- "::",
- stringify!(mEnabled)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<IMEState>())).mOpen as *const _ as usize },
- 4usize,
- concat!(
- "Offset of field: ",
- stringify!(IMEState),
- "::",
- stringify!(mOpen)
- )
- );
- }
- impl Clone for IMEState {
- fn clone(&self) -> Self {
- *self
- }
- }
- }
- pub mod layout {
- #[allow(unused_imports)]
- use self::super::super::super::root;
- pub const FrameChildListID_kPrincipalList: root::mozilla::layout::FrameChildListID = 1;
- pub const FrameChildListID_kPopupList: root::mozilla::layout::FrameChildListID = 2;
- pub const FrameChildListID_kCaptionList: root::mozilla::layout::FrameChildListID = 4;
- pub const FrameChildListID_kColGroupList: root::mozilla::layout::FrameChildListID = 8;
- pub const FrameChildListID_kSelectPopupList: root::mozilla::layout::FrameChildListID =
- 16;
- pub const FrameChildListID_kAbsoluteList: root::mozilla::layout::FrameChildListID = 32;
- pub const FrameChildListID_kFixedList: root::mozilla::layout::FrameChildListID = 64;
- pub const FrameChildListID_kOverflowList: root::mozilla::layout::FrameChildListID = 128;
- pub const FrameChildListID_kOverflowContainersList:
- root::mozilla::layout::FrameChildListID = 256;
- pub const FrameChildListID_kExcessOverflowContainersList:
- root::mozilla::layout::FrameChildListID = 512;
- pub const FrameChildListID_kOverflowOutOfFlowList:
- root::mozilla::layout::FrameChildListID = 1024;
- pub const FrameChildListID_kFloatList: root::mozilla::layout::FrameChildListID = 2048;
- pub const FrameChildListID_kBulletList: root::mozilla::layout::FrameChildListID = 4096;
- pub const FrameChildListID_kPushedFloatsList: root::mozilla::layout::FrameChildListID =
- 8192;
- pub const FrameChildListID_kBackdropList: root::mozilla::layout::FrameChildListID =
- 16384;
- pub const FrameChildListID_kNoReflowPrincipalList:
- root::mozilla::layout::FrameChildListID = 32768;
- pub type FrameChildListID = u32;
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct UndisplayedNode {
- _unused: [u8; 0],
- }
- impl Clone for UndisplayedNode {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct ArenaAllocator_ArenaHeader {
- /// The location in memory of the data portion of the arena.
- pub offset: usize,
- /// The location in memory of the end of the data portion of the arena.
- pub tail: usize,
- }
- impl Clone for ArenaAllocator_ArenaHeader {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct ArenaAllocator_ArenaChunk {
- pub canary: root::mozilla::CorruptionCanary,
- pub header: root::mozilla::ArenaAllocator_ArenaHeader,
- pub next: *mut root::mozilla::ArenaAllocator_ArenaChunk,
- }
- pub type CSSSize = [u32; 2usize];
- pub type LayoutDeviceIntPoint = [u32; 2usize];
- pub type CSSToLayoutDeviceScale = u32;
- pub type LayoutDeviceToScreenScale = u32;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct CSSPixel {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_CSSPixel() {
- assert_eq!(
- ::std::mem::size_of::<CSSPixel>(),
- 1usize,
- concat!("Size of: ", stringify!(CSSPixel))
- );
- assert_eq!(
- ::std::mem::align_of::<CSSPixel>(),
- 1usize,
- concat!("Alignment of ", stringify!(CSSPixel))
- );
- }
- impl Clone for CSSPixel {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct LayoutDevicePixel {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_LayoutDevicePixel() {
- assert_eq!(
- ::std::mem::size_of::<LayoutDevicePixel>(),
- 1usize,
- concat!("Size of: ", stringify!(LayoutDevicePixel))
- );
- assert_eq!(
- ::std::mem::align_of::<LayoutDevicePixel>(),
- 1usize,
- concat!("Alignment of ", stringify!(LayoutDevicePixel))
- );
- }
- impl Clone for LayoutDevicePixel {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct ScreenPixel {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_ScreenPixel() {
- assert_eq!(
- ::std::mem::size_of::<ScreenPixel>(),
- 1usize,
- concat!("Size of: ", stringify!(ScreenPixel))
- );
- assert_eq!(
- ::std::mem::align_of::<ScreenPixel>(),
- 1usize,
- concat!("Alignment of ", stringify!(ScreenPixel))
- );
- }
- impl Clone for ScreenPixel {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub mod a11y {
- #[allow(unused_imports)]
- use self::super::super::super::root;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct DocAccessible {
- _unused: [u8; 0],
- }
- impl Clone for DocAccessible {
- fn clone(&self) -> Self {
- *self
- }
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct DOMEventTargetHelper {
- _unused: [u8; 0],
- }
- impl Clone for DOMEventTargetHelper {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const UseCounter_eUseCounter_UNKNOWN: root::mozilla::UseCounter = -1;
- pub const UseCounter_eUseCounter_SVGSVGElement_getElementById: root::mozilla::UseCounter =
- 0;
- pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_getter:
- root::mozilla::UseCounter = 1;
- pub const UseCounter_eUseCounter_SVGSVGElement_currentScale_setter:
- root::mozilla::UseCounter = 2;
- pub const UseCounter_eUseCounter_property_Fill: root::mozilla::UseCounter = 3;
- pub const UseCounter_eUseCounter_property_FillOpacity: root::mozilla::UseCounter = 4;
- pub const UseCounter_eUseCounter_XMLDocument_async_getter: root::mozilla::UseCounter = 5;
- pub const UseCounter_eUseCounter_XMLDocument_async_setter: root::mozilla::UseCounter = 6;
- pub const UseCounter_eUseCounter_DOMError_name_getter: root::mozilla::UseCounter = 7;
- pub const UseCounter_eUseCounter_DOMError_name_setter: root::mozilla::UseCounter = 8;
- pub const UseCounter_eUseCounter_DOMError_message_getter: root::mozilla::UseCounter = 9;
- pub const UseCounter_eUseCounter_DOMError_message_setter: root::mozilla::UseCounter = 10;
- pub const UseCounter_eUseCounter_custom_DOMErrorConstructor: root::mozilla::UseCounter = 11;
- pub const UseCounter_eUseCounter_PushManager_subscribe: root::mozilla::UseCounter = 12;
- pub const UseCounter_eUseCounter_PushSubscription_unsubscribe: root::mozilla::UseCounter =
- 13;
- pub const UseCounter_eUseCounter_Window_sidebar_getter: root::mozilla::UseCounter = 14;
- pub const UseCounter_eUseCounter_Window_sidebar_setter: root::mozilla::UseCounter = 15;
- pub const UseCounter_eUseCounter_OfflineResourceList_swapCache: root::mozilla::UseCounter =
- 16;
- pub const UseCounter_eUseCounter_OfflineResourceList_update: root::mozilla::UseCounter = 17;
- pub const UseCounter_eUseCounter_OfflineResourceList_status_getter:
- root::mozilla::UseCounter = 18;
- pub const UseCounter_eUseCounter_OfflineResourceList_status_setter:
- root::mozilla::UseCounter = 19;
- pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_getter:
- root::mozilla::UseCounter = 20;
- pub const UseCounter_eUseCounter_OfflineResourceList_onchecking_setter:
- root::mozilla::UseCounter = 21;
- pub const UseCounter_eUseCounter_OfflineResourceList_onerror_getter:
- root::mozilla::UseCounter = 22;
- pub const UseCounter_eUseCounter_OfflineResourceList_onerror_setter:
- root::mozilla::UseCounter = 23;
- pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_getter:
- root::mozilla::UseCounter = 24;
- pub const UseCounter_eUseCounter_OfflineResourceList_onnoupdate_setter:
- root::mozilla::UseCounter = 25;
- pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_getter:
- root::mozilla::UseCounter = 26;
- pub const UseCounter_eUseCounter_OfflineResourceList_ondownloading_setter:
- root::mozilla::UseCounter = 27;
- pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_getter:
- root::mozilla::UseCounter = 28;
- pub const UseCounter_eUseCounter_OfflineResourceList_onprogress_setter:
- root::mozilla::UseCounter = 29;
- pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_getter:
- root::mozilla::UseCounter = 30;
- pub const UseCounter_eUseCounter_OfflineResourceList_onupdateready_setter:
- root::mozilla::UseCounter = 31;
- pub const UseCounter_eUseCounter_OfflineResourceList_oncached_getter:
- root::mozilla::UseCounter = 32;
- pub const UseCounter_eUseCounter_OfflineResourceList_oncached_setter:
- root::mozilla::UseCounter = 33;
- pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_getter:
- root::mozilla::UseCounter = 34;
- pub const UseCounter_eUseCounter_OfflineResourceList_onobsolete_setter:
- root::mozilla::UseCounter = 35;
- pub const UseCounter_eUseCounter_IDBDatabase_createMutableFile: root::mozilla::UseCounter =
- 36;
- pub const UseCounter_eUseCounter_IDBDatabase_mozCreateFileHandle:
- root::mozilla::UseCounter = 37;
- pub const UseCounter_eUseCounter_IDBMutableFile_open: root::mozilla::UseCounter = 38;
- pub const UseCounter_eUseCounter_IDBMutableFile_getFile: root::mozilla::UseCounter = 39;
- pub const UseCounter_eUseCounter_DataTransfer_addElement: root::mozilla::UseCounter = 40;
- pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_getter:
- root::mozilla::UseCounter = 41;
- pub const UseCounter_eUseCounter_DataTransfer_mozItemCount_setter:
- root::mozilla::UseCounter = 42;
- pub const UseCounter_eUseCounter_DataTransfer_mozCursor_getter: root::mozilla::UseCounter =
- 43;
- pub const UseCounter_eUseCounter_DataTransfer_mozCursor_setter: root::mozilla::UseCounter =
- 44;
- pub const UseCounter_eUseCounter_DataTransfer_mozTypesAt: root::mozilla::UseCounter = 45;
- pub const UseCounter_eUseCounter_DataTransfer_mozClearDataAt: root::mozilla::UseCounter =
- 46;
- pub const UseCounter_eUseCounter_DataTransfer_mozSetDataAt: root::mozilla::UseCounter = 47;
- pub const UseCounter_eUseCounter_DataTransfer_mozGetDataAt: root::mozilla::UseCounter = 48;
- pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_getter:
- root::mozilla::UseCounter = 49;
- pub const UseCounter_eUseCounter_DataTransfer_mozUserCancelled_setter:
- root::mozilla::UseCounter = 50;
- pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_getter:
- root::mozilla::UseCounter = 51;
- pub const UseCounter_eUseCounter_DataTransfer_mozSourceNode_setter:
- root::mozilla::UseCounter = 52;
- pub const UseCounter_eUseCounter_custom_JS_asmjs: root::mozilla::UseCounter = 53;
- pub const UseCounter_eUseCounter_custom_JS_wasm: root::mozilla::UseCounter = 54;
- pub const UseCounter_eUseCounter_console_assert: root::mozilla::UseCounter = 55;
- pub const UseCounter_eUseCounter_console_clear: root::mozilla::UseCounter = 56;
- pub const UseCounter_eUseCounter_console_count: root::mozilla::UseCounter = 57;
- pub const UseCounter_eUseCounter_console_debug: root::mozilla::UseCounter = 58;
- pub const UseCounter_eUseCounter_console_error: root::mozilla::UseCounter = 59;
- pub const UseCounter_eUseCounter_console_info: root::mozilla::UseCounter = 60;
- pub const UseCounter_eUseCounter_console_log: root::mozilla::UseCounter = 61;
- pub const UseCounter_eUseCounter_console_table: root::mozilla::UseCounter = 62;
- pub const UseCounter_eUseCounter_console_trace: root::mozilla::UseCounter = 63;
- pub const UseCounter_eUseCounter_console_warn: root::mozilla::UseCounter = 64;
- pub const UseCounter_eUseCounter_console_dir: root::mozilla::UseCounter = 65;
- pub const UseCounter_eUseCounter_console_dirxml: root::mozilla::UseCounter = 66;
- pub const UseCounter_eUseCounter_console_group: root::mozilla::UseCounter = 67;
- pub const UseCounter_eUseCounter_console_groupCollapsed: root::mozilla::UseCounter = 68;
- pub const UseCounter_eUseCounter_console_groupEnd: root::mozilla::UseCounter = 69;
- pub const UseCounter_eUseCounter_console_time: root::mozilla::UseCounter = 70;
- pub const UseCounter_eUseCounter_console_timeEnd: root::mozilla::UseCounter = 71;
- pub const UseCounter_eUseCounter_console_exception: root::mozilla::UseCounter = 72;
- pub const UseCounter_eUseCounter_console_timeStamp: root::mozilla::UseCounter = 73;
- pub const UseCounter_eUseCounter_console_profile: root::mozilla::UseCounter = 74;
- pub const UseCounter_eUseCounter_console_profileEnd: root::mozilla::UseCounter = 75;
- pub const UseCounter_eUseCounter_EnablePrivilege: root::mozilla::UseCounter = 76;
- pub const UseCounter_eUseCounter_DOMExceptionCode: root::mozilla::UseCounter = 77;
- pub const UseCounter_eUseCounter_MutationEvent: root::mozilla::UseCounter = 78;
- pub const UseCounter_eUseCounter_Components: root::mozilla::UseCounter = 79;
- pub const UseCounter_eUseCounter_PrefixedVisibilityAPI: root::mozilla::UseCounter = 80;
- pub const UseCounter_eUseCounter_NodeIteratorDetach: root::mozilla::UseCounter = 81;
- pub const UseCounter_eUseCounter_LenientThis: root::mozilla::UseCounter = 82;
- pub const UseCounter_eUseCounter_MozGetAsFile: root::mozilla::UseCounter = 83;
- pub const UseCounter_eUseCounter_UseOfCaptureEvents: root::mozilla::UseCounter = 84;
- pub const UseCounter_eUseCounter_UseOfReleaseEvents: root::mozilla::UseCounter = 85;
- pub const UseCounter_eUseCounter_UseOfDOM3LoadMethod: root::mozilla::UseCounter = 86;
- pub const UseCounter_eUseCounter_ChromeUseOfDOM3LoadMethod: root::mozilla::UseCounter = 87;
- pub const UseCounter_eUseCounter_ShowModalDialog: root::mozilla::UseCounter = 88;
- pub const UseCounter_eUseCounter_SyncXMLHttpRequest: root::mozilla::UseCounter = 89;
- pub const UseCounter_eUseCounter_Window_Cc_ontrollers: root::mozilla::UseCounter = 90;
- pub const UseCounter_eUseCounter_ImportXULIntoContent: root::mozilla::UseCounter = 91;
- pub const UseCounter_eUseCounter_PannerNodeDoppler: root::mozilla::UseCounter = 92;
- pub const UseCounter_eUseCounter_NavigatorGetUserMedia: root::mozilla::UseCounter = 93;
- pub const UseCounter_eUseCounter_WebrtcDeprecatedPrefix: root::mozilla::UseCounter = 94;
- pub const UseCounter_eUseCounter_RTCPeerConnectionGetStreams: root::mozilla::UseCounter =
- 95;
- pub const UseCounter_eUseCounter_AppCache: root::mozilla::UseCounter = 96;
- pub const UseCounter_eUseCounter_AppCacheInsecure: root::mozilla::UseCounter = 97;
- pub const UseCounter_eUseCounter_PrefixedImageSmoothingEnabled: root::mozilla::UseCounter =
- 98;
- pub const UseCounter_eUseCounter_PrefixedFullscreenAPI: root::mozilla::UseCounter = 99;
- pub const UseCounter_eUseCounter_LenientSetter: root::mozilla::UseCounter = 100;
- pub const UseCounter_eUseCounter_FileLastModifiedDate: root::mozilla::UseCounter = 101;
- pub const UseCounter_eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap:
- root::mozilla::UseCounter = 102;
- pub const UseCounter_eUseCounter_URLCreateObjectURL_MediaStream: root::mozilla::UseCounter =
- 103;
- pub const UseCounter_eUseCounter_XMLBaseAttribute: root::mozilla::UseCounter = 104;
- pub const UseCounter_eUseCounter_WindowContentUntrusted: root::mozilla::UseCounter = 105;
- pub const UseCounter_eUseCounter_RegisterProtocolHandlerInsecure:
- root::mozilla::UseCounter = 106;
- pub const UseCounter_eUseCounter_MixedDisplayObjectSubrequest: root::mozilla::UseCounter =
- 107;
- pub const UseCounter_eUseCounter_MotionEvent: root::mozilla::UseCounter = 108;
- pub const UseCounter_eUseCounter_OrientationEvent: root::mozilla::UseCounter = 109;
- pub const UseCounter_eUseCounter_ProximityEvent: root::mozilla::UseCounter = 110;
- pub const UseCounter_eUseCounter_AmbientLightEvent: root::mozilla::UseCounter = 111;
- pub const UseCounter_eUseCounter_IDBOpenDBOptions_StorageType: root::mozilla::UseCounter =
- 112;
- pub const UseCounter_eUseCounter_GetPropertyCSSValue: root::mozilla::UseCounter = 113;
- pub const UseCounter_eUseCounter_Count: root::mozilla::UseCounter = 114;
- pub type UseCounter = i16;
- pub const LogLevel_Disabled: root::mozilla::LogLevel = 0;
- pub const LogLevel_Error: root::mozilla::LogLevel = 1;
- pub const LogLevel_Warning: root::mozilla::LogLevel = 2;
- pub const LogLevel_Info: root::mozilla::LogLevel = 3;
- pub const LogLevel_Debug: root::mozilla::LogLevel = 4;
- pub const LogLevel_Verbose: root::mozilla::LogLevel = 5;
- pub type LogLevel = i32;
- #[repr(C)]
- #[derive(Debug)]
- pub struct LogModule {
- pub mName: *mut ::std::os::raw::c_char,
- pub mLevel: u32,
- }
- #[test]
- fn bindgen_test_layout_LogModule() {
- assert_eq!(
- ::std::mem::size_of::<LogModule>(),
- 16usize,
- concat!("Size of: ", stringify!(LogModule))
- );
- assert_eq!(
- ::std::mem::align_of::<LogModule>(),
- 8usize,
- concat!("Alignment of ", stringify!(LogModule))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<LogModule>())).mName as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(LogModule),
- "::",
- stringify!(mName)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<LogModule>())).mLevel as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(LogModule),
- "::",
- stringify!(mLevel)
- )
- );
- }
- /// Helper class that lazy loads the given log module. This is safe to use for
- /// declaring static references to log modules and can be used as a replacement
- /// for accessing a LogModule directly.
- ///
- /// Example usage:
- /// static LazyLogModule sLayoutLog("layout");
- ///
- /// void Foo() {
- /// MOZ_LOG(sLayoutLog, LogLevel::Verbose, ("Entering foo"));
- /// }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct LazyLogModule {
- pub mLogName: *const ::std::os::raw::c_char,
- pub mLog: u64,
- }
- #[test]
- fn bindgen_test_layout_LazyLogModule() {
- assert_eq!(
- ::std::mem::size_of::<LazyLogModule>(),
- 16usize,
- concat!("Size of: ", stringify!(LazyLogModule))
- );
- assert_eq!(
- ::std::mem::align_of::<LazyLogModule>(),
- 8usize,
- concat!("Alignment of ", stringify!(LazyLogModule))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<LazyLogModule>())).mLogName as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(LazyLogModule),
- "::",
- stringify!(mLogName)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<LazyLogModule>())).mLog as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(LazyLogModule),
- "::",
- stringify!(mLog)
- )
- );
- }
- impl Clone for LazyLogModule {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct Runnable {
- pub _base: root::nsIRunnable,
- pub _base_1: root::nsINamed,
- pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
- pub mName: *const ::std::os::raw::c_char,
- }
- pub type Runnable_HasThreadSafeRefCnt = root::mozilla::TrueType;
- #[test]
- fn bindgen_test_layout_Runnable() {
- assert_eq!(
- ::std::mem::size_of::<Runnable>(),
- 32usize,
- concat!("Size of: ", stringify!(Runnable))
- );
- assert_eq!(
- ::std::mem::align_of::<Runnable>(),
- 8usize,
- concat!("Alignment of ", stringify!(Runnable))
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct CancelableRunnable {
- pub _base: root::mozilla::Runnable,
- pub _base_1: root::nsICancelableRunnable,
- }
- #[test]
- fn bindgen_test_layout_CancelableRunnable() {
- assert_eq!(
- ::std::mem::size_of::<CancelableRunnable>(),
- 40usize,
- concat!("Size of: ", stringify!(CancelableRunnable))
- );
- assert_eq!(
- ::std::mem::align_of::<CancelableRunnable>(),
- 8usize,
- concat!("Alignment of ", stringify!(CancelableRunnable))
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct SegmentedVector_SegmentImpl_Storage {
- pub mBuf: root::__BindgenUnionField<*mut ::std::os::raw::c_char>,
- pub mAlign: root::__BindgenUnionField<u8>,
- pub bindgen_union_field: u64,
- }
- pub type SegmentedVector_Segment = u8;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct SegmentedVector_IterImpl {
- pub mSegment: *mut root::mozilla::SegmentedVector_Segment,
- pub mIndex: usize,
- }
- pub type ComputedKeyframeValues =
- root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>;
- #[test]
- fn __bindgen_test_layout_DefaultDelete_open0_RawServoStyleSet_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_DefaultDelete_open0_RawServoAuthorStyles_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_DefaultDelete_open0_RawServoSelectorList_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_DefaultDelete_open0_RawServoSourceSizeList_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct PendingAnimationTracker {
- _unused: [u8; 0],
- }
- impl Clone for PendingAnimationTracker {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct ScrollbarStyles {
- pub mHorizontal: u8,
- pub mVertical: u8,
- pub mScrollBehavior: u8,
- pub mOverscrollBehaviorX: root::mozilla::StyleOverscrollBehavior,
- pub mOverscrollBehaviorY: root::mozilla::StyleOverscrollBehavior,
- pub mScrollSnapTypeX: u8,
- pub mScrollSnapTypeY: u8,
- pub mScrollSnapPointsX: root::nsStyleCoord,
- pub mScrollSnapPointsY: root::nsStyleCoord,
- pub mScrollSnapDestinationX: root::nsStyleCoord_CalcValue,
- pub mScrollSnapDestinationY: root::nsStyleCoord_CalcValue,
- }
- #[test]
- fn bindgen_test_layout_ScrollbarStyles() {
- assert_eq!(
- ::std::mem::size_of::<ScrollbarStyles>(),
- 64usize,
- concat!("Size of: ", stringify!(ScrollbarStyles))
- );
- assert_eq!(
- ::std::mem::align_of::<ScrollbarStyles>(),
- 8usize,
- concat!("Alignment of ", stringify!(ScrollbarStyles))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mHorizontal as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mHorizontal)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mVertical as *const _ as usize
- },
- 1usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mVertical)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollBehavior as *const _ as usize
- },
- 2usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mScrollBehavior)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mOverscrollBehaviorX as *const _
- as usize
- },
- 3usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mOverscrollBehaviorX)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mOverscrollBehaviorY as *const _
- as usize
- },
- 4usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mOverscrollBehaviorY)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapTypeX as *const _
- as usize
- },
- 5usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mScrollSnapTypeX)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapTypeY as *const _
- as usize
- },
- 6usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mScrollSnapTypeY)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapPointsX as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mScrollSnapPointsX)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapPointsY as *const _
- as usize
- },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mScrollSnapPointsY)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapDestinationX as *const _
- as usize
- },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mScrollSnapDestinationX)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapDestinationY as *const _
- as usize
- },
- 52usize,
- concat!(
- "Offset of field: ",
- stringify!(ScrollbarStyles),
- "::",
- stringify!(mScrollSnapDestinationY)
- )
- );
- }
- #[repr(C)]
- pub struct LangGroupFontPrefs {
- pub mLangGroup: root::RefPtr<root::nsAtom>,
- pub mMinimumFontSize: root::nscoord,
- pub mDefaultVariableFont: root::nsFont,
- pub mDefaultFixedFont: root::nsFont,
- pub mDefaultSerifFont: root::nsFont,
- pub mDefaultSansSerifFont: root::nsFont,
- pub mDefaultMonospaceFont: root::nsFont,
- pub mDefaultCursiveFont: root::nsFont,
- pub mDefaultFantasyFont: root::nsFont,
- pub mNext: root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>,
- }
- #[test]
- fn bindgen_test_layout_LangGroupFontPrefs() {
- assert_eq!(
- ::std::mem::size_of::<LangGroupFontPrefs>(),
- 696usize,
- concat!("Size of: ", stringify!(LangGroupFontPrefs))
- );
- assert_eq!(
- ::std::mem::align_of::<LangGroupFontPrefs>(),
- 8usize,
- concat!("Alignment of ", stringify!(LangGroupFontPrefs))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mLangGroup as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mLangGroup)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mMinimumFontSize as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mMinimumFontSize)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultVariableFont as *const _
- as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mDefaultVariableFont)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultFixedFont as *const _
- as usize
- },
- 112usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mDefaultFixedFont)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultSerifFont as *const _
- as usize
- },
- 208usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mDefaultSerifFont)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultSansSerifFont as *const _
- as usize
- },
- 304usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mDefaultSansSerifFont)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultMonospaceFont as *const _
- as usize
- },
- 400usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mDefaultMonospaceFont)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultCursiveFont as *const _
- as usize
- },
- 496usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mDefaultCursiveFont)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultFantasyFont as *const _
- as usize
- },
- 592usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mDefaultFantasyFont)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<LangGroupFontPrefs>())).mNext as *const _ as usize
- },
- 688usize,
- concat!(
- "Offset of field: ",
- stringify!(LangGroupFontPrefs),
- "::",
- stringify!(mNext)
- )
- );
- }
- /// Some functionality that has historically lived on nsPresContext does not
- /// actually need to be per-document. This singleton class serves as a host
- /// for that functionality. We delegate to it from nsPresContext where
- /// appropriate, and use it standalone in some cases as well.
- #[repr(C)]
- pub struct StaticPresData {
- pub mLangService: *mut root::nsLanguageAtomService,
- pub mBorderWidthTable: [root::nscoord; 3usize],
- pub mStaticLangGroupFontPrefs: root::mozilla::LangGroupFontPrefs,
- }
- #[test]
- fn bindgen_test_layout_StaticPresData() {
- assert_eq!(
- ::std::mem::size_of::<StaticPresData>(),
- 720usize,
- concat!("Size of: ", stringify!(StaticPresData))
- );
- assert_eq!(
- ::std::mem::align_of::<StaticPresData>(),
- 8usize,
- concat!("Alignment of ", stringify!(StaticPresData))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<StaticPresData>())).mLangService as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(StaticPresData),
- "::",
- stringify!(mLangService)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<StaticPresData>())).mBorderWidthTable as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(StaticPresData),
- "::",
- stringify!(mBorderWidthTable)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<StaticPresData>())).mStaticLangGroupFontPrefs as *const _
- as usize
- },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(StaticPresData),
- "::",
- stringify!(mStaticLangGroupFontPrefs)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct AnimationEventDispatcher {
- _unused: [u8; 0],
- }
- impl Clone for AnimationEventDispatcher {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct EventStateManager {
- _unused: [u8; 0],
- }
- impl Clone for EventStateManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RestyleManager {
- _unused: [u8; 0],
- }
- impl Clone for RestyleManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct URLExtraData {
- pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
- pub mBaseURI: root::nsCOMPtr,
- pub mReferrer: root::nsCOMPtr,
- pub mPrincipal: root::nsCOMPtr,
- pub mIsChrome: bool,
- }
- pub type URLExtraData_HasThreadSafeRefCnt = root::mozilla::TrueType;
- extern "C" {
- #[link_name = "\u{1}_ZN7mozilla12URLExtraData6sDummyE"]
- pub static mut URLExtraData_sDummy:
- root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>;
- }
- #[test]
- fn bindgen_test_layout_URLExtraData() {
- assert_eq!(
- ::std::mem::size_of::<URLExtraData>(),
- 40usize,
- concat!("Size of: ", stringify!(URLExtraData))
- );
- assert_eq!(
- ::std::mem::align_of::<URLExtraData>(),
- 8usize,
- concat!("Alignment of ", stringify!(URLExtraData))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<URLExtraData>())).mRefCnt as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(URLExtraData),
- "::",
- stringify!(mRefCnt)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<URLExtraData>())).mBaseURI as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(URLExtraData),
- "::",
- stringify!(mBaseURI)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<URLExtraData>())).mReferrer as *const _ as usize },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(URLExtraData),
- "::",
- stringify!(mReferrer)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<URLExtraData>())).mPrincipal as *const _ as usize },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(URLExtraData),
- "::",
- stringify!(mPrincipal)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<URLExtraData>())).mIsChrome as *const _ as usize },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(URLExtraData),
- "::",
- stringify!(mIsChrome)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_StaticRefPtr_open0_URLExtraData_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>>(),
- 8usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>>(),
- 8usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>)
- )
- );
- }
- /// BlockingResourceBase
- /// Base class of resources that might block clients trying to acquire them.
- /// Does debugging and deadlock detection in DEBUG builds.
- #[repr(C)]
- #[derive(Debug)]
- pub struct BlockingResourceBase {
- pub _address: u8,
- }
- pub const BlockingResourceBase_BlockingResourceType_eMutex:
- root::mozilla::BlockingResourceBase_BlockingResourceType = 0;
- pub const BlockingResourceBase_BlockingResourceType_eReentrantMonitor:
- root::mozilla::BlockingResourceBase_BlockingResourceType = 1;
- pub const BlockingResourceBase_BlockingResourceType_eCondVar:
- root::mozilla::BlockingResourceBase_BlockingResourceType = 2;
- pub const BlockingResourceBase_BlockingResourceType_eRecursiveMutex:
- root::mozilla::BlockingResourceBase_BlockingResourceType = 3;
- pub type BlockingResourceBase_BlockingResourceType = u32;
- extern "C" {
- #[link_name = "\u{1}_ZN7mozilla20BlockingResourceBase17kResourceTypeNameE"]
- pub static mut BlockingResourceBase_kResourceTypeName:
- [*const ::std::os::raw::c_char; 0usize];
- }
- #[test]
- fn bindgen_test_layout_BlockingResourceBase() {
- assert_eq!(
- ::std::mem::size_of::<BlockingResourceBase>(),
- 1usize,
- concat!("Size of: ", stringify!(BlockingResourceBase))
- );
- assert_eq!(
- ::std::mem::align_of::<BlockingResourceBase>(),
- 1usize,
- concat!("Alignment of ", stringify!(BlockingResourceBase))
- );
- }
- /// OffTheBooksMutex is identical to Mutex, except that OffTheBooksMutex doesn't
- /// include leak checking. Sometimes you want to intentionally "leak" a mutex
- /// until shutdown; in these cases, OffTheBooksMutex is for you.
- #[repr(C)]
- #[derive(Debug)]
- pub struct OffTheBooksMutex {
- pub _base: root::mozilla::detail::MutexImpl,
- }
- #[test]
- fn bindgen_test_layout_OffTheBooksMutex() {
- assert_eq!(
- ::std::mem::size_of::<OffTheBooksMutex>(),
- 40usize,
- concat!("Size of: ", stringify!(OffTheBooksMutex))
- );
- assert_eq!(
- ::std::mem::align_of::<OffTheBooksMutex>(),
- 8usize,
- concat!("Alignment of ", stringify!(OffTheBooksMutex))
- );
- }
- /// Mutex
- /// When possible, use MutexAutoLock/MutexAutoUnlock to lock/unlock this
- /// mutex within a scope, instead of calling Lock/Unlock directly.
- #[repr(C)]
- #[derive(Debug)]
- pub struct Mutex {
- pub _base: root::mozilla::OffTheBooksMutex,
- }
- #[test]
- fn bindgen_test_layout_Mutex() {
- assert_eq!(
- ::std::mem::size_of::<Mutex>(),
- 40usize,
- concat!("Size of: ", stringify!(Mutex))
- );
- assert_eq!(
- ::std::mem::align_of::<Mutex>(),
- 8usize,
- concat!("Alignment of ", stringify!(Mutex))
- );
- }
pub mod image {
#[allow(unused_imports)]
use self::super::super::super::root;
@@ -8555,6 +6933,31 @@ pub mod root {
);
}
}
+ pub mod external {
+ #[allow(unused_imports)]
+ use self::super::super::super::root;
+ /// AtomicRefCounted<T> is like RefCounted<T>, with an atomically updated
+ /// reference counter.
+ ///
+ /// NOTE: Please do not use this class, use NS_INLINE_DECL_THREADSAFE_REFCOUNTING
+ /// instead.
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct AtomicRefCounted {
+ pub _address: u8,
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct SupportsWeakPtr {
+ pub _address: u8,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct WeakPtr {
+ pub _address: u8,
+ }
+ pub type WeakPtr_WeakReference = u8;
#[repr(C)]
pub struct CounterStyle__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
@@ -9652,6 +8055,84 @@ pub mod root {
pub const SERVO_PREF_ENABLED__webkit_mask_position_y: bool = true;
pub const SERVO_PREF_ENABLED__webkit_mask_repeat: bool = true;
pub const SERVO_PREF_ENABLED__webkit_mask_size: bool = true;
+ pub type ComputedKeyframeValues =
+ root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>;
+ #[test]
+ fn __bindgen_test_layout_DefaultDelete_open0_RawServoStyleSet_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_DefaultDelete_open0_RawServoAuthorStyles_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_DefaultDelete_open0_RawServoSelectorList_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_DefaultDelete_open0_RawServoSourceSizeList_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ }
#[repr(C)]
#[derive(Debug)]
pub struct AnimationValue {
@@ -10120,6 +8601,143 @@ pub mod root {
pub mPromise: root::RefPtr<PromiseType>,
pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<PromiseType>>,
}
+ /// Superclass for data common to CSSStyleSheet and ServoStyleSheet.
+ #[repr(C)]
+ pub struct StyleSheet {
+ pub _base: root::nsICSSLoaderObserver,
+ pub _base_1: root::nsWrapperCache,
+ pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
+ pub mParent: *mut root::mozilla::StyleSheet,
+ pub mTitle: ::nsstring::nsStringRepr,
+ pub mDocument: *mut root::nsIDocument,
+ pub mOwningNode: *mut root::nsINode,
+ pub mOwnerRule: *mut root::mozilla::dom::CSSImportRule,
+ pub mMedia: root::RefPtr<root::mozilla::dom::MediaList>,
+ pub mNext: root::RefPtr<root::mozilla::StyleSheet>,
+ pub mParsingMode: root::mozilla::css::SheetParsingMode,
+ pub mDisabled: bool,
+ pub mDirtyFlags: u8,
+ pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode,
+ pub mInner: *mut root::mozilla::StyleSheetInfo,
+ pub mStyleSets: root::nsTArray<*mut root::mozilla::ServoStyleSet>,
+ }
+ pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct StyleSheet_cycleCollection {
+ pub _base: root::nsXPCOMCycleCollectionParticipant,
+ }
+ #[test]
+ fn bindgen_test_layout_StyleSheet_cycleCollection() {
+ assert_eq!(
+ ::std::mem::size_of::<StyleSheet_cycleCollection>(),
+ 16usize,
+ concat!("Size of: ", stringify!(StyleSheet_cycleCollection))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<StyleSheet_cycleCollection>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(StyleSheet_cycleCollection))
+ );
+ }
+ impl Clone for StyleSheet_cycleCollection {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const StyleSheet_ChangeType_Added: root::mozilla::StyleSheet_ChangeType = 0;
+ pub const StyleSheet_ChangeType_Removed: root::mozilla::StyleSheet_ChangeType = 1;
+ pub const StyleSheet_ChangeType_ApplicableStateChanged:
+ root::mozilla::StyleSheet_ChangeType = 2;
+ pub const StyleSheet_ChangeType_RuleAdded: root::mozilla::StyleSheet_ChangeType = 3;
+ pub const StyleSheet_ChangeType_RuleRemoved: root::mozilla::StyleSheet_ChangeType = 4;
+ pub const StyleSheet_ChangeType_RuleChanged: root::mozilla::StyleSheet_ChangeType = 5;
+ /// The different changes that a stylesheet may go through.
+ ///
+ /// Used by the StyleSets in order to handle more efficiently some kinds of
+ /// changes.
+ pub type StyleSheet_ChangeType = i32;
+ pub const StyleSheet_DocumentAssociationMode_OwnedByDocument:
+ root::mozilla::StyleSheet_DocumentAssociationMode = 0;
+ pub const StyleSheet_DocumentAssociationMode_NotOwnedByDocument:
+ root::mozilla::StyleSheet_DocumentAssociationMode = 1;
+ pub type StyleSheet_DocumentAssociationMode = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct StyleSheet_ChildSheetListBuilder {
+ pub sheetSlot: *mut root::RefPtr<root::mozilla::StyleSheet>,
+ pub parent: *mut root::mozilla::StyleSheet,
+ }
+ #[test]
+ fn bindgen_test_layout_StyleSheet_ChildSheetListBuilder() {
+ assert_eq!(
+ ::std::mem::size_of::<StyleSheet_ChildSheetListBuilder>(),
+ 16usize,
+ concat!("Size of: ", stringify!(StyleSheet_ChildSheetListBuilder))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<StyleSheet_ChildSheetListBuilder>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(StyleSheet_ChildSheetListBuilder)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<StyleSheet_ChildSheetListBuilder>())).sheetSlot
+ as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(StyleSheet_ChildSheetListBuilder),
+ "::",
+ stringify!(sheetSlot)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<StyleSheet_ChildSheetListBuilder>())).parent as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(StyleSheet_ChildSheetListBuilder),
+ "::",
+ stringify!(parent)
+ )
+ );
+ }
+ impl Clone for StyleSheet_ChildSheetListBuilder {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const StyleSheet_dirtyFlagAttributes_FORCED_UNIQUE_INNER:
+ root::mozilla::StyleSheet_dirtyFlagAttributes = 1;
+ pub const StyleSheet_dirtyFlagAttributes_MODIFIED_RULES:
+ root::mozilla::StyleSheet_dirtyFlagAttributes = 2;
+ pub type StyleSheet_dirtyFlagAttributes = u32;
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla10StyleSheet21_cycleCollectorGlobalE"]
+ pub static mut StyleSheet__cycleCollectorGlobal:
+ root::mozilla::StyleSheet_cycleCollection;
+ }
+ #[test]
+ fn bindgen_test_layout_StyleSheet() {
+ assert_eq!(
+ ::std::mem::size_of::<StyleSheet>(),
+ 128usize,
+ concat!("Size of: ", stringify!(StyleSheet))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<StyleSheet>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(StyleSheet))
+ );
+ }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ServoCSSRuleList {
@@ -10251,6 +8869,307 @@ pub mod root {
)
);
}
+ /// Event messages
+ pub type EventMessageType = u16;
+ pub const EventMessage_eVoidEvent: root::mozilla::EventMessage = 0;
+ pub const EventMessage_eAllEvents: root::mozilla::EventMessage = 1;
+ pub const EventMessage_eWindowClose: root::mozilla::EventMessage = 2;
+ pub const EventMessage_eKeyPress: root::mozilla::EventMessage = 3;
+ pub const EventMessage_eKeyUp: root::mozilla::EventMessage = 4;
+ pub const EventMessage_eKeyDown: root::mozilla::EventMessage = 5;
+ pub const EventMessage_eKeyDownOnPlugin: root::mozilla::EventMessage = 6;
+ pub const EventMessage_eKeyUpOnPlugin: root::mozilla::EventMessage = 7;
+ pub const EventMessage_eAccessKeyNotFound: root::mozilla::EventMessage = 8;
+ pub const EventMessage_eResize: root::mozilla::EventMessage = 9;
+ pub const EventMessage_eScroll: root::mozilla::EventMessage = 10;
+ pub const EventMessage_eInstall: root::mozilla::EventMessage = 11;
+ pub const EventMessage_eAppInstalled: root::mozilla::EventMessage = 12;
+ pub const EventMessage_ePluginActivate: root::mozilla::EventMessage = 13;
+ pub const EventMessage_ePluginFocus: root::mozilla::EventMessage = 14;
+ pub const EventMessage_eOffline: root::mozilla::EventMessage = 15;
+ pub const EventMessage_eOnline: root::mozilla::EventMessage = 16;
+ pub const EventMessage_eLanguageChange: root::mozilla::EventMessage = 17;
+ pub const EventMessage_eMouseMove: root::mozilla::EventMessage = 18;
+ pub const EventMessage_eMouseUp: root::mozilla::EventMessage = 19;
+ pub const EventMessage_eMouseDown: root::mozilla::EventMessage = 20;
+ pub const EventMessage_eMouseEnterIntoWidget: root::mozilla::EventMessage = 21;
+ pub const EventMessage_eMouseExitFromWidget: root::mozilla::EventMessage = 22;
+ pub const EventMessage_eMouseDoubleClick: root::mozilla::EventMessage = 23;
+ pub const EventMessage_eMouseClick: root::mozilla::EventMessage = 24;
+ pub const EventMessage_eMouseAuxClick: root::mozilla::EventMessage = 25;
+ pub const EventMessage_eMouseActivate: root::mozilla::EventMessage = 26;
+ pub const EventMessage_eMouseOver: root::mozilla::EventMessage = 27;
+ pub const EventMessage_eMouseOut: root::mozilla::EventMessage = 28;
+ pub const EventMessage_eMouseHitTest: root::mozilla::EventMessage = 29;
+ pub const EventMessage_eMouseEnter: root::mozilla::EventMessage = 30;
+ pub const EventMessage_eMouseLeave: root::mozilla::EventMessage = 31;
+ pub const EventMessage_eMouseTouchDrag: root::mozilla::EventMessage = 32;
+ pub const EventMessage_eMouseLongTap: root::mozilla::EventMessage = 33;
+ pub const EventMessage_eMouseEventFirst: root::mozilla::EventMessage = 18;
+ pub const EventMessage_eMouseEventLast: root::mozilla::EventMessage = 33;
+ pub const EventMessage_ePointerMove: root::mozilla::EventMessage = 34;
+ pub const EventMessage_ePointerUp: root::mozilla::EventMessage = 35;
+ pub const EventMessage_ePointerDown: root::mozilla::EventMessage = 36;
+ pub const EventMessage_ePointerOver: root::mozilla::EventMessage = 37;
+ pub const EventMessage_ePointerOut: root::mozilla::EventMessage = 38;
+ pub const EventMessage_ePointerEnter: root::mozilla::EventMessage = 39;
+ pub const EventMessage_ePointerLeave: root::mozilla::EventMessage = 40;
+ pub const EventMessage_ePointerCancel: root::mozilla::EventMessage = 41;
+ pub const EventMessage_ePointerGotCapture: root::mozilla::EventMessage = 42;
+ pub const EventMessage_ePointerLostCapture: root::mozilla::EventMessage = 43;
+ pub const EventMessage_ePointerEventFirst: root::mozilla::EventMessage = 34;
+ pub const EventMessage_ePointerEventLast: root::mozilla::EventMessage = 43;
+ pub const EventMessage_eContextMenu: root::mozilla::EventMessage = 44;
+ pub const EventMessage_eLoad: root::mozilla::EventMessage = 45;
+ pub const EventMessage_eUnload: root::mozilla::EventMessage = 46;
+ pub const EventMessage_eHashChange: root::mozilla::EventMessage = 47;
+ pub const EventMessage_eImageAbort: root::mozilla::EventMessage = 48;
+ pub const EventMessage_eLoadError: root::mozilla::EventMessage = 49;
+ pub const EventMessage_eLoadEnd: root::mozilla::EventMessage = 50;
+ pub const EventMessage_ePopState: root::mozilla::EventMessage = 51;
+ pub const EventMessage_eStorage: root::mozilla::EventMessage = 52;
+ pub const EventMessage_eBeforeUnload: root::mozilla::EventMessage = 53;
+ pub const EventMessage_eReadyStateChange: root::mozilla::EventMessage = 54;
+ pub const EventMessage_eFormSubmit: root::mozilla::EventMessage = 55;
+ pub const EventMessage_eFormReset: root::mozilla::EventMessage = 56;
+ pub const EventMessage_eFormChange: root::mozilla::EventMessage = 57;
+ pub const EventMessage_eFormSelect: root::mozilla::EventMessage = 58;
+ pub const EventMessage_eFormInvalid: root::mozilla::EventMessage = 59;
+ pub const EventMessage_eFormCheckboxStateChange: root::mozilla::EventMessage = 60;
+ pub const EventMessage_eFormRadioStateChange: root::mozilla::EventMessage = 61;
+ pub const EventMessage_eFocus: root::mozilla::EventMessage = 62;
+ pub const EventMessage_eBlur: root::mozilla::EventMessage = 63;
+ pub const EventMessage_eFocusIn: root::mozilla::EventMessage = 64;
+ pub const EventMessage_eFocusOut: root::mozilla::EventMessage = 65;
+ pub const EventMessage_eDragEnter: root::mozilla::EventMessage = 66;
+ pub const EventMessage_eDragOver: root::mozilla::EventMessage = 67;
+ pub const EventMessage_eDragExit: root::mozilla::EventMessage = 68;
+ pub const EventMessage_eDrag: root::mozilla::EventMessage = 69;
+ pub const EventMessage_eDragEnd: root::mozilla::EventMessage = 70;
+ pub const EventMessage_eDragStart: root::mozilla::EventMessage = 71;
+ pub const EventMessage_eDrop: root::mozilla::EventMessage = 72;
+ pub const EventMessage_eDragLeave: root::mozilla::EventMessage = 73;
+ pub const EventMessage_eDragDropEventFirst: root::mozilla::EventMessage = 66;
+ pub const EventMessage_eDragDropEventLast: root::mozilla::EventMessage = 73;
+ pub const EventMessage_eXULPopupShowing: root::mozilla::EventMessage = 74;
+ pub const EventMessage_eXULPopupShown: root::mozilla::EventMessage = 75;
+ pub const EventMessage_eXULPopupPositioned: root::mozilla::EventMessage = 76;
+ pub const EventMessage_eXULPopupHiding: root::mozilla::EventMessage = 77;
+ pub const EventMessage_eXULPopupHidden: root::mozilla::EventMessage = 78;
+ pub const EventMessage_eXULBroadcast: root::mozilla::EventMessage = 79;
+ pub const EventMessage_eXULCommandUpdate: root::mozilla::EventMessage = 80;
+ pub const EventMessage_eLegacyMouseLineOrPageScroll: root::mozilla::EventMessage = 81;
+ pub const EventMessage_eLegacyMousePixelScroll: root::mozilla::EventMessage = 82;
+ pub const EventMessage_eScrollPortUnderflow: root::mozilla::EventMessage = 83;
+ pub const EventMessage_eScrollPortOverflow: root::mozilla::EventMessage = 84;
+ pub const EventMessage_eLegacySubtreeModified: root::mozilla::EventMessage = 85;
+ pub const EventMessage_eLegacyNodeInserted: root::mozilla::EventMessage = 86;
+ pub const EventMessage_eLegacyNodeRemoved: root::mozilla::EventMessage = 87;
+ pub const EventMessage_eLegacyNodeRemovedFromDocument: root::mozilla::EventMessage = 88;
+ pub const EventMessage_eLegacyNodeInsertedIntoDocument: root::mozilla::EventMessage = 89;
+ pub const EventMessage_eLegacyAttrModified: root::mozilla::EventMessage = 90;
+ pub const EventMessage_eLegacyCharacterDataModified: root::mozilla::EventMessage = 91;
+ pub const EventMessage_eLegacyMutationEventFirst: root::mozilla::EventMessage = 85;
+ pub const EventMessage_eLegacyMutationEventLast: root::mozilla::EventMessage = 91;
+ pub const EventMessage_eUnidentifiedEvent: root::mozilla::EventMessage = 92;
+ pub const EventMessage_eCompositionStart: root::mozilla::EventMessage = 93;
+ pub const EventMessage_eCompositionEnd: root::mozilla::EventMessage = 94;
+ pub const EventMessage_eCompositionUpdate: root::mozilla::EventMessage = 95;
+ pub const EventMessage_eCompositionChange: root::mozilla::EventMessage = 96;
+ pub const EventMessage_eCompositionCommitAsIs: root::mozilla::EventMessage = 97;
+ pub const EventMessage_eCompositionCommit: root::mozilla::EventMessage = 98;
+ pub const EventMessage_eCompositionCommitRequestHandled: root::mozilla::EventMessage = 99;
+ pub const EventMessage_eLegacyDOMActivate: root::mozilla::EventMessage = 100;
+ pub const EventMessage_eLegacyDOMFocusIn: root::mozilla::EventMessage = 101;
+ pub const EventMessage_eLegacyDOMFocusOut: root::mozilla::EventMessage = 102;
+ pub const EventMessage_ePageShow: root::mozilla::EventMessage = 103;
+ pub const EventMessage_ePageHide: root::mozilla::EventMessage = 104;
+ pub const EventMessage_eSVGLoad: root::mozilla::EventMessage = 105;
+ pub const EventMessage_eSVGUnload: root::mozilla::EventMessage = 106;
+ pub const EventMessage_eSVGResize: root::mozilla::EventMessage = 107;
+ pub const EventMessage_eSVGScroll: root::mozilla::EventMessage = 108;
+ pub const EventMessage_eSVGZoom: root::mozilla::EventMessage = 109;
+ pub const EventMessage_eXULCommand: root::mozilla::EventMessage = 110;
+ pub const EventMessage_eCopy: root::mozilla::EventMessage = 111;
+ pub const EventMessage_eCut: root::mozilla::EventMessage = 112;
+ pub const EventMessage_ePaste: root::mozilla::EventMessage = 113;
+ pub const EventMessage_ePasteNoFormatting: root::mozilla::EventMessage = 114;
+ pub const EventMessage_eQuerySelectedText: root::mozilla::EventMessage = 115;
+ pub const EventMessage_eQueryTextContent: root::mozilla::EventMessage = 116;
+ pub const EventMessage_eQueryCaretRect: root::mozilla::EventMessage = 117;
+ pub const EventMessage_eQueryTextRect: root::mozilla::EventMessage = 118;
+ pub const EventMessage_eQueryTextRectArray: root::mozilla::EventMessage = 119;
+ pub const EventMessage_eQueryEditorRect: root::mozilla::EventMessage = 120;
+ pub const EventMessage_eQueryContentState: root::mozilla::EventMessage = 121;
+ pub const EventMessage_eQuerySelectionAsTransferable: root::mozilla::EventMessage = 122;
+ pub const EventMessage_eQueryCharacterAtPoint: root::mozilla::EventMessage = 123;
+ pub const EventMessage_eQueryDOMWidgetHittest: root::mozilla::EventMessage = 124;
+ pub const EventMessage_eLoadStart: root::mozilla::EventMessage = 125;
+ pub const EventMessage_eProgress: root::mozilla::EventMessage = 126;
+ pub const EventMessage_eSuspend: root::mozilla::EventMessage = 127;
+ pub const EventMessage_eEmptied: root::mozilla::EventMessage = 128;
+ pub const EventMessage_eStalled: root::mozilla::EventMessage = 129;
+ pub const EventMessage_ePlay: root::mozilla::EventMessage = 130;
+ pub const EventMessage_ePause: root::mozilla::EventMessage = 131;
+ pub const EventMessage_eLoadedMetaData: root::mozilla::EventMessage = 132;
+ pub const EventMessage_eLoadedData: root::mozilla::EventMessage = 133;
+ pub const EventMessage_eWaiting: root::mozilla::EventMessage = 134;
+ pub const EventMessage_ePlaying: root::mozilla::EventMessage = 135;
+ pub const EventMessage_eCanPlay: root::mozilla::EventMessage = 136;
+ pub const EventMessage_eCanPlayThrough: root::mozilla::EventMessage = 137;
+ pub const EventMessage_eSeeking: root::mozilla::EventMessage = 138;
+ pub const EventMessage_eSeeked: root::mozilla::EventMessage = 139;
+ pub const EventMessage_eTimeUpdate: root::mozilla::EventMessage = 140;
+ pub const EventMessage_eEnded: root::mozilla::EventMessage = 141;
+ pub const EventMessage_eRateChange: root::mozilla::EventMessage = 142;
+ pub const EventMessage_eDurationChange: root::mozilla::EventMessage = 143;
+ pub const EventMessage_eVolumeChange: root::mozilla::EventMessage = 144;
+ pub const EventMessage_eAfterPaint: root::mozilla::EventMessage = 145;
+ pub const EventMessage_eSwipeGestureMayStart: root::mozilla::EventMessage = 146;
+ pub const EventMessage_eSwipeGestureStart: root::mozilla::EventMessage = 147;
+ pub const EventMessage_eSwipeGestureUpdate: root::mozilla::EventMessage = 148;
+ pub const EventMessage_eSwipeGestureEnd: root::mozilla::EventMessage = 149;
+ pub const EventMessage_eSwipeGesture: root::mozilla::EventMessage = 150;
+ pub const EventMessage_eMagnifyGestureStart: root::mozilla::EventMessage = 151;
+ pub const EventMessage_eMagnifyGestureUpdate: root::mozilla::EventMessage = 152;
+ pub const EventMessage_eMagnifyGesture: root::mozilla::EventMessage = 153;
+ pub const EventMessage_eRotateGestureStart: root::mozilla::EventMessage = 154;
+ pub const EventMessage_eRotateGestureUpdate: root::mozilla::EventMessage = 155;
+ pub const EventMessage_eRotateGesture: root::mozilla::EventMessage = 156;
+ pub const EventMessage_eTapGesture: root::mozilla::EventMessage = 157;
+ pub const EventMessage_ePressTapGesture: root::mozilla::EventMessage = 158;
+ pub const EventMessage_eEdgeUIStarted: root::mozilla::EventMessage = 159;
+ pub const EventMessage_eEdgeUICanceled: root::mozilla::EventMessage = 160;
+ pub const EventMessage_eEdgeUICompleted: root::mozilla::EventMessage = 161;
+ pub const EventMessage_ePluginInputEvent: root::mozilla::EventMessage = 162;
+ pub const EventMessage_eSetSelection: root::mozilla::EventMessage = 163;
+ pub const EventMessage_eContentCommandCut: root::mozilla::EventMessage = 164;
+ pub const EventMessage_eContentCommandCopy: root::mozilla::EventMessage = 165;
+ pub const EventMessage_eContentCommandPaste: root::mozilla::EventMessage = 166;
+ pub const EventMessage_eContentCommandDelete: root::mozilla::EventMessage = 167;
+ pub const EventMessage_eContentCommandUndo: root::mozilla::EventMessage = 168;
+ pub const EventMessage_eContentCommandRedo: root::mozilla::EventMessage = 169;
+ pub const EventMessage_eContentCommandPasteTransferable: root::mozilla::EventMessage = 170;
+ pub const EventMessage_eContentCommandLookUpDictionary: root::mozilla::EventMessage = 171;
+ pub const EventMessage_eContentCommandScroll: root::mozilla::EventMessage = 172;
+ pub const EventMessage_eGestureNotify: root::mozilla::EventMessage = 173;
+ pub const EventMessage_eScrolledAreaChanged: root::mozilla::EventMessage = 174;
+ pub const EventMessage_eTransitionStart: root::mozilla::EventMessage = 175;
+ pub const EventMessage_eTransitionRun: root::mozilla::EventMessage = 176;
+ pub const EventMessage_eTransitionEnd: root::mozilla::EventMessage = 177;
+ pub const EventMessage_eTransitionCancel: root::mozilla::EventMessage = 178;
+ pub const EventMessage_eAnimationStart: root::mozilla::EventMessage = 179;
+ pub const EventMessage_eAnimationEnd: root::mozilla::EventMessage = 180;
+ pub const EventMessage_eAnimationIteration: root::mozilla::EventMessage = 181;
+ pub const EventMessage_eAnimationCancel: root::mozilla::EventMessage = 182;
+ pub const EventMessage_eWebkitTransitionEnd: root::mozilla::EventMessage = 183;
+ pub const EventMessage_eWebkitAnimationStart: root::mozilla::EventMessage = 184;
+ pub const EventMessage_eWebkitAnimationEnd: root::mozilla::EventMessage = 185;
+ pub const EventMessage_eWebkitAnimationIteration: root::mozilla::EventMessage = 186;
+ pub const EventMessage_eSMILBeginEvent: root::mozilla::EventMessage = 187;
+ pub const EventMessage_eSMILEndEvent: root::mozilla::EventMessage = 188;
+ pub const EventMessage_eSMILRepeatEvent: root::mozilla::EventMessage = 189;
+ pub const EventMessage_eAudioProcess: root::mozilla::EventMessage = 190;
+ pub const EventMessage_eAudioComplete: root::mozilla::EventMessage = 191;
+ pub const EventMessage_eBeforeScriptExecute: root::mozilla::EventMessage = 192;
+ pub const EventMessage_eAfterScriptExecute: root::mozilla::EventMessage = 193;
+ pub const EventMessage_eBeforePrint: root::mozilla::EventMessage = 194;
+ pub const EventMessage_eAfterPrint: root::mozilla::EventMessage = 195;
+ pub const EventMessage_eMessage: root::mozilla::EventMessage = 196;
+ pub const EventMessage_eMessageError: root::mozilla::EventMessage = 197;
+ pub const EventMessage_eOpen: root::mozilla::EventMessage = 198;
+ pub const EventMessage_eDeviceOrientation: root::mozilla::EventMessage = 199;
+ pub const EventMessage_eAbsoluteDeviceOrientation: root::mozilla::EventMessage = 200;
+ pub const EventMessage_eDeviceMotion: root::mozilla::EventMessage = 201;
+ pub const EventMessage_eDeviceProximity: root::mozilla::EventMessage = 202;
+ pub const EventMessage_eUserProximity: root::mozilla::EventMessage = 203;
+ pub const EventMessage_eDeviceLight: root::mozilla::EventMessage = 204;
+ pub const EventMessage_eVRDisplayActivate: root::mozilla::EventMessage = 205;
+ pub const EventMessage_eVRDisplayDeactivate: root::mozilla::EventMessage = 206;
+ pub const EventMessage_eVRDisplayConnect: root::mozilla::EventMessage = 207;
+ pub const EventMessage_eVRDisplayDisconnect: root::mozilla::EventMessage = 208;
+ pub const EventMessage_eVRDisplayPresentChange: root::mozilla::EventMessage = 209;
+ pub const EventMessage_eShow: root::mozilla::EventMessage = 210;
+ pub const EventMessage_eFullscreenChange: root::mozilla::EventMessage = 211;
+ pub const EventMessage_eFullscreenError: root::mozilla::EventMessage = 212;
+ pub const EventMessage_eMozFullscreenChange: root::mozilla::EventMessage = 213;
+ pub const EventMessage_eMozFullscreenError: root::mozilla::EventMessage = 214;
+ pub const EventMessage_eTouchStart: root::mozilla::EventMessage = 215;
+ pub const EventMessage_eTouchMove: root::mozilla::EventMessage = 216;
+ pub const EventMessage_eTouchEnd: root::mozilla::EventMessage = 217;
+ pub const EventMessage_eTouchCancel: root::mozilla::EventMessage = 218;
+ pub const EventMessage_eTouchPointerCancel: root::mozilla::EventMessage = 219;
+ pub const EventMessage_ePointerLockChange: root::mozilla::EventMessage = 220;
+ pub const EventMessage_ePointerLockError: root::mozilla::EventMessage = 221;
+ pub const EventMessage_eMozPointerLockChange: root::mozilla::EventMessage = 222;
+ pub const EventMessage_eMozPointerLockError: root::mozilla::EventMessage = 223;
+ pub const EventMessage_eWheel: root::mozilla::EventMessage = 224;
+ pub const EventMessage_eWheelOperationStart: root::mozilla::EventMessage = 225;
+ pub const EventMessage_eWheelOperationEnd: root::mozilla::EventMessage = 226;
+ pub const EventMessage_eTimeChange: root::mozilla::EventMessage = 227;
+ pub const EventMessage_eNetworkUpload: root::mozilla::EventMessage = 228;
+ pub const EventMessage_eNetworkDownload: root::mozilla::EventMessage = 229;
+ pub const EventMessage_eMediaRecorderDataAvailable: root::mozilla::EventMessage = 230;
+ pub const EventMessage_eMediaRecorderWarning: root::mozilla::EventMessage = 231;
+ pub const EventMessage_eMediaRecorderStop: root::mozilla::EventMessage = 232;
+ pub const EventMessage_eGamepadButtonDown: root::mozilla::EventMessage = 233;
+ pub const EventMessage_eGamepadButtonUp: root::mozilla::EventMessage = 234;
+ pub const EventMessage_eGamepadAxisMove: root::mozilla::EventMessage = 235;
+ pub const EventMessage_eGamepadConnected: root::mozilla::EventMessage = 236;
+ pub const EventMessage_eGamepadDisconnected: root::mozilla::EventMessage = 237;
+ pub const EventMessage_eGamepadEventFirst: root::mozilla::EventMessage = 233;
+ pub const EventMessage_eGamepadEventLast: root::mozilla::EventMessage = 237;
+ pub const EventMessage_eEditorInput: root::mozilla::EventMessage = 238;
+ pub const EventMessage_eSelectStart: root::mozilla::EventMessage = 239;
+ pub const EventMessage_eSelectionChange: root::mozilla::EventMessage = 240;
+ pub const EventMessage_eVisibilityChange: root::mozilla::EventMessage = 241;
+ pub const EventMessage_eToggle: root::mozilla::EventMessage = 242;
+ pub const EventMessage_eClose: root::mozilla::EventMessage = 243;
+ pub const EventMessage_eEventMessage_MaxValue: root::mozilla::EventMessage = 244;
+ pub type EventMessage = u16;
+ /// Event class IDs
+ pub type EventClassIDType = u8;
+ pub const EventClassID_eBasicEventClass: root::mozilla::EventClassID = 0;
+ pub const EventClassID_eGUIEventClass: root::mozilla::EventClassID = 1;
+ pub const EventClassID_eInputEventClass: root::mozilla::EventClassID = 2;
+ pub const EventClassID_eUIEventClass: root::mozilla::EventClassID = 3;
+ pub const EventClassID_eKeyboardEventClass: root::mozilla::EventClassID = 4;
+ pub const EventClassID_eCompositionEventClass: root::mozilla::EventClassID = 5;
+ pub const EventClassID_eQueryContentEventClass: root::mozilla::EventClassID = 6;
+ pub const EventClassID_eSelectionEventClass: root::mozilla::EventClassID = 7;
+ pub const EventClassID_eEditorInputEventClass: root::mozilla::EventClassID = 8;
+ pub const EventClassID_eMouseEventBaseClass: root::mozilla::EventClassID = 9;
+ pub const EventClassID_eMouseEventClass: root::mozilla::EventClassID = 10;
+ pub const EventClassID_eDragEventClass: root::mozilla::EventClassID = 11;
+ pub const EventClassID_eMouseScrollEventClass: root::mozilla::EventClassID = 12;
+ pub const EventClassID_eWheelEventClass: root::mozilla::EventClassID = 13;
+ pub const EventClassID_ePointerEventClass: root::mozilla::EventClassID = 14;
+ pub const EventClassID_eGestureNotifyEventClass: root::mozilla::EventClassID = 15;
+ pub const EventClassID_eSimpleGestureEventClass: root::mozilla::EventClassID = 16;
+ pub const EventClassID_eTouchEventClass: root::mozilla::EventClassID = 17;
+ pub const EventClassID_eScrollPortEventClass: root::mozilla::EventClassID = 18;
+ pub const EventClassID_eScrollAreaEventClass: root::mozilla::EventClassID = 19;
+ pub const EventClassID_eFormEventClass: root::mozilla::EventClassID = 20;
+ pub const EventClassID_eClipboardEventClass: root::mozilla::EventClassID = 21;
+ pub const EventClassID_eFocusEventClass: root::mozilla::EventClassID = 22;
+ pub const EventClassID_eTransitionEventClass: root::mozilla::EventClassID = 23;
+ pub const EventClassID_eAnimationEventClass: root::mozilla::EventClassID = 24;
+ pub const EventClassID_eSMILTimeEventClass: root::mozilla::EventClassID = 25;
+ pub const EventClassID_eCommandEventClass: root::mozilla::EventClassID = 26;
+ pub const EventClassID_eContentCommandEventClass: root::mozilla::EventClassID = 27;
+ pub const EventClassID_ePluginEventClass: root::mozilla::EventClassID = 28;
+ pub const EventClassID_eMutationEventClass: root::mozilla::EventClassID = 29;
+ pub type EventClassID = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct EventListenerManager {
+ _unused: [u8; 0],
+ }
+ impl Clone for EventListenerManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
#[repr(C)]
#[derive(Debug)]
pub struct URIPrincipalReferrerPolicyAndCORSModeHashKey {
@@ -10630,6 +9549,1140 @@ pub mod root {
);
}
#[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct DOMEventTargetHelper {
+ _unused: [u8; 0],
+ }
+ impl Clone for DOMEventTargetHelper {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct SegmentedVector_SegmentImpl_Storage {
+ pub mBuf: root::__BindgenUnionField<*mut ::std::os::raw::c_char>,
+ pub mAlign: root::__BindgenUnionField<u8>,
+ pub bindgen_union_field: u64,
+ }
+ pub type SegmentedVector_Segment = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct SegmentedVector_IterImpl {
+ pub mSegment: *mut root::mozilla::SegmentedVector_Segment,
+ pub mIndex: usize,
+ }
+ pub type AtomArray = root::nsTArray<root::RefPtr<root::nsAtom>>;
+ /// EventStates is the class used to represent the event states of nsIContent
+ /// instances. These states are calculated by IntrinsicState() and
+ /// ContentStatesChanged() has to be called when one of them changes thus
+ /// informing the layout/style engine of the change.
+ /// Event states are associated with pseudo-classes.
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct EventStates {
+ pub mStates: root::mozilla::EventStates_InternalType,
+ }
+ pub type EventStates_InternalType = u64;
+ pub type EventStates_ServoType = u64;
+ #[test]
+ fn bindgen_test_layout_EventStates() {
+ assert_eq!(
+ ::std::mem::size_of::<EventStates>(),
+ 8usize,
+ concat!("Size of: ", stringify!(EventStates))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<EventStates>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(EventStates))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<EventStates>())).mStates as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(EventStates),
+ "::",
+ stringify!(mStates)
+ )
+ );
+ }
+ impl Clone for EventStates {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const ArenaObjectID_eArenaObjectID_DummyBeforeFirstObjectID:
+ root::mozilla::ArenaObjectID = 171;
+ pub const ArenaObjectID_eArenaObjectID_GeckoComputedStyle: root::mozilla::ArenaObjectID =
+ 172;
+ pub const ArenaObjectID_eArenaObjectID_nsLineBox: root::mozilla::ArenaObjectID = 173;
+ pub const ArenaObjectID_eArenaObjectID_nsRuleNode: root::mozilla::ArenaObjectID = 174;
+ pub const ArenaObjectID_eArenaObjectID_DisplayItemData: root::mozilla::ArenaObjectID = 175;
+ pub const ArenaObjectID_eArenaObjectID_nsInheritedStyleData: root::mozilla::ArenaObjectID =
+ 176;
+ pub const ArenaObjectID_eArenaObjectID_nsResetStyleData: root::mozilla::ArenaObjectID = 177;
+ pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleData:
+ root::mozilla::ArenaObjectID = 178;
+ pub const ArenaObjectID_eArenaObjectID_nsConditionalResetStyleDataEntry:
+ root::mozilla::ArenaObjectID = 179;
+ pub const ArenaObjectID_eArenaObjectID_nsFrameList: root::mozilla::ArenaObjectID = 180;
+ pub const ArenaObjectID_eArenaObjectID_CustomCounterStyle: root::mozilla::ArenaObjectID =
+ 181;
+ pub const ArenaObjectID_eArenaObjectID_DependentBuiltinCounterStyle:
+ root::mozilla::ArenaObjectID = 182;
+ pub const ArenaObjectID_eArenaObjectID_nsCallbackEventRequest:
+ root::mozilla::ArenaObjectID = 183;
+ pub const ArenaObjectID_eArenaObjectID_nsIntervalSet_Interval:
+ root::mozilla::ArenaObjectID = 184;
+ pub const ArenaObjectID_eArenaObjectID_CellData: root::mozilla::ArenaObjectID = 185;
+ pub const ArenaObjectID_eArenaObjectID_BCCellData: root::mozilla::ArenaObjectID = 186;
+ pub const ArenaObjectID_eArenaObjectID_COUNT: root::mozilla::ArenaObjectID = 187;
+ pub type ArenaObjectID = u32;
+ pub const MediaFeatureChangeReason_ViewportChange: root::mozilla::MediaFeatureChangeReason =
+ 1;
+ pub const MediaFeatureChangeReason_ZoomChange: root::mozilla::MediaFeatureChangeReason = 2;
+ pub const MediaFeatureChangeReason_MinFontSizeChange:
+ root::mozilla::MediaFeatureChangeReason = 4;
+ pub const MediaFeatureChangeReason_ResolutionChange:
+ root::mozilla::MediaFeatureChangeReason = 8;
+ pub const MediaFeatureChangeReason_MediumChange: root::mozilla::MediaFeatureChangeReason =
+ 16;
+ pub const MediaFeatureChangeReason_SizeModeChange: root::mozilla::MediaFeatureChangeReason =
+ 32;
+ pub const MediaFeatureChangeReason_SystemMetricsChange:
+ root::mozilla::MediaFeatureChangeReason = 64;
+ pub const MediaFeatureChangeReason_DeviceSizeIsPageSizeChange:
+ root::mozilla::MediaFeatureChangeReason = 128;
+ pub const MediaFeatureChangeReason_DisplayModeChange:
+ root::mozilla::MediaFeatureChangeReason = 256;
+ pub type MediaFeatureChangeReason = i32;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct MediaFeatureChange {
+ pub mRestyleHint: root::nsRestyleHint,
+ pub mChangeHint: root::nsChangeHint,
+ pub mReason: root::mozilla::MediaFeatureChangeReason,
+ }
+ #[test]
+ fn bindgen_test_layout_MediaFeatureChange() {
+ assert_eq!(
+ ::std::mem::size_of::<MediaFeatureChange>(),
+ 12usize,
+ concat!("Size of: ", stringify!(MediaFeatureChange))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<MediaFeatureChange>(),
+ 4usize,
+ concat!("Alignment of ", stringify!(MediaFeatureChange))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<MediaFeatureChange>())).mRestyleHint as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(MediaFeatureChange),
+ "::",
+ stringify!(mRestyleHint)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<MediaFeatureChange>())).mChangeHint as *const _ as usize
+ },
+ 4usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(MediaFeatureChange),
+ "::",
+ stringify!(mChangeHint)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<MediaFeatureChange>())).mReason as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(MediaFeatureChange),
+ "::",
+ stringify!(mReason)
+ )
+ );
+ }
+ impl Clone for MediaFeatureChange {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// A PostTraversalTask is a task to be performed immediately after a Servo
+ /// traversal. There are just a few tasks we need to perform, so we use this
+ /// class rather than Runnables, to avoid virtual calls and some allocations.
+ ///
+ /// A PostTraversalTask is only safe to run immediately after the Servo
+ /// traversal, since it can hold raw pointers to DOM objects.
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct PostTraversalTask {
+ pub mType: root::mozilla::PostTraversalTask_Type,
+ pub mTarget: *mut ::std::os::raw::c_void,
+ pub mResult: root::nsresult,
+ }
+ pub const PostTraversalTask_Type_ResolveFontFaceLoadedPromise:
+ root::mozilla::PostTraversalTask_Type = 0;
+ pub const PostTraversalTask_Type_RejectFontFaceLoadedPromise:
+ root::mozilla::PostTraversalTask_Type = 1;
+ pub const PostTraversalTask_Type_DispatchLoadingEventAndReplaceReadyPromise:
+ root::mozilla::PostTraversalTask_Type = 2;
+ pub const PostTraversalTask_Type_DispatchFontFaceSetCheckLoadingFinishedAfterDelay:
+ root::mozilla::PostTraversalTask_Type = 3;
+ pub const PostTraversalTask_Type_LoadFontEntry: root::mozilla::PostTraversalTask_Type = 4;
+ pub type PostTraversalTask_Type = i32;
+ #[test]
+ fn bindgen_test_layout_PostTraversalTask() {
+ assert_eq!(
+ ::std::mem::size_of::<PostTraversalTask>(),
+ 24usize,
+ concat!("Size of: ", stringify!(PostTraversalTask))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<PostTraversalTask>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(PostTraversalTask))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<PostTraversalTask>())).mType as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(PostTraversalTask),
+ "::",
+ stringify!(mType)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<PostTraversalTask>())).mTarget as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(PostTraversalTask),
+ "::",
+ stringify!(mTarget)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<PostTraversalTask>())).mResult as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(PostTraversalTask),
+ "::",
+ stringify!(mResult)
+ )
+ );
+ }
+ impl Clone for PostTraversalTask {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const CSSPseudoElementType_InheritingAnonBox: root::mozilla::CSSPseudoElementType =
+ CSSPseudoElementType::Count;
+ #[repr(u8)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum CSSPseudoElementType {
+ after = 0,
+ before = 1,
+ backdrop = 2,
+ cue = 3,
+ firstLetter = 4,
+ firstLine = 5,
+ mozSelection = 6,
+ mozFocusInner = 7,
+ mozFocusOuter = 8,
+ mozListBullet = 9,
+ mozListNumber = 10,
+ mozMathAnonymous = 11,
+ mozNumberWrapper = 12,
+ mozNumberText = 13,
+ mozNumberSpinBox = 14,
+ mozNumberSpinUp = 15,
+ mozNumberSpinDown = 16,
+ mozProgressBar = 17,
+ mozRangeTrack = 18,
+ mozRangeProgress = 19,
+ mozRangeThumb = 20,
+ mozMeterBar = 21,
+ mozPlaceholder = 22,
+ placeholder = 23,
+ mozColorSwatch = 24,
+ Count = 25,
+ NonInheritingAnonBox = 26,
+ XULTree = 27,
+ NotPseudo = 28,
+ MAX = 29,
+ }
+ pub const StylistState_NotDirty: root::mozilla::StylistState = 0;
+ pub const StylistState_StyleSheetsDirty: root::mozilla::StylistState = 1;
+ pub const StylistState_XBLStyleSheetsDirty: root::mozilla::StylistState = 2;
+ pub type StylistState = u8;
+ pub const OriginFlags_UserAgent: root::mozilla::OriginFlags = root::mozilla::OriginFlags(1);
+ pub const OriginFlags_User: root::mozilla::OriginFlags = root::mozilla::OriginFlags(2);
+ pub const OriginFlags_Author: root::mozilla::OriginFlags = root::mozilla::OriginFlags(4);
+ pub const OriginFlags_All: root::mozilla::OriginFlags = root::mozilla::OriginFlags(7);
+ impl ::std::ops::BitOr<root::mozilla::OriginFlags> for root::mozilla::OriginFlags {
+ type Output = Self;
+ #[inline]
+ fn bitor(self, other: Self) -> Self {
+ OriginFlags(self.0 | other.0)
+ }
+ }
+ impl ::std::ops::BitOrAssign for root::mozilla::OriginFlags {
+ #[inline]
+ fn bitor_assign(&mut self, rhs: root::mozilla::OriginFlags) {
+ self.0 |= rhs.0;
+ }
+ }
+ impl ::std::ops::BitAnd<root::mozilla::OriginFlags> for root::mozilla::OriginFlags {
+ type Output = Self;
+ #[inline]
+ fn bitand(self, other: Self) -> Self {
+ OriginFlags(self.0 & other.0)
+ }
+ }
+ impl ::std::ops::BitAndAssign for root::mozilla::OriginFlags {
+ #[inline]
+ fn bitand_assign(&mut self, rhs: root::mozilla::OriginFlags) {
+ self.0 &= rhs.0;
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub struct OriginFlags(pub u8);
+ /// The set of style sheets that apply to a document, backed by a Servo
+ /// Stylist. A ServoStyleSet contains ServoStyleSheets.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct ServoStyleSet {
+ pub mDocument: *mut root::nsIDocument,
+ pub mRawSet: root::mozilla::UniquePtr<root::RawServoStyleSet>,
+ pub mSheets: [u64; 8usize],
+ pub mAuthorStyleDisabled: bool,
+ pub mStylistState: root::mozilla::StylistState,
+ pub mUserFontSetUpdateGeneration: u64,
+ pub mNeedsRestyleAfterEnsureUniqueInner: bool,
+ pub mNonInheritingComputedStyles: [u64; 7usize],
+ pub mPostTraversalTasks: root::nsTArray<root::mozilla::PostTraversalTask>,
+ pub mStyleRuleMap: root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>,
+ }
+ pub type ServoStyleSet_SnapshotTable = root::mozilla::ServoElementSnapshotTable;
+ #[test]
+ fn bindgen_test_layout_ServoStyleSet() {
+ assert_eq!(
+ ::std::mem::size_of::<ServoStyleSet>(),
+ 176usize,
+ concat!("Size of: ", stringify!(ServoStyleSet))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<ServoStyleSet>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(ServoStyleSet))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<ServoStyleSet>())).mDocument as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mDocument)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<ServoStyleSet>())).mRawSet as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mRawSet)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<ServoStyleSet>())).mSheets as *const _ as usize },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mSheets)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ServoStyleSet>())).mAuthorStyleDisabled as *const _
+ as usize
+ },
+ 80usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mAuthorStyleDisabled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ServoStyleSet>())).mStylistState as *const _ as usize
+ },
+ 81usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mStylistState)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ServoStyleSet>())).mUserFontSetUpdateGeneration
+ as *const _ as usize
+ },
+ 88usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mUserFontSetUpdateGeneration)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ServoStyleSet>())).mNeedsRestyleAfterEnsureUniqueInner
+ as *const _ as usize
+ },
+ 96usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mNeedsRestyleAfterEnsureUniqueInner)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ServoStyleSet>())).mNonInheritingComputedStyles
+ as *const _ as usize
+ },
+ 104usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mNonInheritingComputedStyles)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ServoStyleSet>())).mPostTraversalTasks as *const _
+ as usize
+ },
+ 160usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mPostTraversalTasks)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ServoStyleSet>())).mStyleRuleMap as *const _ as usize
+ },
+ 168usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ServoStyleSet),
+ "::",
+ stringify!(mStyleRuleMap)
+ )
+ );
+ }
+ pub mod widget {
+ #[allow(unused_imports)]
+ use self::super::super::super::root;
+ /// Contains IMEStatus plus information about the current
+ /// input context that the IME can use as hints if desired.
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct IMEState {
+ pub mEnabled: root::mozilla::widget::IMEState_Enabled,
+ pub mOpen: root::mozilla::widget::IMEState_Open,
+ }
+ /// 'Disabled' means the user cannot use IME. So, the IME open state should
+ /// be 'closed' during 'disabled'.
+ pub const IMEState_Enabled_DISABLED: root::mozilla::widget::IMEState_Enabled = 0;
+ /// 'Enabled' means the user can use IME.
+ pub const IMEState_Enabled_ENABLED: root::mozilla::widget::IMEState_Enabled = 1;
+ /// 'Password' state is a special case for the password editors.
+ /// E.g., on mac, the password editors should disable the non-Roman
+ /// keyboard layouts at getting focus. Thus, the password editor may have
+ /// special rules on some platforms.
+ pub const IMEState_Enabled_PASSWORD: root::mozilla::widget::IMEState_Enabled = 2;
+ /// This state is used when a plugin is focused.
+ /// When a plug-in is focused content, we should send native events
+ /// directly. Because we don't process some native events, but they may
+ /// be needed by the plug-in.
+ pub const IMEState_Enabled_PLUGIN: root::mozilla::widget::IMEState_Enabled = 3;
+ /// 'Unknown' is useful when you cache this enum. So, this shouldn't be
+ /// used with nsIWidget::SetInputContext().
+ pub const IMEState_Enabled_UNKNOWN: root::mozilla::widget::IMEState_Enabled = 4;
+ /// IME enabled states, the mEnabled value of
+ /// SetInputContext()/GetInputContext() should be one value of following
+ /// values.
+ ///
+ /// WARNING: If you change these values, you also need to edit:
+ /// nsIDOMWindowUtils.idl
+ /// nsContentUtils::GetWidgetStatusFromIMEStatus
+ pub type IMEState_Enabled = u32;
+ /// 'Unsupported' means the platform cannot return actual IME open state.
+ /// This value is used only by GetInputContext().
+ pub const IMEState_Open_OPEN_STATE_NOT_SUPPORTED: root::mozilla::widget::IMEState_Open =
+ 0;
+ /// 'Don't change' means the widget shouldn't change IME open state when
+ /// SetInputContext() is called.
+ pub const IMEState_Open_DONT_CHANGE_OPEN_STATE: root::mozilla::widget::IMEState_Open =
+ 0;
+ /// 'Open' means that IME should compose in its primary language (or latest
+ /// input mode except direct ASCII character input mode). Even if IME is
+ /// opened by this value, users should be able to close IME by theirselves.
+ /// Web contents can specify this value by |ime-mode: active;|.
+ pub const IMEState_Open_OPEN: root::mozilla::widget::IMEState_Open = 1;
+ /// 'Closed' means that IME shouldn't handle key events (or should handle
+ /// as ASCII character inputs on mobile device). Even if IME is closed by
+ /// this value, users should be able to open IME by theirselves.
+ /// Web contents can specify this value by |ime-mode: inactive;|.
+ pub const IMEState_Open_CLOSED: root::mozilla::widget::IMEState_Open = 2;
+ /// IME open states the mOpen value of SetInputContext() should be one value of
+ /// OPEN, CLOSE or DONT_CHANGE_OPEN_STATE. GetInputContext() should return
+ /// OPEN, CLOSE or OPEN_STATE_NOT_SUPPORTED.
+ pub type IMEState_Open = u32;
+ #[test]
+ fn bindgen_test_layout_IMEState() {
+ assert_eq!(
+ ::std::mem::size_of::<IMEState>(),
+ 8usize,
+ concat!("Size of: ", stringify!(IMEState))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<IMEState>(),
+ 4usize,
+ concat!("Alignment of ", stringify!(IMEState))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<IMEState>())).mEnabled as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(IMEState),
+ "::",
+ stringify!(mEnabled)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<IMEState>())).mOpen as *const _ as usize },
+ 4usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(IMEState),
+ "::",
+ stringify!(mOpen)
+ )
+ );
+ }
+ impl Clone for IMEState {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ }
+ pub mod layout {
+ #[allow(unused_imports)]
+ use self::super::super::super::root;
+ pub const FrameChildListID_kPrincipalList: root::mozilla::layout::FrameChildListID = 1;
+ pub const FrameChildListID_kPopupList: root::mozilla::layout::FrameChildListID = 2;
+ pub const FrameChildListID_kCaptionList: root::mozilla::layout::FrameChildListID = 4;
+ pub const FrameChildListID_kColGroupList: root::mozilla::layout::FrameChildListID = 8;
+ pub const FrameChildListID_kSelectPopupList: root::mozilla::layout::FrameChildListID =
+ 16;
+ pub const FrameChildListID_kAbsoluteList: root::mozilla::layout::FrameChildListID = 32;
+ pub const FrameChildListID_kFixedList: root::mozilla::layout::FrameChildListID = 64;
+ pub const FrameChildListID_kOverflowList: root::mozilla::layout::FrameChildListID = 128;
+ pub const FrameChildListID_kOverflowContainersList:
+ root::mozilla::layout::FrameChildListID = 256;
+ pub const FrameChildListID_kExcessOverflowContainersList:
+ root::mozilla::layout::FrameChildListID = 512;
+ pub const FrameChildListID_kOverflowOutOfFlowList:
+ root::mozilla::layout::FrameChildListID = 1024;
+ pub const FrameChildListID_kFloatList: root::mozilla::layout::FrameChildListID = 2048;
+ pub const FrameChildListID_kBulletList: root::mozilla::layout::FrameChildListID = 4096;
+ pub const FrameChildListID_kPushedFloatsList: root::mozilla::layout::FrameChildListID =
+ 8192;
+ pub const FrameChildListID_kBackdropList: root::mozilla::layout::FrameChildListID =
+ 16384;
+ pub const FrameChildListID_kNoReflowPrincipalList:
+ root::mozilla::layout::FrameChildListID = 32768;
+ pub type FrameChildListID = u32;
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct UndisplayedNode {
+ _unused: [u8; 0],
+ }
+ impl Clone for UndisplayedNode {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct ArenaAllocator_ArenaHeader {
+ /// The location in memory of the data portion of the arena.
+ pub offset: usize,
+ /// The location in memory of the end of the data portion of the arena.
+ pub tail: usize,
+ }
+ impl Clone for ArenaAllocator_ArenaHeader {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct ArenaAllocator_ArenaChunk {
+ pub canary: root::mozilla::CorruptionCanary,
+ pub header: root::mozilla::ArenaAllocator_ArenaHeader,
+ pub next: *mut root::mozilla::ArenaAllocator_ArenaChunk,
+ }
+ pub type CSSSize = [u32; 2usize];
+ pub type LayoutDeviceIntPoint = [u32; 2usize];
+ pub type CSSToLayoutDeviceScale = u32;
+ pub type LayoutDeviceToScreenScale = u32;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct CSSPixel {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_CSSPixel() {
+ assert_eq!(
+ ::std::mem::size_of::<CSSPixel>(),
+ 1usize,
+ concat!("Size of: ", stringify!(CSSPixel))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<CSSPixel>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(CSSPixel))
+ );
+ }
+ impl Clone for CSSPixel {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct LayoutDevicePixel {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_LayoutDevicePixel() {
+ assert_eq!(
+ ::std::mem::size_of::<LayoutDevicePixel>(),
+ 1usize,
+ concat!("Size of: ", stringify!(LayoutDevicePixel))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<LayoutDevicePixel>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(LayoutDevicePixel))
+ );
+ }
+ impl Clone for LayoutDevicePixel {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct ScreenPixel {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_ScreenPixel() {
+ assert_eq!(
+ ::std::mem::size_of::<ScreenPixel>(),
+ 1usize,
+ concat!("Size of: ", stringify!(ScreenPixel))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<ScreenPixel>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(ScreenPixel))
+ );
+ }
+ impl Clone for ScreenPixel {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub mod a11y {
+ #[allow(unused_imports)]
+ use self::super::super::super::root;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct DocAccessible {
+ _unused: [u8; 0],
+ }
+ impl Clone for DocAccessible {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct PendingAnimationTracker {
+ _unused: [u8; 0],
+ }
+ impl Clone for PendingAnimationTracker {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct ScrollbarStyles {
+ pub mHorizontal: u8,
+ pub mVertical: u8,
+ pub mScrollBehavior: u8,
+ pub mOverscrollBehaviorX: root::mozilla::StyleOverscrollBehavior,
+ pub mOverscrollBehaviorY: root::mozilla::StyleOverscrollBehavior,
+ pub mScrollSnapTypeX: u8,
+ pub mScrollSnapTypeY: u8,
+ pub mScrollSnapPointsX: root::nsStyleCoord,
+ pub mScrollSnapPointsY: root::nsStyleCoord,
+ pub mScrollSnapDestinationX: root::nsStyleCoord_CalcValue,
+ pub mScrollSnapDestinationY: root::nsStyleCoord_CalcValue,
+ }
+ #[test]
+ fn bindgen_test_layout_ScrollbarStyles() {
+ assert_eq!(
+ ::std::mem::size_of::<ScrollbarStyles>(),
+ 64usize,
+ concat!("Size of: ", stringify!(ScrollbarStyles))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<ScrollbarStyles>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(ScrollbarStyles))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mHorizontal as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mHorizontal)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mVertical as *const _ as usize
+ },
+ 1usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mVertical)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollBehavior as *const _ as usize
+ },
+ 2usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mScrollBehavior)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mOverscrollBehaviorX as *const _
+ as usize
+ },
+ 3usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mOverscrollBehaviorX)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mOverscrollBehaviorY as *const _
+ as usize
+ },
+ 4usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mOverscrollBehaviorY)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapTypeX as *const _
+ as usize
+ },
+ 5usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mScrollSnapTypeX)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapTypeY as *const _
+ as usize
+ },
+ 6usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mScrollSnapTypeY)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapPointsX as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mScrollSnapPointsX)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapPointsY as *const _
+ as usize
+ },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mScrollSnapPointsY)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapDestinationX as *const _
+ as usize
+ },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mScrollSnapDestinationX)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<ScrollbarStyles>())).mScrollSnapDestinationY as *const _
+ as usize
+ },
+ 52usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(ScrollbarStyles),
+ "::",
+ stringify!(mScrollSnapDestinationY)
+ )
+ );
+ }
+ #[repr(C)]
+ pub struct LangGroupFontPrefs {
+ pub mLangGroup: root::RefPtr<root::nsAtom>,
+ pub mMinimumFontSize: root::nscoord,
+ pub mDefaultVariableFont: root::nsFont,
+ pub mDefaultFixedFont: root::nsFont,
+ pub mDefaultSerifFont: root::nsFont,
+ pub mDefaultSansSerifFont: root::nsFont,
+ pub mDefaultMonospaceFont: root::nsFont,
+ pub mDefaultCursiveFont: root::nsFont,
+ pub mDefaultFantasyFont: root::nsFont,
+ pub mNext: root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>,
+ }
+ #[test]
+ fn bindgen_test_layout_LangGroupFontPrefs() {
+ assert_eq!(
+ ::std::mem::size_of::<LangGroupFontPrefs>(),
+ 696usize,
+ concat!("Size of: ", stringify!(LangGroupFontPrefs))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<LangGroupFontPrefs>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(LangGroupFontPrefs))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mLangGroup as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mLangGroup)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mMinimumFontSize as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mMinimumFontSize)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultVariableFont as *const _
+ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mDefaultVariableFont)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultFixedFont as *const _
+ as usize
+ },
+ 112usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mDefaultFixedFont)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultSerifFont as *const _
+ as usize
+ },
+ 208usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mDefaultSerifFont)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultSansSerifFont as *const _
+ as usize
+ },
+ 304usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mDefaultSansSerifFont)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultMonospaceFont as *const _
+ as usize
+ },
+ 400usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mDefaultMonospaceFont)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultCursiveFont as *const _
+ as usize
+ },
+ 496usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mDefaultCursiveFont)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mDefaultFantasyFont as *const _
+ as usize
+ },
+ 592usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mDefaultFantasyFont)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<LangGroupFontPrefs>())).mNext as *const _ as usize
+ },
+ 688usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(LangGroupFontPrefs),
+ "::",
+ stringify!(mNext)
+ )
+ );
+ }
+ /// Some functionality that has historically lived on nsPresContext does not
+ /// actually need to be per-document. This singleton class serves as a host
+ /// for that functionality. We delegate to it from nsPresContext where
+ /// appropriate, and use it standalone in some cases as well.
+ #[repr(C)]
+ pub struct StaticPresData {
+ pub mLangService: *mut root::nsLanguageAtomService,
+ pub mBorderWidthTable: [root::nscoord; 3usize],
+ pub mStaticLangGroupFontPrefs: root::mozilla::LangGroupFontPrefs,
+ }
+ #[test]
+ fn bindgen_test_layout_StaticPresData() {
+ assert_eq!(
+ ::std::mem::size_of::<StaticPresData>(),
+ 720usize,
+ concat!("Size of: ", stringify!(StaticPresData))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<StaticPresData>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(StaticPresData))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<StaticPresData>())).mLangService as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(StaticPresData),
+ "::",
+ stringify!(mLangService)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<StaticPresData>())).mBorderWidthTable as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(StaticPresData),
+ "::",
+ stringify!(mBorderWidthTable)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<StaticPresData>())).mStaticLangGroupFontPrefs as *const _
+ as usize
+ },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(StaticPresData),
+ "::",
+ stringify!(mStaticLangGroupFontPrefs)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct AnimationEventDispatcher {
+ _unused: [u8; 0],
+ }
+ impl Clone for AnimationEventDispatcher {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct EventStateManager {
+ _unused: [u8; 0],
+ }
+ impl Clone for EventStateManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RestyleManager {
+ _unused: [u8; 0],
+ }
+ impl Clone for RestyleManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
#[derive(Debug)]
pub struct BindingStyleRule {
pub _base: root::mozilla::css::Rule,
@@ -11183,14 +11236,13 @@ pub mod root {
#[derive(Debug)]
pub struct PropertyValuePair {
pub mProperty: root::nsCSSPropertyID,
- pub mValue: root::nsCSSValue,
pub mServoDeclarationBlock: root::RefPtr<root::RawServoDeclarationBlock>,
}
#[test]
fn bindgen_test_layout_PropertyValuePair() {
assert_eq!(
::std::mem::size_of::<PropertyValuePair>(),
- 32usize,
+ 16usize,
concat!("Size of: ", stringify!(PropertyValuePair))
);
assert_eq!(
@@ -11212,22 +11264,10 @@ pub mod root {
);
assert_eq!(
unsafe {
- &(*(::std::ptr::null::<PropertyValuePair>())).mValue as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(PropertyValuePair),
- "::",
- stringify!(mValue)
- )
- );
- assert_eq!(
- unsafe {
&(*(::std::ptr::null::<PropertyValuePair>())).mServoDeclarationBlock as *const _
as usize
},
- 24usize,
+ 8usize,
concat!(
"Offset of field: ",
stringify!(PropertyValuePair),
@@ -11247,7 +11287,7 @@ pub mod root {
/// overlapping shorthands/longhands, convert specified CSS values to computed
/// values, etc.
///
- /// When the target element or style context changes, however, we rebuild these
+ /// When the target element or computed style changes, however, we rebuild these
/// per-property arrays from the original list of keyframes objects. As a result,
/// these objects represent the master definition of the effect's values.
#[repr(C)]
@@ -11978,60 +12018,137 @@ pub mod root {
pub _address: u8,
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs41sVarCache_layout_css_font_display_enabledE"]
- pub static mut StaticPrefs_sVarCache_layout_css_font_display_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_full_screen_api_unprefix_enabledE" ] pub static mut StaticPrefs_sVarCache_full_screen_api_unprefix_enabled : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs49sVarCache_gfx_font_rendering_opentype_svg_enabledE" ] pub static mut StaticPrefs_sVarCache_gfx_font_rendering_opentype_svg_enabled : bool ;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla11StaticPrefs29sVarCache_html5_offmainthreadE"]
+ pub static mut StaticPrefs_sVarCache_html5_offmainthread: bool;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla11StaticPrefs39sVarCache_html5_flushtimer_initialdelayE"]
+ pub static mut StaticPrefs_sVarCache_html5_flushtimer_initialdelay: i32;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_html5_flushtimer_subsequentdelayE" ] pub static mut StaticPrefs_sVarCache_html5_flushtimer_subsequentdelay : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs49sVarCache_gfx_font_rendering_opentype_svg_enabledE"]
- pub static mut StaticPrefs_sVarCache_gfx_font_rendering_opentype_svg_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs41sVarCache_layout_css_font_display_enabledE" ] pub static mut StaticPrefs_sVarCache_layout_css_font_display_enabled : bool ;
}
extern "C" {
#[link_name = "\u{1}_ZN7mozilla11StaticPrefs36sVarCache_layout_css_prefixes_webkitE"]
pub static mut StaticPrefs_sVarCache_layout_css_prefixes_webkit: bool;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs55sVarCache_layout_css_prefixes_device_pixel_ratio_webkitE"]
- pub static mut StaticPrefs_sVarCache_layout_css_prefixes_device_pixel_ratio_webkit: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs55sVarCache_layout_css_prefixes_device_pixel_ratio_webkitE" ] pub static mut StaticPrefs_sVarCache_layout_css_prefixes_device_pixel_ratio_webkit : bool ;
}
extern "C" {
#[link_name = "\u{1}_ZN7mozilla11StaticPrefs39sVarCache_layout_css_prefixes_gradientsE"]
pub static mut StaticPrefs_sVarCache_layout_css_prefixes_gradients: bool;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs47sVarCache_layout_css_control_characters_visibleE"]
- pub static mut StaticPrefs_sVarCache_layout_css_control_characters_visible: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs47sVarCache_layout_css_control_characters_visibleE" ] pub static mut StaticPrefs_sVarCache_layout_css_control_characters_visible : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_layout_css_frames_timing_enabledE" ] pub static mut StaticPrefs_sVarCache_layout_css_frames_timing_enabled : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_layout_css_visited_links_enabledE" ] pub static mut StaticPrefs_sVarCache_layout_css_visited_links_enabled : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs49sVarCache_layout_css_moz_document_content_enabledE" ] pub static mut StaticPrefs_sVarCache_layout_css_moz_document_content_enabled : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs57sVarCache_layout_css_moz_document_url_prefix_hack_enabledE" ] pub static mut StaticPrefs_sVarCache_layout_css_moz_document_url_prefix_hack_enabled : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs56sVarCache_layout_css_grid_template_subgrid_value_enabledE" ] pub static mut StaticPrefs_sVarCache_layout_css_grid_template_subgrid_value_enabled : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs44sVarCache_layout_css_font_variations_enabledE" ] pub static mut StaticPrefs_sVarCache_layout_css_font_variations_enabled : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs46sVarCache_layout_css_emulate_moz_box_with_flexE" ] pub static mut StaticPrefs_sVarCache_layout_css_emulate_moz_box_with_flex : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs50sVarCache_network_auth_subresource_http_auth_allowE" ] pub static mut StaticPrefs_sVarCache_network_auth_subresource_http_auth_allow : u32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs67sVarCache_network_auth_subresource_img_cross_origin_http_auth_allowE" ] pub static mut StaticPrefs_sVarCache_network_auth_subresource_img_cross_origin_http_auth_allow : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs74sVarCache_network_auth_non_web_content_triggered_resources_http_auth_allowE" ] pub static mut StaticPrefs_sVarCache_network_auth_non_web_content_triggered_resources_http_auth_allow : bool ;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla11StaticPrefs35sVarCache_network_predictor_enabledE"]
+ pub static mut StaticPrefs_sVarCache_network_predictor_enabled: bool;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs47sVarCache_network_predictor_enable_hover_on_sslE" ] pub static mut StaticPrefs_sVarCache_network_predictor_enable_hover_on_ssl : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs43sVarCache_network_predictor_enable_prefetchE" ] pub static mut StaticPrefs_sVarCache_network_predictor_enable_prefetch : bool ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs48sVarCache_network_predictor_page_degradation_dayE" ] pub static mut StaticPrefs_sVarCache_network_predictor_page_degradation_day : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs49sVarCache_network_predictor_page_degradation_weekE" ] pub static mut StaticPrefs_sVarCache_network_predictor_page_degradation_week : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs50sVarCache_network_predictor_page_degradation_monthE" ] pub static mut StaticPrefs_sVarCache_network_predictor_page_degradation_month : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs49sVarCache_network_predictor_page_degradation_yearE" ] pub static mut StaticPrefs_sVarCache_network_predictor_page_degradation_year : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs48sVarCache_network_predictor_page_degradation_maxE" ] pub static mut StaticPrefs_sVarCache_network_predictor_page_degradation_max : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs55sVarCache_network_predictor_subresource_degradation_dayE" ] pub static mut StaticPrefs_sVarCache_network_predictor_subresource_degradation_day : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs56sVarCache_network_predictor_subresource_degradation_weekE" ] pub static mut StaticPrefs_sVarCache_network_predictor_subresource_degradation_week : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs57sVarCache_network_predictor_subresource_degradation_monthE" ] pub static mut StaticPrefs_sVarCache_network_predictor_subresource_degradation_month : i32 ;
+ }
+ extern "C" {
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs56sVarCache_network_predictor_subresource_degradation_yearE" ] pub static mut StaticPrefs_sVarCache_network_predictor_subresource_degradation_year : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_layout_css_frames_timing_enabledE"]
- pub static mut StaticPrefs_sVarCache_layout_css_frames_timing_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs55sVarCache_network_predictor_subresource_degradation_maxE" ] pub static mut StaticPrefs_sVarCache_network_predictor_subresource_degradation_max : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_full_screen_api_unprefix_enabledE"]
- pub static mut StaticPrefs_sVarCache_full_screen_api_unprefix_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs55sVarCache_network_predictor_prefetch_rolling_load_countE" ] pub static mut StaticPrefs_sVarCache_network_predictor_prefetch_rolling_load_count : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_layout_css_visited_links_enabledE"]
- pub static mut StaticPrefs_sVarCache_layout_css_visited_links_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs51sVarCache_network_predictor_prefetch_min_confidenceE" ] pub static mut StaticPrefs_sVarCache_network_predictor_prefetch_min_confidence : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs49sVarCache_layout_css_moz_document_content_enabledE"]
- pub static mut StaticPrefs_sVarCache_layout_css_moz_document_content_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs53sVarCache_network_predictor_preconnect_min_confidenceE" ] pub static mut StaticPrefs_sVarCache_network_predictor_preconnect_min_confidence : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs57sVarCache_layout_css_moz_document_url_prefix_hack_enabledE"]
- pub static mut StaticPrefs_sVarCache_layout_css_moz_document_url_prefix_hack_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs53sVarCache_network_predictor_preresolve_min_confidenceE" ] pub static mut StaticPrefs_sVarCache_network_predictor_preresolve_min_confidence : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs56sVarCache_layout_css_grid_template_subgrid_value_enabledE"]
- pub static mut StaticPrefs_sVarCache_layout_css_grid_template_subgrid_value_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs52sVarCache_network_predictor_prefetch_force_valid_forE" ] pub static mut StaticPrefs_sVarCache_network_predictor_prefetch_force_valid_for : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs44sVarCache_layout_css_font_variations_enabledE"]
- pub static mut StaticPrefs_sVarCache_layout_css_font_variations_enabled: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs51sVarCache_network_predictor_max_resources_per_entryE" ] pub static mut StaticPrefs_sVarCache_network_predictor_max_resources_per_entry : i32 ;
}
extern "C" {
- #[link_name = "\u{1}_ZN7mozilla11StaticPrefs46sVarCache_layout_css_emulate_moz_box_with_flexE"]
- pub static mut StaticPrefs_sVarCache_layout_css_emulate_moz_box_with_flex: bool;
+ # [ link_name = "\u{1}_ZN7mozilla11StaticPrefs42sVarCache_network_predictor_max_uri_lengthE" ] pub static mut StaticPrefs_sVarCache_network_predictor_max_uri_length : u32 ;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla11StaticPrefs39sVarCache_network_predictor_doing_testsE"]
+ pub static mut StaticPrefs_sVarCache_network_predictor_doing_tests: bool;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN7mozilla11StaticPrefs37sVarCache_view_source_editor_externalE"]
+ pub static mut StaticPrefs_sVarCache_view_source_editor_external: bool;
}
#[test]
fn bindgen_test_layout_StaticPrefs() {
@@ -12937,39 +13054,6 @@ pub mod root {
)
);
}
- pub const OriginFlags_UserAgent: root::mozilla::OriginFlags = root::mozilla::OriginFlags(1);
- pub const OriginFlags_User: root::mozilla::OriginFlags = root::mozilla::OriginFlags(2);
- pub const OriginFlags_Author: root::mozilla::OriginFlags = root::mozilla::OriginFlags(4);
- pub const OriginFlags_All: root::mozilla::OriginFlags = root::mozilla::OriginFlags(7);
- impl ::std::ops::BitOr<root::mozilla::OriginFlags> for root::mozilla::OriginFlags {
- type Output = Self;
- #[inline]
- fn bitor(self, other: Self) -> Self {
- OriginFlags(self.0 | other.0)
- }
- }
- impl ::std::ops::BitOrAssign for root::mozilla::OriginFlags {
- #[inline]
- fn bitor_assign(&mut self, rhs: root::mozilla::OriginFlags) {
- self.0 |= rhs.0;
- }
- }
- impl ::std::ops::BitAnd<root::mozilla::OriginFlags> for root::mozilla::OriginFlags {
- type Output = Self;
- #[inline]
- fn bitand(self, other: Self) -> Self {
- OriginFlags(self.0 & other.0)
- }
- }
- impl ::std::ops::BitAndAssign for root::mozilla::OriginFlags {
- #[inline]
- fn bitand_assign(&mut self, rhs: root::mozilla::OriginFlags) {
- self.0 &= rhs.0;
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub struct OriginFlags(pub u8);
#[repr(C)]
#[derive(Debug)]
pub struct CachedInheritingStyles {
@@ -13003,17 +13087,17 @@ pub mod root {
}
/// A ComputedStyle represents the computed style data for an element. The
/// computed style data are stored in a set of structs (see nsStyleStruct.h) that
- /// are cached either on the style context or in the rule tree (see nsRuleNode.h
+ /// are cached either on the ComputedStyle or in the rule tree (see nsRuleNode.h
/// for a description of this caching and how the cached structs are shared).
///
/// Since the data in |nsIStyleRule|s and |nsRuleNode|s are immutable (with a few
/// exceptions, like system color changes), the data in an ComputedStyle are also
/// immutable (with the additional exception of GetUniqueStyleData). When style
- /// data change, ElementRestyler::Restyle creates a new style context.
+ /// data change, ElementRestyler::Restyle creates a new ComputedStyle.
///
/// ComputedStyles are reference counted. References are generally held by:
- /// 1. the |nsIFrame|s that are using the style context and
- /// 2. any *child* style contexts (this might be the reverse of
+ /// 1. the |nsIFrame|s that are using the ComputedStyle and
+ /// 2. any *child* ComputedStyle (this might be the reverse of
/// expectation, but it makes sense in this case)
///
/// FIXME(emilio): This comment is somewhat outdated now.
@@ -13100,7 +13184,6 @@ pub mod root {
pub struct DeclarationBlock {
pub mContainer: root::mozilla::DeclarationBlock__bindgen_ty_1,
pub mImmutable: bool,
- pub mType: root::mozilla::StyleBackendType,
pub mIsDirty: u32,
}
#[repr(C)]
@@ -13205,16 +13288,6 @@ pub mod root {
)
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<DeclarationBlock>())).mType as *const _ as usize },
- 9usize,
- concat!(
- "Offset of field: ",
- stringify!(DeclarationBlock),
- "::",
- stringify!(mType)
- )
- );
- assert_eq!(
unsafe {
&(*(::std::ptr::null::<DeclarationBlock>())).mIsDirty as *const _ as usize
},
@@ -13378,6 +13451,29 @@ pub mod root {
*self
}
}
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct SeenPtrs {
+ pub _bindgen_opaque_blob: [u64; 4usize],
+ }
+ #[test]
+ fn bindgen_test_layout_SeenPtrs() {
+ assert_eq!(
+ ::std::mem::size_of::<SeenPtrs>(),
+ 32usize,
+ concat!("Size of: ", stringify!(SeenPtrs))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<SeenPtrs>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(SeenPtrs))
+ );
+ }
+ impl Clone for SeenPtrs {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
pub mod intl {
#[allow(unused_imports)]
use self::super::super::super::root;
@@ -13448,6 +13544,10 @@ pub mod root {
}
}
}
+ pub mod __gnu_cxx {
+ #[allow(unused_imports)]
+ use self::super::super::root;
+ }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct InfallibleAllocPolicy {
@@ -13990,16 +14090,6 @@ pub mod root {
}
pub type nsrefcnt = root::MozRefCountType;
#[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIFrame {
- _unused: [u8; 0],
- }
- impl Clone for nsIFrame {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
#[derive(Debug)]
pub struct RefPtr<T> {
pub mRawPtr: *mut T,
@@ -16271,7 +16361,7 @@ pub mod root {
root::nsChangeHint(1048576);
/// A hint reflecting that style data changed with no change handling
/// behavior. We need to return this, rather than nsChangeHint(0),
- /// so that certain optimizations that manipulate the style context tree are
+ /// so that certain optimizations that manipulate the style tree are
/// correct.
///
/// nsChangeHint_NeutralChange must be returned by CalcDifference on a given
@@ -16417,17 +16507,232 @@ pub mod root {
/// Without eRestyle_Force or eRestyle_ForceDescendants, the restyling process
/// can stop processing at a frame when it detects no style changes and it is
/// known that the styles of the subtree beneath it will not change, leaving
- /// the old style context on the frame. eRestyle_Force can be used to skip this
- /// optimization on a frame, and to force its new style context to be used.
+ /// the old ComputedStyle on the frame. eRestyle_Force can be used to skip this
+ /// optimization on a frame, and to force its new ComputedStyle to be used.
///
/// Similarly, eRestyle_ForceDescendants will cause the frame and all of its
- /// descendants to be traversed and for the new style contexts that are created
+ /// descendants to be traversed and for the new ComputedStyles that are created
/// to be set on the frames.
///
/// NOTE: When adding new restyle hints, please also add them to
/// RestyleManager::RestyleHintToString.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct nsRestyleHint(pub u32);
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsTimingFunction {
+ pub mType: root::nsTimingFunction_Type,
+ pub __bindgen_anon_1: root::nsTimingFunction__bindgen_ty_1,
+ }
+ #[repr(i32)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum nsTimingFunction_Type {
+ Ease = 0,
+ Linear = 1,
+ EaseIn = 2,
+ EaseOut = 3,
+ EaseInOut = 4,
+ StepStart = 5,
+ StepEnd = 6,
+ CubicBezier = 7,
+ Frames = 8,
+ }
+ pub const nsTimingFunction_Keyword_Implicit: root::nsTimingFunction_Keyword = 0;
+ pub const nsTimingFunction_Keyword_Explicit: root::nsTimingFunction_Keyword = 1;
+ pub type nsTimingFunction_Keyword = i32;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsTimingFunction__bindgen_ty_1 {
+ pub mFunc: root::__BindgenUnionField<root::nsTimingFunction__bindgen_ty_1__bindgen_ty_1>,
+ pub __bindgen_anon_1:
+ root::__BindgenUnionField<root::nsTimingFunction__bindgen_ty_1__bindgen_ty_2>,
+ pub bindgen_union_field: [u32; 4usize],
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsTimingFunction__bindgen_ty_1__bindgen_ty_1 {
+ pub mX1: f32,
+ pub mY1: f32,
+ pub mX2: f32,
+ pub mY2: f32,
+ }
+ #[test]
+ fn bindgen_test_layout_nsTimingFunction__bindgen_ty_1__bindgen_ty_1() {
+ assert_eq!(
+ ::std::mem::size_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>(),
+ 16usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>(),
+ 4usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mX1
+ as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
+ "::",
+ stringify!(mX1)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mY1
+ as *const _ as usize
+ },
+ 4usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
+ "::",
+ stringify!(mY1)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mX2
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
+ "::",
+ stringify!(mX2)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mY2
+ as *const _ as usize
+ },
+ 12usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
+ "::",
+ stringify!(mY2)
+ )
+ );
+ }
+ impl Clone for nsTimingFunction__bindgen_ty_1__bindgen_ty_1 {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsTimingFunction__bindgen_ty_1__bindgen_ty_2 {
+ pub mStepsOrFrames: u32,
+ }
+ #[test]
+ fn bindgen_test_layout_nsTimingFunction__bindgen_ty_1__bindgen_ty_2() {
+ assert_eq!(
+ ::std::mem::size_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_2>(),
+ 4usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_2)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_2>(),
+ 4usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_2)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_2>()))
+ .mStepsOrFrames as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_2),
+ "::",
+ stringify!(mStepsOrFrames)
+ )
+ );
+ }
+ impl Clone for nsTimingFunction__bindgen_ty_1__bindgen_ty_2 {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[test]
+ fn bindgen_test_layout_nsTimingFunction__bindgen_ty_1() {
+ assert_eq!(
+ ::std::mem::size_of::<nsTimingFunction__bindgen_ty_1>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsTimingFunction__bindgen_ty_1))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsTimingFunction__bindgen_ty_1>(),
+ 4usize,
+ concat!("Alignment of ", stringify!(nsTimingFunction__bindgen_ty_1))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1>())).mFunc as *const _
+ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTimingFunction__bindgen_ty_1),
+ "::",
+ stringify!(mFunc)
+ )
+ );
+ }
+ impl Clone for nsTimingFunction__bindgen_ty_1 {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[test]
+ fn bindgen_test_layout_nsTimingFunction() {
+ assert_eq!(
+ ::std::mem::size_of::<nsTimingFunction>(),
+ 20usize,
+ concat!("Size of: ", stringify!(nsTimingFunction))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsTimingFunction>(),
+ 4usize,
+ concat!("Alignment of ", stringify!(nsTimingFunction))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsTimingFunction>())).mType as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTimingFunction),
+ "::",
+ stringify!(mType)
+ )
+ );
+ }
+ impl Clone for nsTimingFunction {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
/// Factors implementation for all template versions of nsCOMPtr.
///
/// Here's the way people normally do things like this:
@@ -16817,50 +17122,6 @@ pub mod root {
);
}
#[repr(C)]
- #[derive(Debug, Copy)]
- pub struct ProfilerBacktrace {
- _unused: [u8; 0],
- }
- impl Clone for ProfilerBacktrace {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct ProfilerMarkerPayload {
- _unused: [u8; 0],
- }
- impl Clone for ProfilerMarkerPayload {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct ProfilerBacktraceDestructor {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_ProfilerBacktraceDestructor() {
- assert_eq!(
- ::std::mem::size_of::<ProfilerBacktraceDestructor>(),
- 1usize,
- concat!("Size of: ", stringify!(ProfilerBacktraceDestructor))
- );
- assert_eq!(
- ::std::mem::align_of::<ProfilerBacktraceDestructor>(),
- 1usize,
- concat!("Alignment of ", stringify!(ProfilerBacktraceDestructor))
- );
- }
- impl Clone for ProfilerBacktraceDestructor {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type UniqueProfilerBacktrace = root::mozilla::UniquePtr<root::ProfilerBacktrace>;
- #[repr(C)]
#[derive(Debug)]
pub struct nsAutoPtr<T> {
pub mRawPtr: *mut T,
@@ -17039,7 +17300,12 @@ pub mod root {
assert_eq!(
unsafe { &(*(::std::ptr::null::<nsStaticAtom>())).mStringOffset as *const _ as usize },
8usize,
- concat!("Offset of field: ", stringify!(nsStaticAtom), "::", stringify!(mString))
+ concat!(
+ "Offset of field: ",
+ stringify!(nsStaticAtom),
+ "::",
+ stringify!(mStringOffset)
+ )
);
}
#[repr(C)]
@@ -17064,507 +17330,25 @@ pub mod root {
assert_eq!(
unsafe { &(*(::std::ptr::null::<nsDynamicAtom>())).mRefCnt as *const _ as usize },
8usize,
- concat!("Offset of field: ", stringify!(nsDynamicAtom), "::", stringify!(mRefCnt))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsDynamicAtom>())).mString as *const _ as usize },
- 16usize,
- concat!("Offset of field: ", stringify!(nsDynamicAtom), "::", stringify!(mString))
- );
- }
- pub type nsLoadFlags = u32;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIRequest {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIRequest_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsIRequest_LOAD_REQUESTMASK: root::nsIRequest__bindgen_ty_1 = 65535;
- pub const nsIRequest_LOAD_NORMAL: root::nsIRequest__bindgen_ty_1 = 0;
- pub const nsIRequest_LOAD_BACKGROUND: root::nsIRequest__bindgen_ty_1 = 1;
- pub const nsIRequest_LOAD_HTML_OBJECT_DATA: root::nsIRequest__bindgen_ty_1 = 2;
- pub const nsIRequest_LOAD_DOCUMENT_NEEDS_COOKIE: root::nsIRequest__bindgen_ty_1 = 4;
- pub const nsIRequest_INHIBIT_CACHING: root::nsIRequest__bindgen_ty_1 = 128;
- pub const nsIRequest_INHIBIT_PERSISTENT_CACHING: root::nsIRequest__bindgen_ty_1 = 256;
- pub const nsIRequest_LOAD_BYPASS_CACHE: root::nsIRequest__bindgen_ty_1 = 512;
- pub const nsIRequest_LOAD_FROM_CACHE: root::nsIRequest__bindgen_ty_1 = 1024;
- pub const nsIRequest_VALIDATE_ALWAYS: root::nsIRequest__bindgen_ty_1 = 2048;
- pub const nsIRequest_VALIDATE_NEVER: root::nsIRequest__bindgen_ty_1 = 4096;
- pub const nsIRequest_VALIDATE_ONCE_PER_SESSION: root::nsIRequest__bindgen_ty_1 = 8192;
- pub const nsIRequest_LOAD_ANONYMOUS: root::nsIRequest__bindgen_ty_1 = 16384;
- pub const nsIRequest_LOAD_FRESH_CONNECTION: root::nsIRequest__bindgen_ty_1 = 32768;
- pub type nsIRequest__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsIRequest() {
- assert_eq!(
- ::std::mem::size_of::<nsIRequest>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIRequest))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIRequest>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIRequest))
- );
- }
- impl Clone for nsIRequest {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIContentPolicy {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIContentPolicy_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsIContentPolicy_TYPE_INVALID: root::nsIContentPolicy__bindgen_ty_1 = 0;
- pub const nsIContentPolicy_TYPE_OTHER: root::nsIContentPolicy__bindgen_ty_1 = 1;
- pub const nsIContentPolicy_TYPE_SCRIPT: root::nsIContentPolicy__bindgen_ty_1 = 2;
- pub const nsIContentPolicy_TYPE_IMAGE: root::nsIContentPolicy__bindgen_ty_1 = 3;
- pub const nsIContentPolicy_TYPE_STYLESHEET: root::nsIContentPolicy__bindgen_ty_1 = 4;
- pub const nsIContentPolicy_TYPE_OBJECT: root::nsIContentPolicy__bindgen_ty_1 = 5;
- pub const nsIContentPolicy_TYPE_DOCUMENT: root::nsIContentPolicy__bindgen_ty_1 = 6;
- pub const nsIContentPolicy_TYPE_SUBDOCUMENT: root::nsIContentPolicy__bindgen_ty_1 = 7;
- pub const nsIContentPolicy_TYPE_REFRESH: root::nsIContentPolicy__bindgen_ty_1 = 8;
- pub const nsIContentPolicy_TYPE_XBL: root::nsIContentPolicy__bindgen_ty_1 = 9;
- pub const nsIContentPolicy_TYPE_PING: root::nsIContentPolicy__bindgen_ty_1 = 10;
- pub const nsIContentPolicy_TYPE_XMLHTTPREQUEST: root::nsIContentPolicy__bindgen_ty_1 = 11;
- pub const nsIContentPolicy_TYPE_DATAREQUEST: root::nsIContentPolicy__bindgen_ty_1 = 11;
- pub const nsIContentPolicy_TYPE_OBJECT_SUBREQUEST: root::nsIContentPolicy__bindgen_ty_1 = 12;
- pub const nsIContentPolicy_TYPE_DTD: root::nsIContentPolicy__bindgen_ty_1 = 13;
- pub const nsIContentPolicy_TYPE_FONT: root::nsIContentPolicy__bindgen_ty_1 = 14;
- pub const nsIContentPolicy_TYPE_MEDIA: root::nsIContentPolicy__bindgen_ty_1 = 15;
- pub const nsIContentPolicy_TYPE_WEBSOCKET: root::nsIContentPolicy__bindgen_ty_1 = 16;
- pub const nsIContentPolicy_TYPE_CSP_REPORT: root::nsIContentPolicy__bindgen_ty_1 = 17;
- pub const nsIContentPolicy_TYPE_XSLT: root::nsIContentPolicy__bindgen_ty_1 = 18;
- pub const nsIContentPolicy_TYPE_BEACON: root::nsIContentPolicy__bindgen_ty_1 = 19;
- pub const nsIContentPolicy_TYPE_FETCH: root::nsIContentPolicy__bindgen_ty_1 = 20;
- pub const nsIContentPolicy_TYPE_IMAGESET: root::nsIContentPolicy__bindgen_ty_1 = 21;
- pub const nsIContentPolicy_TYPE_WEB_MANIFEST: root::nsIContentPolicy__bindgen_ty_1 = 22;
- pub const nsIContentPolicy_TYPE_SAVEAS_DOWNLOAD: root::nsIContentPolicy__bindgen_ty_1 = 43;
- pub const nsIContentPolicy_TYPE_INTERNAL_SCRIPT: root::nsIContentPolicy__bindgen_ty_1 = 23;
- pub const nsIContentPolicy_TYPE_INTERNAL_WORKER: root::nsIContentPolicy__bindgen_ty_1 = 24;
- pub const nsIContentPolicy_TYPE_INTERNAL_SHARED_WORKER: root::nsIContentPolicy__bindgen_ty_1 =
- 25;
- pub const nsIContentPolicy_TYPE_INTERNAL_EMBED: root::nsIContentPolicy__bindgen_ty_1 = 26;
- pub const nsIContentPolicy_TYPE_INTERNAL_OBJECT: root::nsIContentPolicy__bindgen_ty_1 = 27;
- pub const nsIContentPolicy_TYPE_INTERNAL_FRAME: root::nsIContentPolicy__bindgen_ty_1 = 28;
- pub const nsIContentPolicy_TYPE_INTERNAL_IFRAME: root::nsIContentPolicy__bindgen_ty_1 = 29;
- pub const nsIContentPolicy_TYPE_INTERNAL_AUDIO: root::nsIContentPolicy__bindgen_ty_1 = 30;
- pub const nsIContentPolicy_TYPE_INTERNAL_VIDEO: root::nsIContentPolicy__bindgen_ty_1 = 31;
- pub const nsIContentPolicy_TYPE_INTERNAL_TRACK: root::nsIContentPolicy__bindgen_ty_1 = 32;
- pub const nsIContentPolicy_TYPE_INTERNAL_XMLHTTPREQUEST: root::nsIContentPolicy__bindgen_ty_1 =
- 33;
- pub const nsIContentPolicy_TYPE_INTERNAL_EVENTSOURCE: root::nsIContentPolicy__bindgen_ty_1 = 34;
- pub const nsIContentPolicy_TYPE_INTERNAL_SERVICE_WORKER: root::nsIContentPolicy__bindgen_ty_1 =
- 35;
- pub const nsIContentPolicy_TYPE_INTERNAL_SCRIPT_PRELOAD: root::nsIContentPolicy__bindgen_ty_1 =
- 36;
- pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE: root::nsIContentPolicy__bindgen_ty_1 = 37;
- pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE_PRELOAD: root::nsIContentPolicy__bindgen_ty_1 =
- 38;
- pub const nsIContentPolicy_TYPE_INTERNAL_STYLESHEET: root::nsIContentPolicy__bindgen_ty_1 = 39;
- pub const nsIContentPolicy_TYPE_INTERNAL_STYLESHEET_PRELOAD:
- root::nsIContentPolicy__bindgen_ty_1 = 40;
- pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE_FAVICON: root::nsIContentPolicy__bindgen_ty_1 =
- 41;
- pub const nsIContentPolicy_TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS:
- root::nsIContentPolicy__bindgen_ty_1 = 42;
- pub const nsIContentPolicy_REJECT_REQUEST: root::nsIContentPolicy__bindgen_ty_1 = -1;
- pub const nsIContentPolicy_REJECT_TYPE: root::nsIContentPolicy__bindgen_ty_1 = -2;
- pub const nsIContentPolicy_REJECT_SERVER: root::nsIContentPolicy__bindgen_ty_1 = -3;
- pub const nsIContentPolicy_REJECT_OTHER: root::nsIContentPolicy__bindgen_ty_1 = -4;
- pub const nsIContentPolicy_ACCEPT: root::nsIContentPolicy__bindgen_ty_1 = 1;
- pub type nsIContentPolicy__bindgen_ty_1 = i32;
- #[test]
- fn bindgen_test_layout_nsIContentPolicy() {
- assert_eq!(
- ::std::mem::size_of::<nsIContentPolicy>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIContentPolicy))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIContentPolicy>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIContentPolicy))
- );
- }
- impl Clone for nsIContentPolicy {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// Base class that implements parts shared by JSErrorReport and
- /// JSErrorNotes::Note.
- #[repr(C)]
- #[derive(Debug)]
- pub struct JSErrorBase {
- pub message_: root::JS::ConstUTF8CharsZ,
- pub filename: *const ::std::os::raw::c_char,
- pub lineno: ::std::os::raw::c_uint,
- pub column: ::std::os::raw::c_uint,
- pub errorNumber: ::std::os::raw::c_uint,
- pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 1usize], u8>,
- pub __bindgen_padding_0: [u8; 3usize],
- }
- #[test]
- fn bindgen_test_layout_JSErrorBase() {
- assert_eq!(
- ::std::mem::size_of::<JSErrorBase>(),
- 32usize,
- concat!("Size of: ", stringify!(JSErrorBase))
- );
- assert_eq!(
- ::std::mem::align_of::<JSErrorBase>(),
- 8usize,
- concat!("Alignment of ", stringify!(JSErrorBase))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<JSErrorBase>())).message_ as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(JSErrorBase),
- "::",
- stringify!(message_)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<JSErrorBase>())).filename as *const _ as usize },
- 8usize,
concat!(
"Offset of field: ",
- stringify!(JSErrorBase),
+ stringify!(nsDynamicAtom),
"::",
- stringify!(filename)
+ stringify!(mRefCnt)
)
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<JSErrorBase>())).lineno as *const _ as usize },
+ unsafe { &(*(::std::ptr::null::<nsDynamicAtom>())).mString as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
- stringify!(JSErrorBase),
+ stringify!(nsDynamicAtom),
"::",
- stringify!(lineno)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<JSErrorBase>())).column as *const _ as usize },
- 20usize,
- concat!(
- "Offset of field: ",
- stringify!(JSErrorBase),
- "::",
- stringify!(column)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<JSErrorBase>())).errorNumber as *const _ as usize },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(JSErrorBase),
- "::",
- stringify!(errorNumber)
- )
- );
- }
- impl JSErrorBase {
- #[inline]
- pub fn ownsMessage_(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_ownsMessage_(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(0usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn new_bitfield_1(ownsMessage_: bool) -> root::__BindgenBitfieldUnit<[u8; 1usize], u8> {
- let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
- [u8; 1usize],
- u8,
- > = Default::default();
- __bindgen_bitfield_unit.set(0usize, 1u8, {
- let ownsMessage_: u8 = unsafe { ::std::mem::transmute(ownsMessage_) };
- ownsMessage_ as u64
- });
- __bindgen_bitfield_unit
- }
- }
- /// Notes associated with JSErrorReport.
- #[repr(C)]
- #[derive(Debug)]
- pub struct JSErrorNotes {
- pub notes_: [u64; 4usize],
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct JSErrorNotes_Note {
- pub _base: root::JSErrorBase,
- }
- #[test]
- fn bindgen_test_layout_JSErrorNotes_Note() {
- assert_eq!(
- ::std::mem::size_of::<JSErrorNotes_Note>(),
- 32usize,
- concat!("Size of: ", stringify!(JSErrorNotes_Note))
- );
- assert_eq!(
- ::std::mem::align_of::<JSErrorNotes_Note>(),
- 8usize,
- concat!("Alignment of ", stringify!(JSErrorNotes_Note))
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct JSErrorNotes_iterator {
- pub note_: *mut root::mozilla::UniquePtr<root::JSErrorNotes_Note>,
- }
- #[test]
- fn bindgen_test_layout_JSErrorNotes_iterator() {
- assert_eq!(
- ::std::mem::size_of::<JSErrorNotes_iterator>(),
- 8usize,
- concat!("Size of: ", stringify!(JSErrorNotes_iterator))
- );
- assert_eq!(
- ::std::mem::align_of::<JSErrorNotes_iterator>(),
- 8usize,
- concat!("Alignment of ", stringify!(JSErrorNotes_iterator))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<JSErrorNotes_iterator>())).note_ as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(JSErrorNotes_iterator),
- "::",
- stringify!(note_)
- )
- );
- }
- #[test]
- fn bindgen_test_layout_JSErrorNotes() {
- assert_eq!(
- ::std::mem::size_of::<JSErrorNotes>(),
- 32usize,
- concat!("Size of: ", stringify!(JSErrorNotes))
- );
- assert_eq!(
- ::std::mem::align_of::<JSErrorNotes>(),
- 8usize,
- concat!("Alignment of ", stringify!(JSErrorNotes))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<JSErrorNotes>())).notes_ as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(JSErrorNotes),
- "::",
- stringify!(notes_)
+ stringify!(mString)
)
);
}
#[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsISerializable {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsISerializable_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsISerializable() {
- assert_eq!(
- ::std::mem::size_of::<nsISerializable>(),
- 8usize,
- concat!("Size of: ", stringify!(nsISerializable))
- );
- assert_eq!(
- ::std::mem::align_of::<nsISerializable>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsISerializable))
- );
- }
- impl Clone for nsISerializable {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIPrincipal {
- pub _base: root::nsISerializable,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIPrincipal_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIPrincipal() {
- assert_eq!(
- ::std::mem::size_of::<nsIPrincipal>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIPrincipal))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIPrincipal>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIPrincipal))
- );
- }
- impl Clone for nsIPrincipal {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDocShell {
- _unused: [u8; 0],
- }
- impl Clone for nsIDocShell {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIScriptSecurityManager {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIScriptSecurityManager_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsIScriptSecurityManager_STANDARD: root::nsIScriptSecurityManager__bindgen_ty_1 = 0;
- pub const nsIScriptSecurityManager_LOAD_IS_AUTOMATIC_DOCUMENT_REPLACEMENT:
- root::nsIScriptSecurityManager__bindgen_ty_1 = 1;
- pub const nsIScriptSecurityManager_ALLOW_CHROME: root::nsIScriptSecurityManager__bindgen_ty_1 =
- 2;
- pub const nsIScriptSecurityManager_DISALLOW_INHERIT_PRINCIPAL:
- root::nsIScriptSecurityManager__bindgen_ty_1 = 4;
- pub const nsIScriptSecurityManager_DISALLOW_SCRIPT_OR_DATA:
- root::nsIScriptSecurityManager__bindgen_ty_1 = 4;
- pub const nsIScriptSecurityManager_DISALLOW_SCRIPT:
- root::nsIScriptSecurityManager__bindgen_ty_1 = 8;
- pub const nsIScriptSecurityManager_DONT_REPORT_ERRORS:
- root::nsIScriptSecurityManager__bindgen_ty_1 = 16;
- pub type nsIScriptSecurityManager__bindgen_ty_1 = u32;
- pub const nsIScriptSecurityManager_NO_APP_ID: root::nsIScriptSecurityManager__bindgen_ty_2 = 0;
- pub const nsIScriptSecurityManager_UNKNOWN_APP_ID:
- root::nsIScriptSecurityManager__bindgen_ty_2 = 4294967295;
- pub const nsIScriptSecurityManager_DEFAULT_USER_CONTEXT_ID:
- root::nsIScriptSecurityManager__bindgen_ty_2 = 0;
- pub type nsIScriptSecurityManager__bindgen_ty_2 = u32;
- #[test]
- fn bindgen_test_layout_nsIScriptSecurityManager() {
- assert_eq!(
- ::std::mem::size_of::<nsIScriptSecurityManager>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIScriptSecurityManager))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIScriptSecurityManager>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIScriptSecurityManager))
- );
- }
- impl Clone for nsIScriptSecurityManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIChannel {
- pub _base: root::nsIRequest,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIChannel_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsIChannel_LOAD_DOCUMENT_URI: root::nsIChannel__bindgen_ty_1 = 65536;
- pub const nsIChannel_LOAD_RETARGETED_DOCUMENT_URI: root::nsIChannel__bindgen_ty_1 = 131072;
- pub const nsIChannel_LOAD_REPLACE: root::nsIChannel__bindgen_ty_1 = 262144;
- pub const nsIChannel_LOAD_INITIAL_DOCUMENT_URI: root::nsIChannel__bindgen_ty_1 = 524288;
- pub const nsIChannel_LOAD_TARGETED: root::nsIChannel__bindgen_ty_1 = 1048576;
- pub const nsIChannel_LOAD_CALL_CONTENT_SNIFFERS: root::nsIChannel__bindgen_ty_1 = 2097152;
- pub const nsIChannel_LOAD_CLASSIFY_URI: root::nsIChannel__bindgen_ty_1 = 4194304;
- pub const nsIChannel_LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE: root::nsIChannel__bindgen_ty_1 =
- 8388608;
- pub const nsIChannel_LOAD_EXPLICIT_CREDENTIALS: root::nsIChannel__bindgen_ty_1 = 16777216;
- pub const nsIChannel_LOAD_BYPASS_SERVICE_WORKER: root::nsIChannel__bindgen_ty_1 = 33554432;
- pub type nsIChannel__bindgen_ty_1 = u32;
- pub const nsIChannel_DISPOSITION_INLINE: root::nsIChannel__bindgen_ty_2 = 0;
- pub const nsIChannel_DISPOSITION_ATTACHMENT: root::nsIChannel__bindgen_ty_2 = 1;
- pub type nsIChannel__bindgen_ty_2 = u32;
- #[test]
- fn bindgen_test_layout_nsIChannel() {
- assert_eq!(
- ::std::mem::size_of::<nsIChannel>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIChannel))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIChannel>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIChannel))
- );
- }
- impl Clone for nsIChannel {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsICSSLoaderObserver {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsICSSLoaderObserver_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsICSSLoaderObserver() {
- assert_eq!(
- ::std::mem::size_of::<nsICSSLoaderObserver>(),
- 8usize,
- concat!("Size of: ", stringify!(nsICSSLoaderObserver))
- );
- assert_eq!(
- ::std::mem::align_of::<nsICSSLoaderObserver>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsICSSLoaderObserver))
- );
- }
- impl Clone for nsICSSLoaderObserver {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
pub struct nsCycleCollectionParticipant__bindgen_vtable(::std::os::raw::c_void);
/// Participant implementation classes
#[repr(C)]
@@ -17784,3451 +17568,61 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct nsBindingManager {
- _unused: [u8; 0],
- }
- impl Clone for nsBindingManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type gfxSize = [u64; 2usize];
- /// hashkey wrapper using nsAString KeyType
- ///
- /// @see nsTHashtable::EntryType for specification
- #[repr(C)]
- pub struct nsStringHashKey {
- pub _base: root::PLDHashEntryHdr,
- pub mStr: ::nsstring::nsStringRepr,
- }
- pub type nsStringHashKey_KeyType = *const root::nsAString;
- pub type nsStringHashKey_KeyTypePointer = *const root::nsAString;
- pub const nsStringHashKey_ALLOW_MEMMOVE: root::nsStringHashKey__bindgen_ty_1 = 1;
- pub type nsStringHashKey__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsStringHashKey() {
- assert_eq!(
- ::std::mem::size_of::<nsStringHashKey>(),
- 24usize,
- concat!("Size of: ", stringify!(nsStringHashKey))
- );
- assert_eq!(
- ::std::mem::align_of::<nsStringHashKey>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsStringHashKey))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsStringHashKey>())).mStr as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsStringHashKey),
- "::",
- stringify!(mStr)
- )
- );
- }
- /// hashkey wrapper using nsACString KeyType
- ///
- /// @see nsTHashtable::EntryType for specification
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsCStringHashKey {
- pub _base: root::PLDHashEntryHdr,
- pub mStr: root::nsCString,
- }
- pub type nsCStringHashKey_KeyType = *const root::nsACString;
- pub type nsCStringHashKey_KeyTypePointer = *const root::nsACString;
- pub const nsCStringHashKey_ALLOW_MEMMOVE: root::nsCStringHashKey__bindgen_ty_1 = 1;
- pub type nsCStringHashKey__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsCStringHashKey() {
- assert_eq!(
- ::std::mem::size_of::<nsCStringHashKey>(),
- 24usize,
- concat!("Size of: ", stringify!(nsCStringHashKey))
- );
- assert_eq!(
- ::std::mem::align_of::<nsCStringHashKey>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsCStringHashKey))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsCStringHashKey>())).mStr as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsCStringHashKey),
- "::",
- stringify!(mStr)
- )
- );
- }
- /// hashkey wrapper using refcounted * KeyType
- ///
- /// @see nsTHashtable::EntryType for specification
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsRefPtrHashKey<T> {
- pub _base: root::PLDHashEntryHdr,
- pub mKey: root::RefPtr<T>,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
- }
- pub type nsRefPtrHashKey_KeyType<T> = *mut T;
- pub type nsRefPtrHashKey_KeyTypePointer<T> = *mut T;
- pub const nsRefPtrHashKey_ALLOW_MEMMOVE: root::nsRefPtrHashKey__bindgen_ty_1 = 0;
- pub type nsRefPtrHashKey__bindgen_ty_1 = i32;
- pub type DOMHighResTimeStamp = f64;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDOMNode {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIDOMNode_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIDOMNode() {
- assert_eq!(
- ::std::mem::size_of::<nsIDOMNode>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIDOMNode))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIDOMNode>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIDOMNode))
- );
- }
- impl Clone for nsIDOMNode {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const kNameSpaceID_None: i32 = 0;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIVariant {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIVariant_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIVariant() {
- assert_eq!(
- ::std::mem::size_of::<nsIVariant>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIVariant))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIVariant>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIVariant))
- );
- }
- impl Clone for nsIVariant {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// the private nsTHashtable::EntryType class used by nsBaseHashtable
- /// @see nsTHashtable for the specification of this class
- /// @see nsBaseHashtable for template parameters
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsBaseHashtableET<KeyClass, DataType> {
- pub _base: KeyClass,
- pub mData: DataType,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>,
- pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>,
- }
- pub type nsBaseHashtableET_KeyType = [u8; 0usize];
- pub type nsBaseHashtableET_KeyTypePointer = [u8; 0usize];
- /// templated hashtable for simple data types
- /// This class manages simple data types that do not need construction or
- /// destruction.
- ///
- /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
- /// for a complete specification.
- /// @param DataType the datatype stored in the hashtable,
- /// for example, uint32_t or nsCOMPtr. If UserDataType is not the same,
- /// DataType must implicitly cast to UserDataType
- /// @param UserDataType the user sees, for example uint32_t or nsISupports*
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsBaseHashtable {
- pub _address: u8,
- }
- pub type nsBaseHashtable_fallible_t = root::mozilla::fallible_t;
- pub type nsBaseHashtable_KeyType = [u8; 0usize];
- pub type nsBaseHashtable_EntryType<KeyClass, DataType> =
- root::nsBaseHashtableET<KeyClass, DataType>;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsBaseHashtable_LookupResult<KeyClass, DataType> {
- pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>,
- pub mTable: *mut u8,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>,
- pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>,
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsBaseHashtable_EntryPtr<KeyClass, DataType> {
- pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>,
- pub mExistingEntry: bool,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>,
- pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>,
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsBaseHashtable_Iterator {
- pub _base: root::PLDHashTable_Iterator,
- }
- pub type nsBaseHashtable_Iterator_Base = root::PLDHashTable_Iterator;
- /// templated hashtable class maps keys to simple datatypes.
- /// See nsBaseHashtable for complete declaration
- /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
- /// for a complete specification.
- /// @param DataType the simple datatype being wrapped
- /// @see nsInterfaceHashtable, nsClassHashtable
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsDataHashtable {
- pub _address: u8,
- }
- pub type nsDataHashtable_BaseClass = u8;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsNodeInfoManager {
- pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
- pub mNodeInfoHash: [u64; 4usize],
- pub mDocument: *mut root::nsIDocument,
- pub mNonDocumentNodeInfos: u32,
- pub mPrincipal: root::nsCOMPtr,
- pub mDefaultPrincipal: root::nsCOMPtr,
- pub mTextNodeInfo: *mut root::mozilla::dom::NodeInfo,
- pub mCommentNodeInfo: *mut root::mozilla::dom::NodeInfo,
- pub mDocumentNodeInfo: *mut root::mozilla::dom::NodeInfo,
- pub mBindingManager: root::RefPtr<root::nsBindingManager>,
- pub mRecentlyUsedNodeInfos: [*mut root::mozilla::dom::NodeInfo; 31usize],
- pub mSVGEnabled: root::nsNodeInfoManager_Tri,
- pub mMathMLEnabled: root::nsNodeInfoManager_Tri,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsNodeInfoManager_cycleCollection {
- pub _base: root::nsCycleCollectionParticipant,
- }
- #[test]
- fn bindgen_test_layout_nsNodeInfoManager_cycleCollection() {
- assert_eq!(
- ::std::mem::size_of::<nsNodeInfoManager_cycleCollection>(),
- 16usize,
- concat!("Size of: ", stringify!(nsNodeInfoManager_cycleCollection))
- );
- assert_eq!(
- ::std::mem::align_of::<nsNodeInfoManager_cycleCollection>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsNodeInfoManager_cycleCollection)
- )
- );
- }
- impl Clone for nsNodeInfoManager_cycleCollection {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type nsNodeInfoManager_HasThreadSafeRefCnt = root::mozilla::FalseType;
- pub const nsNodeInfoManager_Tri_eTriUnset: root::nsNodeInfoManager_Tri = 0;
- pub const nsNodeInfoManager_Tri_eTriFalse: root::nsNodeInfoManager_Tri = 1;
- pub const nsNodeInfoManager_Tri_eTriTrue: root::nsNodeInfoManager_Tri = 2;
- pub type nsNodeInfoManager_Tri = u32;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsNodeInfoManager_NodeInfoInnerKey {
- pub _base: root::nsPtrHashKey<root::mozilla::dom::NodeInfo_NodeInfoInner>,
- }
- #[test]
- fn bindgen_test_layout_nsNodeInfoManager_NodeInfoInnerKey() {
- assert_eq!(
- ::std::mem::size_of::<nsNodeInfoManager_NodeInfoInnerKey>(),
- 16usize,
- concat!("Size of: ", stringify!(nsNodeInfoManager_NodeInfoInnerKey))
- );
- assert_eq!(
- ::std::mem::align_of::<nsNodeInfoManager_NodeInfoInnerKey>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsNodeInfoManager_NodeInfoInnerKey)
- )
- );
- }
- extern "C" {
- #[link_name = "\u{1}_ZN17nsNodeInfoManager21_cycleCollectorGlobalE"]
- pub static mut nsNodeInfoManager__cycleCollectorGlobal:
- root::nsNodeInfoManager_cycleCollection;
- }
- #[test]
- fn bindgen_test_layout_nsNodeInfoManager() {
- assert_eq!(
- ::std::mem::size_of::<nsNodeInfoManager>(),
- 360usize,
- concat!("Size of: ", stringify!(nsNodeInfoManager))
- );
- assert_eq!(
- ::std::mem::align_of::<nsNodeInfoManager>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsNodeInfoManager))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsNodeInfoManager>())).mRefCnt as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mRefCnt)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mNodeInfoHash as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mNodeInfoHash)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsNodeInfoManager>())).mDocument as *const _ as usize },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mDocument)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mNonDocumentNodeInfos as *const _
- as usize
- },
- 48usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mNonDocumentNodeInfos)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mPrincipal as *const _ as usize
- },
- 56usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mPrincipal)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mDefaultPrincipal as *const _ as usize
- },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mDefaultPrincipal)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mTextNodeInfo as *const _ as usize
- },
- 72usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mTextNodeInfo)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mCommentNodeInfo as *const _ as usize
- },
- 80usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mCommentNodeInfo)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mDocumentNodeInfo as *const _ as usize
- },
- 88usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mDocumentNodeInfo)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mBindingManager as *const _ as usize
- },
- 96usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mBindingManager)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mRecentlyUsedNodeInfos as *const _
- as usize
- },
- 104usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mRecentlyUsedNodeInfos)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mSVGEnabled as *const _ as usize
- },
- 352usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mSVGEnabled)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsNodeInfoManager>())).mMathMLEnabled as *const _ as usize
- },
- 356usize,
- concat!(
- "Offset of field: ",
- stringify!(nsNodeInfoManager),
- "::",
- stringify!(mMathMLEnabled)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsPropertyTable {
- pub mPropertyList: *mut root::nsPropertyTable_PropertyList,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsPropertyTable_PropertyList {
- _unused: [u8; 0],
- }
- impl Clone for nsPropertyTable_PropertyList {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_nsPropertyTable() {
- assert_eq!(
- ::std::mem::size_of::<nsPropertyTable>(),
- 8usize,
- concat!("Size of: ", stringify!(nsPropertyTable))
- );
- assert_eq!(
- ::std::mem::align_of::<nsPropertyTable>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsPropertyTable))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPropertyTable>())).mPropertyList as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPropertyTable),
- "::",
- stringify!(mPropertyList)
- )
- );
- }
- pub type nsTObserverArray_base_index_type = usize;
- pub type nsTObserverArray_base_size_type = usize;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsTObserverArray_base_Iterator_base {
- pub mPosition: root::nsTObserverArray_base_index_type,
- pub mNext: *mut root::nsTObserverArray_base_Iterator_base,
- }
- #[test]
- fn bindgen_test_layout_nsTObserverArray_base_Iterator_base() {
- assert_eq!(
- ::std::mem::size_of::<nsTObserverArray_base_Iterator_base>(),
- 16usize,
- concat!("Size of: ", stringify!(nsTObserverArray_base_Iterator_base))
- );
- assert_eq!(
- ::std::mem::align_of::<nsTObserverArray_base_Iterator_base>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsTObserverArray_base_Iterator_base)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTObserverArray_base_Iterator_base>())).mPosition
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTObserverArray_base_Iterator_base),
- "::",
- stringify!(mPosition)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTObserverArray_base_Iterator_base>())).mNext as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTObserverArray_base_Iterator_base),
- "::",
- stringify!(mNext)
- )
- );
- }
- impl Clone for nsTObserverArray_base_Iterator_base {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type nsAutoTObserverArray_elem_type<T> = T;
- pub type nsAutoTObserverArray_array_type<T> = root::nsTArray<T>;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAutoTObserverArray_Iterator {
- pub _base: root::nsTObserverArray_base_Iterator_base,
- pub mArray: *mut root::nsAutoTObserverArray_Iterator_array_type,
- }
- pub type nsAutoTObserverArray_Iterator_array_type = u8;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAutoTObserverArray_ForwardIterator {
- pub _base: root::nsAutoTObserverArray_Iterator,
- }
- pub type nsAutoTObserverArray_ForwardIterator_array_type = u8;
- pub type nsAutoTObserverArray_ForwardIterator_base_type = root::nsAutoTObserverArray_Iterator;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAutoTObserverArray_EndLimitedIterator {
- pub _base: root::nsAutoTObserverArray_ForwardIterator,
- pub mEnd: root::nsAutoTObserverArray_ForwardIterator,
- }
- pub type nsAutoTObserverArray_EndLimitedIterator_array_type = u8;
- pub type nsAutoTObserverArray_EndLimitedIterator_base_type =
- root::nsAutoTObserverArray_Iterator;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAutoTObserverArray_BackwardIterator {
- pub _base: root::nsAutoTObserverArray_Iterator,
- }
- pub type nsAutoTObserverArray_BackwardIterator_array_type = u8;
- pub type nsAutoTObserverArray_BackwardIterator_base_type = root::nsAutoTObserverArray_Iterator;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsTObserverArray {
- pub _address: u8,
- }
- pub type nsTObserverArray_base_type = u8;
- pub type nsTObserverArray_size_type = root::nsTObserverArray_base_size_type;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDOMEventTarget {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIDOMEventTarget_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIDOMEventTarget() {
- assert_eq!(
- ::std::mem::size_of::<nsIDOMEventTarget>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIDOMEventTarget))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIDOMEventTarget>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIDOMEventTarget))
- );
- }
- impl Clone for nsIDOMEventTarget {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsAttrChildContentList {
- _unused: [u8; 0],
- }
- impl Clone for nsAttrChildContentList {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsCSSSelectorList {
- _unused: [u8; 0],
- }
- impl Clone for nsCSSSelectorList {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsRange {
- _unused: [u8; 0],
- }
- impl Clone for nsRange {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoSelectorList {
- _unused: [u8; 0],
- }
- impl Clone for RawServoSelectorList {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_29 = 4;
- pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_29 = 8;
- pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_29 = 16;
- pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_29 = 32;
- pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_29 = 64;
- pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_29 = 128;
- pub const NODE_IS_EDITABLE: root::_bindgen_ty_29 = 256;
- pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_29 = 512;
- pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_29 = 1024;
- pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_29 = 2048;
- pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_29 = 4096;
- pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_29 = 8192;
- pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_29 = 16384;
- pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_29 = 30720;
- pub const NODE_NEEDS_FRAME: root::_bindgen_ty_29 = 32768;
- pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_29 = 65536;
- pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_29 = 131072;
- pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_29 = 262144;
- pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_29 = 524288;
- pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_29 = 786432;
- pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_29 = 1048576;
- pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_29 = 2097152;
- pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_29 = 20;
- pub type _bindgen_ty_29 = u32;
- /// An internal interface that abstracts some DOMNode-related parts that both
- /// nsIContent and nsIDocument share. An instance of this interface has a list
- /// of nsIContent children and provides access to them.
- #[repr(C)]
- pub struct nsINode {
- pub _base: root::mozilla::dom::EventTarget,
- pub mNodeInfo: root::RefPtr<root::mozilla::dom::NodeInfo>,
- pub mParent: *mut root::nsINode,
- pub mNextSibling: *mut root::nsIContent,
- pub mPreviousSibling: *mut root::nsIContent,
- pub mFirstChild: *mut root::nsIContent,
- pub __bindgen_anon_1: root::nsINode__bindgen_ty_2,
- pub mSlots: *mut root::nsINode_nsSlots,
- }
- pub type nsINode_BoxQuadOptions = root::mozilla::dom::BoxQuadOptions;
- pub type nsINode_ConvertCoordinateOptions = root::mozilla::dom::ConvertCoordinateOptions;
- pub type nsINode_DocGroup = root::mozilla::dom::DocGroup;
- pub type nsINode_DOMPoint = root::mozilla::dom::DOMPoint;
- pub type nsINode_DOMPointInit = root::mozilla::dom::DOMPointInit;
- pub type nsINode_DOMQuad = root::mozilla::dom::DOMQuad;
- pub type nsINode_DOMRectReadOnly = root::mozilla::dom::DOMRectReadOnly;
- pub type nsINode_OwningNodeOrString = root::mozilla::dom::OwningNodeOrString;
- pub type nsINode_TextOrElementOrDocument = root::mozilla::dom::TextOrElementOrDocument;
- pub use self::super::root::mozilla::dom::CallerType as nsINode_CallerType;
- pub type nsINode_Sequence = u8;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsINode_COMTypeInfo {
- pub _address: u8,
- }
- /// nsIDocument nodes
- pub const nsINode_eDOCUMENT: root::nsINode__bindgen_ty_1 = 2;
- /// nsIAttribute nodes
- pub const nsINode_eATTRIBUTE: root::nsINode__bindgen_ty_1 = 4;
- /// text nodes
- pub const nsINode_eTEXT: root::nsINode__bindgen_ty_1 = 8;
- /// xml processing instructions
- pub const nsINode_ePROCESSING_INSTRUCTION: root::nsINode__bindgen_ty_1 = 16;
- /// comment nodes
- pub const nsINode_eCOMMENT: root::nsINode__bindgen_ty_1 = 32;
- /// form control elements
- pub const nsINode_eHTML_FORM_CONTROL: root::nsINode__bindgen_ty_1 = 64;
- /// document fragments
- pub const nsINode_eDOCUMENT_FRAGMENT: root::nsINode__bindgen_ty_1 = 128;
- /// character data nodes (comments, PIs, text).
- pub const nsINode_eDATA_NODE: root::nsINode__bindgen_ty_1 = 256;
- /// HTMLMediaElement
- pub const nsINode_eMEDIA: root::nsINode__bindgen_ty_1 = 512;
- /// animation elements
- pub const nsINode_eANIMATION: root::nsINode__bindgen_ty_1 = 1024;
- /// filter elements that implement SVGFilterPrimitiveStandardAttributes
- pub const nsINode_eFILTER: root::nsINode__bindgen_ty_1 = 2048;
- /// SVGGeometryElement
- pub const nsINode_eSHAPE: root::nsINode__bindgen_ty_1 = 4096;
- /// Bit-flags to pass (or'ed together) to IsNodeOfType()
- pub type nsINode__bindgen_ty_1 = u32;
- pub const nsINode_FlattenedParentType_eNotForStyle: root::nsINode_FlattenedParentType = 0;
- pub const nsINode_FlattenedParentType_eForStyle: root::nsINode_FlattenedParentType = 1;
- pub type nsINode_FlattenedParentType = u32;
- #[repr(C)]
- pub struct nsINode_nsSlots__bindgen_vtable(::std::os::raw::c_void);
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsINode_nsSlots {
- pub vtable_: *const nsINode_nsSlots__bindgen_vtable,
- /// A list of mutation observers
- pub mMutationObservers: [u64; 4usize],
- /// An object implementing nsIDOMNodeList for this content (childNodes)
- /// @see nsIDOMNodeList
- /// @see nsGenericHTMLElement::GetChildNodes
- pub mChildNodes: root::RefPtr<root::nsAttrChildContentList>,
- /// Weak reference to this node. This is cleared by the destructor of
- /// nsNodeWeakReference.
- pub mWeakReference: *mut root::nsNodeWeakReference,
- /// A set of ranges which are in the selection and which have this node as
- /// their endpoints' common ancestor. This is a UniquePtr instead of just a
- /// LinkedList, because that prevents us from pushing DOMSlots up to the next
- /// allocation bucket size, at the cost of some complexity.
- pub mCommonAncestorRanges: root::mozilla::UniquePtr<root::mozilla::LinkedList>,
- /// Number of descendant nodes in the uncomposed document that have been
- /// explicitly set as editable.
- pub mEditableDescendantCount: u32,
- }
- #[test]
- fn bindgen_test_layout_nsINode_nsSlots() {
- assert_eq!(
- ::std::mem::size_of::<nsINode_nsSlots>(),
- 72usize,
- concat!("Size of: ", stringify!(nsINode_nsSlots))
- );
- assert_eq!(
- ::std::mem::align_of::<nsINode_nsSlots>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsINode_nsSlots))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsINode_nsSlots>())).mMutationObservers as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode_nsSlots),
- "::",
- stringify!(mMutationObservers)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsINode_nsSlots>())).mChildNodes as *const _ as usize },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode_nsSlots),
- "::",
- stringify!(mChildNodes)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsINode_nsSlots>())).mWeakReference as *const _ as usize
- },
- 48usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode_nsSlots),
- "::",
- stringify!(mWeakReference)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsINode_nsSlots>())).mCommonAncestorRanges as *const _
- as usize
- },
- 56usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode_nsSlots),
- "::",
- stringify!(mCommonAncestorRanges)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsINode_nsSlots>())).mEditableDescendantCount as *const _
- as usize
- },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode_nsSlots),
- "::",
- stringify!(mEditableDescendantCount)
- )
- );
- }
- #[repr(u32)]
- /// Boolean flags
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum nsINode_BooleanFlag {
- NodeHasRenderingObservers = 0,
- IsInDocument = 1,
- ParentIsContent = 2,
- NodeIsElement = 3,
- ElementHasID = 4,
- ElementMayHaveClass = 5,
- ElementMayHaveStyle = 6,
- ElementHasName = 7,
- ElementMayHaveContentEditableAttr = 8,
- NodeIsCommonAncestorForRangeInSelection = 9,
- NodeIsDescendantOfCommonAncestorForRangeInSelection = 10,
- NodeIsCCMarkedRoot = 11,
- NodeIsCCBlackTree = 12,
- NodeIsPurpleRoot = 13,
- ElementHasLockedStyleStates = 14,
- ElementHasPointerLock = 15,
- NodeMayHaveDOMMutationObserver = 16,
- NodeIsContent = 17,
- ElementHasAnimations = 18,
- NodeHasValidDirAttribute = 19,
- NodeHasDirAutoSet = 20,
- NodeHasTextNodeDirectionalityMap = 21,
- NodeAncestorHasDirAuto = 22,
- NodeHandlingClick = 23,
- NodeHasRelevantHoverRules = 24,
- ElementHasWeirdParserInsertionMode = 25,
- ParserHasNotified = 26,
- MayBeApzAware = 27,
- ElementMayHaveAnonymousChildren = 28,
- NodeMayHaveChildrenWithLayoutBoxesDisabled = 29,
- BooleanFlagCount = 30,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsINode__bindgen_ty_2 {
- pub mPrimaryFrame: root::__BindgenUnionField<*mut root::nsIFrame>,
- pub mSubtreeRoot: root::__BindgenUnionField<*mut root::nsINode>,
- pub bindgen_union_field: u64,
- }
- #[test]
- fn bindgen_test_layout_nsINode__bindgen_ty_2() {
- assert_eq!(
- ::std::mem::size_of::<nsINode__bindgen_ty_2>(),
- 8usize,
- concat!("Size of: ", stringify!(nsINode__bindgen_ty_2))
- );
- assert_eq!(
- ::std::mem::align_of::<nsINode__bindgen_ty_2>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsINode__bindgen_ty_2))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsINode__bindgen_ty_2>())).mPrimaryFrame as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode__bindgen_ty_2),
- "::",
- stringify!(mPrimaryFrame)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsINode__bindgen_ty_2>())).mSubtreeRoot as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode__bindgen_ty_2),
- "::",
- stringify!(mSubtreeRoot)
- )
- );
- }
- impl Clone for nsINode__bindgen_ty_2 {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const nsINode_ELEMENT_NODE: ::std::os::raw::c_ushort = 1;
- pub const nsINode_ATTRIBUTE_NODE: ::std::os::raw::c_ushort = 2;
- pub const nsINode_TEXT_NODE: ::std::os::raw::c_ushort = 3;
- pub const nsINode_CDATA_SECTION_NODE: ::std::os::raw::c_ushort = 4;
- pub const nsINode_ENTITY_REFERENCE_NODE: ::std::os::raw::c_ushort = 5;
- pub const nsINode_ENTITY_NODE: ::std::os::raw::c_ushort = 6;
- pub const nsINode_PROCESSING_INSTRUCTION_NODE: ::std::os::raw::c_ushort = 7;
- pub const nsINode_COMMENT_NODE: ::std::os::raw::c_ushort = 8;
- pub const nsINode_DOCUMENT_NODE: ::std::os::raw::c_ushort = 9;
- pub const nsINode_DOCUMENT_TYPE_NODE: ::std::os::raw::c_ushort = 10;
- pub const nsINode_DOCUMENT_FRAGMENT_NODE: ::std::os::raw::c_ushort = 11;
- pub const nsINode_NOTATION_NODE: ::std::os::raw::c_ushort = 12;
- #[test]
- fn bindgen_test_layout_nsINode() {
- assert_eq!(
- ::std::mem::size_of::<nsINode>(),
- 88usize,
- concat!("Size of: ", stringify!(nsINode))
- );
- assert_eq!(
- ::std::mem::align_of::<nsINode>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsINode))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsINode>())).mNodeInfo as *const _ as usize },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode),
- "::",
- stringify!(mNodeInfo)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsINode>())).mParent as *const _ as usize },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode),
- "::",
- stringify!(mParent)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsINode>())).mNextSibling as *const _ as usize },
- 48usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode),
- "::",
- stringify!(mNextSibling)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsINode>())).mPreviousSibling as *const _ as usize },
- 56usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode),
- "::",
- stringify!(mPreviousSibling)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsINode>())).mFirstChild as *const _ as usize },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode),
- "::",
- stringify!(mFirstChild)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsINode>())).mSlots as *const _ as usize },
- 80usize,
- concat!(
- "Offset of field: ",
- stringify!(nsINode),
- "::",
- stringify!(mSlots)
- )
- );
- }
- /// A node of content in a document's content model. This interface
- /// is supported by all content objects.
- #[repr(C)]
- pub struct nsIContent {
- pub _base: root::nsINode,
- }
- pub type nsIContent_IMEState = root::mozilla::widget::IMEState;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIContent_COMTypeInfo {
- pub _address: u8,
- }
- /// All XBL flattened tree children of the node, as well as :before and
- /// :after anonymous content and native anonymous children.
- ///
- /// @note the result children order is
- /// 1. :before generated node
- /// 2. XBL flattened tree children of this node
- /// 3. native anonymous nodes
- /// 4. :after generated node
- pub const nsIContent_eAllChildren: root::nsIContent__bindgen_ty_1 = 0;
- /// All XBL explicit children of the node (see
- /// http://www.w3.org/TR/xbl/#explicit3 ), as well as :before and :after
- /// anonymous content and native anonymous children.
- ///
- /// @note the result children order is
- /// 1. :before generated node
- /// 2. XBL explicit children of the node
- /// 3. native anonymous nodes
- /// 4. :after generated node
- pub const nsIContent_eAllButXBL: root::nsIContent__bindgen_ty_1 = 1;
- /// Skip native anonymous content created for placeholder of HTML input,
- /// used in conjunction with eAllChildren or eAllButXBL.
- pub const nsIContent_eSkipPlaceholderContent: root::nsIContent__bindgen_ty_1 = 2;
- /// Skip native anonymous content created by ancestor frames of the root
- /// element's primary frame, such as scrollbar elements created by the root
- /// scroll frame.
- pub const nsIContent_eSkipDocumentLevelNativeAnonymousContent: root::nsIContent__bindgen_ty_1 =
- 4;
- pub type nsIContent__bindgen_ty_1 = u32;
- #[repr(C)]
- pub struct nsIContent_nsExtendedContentSlots__bindgen_vtable(::std::os::raw::c_void);
- /// Lazily allocated extended slots to avoid
- /// that may only be instantiated when a content object is accessed
- /// through the DOM. Rather than burn actual slots in the content
- /// objects for each of these instance variables, we put them off
- /// in a side structure that's only allocated when the content is
- /// accessed through the DOM.
- #[repr(C)]
- pub struct nsIContent_nsExtendedContentSlots {
- pub vtable_: *const nsIContent_nsExtendedContentSlots__bindgen_vtable,
- /// The nearest enclosing content node with a binding that created us.
- /// @see nsIContent::GetBindingParent
- pub mBindingParent: *mut root::nsIContent,
- /// @see nsIContent::GetXBLInsertionPoint
- pub mXBLInsertionPoint: root::nsCOMPtr,
- /// @see nsIContent::GetContainingShadow
- pub mContainingShadow: root::RefPtr<root::mozilla::dom::ShadowRoot>,
- /// @see nsIContent::GetAssignedSlot
- pub mAssignedSlot: root::RefPtr<root::mozilla::dom::HTMLSlotElement>,
- }
- #[test]
- fn bindgen_test_layout_nsIContent_nsExtendedContentSlots() {
- assert_eq!(
- ::std::mem::size_of::<nsIContent_nsExtendedContentSlots>(),
- 40usize,
- concat!("Size of: ", stringify!(nsIContent_nsExtendedContentSlots))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIContent_nsExtendedContentSlots>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsIContent_nsExtendedContentSlots)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mBindingParent
- as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIContent_nsExtendedContentSlots),
- "::",
- stringify!(mBindingParent)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mXBLInsertionPoint
- as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIContent_nsExtendedContentSlots),
- "::",
- stringify!(mXBLInsertionPoint)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mContainingShadow
- as *const _ as usize
- },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIContent_nsExtendedContentSlots),
- "::",
- stringify!(mContainingShadow)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mAssignedSlot
- as *const _ as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIContent_nsExtendedContentSlots),
- "::",
- stringify!(mAssignedSlot)
- )
- );
- }
- #[repr(C)]
- pub struct nsIContent_nsContentSlots {
- pub _base: root::nsINode_nsSlots,
- pub mExtendedSlots: root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>,
- }
- #[test]
- fn bindgen_test_layout_nsIContent_nsContentSlots() {
- assert_eq!(
- ::std::mem::size_of::<nsIContent_nsContentSlots>(),
- 80usize,
- concat!("Size of: ", stringify!(nsIContent_nsContentSlots))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIContent_nsContentSlots>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIContent_nsContentSlots))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIContent_nsContentSlots>())).mExtendedSlots as *const _
- as usize
- },
- 72usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIContent_nsContentSlots),
- "::",
- stringify!(mExtendedSlots)
- )
- );
- }
- pub const nsIContent_ETabFocusType_eTabFocus_textControlsMask: root::nsIContent_ETabFocusType =
- 1;
- pub const nsIContent_ETabFocusType_eTabFocus_formElementsMask: root::nsIContent_ETabFocusType =
- 2;
- pub const nsIContent_ETabFocusType_eTabFocus_linksMask: root::nsIContent_ETabFocusType = 4;
- pub const nsIContent_ETabFocusType_eTabFocus_any: root::nsIContent_ETabFocusType = 7;
- pub type nsIContent_ETabFocusType = u32;
- extern "C" {
- #[link_name = "\u{1}_ZN10nsIContent14sTabFocusModelE"]
- pub static mut nsIContent_sTabFocusModel: i32;
- }
- extern "C" {
- #[link_name = "\u{1}_ZN10nsIContent26sTabFocusModelAppliesToXULE"]
- pub static mut nsIContent_sTabFocusModelAppliesToXUL: bool;
- }
- #[test]
- fn bindgen_test_layout_nsIContent() {
- assert_eq!(
- ::std::mem::size_of::<nsIContent>(),
- 88usize,
- concat!("Size of: ", stringify!(nsIContent))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIContent>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIContent))
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsILayoutHistoryState {
- _unused: [u8; 0],
- }
- impl Clone for nsILayoutHistoryState {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// Frame manager interface. The frame manager serves one purpose:
- /// <li>handles structural modifications to the frame model. If the frame model
- /// lock can be acquired, then the changes are processed immediately; otherwise,
- /// they're queued and processed later.
- ///
- /// FIXME(emilio): The comment above doesn't make any sense, there's no "frame
- /// model lock" of any sort afaict.
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsFrameManager {
- pub mPresShell: *mut root::nsIPresShell,
- pub mRootFrame: *mut root::nsIFrame,
- pub mDisplayNoneMap: *mut root::nsFrameManager_UndisplayedMap,
- pub mDisplayContentsMap: *mut root::nsFrameManager_UndisplayedMap,
- pub mIsDestroyingFrames: bool,
- }
- pub type nsFrameManager_ComputedStyle = root::mozilla::ComputedStyle;
- pub use self::super::root::mozilla::layout::FrameChildListID as nsFrameManager_ChildListID;
- pub type nsFrameManager_UndisplayedNode = root::mozilla::UndisplayedNode;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsFrameManager_UndisplayedMap {
- _unused: [u8; 0],
- }
- impl Clone for nsFrameManager_UndisplayedMap {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_nsFrameManager() {
- assert_eq!(
- ::std::mem::size_of::<nsFrameManager>(),
- 40usize,
- concat!("Size of: ", stringify!(nsFrameManager))
- );
- assert_eq!(
- ::std::mem::align_of::<nsFrameManager>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsFrameManager))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsFrameManager>())).mPresShell as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsFrameManager),
- "::",
- stringify!(mPresShell)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsFrameManager>())).mRootFrame as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsFrameManager),
- "::",
- stringify!(mRootFrame)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsFrameManager>())).mDisplayNoneMap as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsFrameManager),
- "::",
- stringify!(mDisplayNoneMap)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsFrameManager>())).mDisplayContentsMap as *const _ as usize
- },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(nsFrameManager),
- "::",
- stringify!(mDisplayContentsMap)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsFrameManager>())).mIsDestroyingFrames as *const _ as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsFrameManager),
- "::",
- stringify!(mIsDestroyingFrames)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIWeakReference {
- pub _base: root::nsISupports,
- pub mObject: *mut root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIWeakReference_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIWeakReference() {
- assert_eq!(
- ::std::mem::size_of::<nsIWeakReference>(),
- 16usize,
- concat!("Size of: ", stringify!(nsIWeakReference))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIWeakReference>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIWeakReference))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIWeakReference>())).mObject as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIWeakReference),
- "::",
- stringify!(mObject)
- )
- );
- }
- impl Clone for nsIWeakReference {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type nsWeakPtr = root::nsCOMPtr;
- /// templated hashtable class maps keys to reference pointers.
- /// See nsBaseHashtable for complete declaration.
- /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
- /// for a complete specification.
- /// @param PtrType the reference-type being wrapped
- /// @see nsDataHashtable, nsClassHashtable
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsRefPtrHashtable {
- pub _address: u8,
- }
- pub type nsRefPtrHashtable_KeyType = [u8; 0usize];
- pub type nsRefPtrHashtable_UserDataType<PtrType> = *mut PtrType;
- pub type nsRefPtrHashtable_base_type = u8;
- /// templated hashtable class maps keys to C++ object pointers.
- /// See nsBaseHashtable for complete declaration.
- /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
- /// for a complete specification.
- /// @param Class the class-type being wrapped
- /// @see nsInterfaceHashtable, nsClassHashtable
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsClassHashtable {
- pub _address: u8,
- }
- pub type nsClassHashtable_KeyType = [u8; 0usize];
- pub type nsClassHashtable_UserDataType<T> = *mut T;
- pub type nsClassHashtable_base_type = u8;
- #[repr(C)]
- pub struct nsPresArena {
- pub mFreeLists: [root::nsPresArena_FreeList; 211usize],
- pub mPool: [u64; 5usize],
- pub mArenaRefPtrs: [u64; 4usize],
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsPresArena_FreeList {
- pub mEntries: root::nsTArray<*mut ::std::os::raw::c_void>,
- pub mEntrySize: usize,
- pub mEntriesEverAllocated: usize,
- }
- #[test]
- fn bindgen_test_layout_nsPresArena_FreeList() {
- assert_eq!(
- ::std::mem::size_of::<nsPresArena_FreeList>(),
- 24usize,
- concat!("Size of: ", stringify!(nsPresArena_FreeList))
- );
- assert_eq!(
- ::std::mem::align_of::<nsPresArena_FreeList>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsPresArena_FreeList))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresArena_FreeList>())).mEntries as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresArena_FreeList),
- "::",
- stringify!(mEntries)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresArena_FreeList>())).mEntrySize as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresArena_FreeList),
- "::",
- stringify!(mEntrySize)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresArena_FreeList>())).mEntriesEverAllocated as *const _
- as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresArena_FreeList),
- "::",
- stringify!(mEntriesEverAllocated)
- )
- );
- }
- #[test]
- fn bindgen_test_layout_nsPresArena() {
- assert_eq!(
- ::std::mem::size_of::<nsPresArena>(),
- 5136usize,
- concat!("Size of: ", stringify!(nsPresArena))
- );
- assert_eq!(
- ::std::mem::align_of::<nsPresArena>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsPresArena))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresArena>())).mFreeLists as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresArena),
- "::",
- stringify!(mFreeLists)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresArena>())).mPool as *const _ as usize },
- 5064usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresArena),
- "::",
- stringify!(mPool)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresArena>())).mArenaRefPtrs as *const _ as usize },
- 5104usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresArena),
- "::",
- stringify!(mArenaRefPtrs)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct imgINotificationObserver {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct imgINotificationObserver_COMTypeInfo {
- pub _address: u8,
- }
- pub const imgINotificationObserver_SIZE_AVAILABLE:
- root::imgINotificationObserver__bindgen_ty_1 = 1;
- pub const imgINotificationObserver_FRAME_UPDATE: root::imgINotificationObserver__bindgen_ty_1 =
- 2;
- pub const imgINotificationObserver_FRAME_COMPLETE:
- root::imgINotificationObserver__bindgen_ty_1 = 3;
- pub const imgINotificationObserver_LOAD_COMPLETE: root::imgINotificationObserver__bindgen_ty_1 =
- 4;
- pub const imgINotificationObserver_DECODE_COMPLETE:
- root::imgINotificationObserver__bindgen_ty_1 = 5;
- pub const imgINotificationObserver_DISCARD: root::imgINotificationObserver__bindgen_ty_1 = 6;
- pub const imgINotificationObserver_UNLOCKED_DRAW: root::imgINotificationObserver__bindgen_ty_1 =
- 7;
- pub const imgINotificationObserver_IS_ANIMATED: root::imgINotificationObserver__bindgen_ty_1 =
- 8;
- pub const imgINotificationObserver_HAS_TRANSPARENCY:
- root::imgINotificationObserver__bindgen_ty_1 = 9;
- pub type imgINotificationObserver__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_imgINotificationObserver() {
- assert_eq!(
- ::std::mem::size_of::<imgINotificationObserver>(),
- 8usize,
- concat!("Size of: ", stringify!(imgINotificationObserver))
- );
- assert_eq!(
- ::std::mem::align_of::<imgINotificationObserver>(),
- 8usize,
- concat!("Alignment of ", stringify!(imgINotificationObserver))
- );
- }
- impl Clone for imgINotificationObserver {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// Mutation observer interface
- ///
- /// See nsINode::AddMutationObserver, nsINode::RemoveMutationObserver for how to
- /// attach or remove your observers.
- ///
- /// WARNING: During these notifications, you are not allowed to perform
- /// any mutations to the current or any other document, or start a
- /// network load. If you need to perform such operations do that
- /// during the _last_ nsIDocumentObserver::EndUpdate notification. The
- /// expection for this is ParentChainChanged, where mutations should be
- /// done from an async event, as the notification might not be
- /// surrounded by BeginUpdate/EndUpdate calls.
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIMutationObserver {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIMutationObserver_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIMutationObserver() {
- assert_eq!(
- ::std::mem::size_of::<nsIMutationObserver>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIMutationObserver))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIMutationObserver>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIMutationObserver))
- );
- }
- impl Clone for nsIMutationObserver {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDocumentObserver {
- pub _base: root::nsIMutationObserver,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIDocumentObserver_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIDocumentObserver() {
- assert_eq!(
- ::std::mem::size_of::<nsIDocumentObserver>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIDocumentObserver))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIDocumentObserver>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIDocumentObserver))
- );
- }
- impl Clone for nsIDocumentObserver {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// There are two advantages to inheriting from nsStubDocumentObserver
- /// rather than directly from nsIDocumentObserver:
- /// 1. smaller compiled code size (since there's no need for the code
- /// for the empty virtual function implementations for every
- /// nsIDocumentObserver implementation)
- /// 2. the performance of document's loop over observers benefits from
- /// the fact that more of the functions called are the same (which
- /// can reduce instruction cache misses and perhaps improve branch
- /// prediction)
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsStubDocumentObserver {
- pub _base: root::nsIDocumentObserver,
- }
- #[test]
- fn bindgen_test_layout_nsStubDocumentObserver() {
- assert_eq!(
- ::std::mem::size_of::<nsStubDocumentObserver>(),
- 8usize,
- concat!("Size of: ", stringify!(nsStubDocumentObserver))
- );
- assert_eq!(
- ::std::mem::align_of::<nsStubDocumentObserver>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsStubDocumentObserver))
- );
- }
- impl Clone for nsStubDocumentObserver {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsDocShell {
- _unused: [u8; 0],
- }
- impl Clone for nsDocShell {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsViewManager {
- _unused: [u8; 0],
- }
- impl Clone for nsViewManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsFrameSelection {
- _unused: [u8; 0],
- }
- impl Clone for nsFrameSelection {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsCSSFrameConstructor {
- _unused: [u8; 0],
- }
- impl Clone for nsCSSFrameConstructor {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct AutoWeakFrame {
- _unused: [u8; 0],
- }
- impl Clone for AutoWeakFrame {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct WeakFrame {
- _unused: [u8; 0],
- }
- impl Clone for WeakFrame {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsRefreshDriver {
- _unused: [u8; 0],
- }
- impl Clone for nsRefreshDriver {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- pub struct CapturingContentInfo {
- pub mAllowed: bool,
- pub mPointerLock: bool,
- pub mRetargetToElement: bool,
- pub mPreventDrag: bool,
- pub mContent: root::mozilla::StaticRefPtr<root::nsIContent>,
- }
- #[test]
- fn bindgen_test_layout_CapturingContentInfo() {
- assert_eq!(
- ::std::mem::size_of::<CapturingContentInfo>(),
- 16usize,
- concat!("Size of: ", stringify!(CapturingContentInfo))
- );
- assert_eq!(
- ::std::mem::align_of::<CapturingContentInfo>(),
- 8usize,
- concat!("Alignment of ", stringify!(CapturingContentInfo))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<CapturingContentInfo>())).mAllowed as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(CapturingContentInfo),
- "::",
- stringify!(mAllowed)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<CapturingContentInfo>())).mPointerLock as *const _ as usize
- },
- 1usize,
- concat!(
- "Offset of field: ",
- stringify!(CapturingContentInfo),
- "::",
- stringify!(mPointerLock)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<CapturingContentInfo>())).mRetargetToElement as *const _
- as usize
- },
- 2usize,
- concat!(
- "Offset of field: ",
- stringify!(CapturingContentInfo),
- "::",
- stringify!(mRetargetToElement)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<CapturingContentInfo>())).mPreventDrag as *const _ as usize
- },
- 3usize,
- concat!(
- "Offset of field: ",
- stringify!(CapturingContentInfo),
- "::",
- stringify!(mPreventDrag)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<CapturingContentInfo>())).mContent as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(CapturingContentInfo),
- "::",
- stringify!(mContent)
- )
- );
- }
- /// Presentation shell interface. Presentation shells are the
- /// controlling point for managing the presentation of a document. The
- /// presentation shell holds a live reference to the document, the
- /// presentation context, the style manager, the style set and the root
- /// frame. <p>
- ///
- /// When this object is Release'd, it will release the document, the
- /// presentation context, the style manager, the style set and the root
- /// frame.
- #[repr(C)]
- pub struct nsIPresShell {
- pub _base: root::nsStubDocumentObserver,
- pub mDocument: root::nsCOMPtr,
- pub mPresContext: root::RefPtr<root::nsPresContext>,
- pub mStyleSet: root::mozilla::StyleSetHandle,
- pub mFrameConstructor: *mut root::nsCSSFrameConstructor,
- pub mViewManager: *mut root::nsViewManager,
- pub mFrameArena: root::nsPresArena,
- pub mSelection: root::RefPtr<root::nsFrameSelection>,
- pub mFrameManager: *mut root::nsFrameManager,
- pub mForwardingContainer: u64,
- pub mDocAccessible: *mut root::mozilla::a11y::DocAccessible,
- pub mReflowContinueTimer: root::nsCOMPtr,
- pub mPaintCount: u64,
- pub mScrollPositionClampingScrollPortSize: root::nsSize,
- pub mAutoWeakFrames: *mut root::AutoWeakFrame,
- pub mWeakFrames: [u64; 4usize],
- pub mStyleCause: root::UniqueProfilerBacktrace,
- pub mReflowCause: root::UniqueProfilerBacktrace,
- pub mCanvasBackgroundColor: root::nscolor,
- pub mResolution: [u32; 2usize],
- pub mSelectionFlags: i16,
- pub mChangeNestCount: u16,
- pub mRenderFlags: root::nsIPresShell_RenderFlags,
- pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 3usize], u8>,
- pub mPresShellId: u32,
- pub mFontSizeInflationEmPerLine: u32,
- pub mFontSizeInflationMinTwips: u32,
- pub mFontSizeInflationLineThreshold: u32,
- pub mFontSizeInflationForceEnabled: bool,
- pub mFontSizeInflationDisabledInMasterProcess: bool,
- pub mFontSizeInflationEnabled: bool,
- pub mFontSizeInflationEnabledIsDirty: bool,
- pub mPaintingIsFrozen: bool,
- pub mIsNeverPainting: bool,
- pub mInFlush: bool,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIPresShell_COMTypeInfo {
- pub _address: u8,
- }
- pub type nsIPresShell_LayerManager = root::mozilla::layers::LayerManager;
- pub type nsIPresShell_SourceSurface = root::mozilla::gfx::SourceSurface;
- pub const nsIPresShell_eRenderFlag_STATE_IGNORING_VIEWPORT_SCROLLING:
- root::nsIPresShell_eRenderFlag = 1;
- pub const nsIPresShell_eRenderFlag_STATE_DRAWWINDOW_NOT_FLUSHING:
- root::nsIPresShell_eRenderFlag = 2;
- pub type nsIPresShell_eRenderFlag = u32;
- pub type nsIPresShell_RenderFlags = u8;
- pub const nsIPresShell_ResizeReflowOptions_eBSizeExact: root::nsIPresShell_ResizeReflowOptions =
- 0;
- pub const nsIPresShell_ResizeReflowOptions_eBSizeLimit: root::nsIPresShell_ResizeReflowOptions =
- 1;
- pub type nsIPresShell_ResizeReflowOptions = u32;
- pub const nsIPresShell_ScrollDirection_eHorizontal: root::nsIPresShell_ScrollDirection = 0;
- pub const nsIPresShell_ScrollDirection_eVertical: root::nsIPresShell_ScrollDirection = 1;
- pub const nsIPresShell_ScrollDirection_eEither: root::nsIPresShell_ScrollDirection = 2;
- /// Gets nearest scrollable frame from the specified content node. The frame
- /// is scrollable with overflow:scroll or overflow:auto in some direction when
- /// aDirection is eEither. Otherwise, this returns a nearest frame that is
- /// scrollable in the specified direction.
- pub type nsIPresShell_ScrollDirection = u32;
- pub const nsIPresShell_IntrinsicDirty_eResize: root::nsIPresShell_IntrinsicDirty = 0;
- pub const nsIPresShell_IntrinsicDirty_eTreeChange: root::nsIPresShell_IntrinsicDirty = 1;
- pub const nsIPresShell_IntrinsicDirty_eStyleChange: root::nsIPresShell_IntrinsicDirty = 2;
- /// Tell the pres shell that a frame needs to be marked dirty and needs
- /// Reflow. It's OK if this is an ancestor of the frame needing reflow as
- /// long as the ancestor chain between them doesn't cross a reflow root.
- ///
- /// The bit to add should be NS_FRAME_IS_DIRTY, NS_FRAME_HAS_DIRTY_CHILDREN
- /// or nsFrameState(0); passing 0 means that dirty bits won't be set on the
- /// frame or its ancestors/descendants, but that intrinsic widths will still
- /// be marked dirty. Passing aIntrinsicDirty = eResize and aBitToAdd = 0
- /// would result in no work being done, so don't do that.
- pub type nsIPresShell_IntrinsicDirty = u32;
- pub const nsIPresShell_ReflowRootHandling_ePositionOrSizeChange:
- root::nsIPresShell_ReflowRootHandling = 0;
- pub const nsIPresShell_ReflowRootHandling_eNoPositionOrSizeChange:
- root::nsIPresShell_ReflowRootHandling = 1;
- pub const nsIPresShell_ReflowRootHandling_eInferFromBitToAdd:
- root::nsIPresShell_ReflowRootHandling = 2;
- pub type nsIPresShell_ReflowRootHandling = u32;
- pub const nsIPresShell_SCROLL_TOP: root::nsIPresShell__bindgen_ty_1 = 0;
- pub const nsIPresShell_SCROLL_BOTTOM: root::nsIPresShell__bindgen_ty_1 = 100;
- pub const nsIPresShell_SCROLL_LEFT: root::nsIPresShell__bindgen_ty_1 = 0;
- pub const nsIPresShell_SCROLL_RIGHT: root::nsIPresShell__bindgen_ty_1 = 100;
- pub const nsIPresShell_SCROLL_CENTER: root::nsIPresShell__bindgen_ty_1 = 50;
- pub const nsIPresShell_SCROLL_MINIMUM: root::nsIPresShell__bindgen_ty_1 = -1;
- pub type nsIPresShell__bindgen_ty_1 = i32;
- pub const nsIPresShell_WhenToScroll_SCROLL_ALWAYS: root::nsIPresShell_WhenToScroll = 0;
- pub const nsIPresShell_WhenToScroll_SCROLL_IF_NOT_VISIBLE: root::nsIPresShell_WhenToScroll = 1;
- pub const nsIPresShell_WhenToScroll_SCROLL_IF_NOT_FULLY_VISIBLE:
- root::nsIPresShell_WhenToScroll = 2;
- pub type nsIPresShell_WhenToScroll = u32;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIPresShell_ScrollAxis {
- pub _bindgen_opaque_blob: u32,
- }
- #[test]
- fn bindgen_test_layout_nsIPresShell_ScrollAxis() {
- assert_eq!(
- ::std::mem::size_of::<nsIPresShell_ScrollAxis>(),
- 4usize,
- concat!("Size of: ", stringify!(nsIPresShell_ScrollAxis))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIPresShell_ScrollAxis>(),
- 4usize,
- concat!("Alignment of ", stringify!(nsIPresShell_ScrollAxis))
- );
- }
- impl Clone for nsIPresShell_ScrollAxis {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const nsIPresShell_SCROLL_FIRST_ANCESTOR_ONLY: root::nsIPresShell__bindgen_ty_2 = 1;
- pub const nsIPresShell_SCROLL_OVERFLOW_HIDDEN: root::nsIPresShell__bindgen_ty_2 = 2;
- pub const nsIPresShell_SCROLL_NO_PARENT_FRAMES: root::nsIPresShell__bindgen_ty_2 = 4;
- pub const nsIPresShell_SCROLL_SMOOTH: root::nsIPresShell__bindgen_ty_2 = 8;
- pub const nsIPresShell_SCROLL_SMOOTH_AUTO: root::nsIPresShell__bindgen_ty_2 = 16;
- pub type nsIPresShell__bindgen_ty_2 = u32;
- pub const nsIPresShell_RENDER_IS_UNTRUSTED: root::nsIPresShell__bindgen_ty_3 = 1;
- pub const nsIPresShell_RENDER_IGNORE_VIEWPORT_SCROLLING: root::nsIPresShell__bindgen_ty_3 = 2;
- pub const nsIPresShell_RENDER_CARET: root::nsIPresShell__bindgen_ty_3 = 4;
- pub const nsIPresShell_RENDER_USE_WIDGET_LAYERS: root::nsIPresShell__bindgen_ty_3 = 8;
- pub const nsIPresShell_RENDER_ASYNC_DECODE_IMAGES: root::nsIPresShell__bindgen_ty_3 = 16;
- pub const nsIPresShell_RENDER_DOCUMENT_RELATIVE: root::nsIPresShell__bindgen_ty_3 = 32;
- pub const nsIPresShell_RENDER_DRAWWINDOW_NOT_FLUSHING: root::nsIPresShell__bindgen_ty_3 = 64;
- /// Render the document into an arbitrary gfxContext
- /// Designed for getting a picture of a document or a piece of a document
- /// Note that callers will generally want to call FlushPendingNotifications
- /// to get an up-to-date view of the document
- /// @param aRect is the region to capture into the offscreen buffer, in the
- /// root frame's coordinate system (if aIgnoreViewportScrolling is false)
- /// or in the root scrolled frame's coordinate system
- /// (if aIgnoreViewportScrolling is true). The coordinates are in appunits.
- /// @param aFlags see below;
- /// set RENDER_IS_UNTRUSTED if the contents may be passed to malicious
- /// agents. E.g. we might choose not to paint the contents of sensitive widgets
- /// such as the file name in a file upload widget, and we might choose not
- /// to paint themes.
- /// set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore
- /// clipping and scrollbar painting due to scrolling in the viewport
- /// set RENDER_CARET to draw the caret if one would be visible
- /// (by default the caret is never drawn)
- /// set RENDER_USE_LAYER_MANAGER to force rendering to go through
- /// the layer manager for the window. This may be unexpectedly slow
- /// (if the layer manager must read back data from the GPU) or low-quality
- /// (if the layer manager reads back pixel data and scales it
- /// instead of rendering using the appropriate scaling). It may also
- /// slow everything down if the area rendered does not correspond to the
- /// normal visible area of the window.
- /// set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously
- /// decoded during rendering.
- /// (by default images decode synchronously with RenderDocument)
- /// set RENDER_DOCUMENT_RELATIVE to render the document as if there has been
- /// no scrolling and interpret |aRect| relative to the document instead of the
- /// CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set
- /// or the document is in ignore viewport scrolling mode
- /// (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling).
- /// @param aBackgroundColor a background color to render onto
- /// @param aRenderedContext the gfxContext to render to. We render so that
- /// one CSS pixel in the source document is rendered to one unit in the current
- /// transform.
- pub type nsIPresShell__bindgen_ty_3 = u32;
- pub const nsIPresShell_RENDER_IS_IMAGE: root::nsIPresShell__bindgen_ty_4 = 256;
- pub const nsIPresShell_RENDER_AUTO_SCALE: root::nsIPresShell__bindgen_ty_4 = 128;
- pub type nsIPresShell__bindgen_ty_4 = u32;
- pub const nsIPresShell_FORCE_DRAW: root::nsIPresShell__bindgen_ty_5 = 1;
- pub const nsIPresShell_ADD_FOR_SUBDOC: root::nsIPresShell__bindgen_ty_5 = 2;
- pub const nsIPresShell_APPEND_UNSCROLLED_ONLY: root::nsIPresShell__bindgen_ty_5 = 4;
- /// Add a solid color item to the bottom of aList with frame aFrame and bounds
- /// aBounds. Checks first if this needs to be done by checking if aFrame is a
- /// canvas frame (if the FORCE_DRAW flag is passed then this check is skipped).
- /// aBackstopColor is composed behind the background color of the canvas, it is
- /// transparent by default.
- /// We attempt to make the background color part of the scrolled canvas (to reduce
- /// transparent layers), and if async scrolling is enabled (and the background
- /// is opaque) then we add a second, unscrolled item to handle the checkerboarding
- /// case.
- /// ADD_FOR_SUBDOC shoud be specified when calling this for a subdocument, and
- /// LayoutUseContainersForRootFrame might cause the whole list to be scrolled. In
- /// that case the second unscrolled item will be elided.
- /// APPEND_UNSCROLLED_ONLY only attempts to add the unscrolled item, so that we
- /// can add it manually after LayoutUseContainersForRootFrame has built the
- /// scrolling ContainerLayer.
- pub type nsIPresShell__bindgen_ty_5 = u32;
- pub const nsIPresShell_PaintFlags_PAINT_LAYERS: root::nsIPresShell_PaintFlags = 1;
- pub const nsIPresShell_PaintFlags_PAINT_COMPOSITE: root::nsIPresShell_PaintFlags = 2;
- pub const nsIPresShell_PaintFlags_PAINT_SYNC_DECODE_IMAGES: root::nsIPresShell_PaintFlags = 4;
- pub type nsIPresShell_PaintFlags = u32;
- pub const nsIPresShell_PaintType_PAINT_DEFAULT: root::nsIPresShell_PaintType = 0;
- pub const nsIPresShell_PaintType_PAINT_DELAYED_COMPRESS: root::nsIPresShell_PaintType = 1;
- /// Ensures that the refresh driver is running, and schedules a view
- /// manager flush on the next tick.
- ///
- /// @param aType PAINT_DELAYED_COMPRESS : Schedule a paint to be executed after a delay, and
- /// put FrameLayerBuilder in 'compressed' mode that avoids short cut optimizations.
- pub type nsIPresShell_PaintType = u32;
- extern "C" {
- #[link_name = "\u{1}_ZN12nsIPresShell12gCaptureInfoE"]
- pub static mut nsIPresShell_gCaptureInfo: root::CapturingContentInfo;
- }
- extern "C" {
- #[link_name = "\u{1}_ZN12nsIPresShell14gKeyDownTargetE"]
- pub static mut nsIPresShell_gKeyDownTarget: *mut root::nsIContent;
- }
- #[test]
- fn bindgen_test_layout_nsIPresShell() {
- assert_eq!(
- ::std::mem::size_of::<nsIPresShell>(),
- 5344usize,
- concat!("Size of: ", stringify!(nsIPresShell))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIPresShell>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIPresShell))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mDocument as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mDocument)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mPresContext as *const _ as usize },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mPresContext)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mStyleSet as *const _ as usize },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mStyleSet)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFrameConstructor as *const _ as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFrameConstructor)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mViewManager as *const _ as usize },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mViewManager)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mFrameArena as *const _ as usize },
- 48usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFrameArena)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mSelection as *const _ as usize },
- 5184usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mSelection)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mFrameManager as *const _ as usize },
- 5192usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFrameManager)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mForwardingContainer as *const _ as usize
- },
- 5200usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mForwardingContainer)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mDocAccessible as *const _ as usize },
- 5208usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mDocAccessible)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mReflowContinueTimer as *const _ as usize
- },
- 5216usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mReflowContinueTimer)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mPaintCount as *const _ as usize },
- 5224usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mPaintCount)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mScrollPositionClampingScrollPortSize
- as *const _ as usize
- },
- 5232usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mScrollPositionClampingScrollPortSize)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mAutoWeakFrames as *const _ as usize
- },
- 5240usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mAutoWeakFrames)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mWeakFrames as *const _ as usize },
- 5248usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mWeakFrames)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mStyleCause as *const _ as usize },
- 5280usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mStyleCause)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mReflowCause as *const _ as usize },
- 5288usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mReflowCause)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mCanvasBackgroundColor as *const _ as usize
- },
- 5296usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mCanvasBackgroundColor)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mResolution as *const _ as usize },
- 5300usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mResolution)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mSelectionFlags as *const _ as usize
- },
- 5308usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mSelectionFlags)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mChangeNestCount as *const _ as usize
- },
- 5310usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mChangeNestCount)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mRenderFlags as *const _ as usize },
- 5312usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mRenderFlags)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mPresShellId as *const _ as usize },
- 5316usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mPresShellId)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationEmPerLine as *const _
- as usize
- },
- 5320usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFontSizeInflationEmPerLine)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationMinTwips as *const _
- as usize
- },
- 5324usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFontSizeInflationMinTwips)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationLineThreshold as *const _
- as usize
- },
- 5328usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFontSizeInflationLineThreshold)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationForceEnabled as *const _
- as usize
- },
- 5332usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFontSizeInflationForceEnabled)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationDisabledInMasterProcess
- as *const _ as usize
- },
- 5333usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFontSizeInflationDisabledInMasterProcess)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationEnabled as *const _
- as usize
- },
- 5334usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFontSizeInflationEnabled)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationEnabledIsDirty
- as *const _ as usize
- },
- 5335usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mFontSizeInflationEnabledIsDirty)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mPaintingIsFrozen as *const _ as usize
- },
- 5336usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mPaintingIsFrozen)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIPresShell>())).mIsNeverPainting as *const _ as usize
- },
- 5337usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mIsNeverPainting)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mInFlush as *const _ as usize },
- 5338usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIPresShell),
- "::",
- stringify!(mInFlush)
- )
- );
- }
- impl nsIPresShell {
- #[inline]
- pub fn mDidInitialize(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDidInitialize(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(0usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsDestroying(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsDestroying(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(1usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsReflowing(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsReflowing(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(2usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsObservingDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsObservingDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(3usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsDocumentGone(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsDocumentGone(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(4usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPaintingSuppressed(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mPaintingSuppressed(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(5usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsActive(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsActive(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(6usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mFrozen(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mFrozen(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(7usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsFirstPaint(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsFirstPaint(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(8usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mObservesMutationsForPrint(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mObservesMutationsForPrint(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(9usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mWasLastReflowInterrupted(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mWasLastReflowInterrupted(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(10usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mScrollPositionClampingScrollPortSizeSet(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mScrollPositionClampingScrollPortSizeSet(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(11usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mNeedLayoutFlush(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mNeedLayoutFlush(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(12usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mNeedStyleFlush(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mNeedStyleFlush(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(13usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mObservingStyleFlushes(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mObservingStyleFlushes(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(14usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mObservingLayoutFlushes(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mObservingLayoutFlushes(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(15usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mResizeEventPending(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mResizeEventPending(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(16usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mNeedThrottledAnimationFlush(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(17usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn new_bitfield_1(
- mDidInitialize: bool,
- mIsDestroying: bool,
- mIsReflowing: bool,
- mIsObservingDocument: bool,
- mIsDocumentGone: bool,
- mPaintingSuppressed: bool,
- mIsActive: bool,
- mFrozen: bool,
- mIsFirstPaint: bool,
- mObservesMutationsForPrint: bool,
- mWasLastReflowInterrupted: bool,
- mScrollPositionClampingScrollPortSizeSet: bool,
- mNeedLayoutFlush: bool,
- mNeedStyleFlush: bool,
- mObservingStyleFlushes: bool,
- mObservingLayoutFlushes: bool,
- mResizeEventPending: bool,
- mNeedThrottledAnimationFlush: bool,
- ) -> root::__BindgenBitfieldUnit<[u8; 3usize], u8> {
- let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
- [u8; 3usize],
- u8,
- > = Default::default();
- __bindgen_bitfield_unit.set(0usize, 1u8, {
- let mDidInitialize: u8 = unsafe { ::std::mem::transmute(mDidInitialize) };
- mDidInitialize as u64
- });
- __bindgen_bitfield_unit.set(1usize, 1u8, {
- let mIsDestroying: u8 = unsafe { ::std::mem::transmute(mIsDestroying) };
- mIsDestroying as u64
- });
- __bindgen_bitfield_unit.set(2usize, 1u8, {
- let mIsReflowing: u8 = unsafe { ::std::mem::transmute(mIsReflowing) };
- mIsReflowing as u64
- });
- __bindgen_bitfield_unit.set(3usize, 1u8, {
- let mIsObservingDocument: u8 =
- unsafe { ::std::mem::transmute(mIsObservingDocument) };
- mIsObservingDocument as u64
- });
- __bindgen_bitfield_unit.set(4usize, 1u8, {
- let mIsDocumentGone: u8 = unsafe { ::std::mem::transmute(mIsDocumentGone) };
- mIsDocumentGone as u64
- });
- __bindgen_bitfield_unit.set(5usize, 1u8, {
- let mPaintingSuppressed: u8 = unsafe { ::std::mem::transmute(mPaintingSuppressed) };
- mPaintingSuppressed as u64
- });
- __bindgen_bitfield_unit.set(6usize, 1u8, {
- let mIsActive: u8 = unsafe { ::std::mem::transmute(mIsActive) };
- mIsActive as u64
- });
- __bindgen_bitfield_unit.set(7usize, 1u8, {
- let mFrozen: u8 = unsafe { ::std::mem::transmute(mFrozen) };
- mFrozen as u64
- });
- __bindgen_bitfield_unit.set(8usize, 1u8, {
- let mIsFirstPaint: u8 = unsafe { ::std::mem::transmute(mIsFirstPaint) };
- mIsFirstPaint as u64
- });
- __bindgen_bitfield_unit.set(9usize, 1u8, {
- let mObservesMutationsForPrint: u8 =
- unsafe { ::std::mem::transmute(mObservesMutationsForPrint) };
- mObservesMutationsForPrint as u64
- });
- __bindgen_bitfield_unit.set(10usize, 1u8, {
- let mWasLastReflowInterrupted: u8 =
- unsafe { ::std::mem::transmute(mWasLastReflowInterrupted) };
- mWasLastReflowInterrupted as u64
- });
- __bindgen_bitfield_unit.set(11usize, 1u8, {
- let mScrollPositionClampingScrollPortSizeSet: u8 =
- unsafe { ::std::mem::transmute(mScrollPositionClampingScrollPortSizeSet) };
- mScrollPositionClampingScrollPortSizeSet as u64
- });
- __bindgen_bitfield_unit.set(12usize, 1u8, {
- let mNeedLayoutFlush: u8 = unsafe { ::std::mem::transmute(mNeedLayoutFlush) };
- mNeedLayoutFlush as u64
- });
- __bindgen_bitfield_unit.set(13usize, 1u8, {
- let mNeedStyleFlush: u8 = unsafe { ::std::mem::transmute(mNeedStyleFlush) };
- mNeedStyleFlush as u64
- });
- __bindgen_bitfield_unit.set(14usize, 1u8, {
- let mObservingStyleFlushes: u8 =
- unsafe { ::std::mem::transmute(mObservingStyleFlushes) };
- mObservingStyleFlushes as u64
- });
- __bindgen_bitfield_unit.set(15usize, 1u8, {
- let mObservingLayoutFlushes: u8 =
- unsafe { ::std::mem::transmute(mObservingLayoutFlushes) };
- mObservingLayoutFlushes as u64
- });
- __bindgen_bitfield_unit.set(16usize, 1u8, {
- let mResizeEventPending: u8 = unsafe { ::std::mem::transmute(mResizeEventPending) };
- mResizeEventPending as u64
- });
- __bindgen_bitfield_unit.set(17usize, 1u8, {
- let mNeedThrottledAnimationFlush: u8 =
- unsafe { ::std::mem::transmute(mNeedThrottledAnimationFlush) };
- mNeedThrottledAnimationFlush as u64
- });
- __bindgen_bitfield_unit
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAttrName {
- pub mBits: usize,
- }
- #[test]
- fn bindgen_test_layout_nsAttrName() {
- assert_eq!(
- ::std::mem::size_of::<nsAttrName>(),
- 8usize,
- concat!("Size of: ", stringify!(nsAttrName))
- );
- assert_eq!(
- ::std::mem::align_of::<nsAttrName>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsAttrName))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsAttrName>())).mBits as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrName),
- "::",
- stringify!(mBits)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAttrValue {
- pub mBits: usize,
- }
- pub const nsAttrValue_ValueType_eString: root::nsAttrValue_ValueType = 0;
- pub const nsAttrValue_ValueType_eAtom: root::nsAttrValue_ValueType = 2;
- pub const nsAttrValue_ValueType_eInteger: root::nsAttrValue_ValueType = 3;
- pub const nsAttrValue_ValueType_eColor: root::nsAttrValue_ValueType = 7;
- pub const nsAttrValue_ValueType_eEnum: root::nsAttrValue_ValueType = 11;
- pub const nsAttrValue_ValueType_ePercent: root::nsAttrValue_ValueType = 15;
- pub const nsAttrValue_ValueType_eCSSDeclaration: root::nsAttrValue_ValueType = 16;
- pub const nsAttrValue_ValueType_eURL: root::nsAttrValue_ValueType = 17;
- pub const nsAttrValue_ValueType_eImage: root::nsAttrValue_ValueType = 18;
- pub const nsAttrValue_ValueType_eAtomArray: root::nsAttrValue_ValueType = 19;
- pub const nsAttrValue_ValueType_eDoubleValue: root::nsAttrValue_ValueType = 20;
- pub const nsAttrValue_ValueType_eIntMarginValue: root::nsAttrValue_ValueType = 21;
- pub const nsAttrValue_ValueType_eSVGAngle: root::nsAttrValue_ValueType = 22;
- pub const nsAttrValue_ValueType_eSVGTypesBegin: root::nsAttrValue_ValueType = 22;
- pub const nsAttrValue_ValueType_eSVGIntegerPair: root::nsAttrValue_ValueType = 23;
- pub const nsAttrValue_ValueType_eSVGLength: root::nsAttrValue_ValueType = 24;
- pub const nsAttrValue_ValueType_eSVGLengthList: root::nsAttrValue_ValueType = 25;
- pub const nsAttrValue_ValueType_eSVGNumberList: root::nsAttrValue_ValueType = 26;
- pub const nsAttrValue_ValueType_eSVGNumberPair: root::nsAttrValue_ValueType = 27;
- pub const nsAttrValue_ValueType_eSVGPathData: root::nsAttrValue_ValueType = 28;
- pub const nsAttrValue_ValueType_eSVGPointList: root::nsAttrValue_ValueType = 29;
- pub const nsAttrValue_ValueType_eSVGPreserveAspectRatio: root::nsAttrValue_ValueType = 30;
- pub const nsAttrValue_ValueType_eSVGStringList: root::nsAttrValue_ValueType = 31;
- pub const nsAttrValue_ValueType_eSVGTransformList: root::nsAttrValue_ValueType = 32;
- pub const nsAttrValue_ValueType_eSVGViewBox: root::nsAttrValue_ValueType = 33;
- pub const nsAttrValue_ValueType_eSVGTypesEnd: root::nsAttrValue_ValueType = 33;
- pub type nsAttrValue_ValueType = u32;
- /// Structure for a mapping from int (enum) values to strings. When you use
- /// it you generally create an array of them.
- /// Instantiate like this:
- /// EnumTable myTable[] = {
- /// { "string1", 1 },
- /// { "string2", 2 },
- /// { nullptr, 0 }
- /// }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsAttrValue_EnumTable {
- /// The string the value maps to
- pub tag: *const ::std::os::raw::c_char,
- /// The enum value that maps to this string
- pub value: i16,
- }
- #[test]
- fn bindgen_test_layout_nsAttrValue_EnumTable() {
- assert_eq!(
- ::std::mem::size_of::<nsAttrValue_EnumTable>(),
- 16usize,
- concat!("Size of: ", stringify!(nsAttrValue_EnumTable))
- );
- assert_eq!(
- ::std::mem::align_of::<nsAttrValue_EnumTable>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsAttrValue_EnumTable))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsAttrValue_EnumTable>())).tag as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrValue_EnumTable),
- "::",
- stringify!(tag)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsAttrValue_EnumTable>())).value as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrValue_EnumTable),
- "::",
- stringify!(value)
- )
- );
- }
- impl Clone for nsAttrValue_EnumTable {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const nsAttrValue_ValueBaseType_eStringBase: root::nsAttrValue_ValueBaseType = 0;
- pub const nsAttrValue_ValueBaseType_eOtherBase: root::nsAttrValue_ValueBaseType = 1;
- pub const nsAttrValue_ValueBaseType_eAtomBase: root::nsAttrValue_ValueBaseType = 2;
- pub const nsAttrValue_ValueBaseType_eIntegerBase: root::nsAttrValue_ValueBaseType = 3;
- pub type nsAttrValue_ValueBaseType = u32;
- extern "C" {
- #[link_name = "\u{1}_ZN11nsAttrValue15sEnumTableArrayE"]
- pub static mut nsAttrValue_sEnumTableArray:
- *mut root::nsTArray<*const root::nsAttrValue_EnumTable>;
- }
- #[test]
- fn bindgen_test_layout_nsAttrValue() {
- assert_eq!(
- ::std::mem::size_of::<nsAttrValue>(),
- 8usize,
- concat!("Size of: ", stringify!(nsAttrValue))
- );
- assert_eq!(
- ::std::mem::align_of::<nsAttrValue>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsAttrValue))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsAttrValue>())).mBits as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrValue),
- "::",
- stringify!(mBits)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsMappedAttributes {
- _unused: [u8; 0],
- }
- impl Clone for nsMappedAttributes {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsHTMLStyleSheet {
- _unused: [u8; 0],
- }
- impl Clone for nsHTMLStyleSheet {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAttrAndChildArray {
- pub mImpl: *mut root::nsAttrAndChildArray_Impl,
- }
- pub type nsAttrAndChildArray_BorrowedAttrInfo = root::mozilla::dom::BorrowedAttrInfo;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsAttrAndChildArray_InternalAttr {
- pub mName: root::nsAttrName,
- pub mValue: root::nsAttrValue,
- }
- #[test]
- fn bindgen_test_layout_nsAttrAndChildArray_InternalAttr() {
- assert_eq!(
- ::std::mem::size_of::<nsAttrAndChildArray_InternalAttr>(),
- 16usize,
- concat!("Size of: ", stringify!(nsAttrAndChildArray_InternalAttr))
- );
- assert_eq!(
- ::std::mem::align_of::<nsAttrAndChildArray_InternalAttr>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsAttrAndChildArray_InternalAttr)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsAttrAndChildArray_InternalAttr>())).mName as *const _
- as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrAndChildArray_InternalAttr),
- "::",
- stringify!(mName)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsAttrAndChildArray_InternalAttr>())).mValue as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrAndChildArray_InternalAttr),
- "::",
- stringify!(mValue)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsAttrAndChildArray_Impl {
- pub mAttrAndChildCount: u32,
- pub mBufferSize: u32,
- pub mMappedAttrs: *mut root::nsMappedAttributes,
- pub mBuffer: [*mut ::std::os::raw::c_void; 1usize],
- }
- #[test]
- fn bindgen_test_layout_nsAttrAndChildArray_Impl() {
- assert_eq!(
- ::std::mem::size_of::<nsAttrAndChildArray_Impl>(),
- 24usize,
- concat!("Size of: ", stringify!(nsAttrAndChildArray_Impl))
- );
- assert_eq!(
- ::std::mem::align_of::<nsAttrAndChildArray_Impl>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsAttrAndChildArray_Impl))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mAttrAndChildCount as *const _
- as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrAndChildArray_Impl),
- "::",
- stringify!(mAttrAndChildCount)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mBufferSize as *const _
- as usize
- },
- 4usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrAndChildArray_Impl),
- "::",
- stringify!(mBufferSize)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mMappedAttrs as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrAndChildArray_Impl),
- "::",
- stringify!(mMappedAttrs)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mBuffer as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrAndChildArray_Impl),
- "::",
- stringify!(mBuffer)
- )
- );
- }
- impl Clone for nsAttrAndChildArray_Impl {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_nsAttrAndChildArray() {
- assert_eq!(
- ::std::mem::size_of::<nsAttrAndChildArray>(),
- 8usize,
- concat!("Size of: ", stringify!(nsAttrAndChildArray))
- );
- assert_eq!(
- ::std::mem::align_of::<nsAttrAndChildArray>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsAttrAndChildArray))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsAttrAndChildArray>())).mImpl as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsAttrAndChildArray),
- "::",
- stringify!(mImpl)
- )
- );
- }
- #[repr(u32)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum nsCompatibility {
- eCompatibility_FullStandards = 1,
- eCompatibility_AlmostStandards = 2,
- eCompatibility_NavQuirks = 3,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIApplicationCacheContainer {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIApplicationCacheContainer_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIApplicationCacheContainer() {
- assert_eq!(
- ::std::mem::size_of::<nsIApplicationCacheContainer>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIApplicationCacheContainer))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIApplicationCacheContainer>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIApplicationCacheContainer))
- );
- }
- impl Clone for nsIApplicationCacheContainer {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIPrintSettings {
- _unused: [u8; 0],
- }
- impl Clone for nsIPrintSettings {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsDOMNavigationTiming {
- _unused: [u8; 0],
- }
- impl Clone for nsDOMNavigationTiming {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIContentViewer {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIContentViewer_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsIContentViewer_ePrompt: root::nsIContentViewer__bindgen_ty_1 = 0;
- pub const nsIContentViewer_eDontPromptAndDontUnload: root::nsIContentViewer__bindgen_ty_1 = 1;
- pub const nsIContentViewer_eDontPromptAndUnload: root::nsIContentViewer__bindgen_ty_1 = 2;
- pub type nsIContentViewer__bindgen_ty_1 = u32;
- pub const nsIContentViewer_eDelayResize: root::nsIContentViewer__bindgen_ty_2 = 1;
- pub type nsIContentViewer__bindgen_ty_2 = u32;
- #[test]
- fn bindgen_test_layout_nsIContentViewer() {
- assert_eq!(
- ::std::mem::size_of::<nsIContentViewer>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIContentViewer))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIContentViewer>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIContentViewer))
- );
- }
- impl Clone for nsIContentViewer {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIInterfaceRequestor {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIInterfaceRequestor_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIInterfaceRequestor() {
- assert_eq!(
- ::std::mem::size_of::<nsIInterfaceRequestor>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIInterfaceRequestor))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIInterfaceRequestor>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIInterfaceRequestor))
- );
- }
- impl Clone for nsIInterfaceRequestor {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsILoadContext {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsILoadContext_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsILoadContext() {
- assert_eq!(
- ::std::mem::size_of::<nsILoadContext>(),
- 8usize,
- concat!("Size of: ", stringify!(nsILoadContext))
- );
- assert_eq!(
- ::std::mem::align_of::<nsILoadContext>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsILoadContext))
- );
- }
- impl Clone for nsILoadContext {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsILoadGroup {
- pub _base: root::nsIRequest,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsILoadGroup_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsILoadGroup() {
- assert_eq!(
- ::std::mem::size_of::<nsILoadGroup>(),
- 8usize,
- concat!("Size of: ", stringify!(nsILoadGroup))
- );
- assert_eq!(
- ::std::mem::align_of::<nsILoadGroup>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsILoadGroup))
- );
- }
- impl Clone for nsILoadGroup {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIRequestObserver {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIRequestObserver_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIRequestObserver() {
- assert_eq!(
- ::std::mem::size_of::<nsIRequestObserver>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIRequestObserver))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIRequestObserver>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIRequestObserver))
- );
- }
- impl Clone for nsIRequestObserver {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIStreamListener {
- pub _base: root::nsIRequestObserver,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIStreamListener_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIStreamListener() {
- assert_eq!(
- ::std::mem::size_of::<nsIStreamListener>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIStreamListener))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIStreamListener>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIStreamListener))
- );
- }
- impl Clone for nsIStreamListener {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsParserBase {
- pub _base: root::nsISupports,
- }
- #[test]
- fn bindgen_test_layout_nsParserBase() {
- assert_eq!(
- ::std::mem::size_of::<nsParserBase>(),
- 8usize,
- concat!("Size of: ", stringify!(nsParserBase))
- );
- assert_eq!(
- ::std::mem::align_of::<nsParserBase>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsParserBase))
- );
- }
- impl Clone for nsParserBase {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// This GECKO-INTERNAL interface is on track to being REMOVED (or refactored
- /// to the point of being near-unrecognizable).
- ///
- /// Please DO NOT #include this file in comm-central code, in your XULRunner
- /// app or binary extensions.
- ///
- /// Please DO NOT #include this into new files even inside Gecko. It is more
- /// likely than not that #including this header is the wrong thing to do.
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIParser {
- pub _base: root::nsParserBase,
- }
- pub type nsIParser_Encoding = root::mozilla::Encoding;
- pub type nsIParser_NotNull<T> = root::mozilla::NotNull<T>;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIParser_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIParser() {
- assert_eq!(
- ::std::mem::size_of::<nsIParser>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIParser))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIParser>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIParser))
- );
- }
- impl Clone for nsIParser {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIChannelEventSink {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIChannelEventSink_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsIChannelEventSink_REDIRECT_TEMPORARY: root::nsIChannelEventSink__bindgen_ty_1 = 1;
- pub const nsIChannelEventSink_REDIRECT_PERMANENT: root::nsIChannelEventSink__bindgen_ty_1 = 2;
- pub const nsIChannelEventSink_REDIRECT_INTERNAL: root::nsIChannelEventSink__bindgen_ty_1 = 4;
- pub const nsIChannelEventSink_REDIRECT_STS_UPGRADE: root::nsIChannelEventSink__bindgen_ty_1 = 8;
- pub type nsIChannelEventSink__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsIChannelEventSink() {
- assert_eq!(
- ::std::mem::size_of::<nsIChannelEventSink>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIChannelEventSink))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIChannelEventSink>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIChannelEventSink))
- );
- }
- impl Clone for nsIChannelEventSink {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIProgressEventSink {
+ pub struct nsISerializable {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
- pub struct nsIProgressEventSink_COMTypeInfo {
+ pub struct nsISerializable_COMTypeInfo {
pub _address: u8,
}
#[test]
- fn bindgen_test_layout_nsIProgressEventSink() {
+ fn bindgen_test_layout_nsISerializable() {
assert_eq!(
- ::std::mem::size_of::<nsIProgressEventSink>(),
+ ::std::mem::size_of::<nsISerializable>(),
8usize,
- concat!("Size of: ", stringify!(nsIProgressEventSink))
+ concat!("Size of: ", stringify!(nsISerializable))
);
assert_eq!(
- ::std::mem::align_of::<nsIProgressEventSink>(),
+ ::std::mem::align_of::<nsISerializable>(),
8usize,
- concat!("Alignment of ", stringify!(nsIProgressEventSink))
+ concat!("Alignment of ", stringify!(nsISerializable))
);
}
- impl Clone for nsIProgressEventSink {
+ impl Clone for nsISerializable {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct nsISecurityEventSink {
- pub _base: root::nsISupports,
+ pub struct nsIPrincipal {
+ pub _base: root::nsISerializable,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
- pub struct nsISecurityEventSink_COMTypeInfo {
+ pub struct nsIPrincipal_COMTypeInfo {
pub _address: u8,
}
#[test]
- fn bindgen_test_layout_nsISecurityEventSink() {
+ fn bindgen_test_layout_nsIPrincipal() {
assert_eq!(
- ::std::mem::size_of::<nsISecurityEventSink>(),
+ ::std::mem::size_of::<nsIPrincipal>(),
8usize,
- concat!("Size of: ", stringify!(nsISecurityEventSink))
+ concat!("Size of: ", stringify!(nsIPrincipal))
);
assert_eq!(
- ::std::mem::align_of::<nsISecurityEventSink>(),
+ ::std::mem::align_of::<nsIPrincipal>(),
8usize,
- concat!("Alignment of ", stringify!(nsISecurityEventSink))
+ concat!("Alignment of ", stringify!(nsIPrincipal))
);
}
- impl Clone for nsISecurityEventSink {
+ impl Clone for nsIPrincipal {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
- #[derive(Debug)]
- pub struct nsIGlobalObject {
- pub _base: root::nsISupports,
- pub _base_1: root::mozilla::dom::DispatcherTrait,
- pub mHostObjectURIs: root::nsTArray<root::nsCString>,
- pub mEventTargetObjects: [u64; 4usize],
- pub mIsDying: bool,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIGlobalObject_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIGlobalObject() {
- assert_eq!(
- ::std::mem::size_of::<nsIGlobalObject>(),
- 64usize,
- concat!("Size of: ", stringify!(nsIGlobalObject))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIGlobalObject>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIGlobalObject))
- );
- }
- /// The global object which keeps a script context for each supported script
- /// language. This often used to store per-window global state.
- /// This is a heavyweight interface implemented only by DOM globals, and
- /// it might go away some time in the future.
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsIScriptGlobalObject {
- pub _base: root::nsIGlobalObject,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIScriptGlobalObject_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIScriptGlobalObject() {
- assert_eq!(
- ::std::mem::size_of::<nsIScriptGlobalObject>(),
- 64usize,
- concat!("Size of: ", stringify!(nsIScriptGlobalObject))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIScriptGlobalObject>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIScriptGlobalObject))
- );
- }
- #[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIURI {
pub _base: root::nsISupports,
@@ -21256,1508 +17650,855 @@ pub mod root {
*self
}
}
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIUUIDGenerator {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIUUIDGenerator_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIUUIDGenerator() {
- assert_eq!(
- ::std::mem::size_of::<nsIUUIDGenerator>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIUUIDGenerator))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIUUIDGenerator>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIUUIDGenerator))
- );
- }
- impl Clone for nsIUUIDGenerator {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIControllers {
- _unused: [u8; 0],
- }
- impl Clone for nsIControllers {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct mozIDOMWindow {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct mozIDOMWindow_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_mozIDOMWindow() {
- assert_eq!(
- ::std::mem::size_of::<mozIDOMWindow>(),
- 8usize,
- concat!("Size of: ", stringify!(mozIDOMWindow))
- );
- assert_eq!(
- ::std::mem::align_of::<mozIDOMWindow>(),
- 8usize,
- concat!("Alignment of ", stringify!(mozIDOMWindow))
- );
- }
- impl Clone for mozIDOMWindow {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct mozIDOMWindowProxy {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct mozIDOMWindowProxy_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_mozIDOMWindowProxy() {
- assert_eq!(
- ::std::mem::size_of::<mozIDOMWindowProxy>(),
- 8usize,
- concat!("Size of: ", stringify!(mozIDOMWindowProxy))
- );
- assert_eq!(
- ::std::mem::align_of::<mozIDOMWindowProxy>(),
- 8usize,
- concat!("Alignment of ", stringify!(mozIDOMWindowProxy))
- );
- }
- impl Clone for mozIDOMWindowProxy {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type SuspendTypes = u32;
- pub const PopupControlState_openAllowed: root::PopupControlState = 0;
- pub const PopupControlState_openControlled: root::PopupControlState = 1;
- pub const PopupControlState_openBlocked: root::PopupControlState = 2;
- pub const PopupControlState_openAbused: root::PopupControlState = 3;
- pub const PopupControlState_openOverridden: root::PopupControlState = 4;
- pub type PopupControlState = u32;
- #[repr(C)]
- pub struct nsPIDOMWindowInner {
- pub _base: root::mozIDOMWindow,
- pub mChromeEventHandler: root::nsCOMPtr,
- pub mDoc: root::nsCOMPtr,
- pub mDocumentURI: root::nsCOMPtr,
- pub mDocBaseURI: root::nsCOMPtr,
- pub mParentTarget: root::nsCOMPtr,
- pub mPerformance: root::RefPtr<root::mozilla::dom::Performance>,
- pub mTimeoutManager: root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>,
- pub mNavigator: root::RefPtr<root::mozilla::dom::Navigator>,
- pub mMutationBits: u32,
- pub mActivePeerConnections: u32,
- pub mIsDocumentLoaded: bool,
- pub mIsHandlingResizeEvent: bool,
- pub mMayHavePaintEventListener: bool,
- pub mMayHaveTouchEventListener: bool,
- pub mMayHaveSelectionChangeEventListener: bool,
- pub mMayHaveMouseEnterLeaveEventListener: bool,
- pub mMayHavePointerEnterLeaveEventListener: bool,
- pub mInnerObjectsFreed: bool,
- pub mAudioCaptured: bool,
- pub mOuterWindow: root::nsCOMPtr,
- pub mFocusedNode: root::nsCOMPtr,
- pub mAudioContexts: root::nsTArray<*mut root::mozilla::dom::AudioContext>,
- pub mTabGroup: root::RefPtr<root::mozilla::dom::TabGroup>,
- pub mWindowID: u64,
- pub mHasNotifiedGlobalCreated: bool,
- pub mMarkedCCGeneration: u32,
- pub mTopInnerWindow: root::nsCOMPtr,
- pub mHasTriedToCacheTopInnerWindow: bool,
- pub mNumOfIndexedDBDatabases: u32,
- pub mNumOfOpenWebSockets: u32,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsPIDOMWindowInner_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsPIDOMWindowInner() {
- assert_eq!(
- ::std::mem::size_of::<nsPIDOMWindowInner>(),
- 168usize,
- concat!("Size of: ", stringify!(nsPIDOMWindowInner))
- );
- assert_eq!(
- ::std::mem::align_of::<nsPIDOMWindowInner>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsPIDOMWindowInner))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mChromeEventHandler as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mChromeEventHandler)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mDoc as *const _ as usize },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mDoc)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mDocumentURI as *const _ as usize
- },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mDocumentURI)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mDocBaseURI as *const _ as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mDocBaseURI)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mParentTarget as *const _ as usize
- },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mParentTarget)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mPerformance as *const _ as usize
- },
- 48usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mPerformance)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mTimeoutManager as *const _ as usize
- },
- 56usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mTimeoutManager)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mNavigator as *const _ as usize
- },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mNavigator)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMutationBits as *const _ as usize
- },
- 72usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mMutationBits)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mActivePeerConnections as *const _
- as usize
- },
- 76usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mActivePeerConnections)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mIsDocumentLoaded as *const _
- as usize
- },
- 80usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mIsDocumentLoaded)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mIsHandlingResizeEvent as *const _
- as usize
- },
- 81usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mIsHandlingResizeEvent)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHavePaintEventListener
- as *const _ as usize
- },
- 82usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mMayHavePaintEventListener)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHaveTouchEventListener
- as *const _ as usize
- },
- 83usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mMayHaveTouchEventListener)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHaveSelectionChangeEventListener
- as *const _ as usize
- },
- 84usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mMayHaveSelectionChangeEventListener)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHaveMouseEnterLeaveEventListener
- as *const _ as usize
- },
- 85usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mMayHaveMouseEnterLeaveEventListener)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>()))
- .mMayHavePointerEnterLeaveEventListener as *const _ as usize
- },
- 86usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mMayHavePointerEnterLeaveEventListener)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mInnerObjectsFreed as *const _
- as usize
- },
- 87usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mInnerObjectsFreed)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mAudioCaptured as *const _ as usize
- },
- 88usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mAudioCaptured)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mOuterWindow as *const _ as usize
- },
- 96usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mOuterWindow)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mFocusedNode as *const _ as usize
- },
- 104usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mFocusedNode)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mAudioContexts as *const _ as usize
- },
- 112usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mAudioContexts)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mTabGroup as *const _ as usize
- },
- 120usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mTabGroup)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mWindowID as *const _ as usize
- },
- 128usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mWindowID)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mHasNotifiedGlobalCreated as *const _
- as usize
- },
- 136usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mHasNotifiedGlobalCreated)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMarkedCCGeneration as *const _
- as usize
- },
- 140usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mMarkedCCGeneration)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mTopInnerWindow as *const _ as usize
- },
- 144usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mTopInnerWindow)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mHasTriedToCacheTopInnerWindow
- as *const _ as usize
- },
- 152usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mHasTriedToCacheTopInnerWindow)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mNumOfIndexedDBDatabases as *const _
- as usize
- },
- 156usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mNumOfIndexedDBDatabases)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mNumOfOpenWebSockets as *const _
- as usize
- },
- 160usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowInner),
- "::",
- stringify!(mNumOfOpenWebSockets)
- )
- );
- }
- #[repr(C)]
- pub struct nsPIDOMWindowOuter {
- pub _base: root::mozIDOMWindowProxy,
- pub mChromeEventHandler: root::nsCOMPtr,
- pub mDoc: root::nsCOMPtr,
- pub mDocumentURI: root::nsCOMPtr,
- pub mDocBaseURI: root::nsCOMPtr,
- pub mParentTarget: root::nsCOMPtr,
- pub mFrameElement: root::nsCOMPtr,
- pub mDocShell: root::nsCOMPtr,
- pub mModalStateDepth: u32,
- pub mIsActive: bool,
- pub mIsBackground: bool,
- /// The suspended types can be "disposable" or "permanent". This varable only
- /// stores the value about permanent suspend.
- /// - disposable
- /// To pause all playing media in that window, but doesn't affect the media
- /// which starts after that.
- ///
- /// - permanent
- /// To pause all media in that window, and also affect the media which starts
- /// after that.
- pub mMediaSuspend: root::SuspendTypes,
- pub mAudioMuted: bool,
- pub mAudioVolume: f32,
- pub mDesktopModeViewport: bool,
- pub mIsRootOuterWindow: bool,
- pub mInnerWindow: *mut root::nsPIDOMWindowInner,
- pub mTabGroup: root::RefPtr<root::mozilla::dom::TabGroup>,
- pub mWindowID: u64,
- pub mMarkedCCGeneration: u32,
- pub mServiceWorkersTestingEnabled: bool,
- pub mLargeAllocStatus: root::mozilla::dom::LargeAllocStatus,
- pub mOpenerForInitialContentBrowser: root::nsCOMPtr,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsPIDOMWindowOuter_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsPIDOMWindowOuter() {
- assert_eq!(
- ::std::mem::size_of::<nsPIDOMWindowOuter>(),
- 128usize,
- concat!("Size of: ", stringify!(nsPIDOMWindowOuter))
- );
- assert_eq!(
- ::std::mem::align_of::<nsPIDOMWindowOuter>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsPIDOMWindowOuter))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mChromeEventHandler as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mChromeEventHandler)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDoc as *const _ as usize },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mDoc)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDocumentURI as *const _ as usize
- },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mDocumentURI)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDocBaseURI as *const _ as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mDocBaseURI)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mParentTarget as *const _ as usize
- },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mParentTarget)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mFrameElement as *const _ as usize
- },
- 48usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mFrameElement)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDocShell as *const _ as usize
- },
- 56usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mDocShell)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mModalStateDepth as *const _ as usize
- },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mModalStateDepth)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mIsActive as *const _ as usize
- },
- 68usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mIsActive)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mIsBackground as *const _ as usize
- },
- 69usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mIsBackground)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mMediaSuspend as *const _ as usize
- },
- 72usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mMediaSuspend)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mAudioMuted as *const _ as usize
- },
- 76usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mAudioMuted)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mAudioVolume as *const _ as usize
- },
- 80usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mAudioVolume)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDesktopModeViewport as *const _
- as usize
- },
- 84usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mDesktopModeViewport)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mIsRootOuterWindow as *const _
- as usize
- },
- 85usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mIsRootOuterWindow)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mInnerWindow as *const _ as usize
- },
- 88usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mInnerWindow)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mTabGroup as *const _ as usize
- },
- 96usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mTabGroup)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mWindowID as *const _ as usize
- },
- 104usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mWindowID)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mMarkedCCGeneration as *const _
- as usize
- },
- 112usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mMarkedCCGeneration)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mServiceWorkersTestingEnabled
- as *const _ as usize
- },
- 116usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mServiceWorkersTestingEnabled)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mLargeAllocStatus as *const _
- as usize
- },
- 117usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mLargeAllocStatus)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mOpenerForInitialContentBrowser
- as *const _ as usize
- },
- 120usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPIDOMWindowOuter),
- "::",
- stringify!(mOpenerForInitialContentBrowser)
- )
- );
+ #[repr(i16)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum nsCSSKeyword {
+ eCSSKeyword_UNKNOWN = -1,
+ eCSSKeyword__moz_activehyperlinktext = 0,
+ eCSSKeyword__moz_all = 1,
+ eCSSKeyword__moz_alt_content = 2,
+ eCSSKeyword__moz_available = 3,
+ eCSSKeyword__moz_box = 4,
+ eCSSKeyword__moz_button = 5,
+ eCSSKeyword__moz_buttondefault = 6,
+ eCSSKeyword__moz_buttonhoverface = 7,
+ eCSSKeyword__moz_buttonhovertext = 8,
+ eCSSKeyword__moz_cellhighlight = 9,
+ eCSSKeyword__moz_cellhighlighttext = 10,
+ eCSSKeyword__moz_center = 11,
+ eCSSKeyword__moz_combobox = 12,
+ eCSSKeyword__moz_comboboxtext = 13,
+ eCSSKeyword__moz_context_properties = 14,
+ eCSSKeyword__moz_block_height = 15,
+ eCSSKeyword__moz_deck = 16,
+ eCSSKeyword__moz_default_background_color = 17,
+ eCSSKeyword__moz_default_color = 18,
+ eCSSKeyword__moz_desktop = 19,
+ eCSSKeyword__moz_dialog = 20,
+ eCSSKeyword__moz_dialogtext = 21,
+ eCSSKeyword__moz_document = 22,
+ eCSSKeyword__moz_dragtargetzone = 23,
+ eCSSKeyword__moz_element = 24,
+ eCSSKeyword__moz_eventreerow = 25,
+ eCSSKeyword__moz_field = 26,
+ eCSSKeyword__moz_fieldtext = 27,
+ eCSSKeyword__moz_fit_content = 28,
+ eCSSKeyword__moz_fixed = 29,
+ eCSSKeyword__moz_grabbing = 30,
+ eCSSKeyword__moz_grab = 31,
+ eCSSKeyword__moz_grid_group = 32,
+ eCSSKeyword__moz_grid_line = 33,
+ eCSSKeyword__moz_grid = 34,
+ eCSSKeyword__moz_groupbox = 35,
+ eCSSKeyword__moz_gtk_info_bar = 36,
+ eCSSKeyword__moz_gtk_info_bar_text = 37,
+ eCSSKeyword__moz_hidden_unscrollable = 38,
+ eCSSKeyword__moz_hyperlinktext = 39,
+ eCSSKeyword__moz_html_cellhighlight = 40,
+ eCSSKeyword__moz_html_cellhighlighttext = 41,
+ eCSSKeyword__moz_image_rect = 42,
+ eCSSKeyword__moz_info = 43,
+ eCSSKeyword__moz_inline_box = 44,
+ eCSSKeyword__moz_inline_grid = 45,
+ eCSSKeyword__moz_inline_stack = 46,
+ eCSSKeyword__moz_left = 47,
+ eCSSKeyword__moz_list = 48,
+ eCSSKeyword__moz_mac_buttonactivetext = 49,
+ eCSSKeyword__moz_mac_chrome_active = 50,
+ eCSSKeyword__moz_mac_chrome_inactive = 51,
+ eCSSKeyword__moz_mac_defaultbuttontext = 52,
+ eCSSKeyword__moz_mac_focusring = 53,
+ eCSSKeyword__moz_mac_fullscreen_button = 54,
+ eCSSKeyword__moz_mac_menuselect = 55,
+ eCSSKeyword__moz_mac_menushadow = 56,
+ eCSSKeyword__moz_mac_menutextdisable = 57,
+ eCSSKeyword__moz_mac_menutextselect = 58,
+ eCSSKeyword__moz_mac_disabledtoolbartext = 59,
+ eCSSKeyword__moz_mac_secondaryhighlight = 60,
+ eCSSKeyword__moz_mac_menuitem = 61,
+ eCSSKeyword__moz_mac_active_menuitem = 62,
+ eCSSKeyword__moz_mac_menupopup = 63,
+ eCSSKeyword__moz_mac_tooltip = 64,
+ eCSSKeyword__moz_max_content = 65,
+ eCSSKeyword__moz_menuhover = 66,
+ eCSSKeyword__moz_menuhovertext = 67,
+ eCSSKeyword__moz_menubartext = 68,
+ eCSSKeyword__moz_menubarhovertext = 69,
+ eCSSKeyword__moz_middle_with_baseline = 70,
+ eCSSKeyword__moz_min_content = 71,
+ eCSSKeyword__moz_nativehyperlinktext = 72,
+ eCSSKeyword__moz_none = 73,
+ eCSSKeyword__moz_oddtreerow = 74,
+ eCSSKeyword__moz_popup = 75,
+ eCSSKeyword__moz_pre_space = 76,
+ eCSSKeyword__moz_pull_down_menu = 77,
+ eCSSKeyword__moz_right = 78,
+ eCSSKeyword__moz_scrollbars_horizontal = 79,
+ eCSSKeyword__moz_scrollbars_none = 80,
+ eCSSKeyword__moz_scrollbars_vertical = 81,
+ eCSSKeyword__moz_stack = 82,
+ eCSSKeyword__moz_text = 83,
+ eCSSKeyword__moz_use_system_font = 84,
+ eCSSKeyword__moz_visitedhyperlinktext = 85,
+ eCSSKeyword__moz_window = 86,
+ eCSSKeyword__moz_workspace = 87,
+ eCSSKeyword__moz_zoom_in = 88,
+ eCSSKeyword__moz_zoom_out = 89,
+ eCSSKeyword__webkit_box = 90,
+ eCSSKeyword__webkit_flex = 91,
+ eCSSKeyword__webkit_inline_box = 92,
+ eCSSKeyword__webkit_inline_flex = 93,
+ eCSSKeyword_absolute = 94,
+ eCSSKeyword_active = 95,
+ eCSSKeyword_activeborder = 96,
+ eCSSKeyword_activecaption = 97,
+ eCSSKeyword_add = 98,
+ eCSSKeyword_additive = 99,
+ eCSSKeyword_alias = 100,
+ eCSSKeyword_all = 101,
+ eCSSKeyword_all_petite_caps = 102,
+ eCSSKeyword_all_scroll = 103,
+ eCSSKeyword_all_small_caps = 104,
+ eCSSKeyword_alpha = 105,
+ eCSSKeyword_alternate = 106,
+ eCSSKeyword_alternate_reverse = 107,
+ eCSSKeyword_always = 108,
+ eCSSKeyword_annotation = 109,
+ eCSSKeyword_appworkspace = 110,
+ eCSSKeyword_auto = 111,
+ eCSSKeyword_auto_fill = 112,
+ eCSSKeyword_auto_fit = 113,
+ eCSSKeyword_auto_flow = 114,
+ eCSSKeyword_avoid = 115,
+ eCSSKeyword_background = 116,
+ eCSSKeyword_backwards = 117,
+ eCSSKeyword_balance = 118,
+ eCSSKeyword_baseline = 119,
+ eCSSKeyword_bidi_override = 120,
+ eCSSKeyword_blink = 121,
+ eCSSKeyword_block = 122,
+ eCSSKeyword_block_axis = 123,
+ eCSSKeyword_blur = 124,
+ eCSSKeyword_bold = 125,
+ eCSSKeyword_bold_fraktur = 126,
+ eCSSKeyword_bold_italic = 127,
+ eCSSKeyword_bold_sans_serif = 128,
+ eCSSKeyword_bold_script = 129,
+ eCSSKeyword_bolder = 130,
+ eCSSKeyword_border_box = 131,
+ eCSSKeyword_both = 132,
+ eCSSKeyword_bottom = 133,
+ eCSSKeyword_bottom_outside = 134,
+ eCSSKeyword_break_all = 135,
+ eCSSKeyword_break_word = 136,
+ eCSSKeyword_brightness = 137,
+ eCSSKeyword_browser = 138,
+ eCSSKeyword_bullets = 139,
+ eCSSKeyword_button = 140,
+ eCSSKeyword_buttonface = 141,
+ eCSSKeyword_buttonhighlight = 142,
+ eCSSKeyword_buttonshadow = 143,
+ eCSSKeyword_buttontext = 144,
+ eCSSKeyword_capitalize = 145,
+ eCSSKeyword_caption = 146,
+ eCSSKeyword_captiontext = 147,
+ eCSSKeyword_cell = 148,
+ eCSSKeyword_center = 149,
+ eCSSKeyword_ch = 150,
+ eCSSKeyword_character_variant = 151,
+ eCSSKeyword_circle = 152,
+ eCSSKeyword_cjk_decimal = 153,
+ eCSSKeyword_clip = 154,
+ eCSSKeyword_clone = 155,
+ eCSSKeyword_close_quote = 156,
+ eCSSKeyword_closest_corner = 157,
+ eCSSKeyword_closest_side = 158,
+ eCSSKeyword_cm = 159,
+ eCSSKeyword_col_resize = 160,
+ eCSSKeyword_collapse = 161,
+ eCSSKeyword_color = 162,
+ eCSSKeyword_color_burn = 163,
+ eCSSKeyword_color_dodge = 164,
+ eCSSKeyword_common_ligatures = 165,
+ eCSSKeyword_column = 166,
+ eCSSKeyword_column_reverse = 167,
+ eCSSKeyword_condensed = 168,
+ eCSSKeyword_contain = 169,
+ eCSSKeyword_content = 170,
+ eCSSKeyword_content_box = 171,
+ eCSSKeyword_contents = 172,
+ eCSSKeyword_context_fill = 173,
+ eCSSKeyword_context_fill_opacity = 174,
+ eCSSKeyword_context_menu = 175,
+ eCSSKeyword_context_stroke = 176,
+ eCSSKeyword_context_stroke_opacity = 177,
+ eCSSKeyword_context_value = 178,
+ eCSSKeyword_continuous = 179,
+ eCSSKeyword_contrast = 180,
+ eCSSKeyword_copy = 181,
+ eCSSKeyword_contextual = 182,
+ eCSSKeyword_cover = 183,
+ eCSSKeyword_crop = 184,
+ eCSSKeyword_cross = 185,
+ eCSSKeyword_crosshair = 186,
+ eCSSKeyword_currentcolor = 187,
+ eCSSKeyword_cursive = 188,
+ eCSSKeyword_cyclic = 189,
+ eCSSKeyword_darken = 190,
+ eCSSKeyword_dashed = 191,
+ eCSSKeyword_dense = 192,
+ eCSSKeyword_decimal = 193,
+ eCSSKeyword_default = 194,
+ eCSSKeyword_deg = 195,
+ eCSSKeyword_diagonal_fractions = 196,
+ eCSSKeyword_dialog = 197,
+ eCSSKeyword_difference = 198,
+ eCSSKeyword_digits = 199,
+ eCSSKeyword_disabled = 200,
+ eCSSKeyword_disc = 201,
+ eCSSKeyword_discretionary_ligatures = 202,
+ eCSSKeyword_distribute = 203,
+ eCSSKeyword_dot = 204,
+ eCSSKeyword_dotted = 205,
+ eCSSKeyword_double = 206,
+ eCSSKeyword_double_circle = 207,
+ eCSSKeyword_double_struck = 208,
+ eCSSKeyword_drag = 209,
+ eCSSKeyword_drop_shadow = 210,
+ eCSSKeyword_e_resize = 211,
+ eCSSKeyword_ease = 212,
+ eCSSKeyword_ease_in = 213,
+ eCSSKeyword_ease_in_out = 214,
+ eCSSKeyword_ease_out = 215,
+ eCSSKeyword_economy = 216,
+ eCSSKeyword_element = 217,
+ eCSSKeyword_elements = 218,
+ eCSSKeyword_ellipse = 219,
+ eCSSKeyword_ellipsis = 220,
+ eCSSKeyword_em = 221,
+ eCSSKeyword_embed = 222,
+ eCSSKeyword_enabled = 223,
+ eCSSKeyword_end = 224,
+ eCSSKeyword_ex = 225,
+ eCSSKeyword_exact = 226,
+ eCSSKeyword_exclude = 227,
+ eCSSKeyword_exclusion = 228,
+ eCSSKeyword_expanded = 229,
+ eCSSKeyword_extends = 230,
+ eCSSKeyword_extra_condensed = 231,
+ eCSSKeyword_extra_expanded = 232,
+ eCSSKeyword_ew_resize = 233,
+ eCSSKeyword_fallback = 234,
+ eCSSKeyword_fantasy = 235,
+ eCSSKeyword_farthest_side = 236,
+ eCSSKeyword_farthest_corner = 237,
+ eCSSKeyword_fill = 238,
+ eCSSKeyword_filled = 239,
+ eCSSKeyword_fill_box = 240,
+ eCSSKeyword_first = 241,
+ eCSSKeyword_fit_content = 242,
+ eCSSKeyword_fixed = 243,
+ eCSSKeyword_flat = 244,
+ eCSSKeyword_flex = 245,
+ eCSSKeyword_flex_end = 246,
+ eCSSKeyword_flex_start = 247,
+ eCSSKeyword_flip = 248,
+ eCSSKeyword_flow_root = 249,
+ eCSSKeyword_forwards = 250,
+ eCSSKeyword_fraktur = 251,
+ eCSSKeyword_frames = 252,
+ eCSSKeyword_from_image = 253,
+ eCSSKeyword_full_width = 254,
+ eCSSKeyword_fullscreen = 255,
+ eCSSKeyword_grab = 256,
+ eCSSKeyword_grabbing = 257,
+ eCSSKeyword_grad = 258,
+ eCSSKeyword_grayscale = 259,
+ eCSSKeyword_graytext = 260,
+ eCSSKeyword_grid = 261,
+ eCSSKeyword_groove = 262,
+ eCSSKeyword_hard_light = 263,
+ eCSSKeyword_help = 264,
+ eCSSKeyword_hidden = 265,
+ eCSSKeyword_hide = 266,
+ eCSSKeyword_highlight = 267,
+ eCSSKeyword_highlighttext = 268,
+ eCSSKeyword_historical_forms = 269,
+ eCSSKeyword_historical_ligatures = 270,
+ eCSSKeyword_horizontal = 271,
+ eCSSKeyword_horizontal_tb = 272,
+ eCSSKeyword_hue = 273,
+ eCSSKeyword_hue_rotate = 274,
+ eCSSKeyword_hz = 275,
+ eCSSKeyword_icon = 276,
+ eCSSKeyword_ignore = 277,
+ eCSSKeyword_ignore_horizontal = 278,
+ eCSSKeyword_ignore_vertical = 279,
+ eCSSKeyword_in = 280,
+ eCSSKeyword_interlace = 281,
+ eCSSKeyword_inactive = 282,
+ eCSSKeyword_inactiveborder = 283,
+ eCSSKeyword_inactivecaption = 284,
+ eCSSKeyword_inactivecaptiontext = 285,
+ eCSSKeyword_infinite = 286,
+ eCSSKeyword_infobackground = 287,
+ eCSSKeyword_infotext = 288,
+ eCSSKeyword_inherit = 289,
+ eCSSKeyword_initial = 290,
+ eCSSKeyword_inline = 291,
+ eCSSKeyword_inline_axis = 292,
+ eCSSKeyword_inline_block = 293,
+ eCSSKeyword_inline_end = 294,
+ eCSSKeyword_inline_flex = 295,
+ eCSSKeyword_inline_grid = 296,
+ eCSSKeyword_inline_start = 297,
+ eCSSKeyword_inline_table = 298,
+ eCSSKeyword_inset = 299,
+ eCSSKeyword_inside = 300,
+ eCSSKeyword_inter_character = 301,
+ eCSSKeyword_inter_word = 302,
+ eCSSKeyword_interpolatematrix = 303,
+ eCSSKeyword_accumulatematrix = 304,
+ eCSSKeyword_intersect = 305,
+ eCSSKeyword_isolate = 306,
+ eCSSKeyword_isolate_override = 307,
+ eCSSKeyword_invert = 308,
+ eCSSKeyword_italic = 309,
+ eCSSKeyword_jis78 = 310,
+ eCSSKeyword_jis83 = 311,
+ eCSSKeyword_jis90 = 312,
+ eCSSKeyword_jis04 = 313,
+ eCSSKeyword_justify = 314,
+ eCSSKeyword_keep_all = 315,
+ eCSSKeyword_khz = 316,
+ eCSSKeyword_landscape = 317,
+ eCSSKeyword_large = 318,
+ eCSSKeyword_larger = 319,
+ eCSSKeyword_last = 320,
+ eCSSKeyword_last_baseline = 321,
+ eCSSKeyword_layout = 322,
+ eCSSKeyword_left = 323,
+ eCSSKeyword_legacy = 324,
+ eCSSKeyword_lighten = 325,
+ eCSSKeyword_lighter = 326,
+ eCSSKeyword_line_through = 327,
+ eCSSKeyword_linear = 328,
+ eCSSKeyword_lining_nums = 329,
+ eCSSKeyword_list_item = 330,
+ eCSSKeyword_local = 331,
+ eCSSKeyword_logical = 332,
+ eCSSKeyword_looped = 333,
+ eCSSKeyword_lowercase = 334,
+ eCSSKeyword_lr = 335,
+ eCSSKeyword_lr_tb = 336,
+ eCSSKeyword_ltr = 337,
+ eCSSKeyword_luminance = 338,
+ eCSSKeyword_luminosity = 339,
+ eCSSKeyword_mandatory = 340,
+ eCSSKeyword_manipulation = 341,
+ eCSSKeyword_manual = 342,
+ eCSSKeyword_margin_box = 343,
+ eCSSKeyword_markers = 344,
+ eCSSKeyword_match_parent = 345,
+ eCSSKeyword_match_source = 346,
+ eCSSKeyword_matrix = 347,
+ eCSSKeyword_matrix3d = 348,
+ eCSSKeyword_max_content = 349,
+ eCSSKeyword_medium = 350,
+ eCSSKeyword_menu = 351,
+ eCSSKeyword_menutext = 352,
+ eCSSKeyword_message_box = 353,
+ eCSSKeyword_middle = 354,
+ eCSSKeyword_min_content = 355,
+ eCSSKeyword_minmax = 356,
+ eCSSKeyword_mix = 357,
+ eCSSKeyword_mixed = 358,
+ eCSSKeyword_mm = 359,
+ eCSSKeyword_monospace = 360,
+ eCSSKeyword_move = 361,
+ eCSSKeyword_ms = 362,
+ eCSSKeyword_multiply = 363,
+ eCSSKeyword_n_resize = 364,
+ eCSSKeyword_narrower = 365,
+ eCSSKeyword_ne_resize = 366,
+ eCSSKeyword_nesw_resize = 367,
+ eCSSKeyword_no_clip = 368,
+ eCSSKeyword_no_close_quote = 369,
+ eCSSKeyword_no_common_ligatures = 370,
+ eCSSKeyword_no_contextual = 371,
+ eCSSKeyword_no_discretionary_ligatures = 372,
+ eCSSKeyword_no_drag = 373,
+ eCSSKeyword_no_drop = 374,
+ eCSSKeyword_no_historical_ligatures = 375,
+ eCSSKeyword_no_open_quote = 376,
+ eCSSKeyword_no_repeat = 377,
+ eCSSKeyword_none = 378,
+ eCSSKeyword_normal = 379,
+ eCSSKeyword_not_allowed = 380,
+ eCSSKeyword_nowrap = 381,
+ eCSSKeyword_numeric = 382,
+ eCSSKeyword_ns_resize = 383,
+ eCSSKeyword_nw_resize = 384,
+ eCSSKeyword_nwse_resize = 385,
+ eCSSKeyword_oblique = 386,
+ eCSSKeyword_oldstyle_nums = 387,
+ eCSSKeyword_opacity = 388,
+ eCSSKeyword_open = 389,
+ eCSSKeyword_open_quote = 390,
+ eCSSKeyword_optional = 391,
+ eCSSKeyword_ordinal = 392,
+ eCSSKeyword_ornaments = 393,
+ eCSSKeyword_outset = 394,
+ eCSSKeyword_outside = 395,
+ eCSSKeyword_over = 396,
+ eCSSKeyword_overlay = 397,
+ eCSSKeyword_overline = 398,
+ eCSSKeyword_paint = 399,
+ eCSSKeyword_padding_box = 400,
+ eCSSKeyword_painted = 401,
+ eCSSKeyword_pan_x = 402,
+ eCSSKeyword_pan_y = 403,
+ eCSSKeyword_paused = 404,
+ eCSSKeyword_pc = 405,
+ eCSSKeyword_perspective = 406,
+ eCSSKeyword_petite_caps = 407,
+ eCSSKeyword_physical = 408,
+ eCSSKeyword_plaintext = 409,
+ eCSSKeyword_pointer = 410,
+ eCSSKeyword_polygon = 411,
+ eCSSKeyword_portrait = 412,
+ eCSSKeyword_pre = 413,
+ eCSSKeyword_pre_wrap = 414,
+ eCSSKeyword_pre_line = 415,
+ eCSSKeyword_preserve_3d = 416,
+ eCSSKeyword_progress = 417,
+ eCSSKeyword_progressive = 418,
+ eCSSKeyword_proportional_nums = 419,
+ eCSSKeyword_proportional_width = 420,
+ eCSSKeyword_proximity = 421,
+ eCSSKeyword_pt = 422,
+ eCSSKeyword_px = 423,
+ eCSSKeyword_rad = 424,
+ eCSSKeyword_read_only = 425,
+ eCSSKeyword_read_write = 426,
+ eCSSKeyword_relative = 427,
+ eCSSKeyword_repeat = 428,
+ eCSSKeyword_repeat_x = 429,
+ eCSSKeyword_repeat_y = 430,
+ eCSSKeyword_reverse = 431,
+ eCSSKeyword_ridge = 432,
+ eCSSKeyword_right = 433,
+ eCSSKeyword_rl = 434,
+ eCSSKeyword_rl_tb = 435,
+ eCSSKeyword_rotate = 436,
+ eCSSKeyword_rotate3d = 437,
+ eCSSKeyword_rotatex = 438,
+ eCSSKeyword_rotatey = 439,
+ eCSSKeyword_rotatez = 440,
+ eCSSKeyword_round = 441,
+ eCSSKeyword_row = 442,
+ eCSSKeyword_row_resize = 443,
+ eCSSKeyword_row_reverse = 444,
+ eCSSKeyword_rtl = 445,
+ eCSSKeyword_ruby = 446,
+ eCSSKeyword_ruby_base = 447,
+ eCSSKeyword_ruby_base_container = 448,
+ eCSSKeyword_ruby_text = 449,
+ eCSSKeyword_ruby_text_container = 450,
+ eCSSKeyword_running = 451,
+ eCSSKeyword_s = 452,
+ eCSSKeyword_s_resize = 453,
+ eCSSKeyword_safe = 454,
+ eCSSKeyword_saturate = 455,
+ eCSSKeyword_saturation = 456,
+ eCSSKeyword_scale = 457,
+ eCSSKeyword_scale_down = 458,
+ eCSSKeyword_scale3d = 459,
+ eCSSKeyword_scalex = 460,
+ eCSSKeyword_scaley = 461,
+ eCSSKeyword_scalez = 462,
+ eCSSKeyword_screen = 463,
+ eCSSKeyword_script = 464,
+ eCSSKeyword_scroll = 465,
+ eCSSKeyword_scrollbar = 466,
+ eCSSKeyword_scrollbar_small = 467,
+ eCSSKeyword_scrollbar_horizontal = 468,
+ eCSSKeyword_scrollbar_vertical = 469,
+ eCSSKeyword_se_resize = 470,
+ eCSSKeyword_select_after = 471,
+ eCSSKeyword_select_all = 472,
+ eCSSKeyword_select_before = 473,
+ eCSSKeyword_select_menu = 474,
+ eCSSKeyword_select_same = 475,
+ eCSSKeyword_self_end = 476,
+ eCSSKeyword_self_start = 477,
+ eCSSKeyword_semi_condensed = 478,
+ eCSSKeyword_semi_expanded = 479,
+ eCSSKeyword_separate = 480,
+ eCSSKeyword_sepia = 481,
+ eCSSKeyword_serif = 482,
+ eCSSKeyword_sesame = 483,
+ eCSSKeyword_show = 484,
+ eCSSKeyword_sideways = 485,
+ eCSSKeyword_sideways_lr = 486,
+ eCSSKeyword_sideways_right = 487,
+ eCSSKeyword_sideways_rl = 488,
+ eCSSKeyword_simplified = 489,
+ eCSSKeyword_skew = 490,
+ eCSSKeyword_skewx = 491,
+ eCSSKeyword_skewy = 492,
+ eCSSKeyword_slashed_zero = 493,
+ eCSSKeyword_slice = 494,
+ eCSSKeyword_small = 495,
+ eCSSKeyword_small_caps = 496,
+ eCSSKeyword_small_caption = 497,
+ eCSSKeyword_smaller = 498,
+ eCSSKeyword_smooth = 499,
+ eCSSKeyword_soft = 500,
+ eCSSKeyword_soft_light = 501,
+ eCSSKeyword_solid = 502,
+ eCSSKeyword_space_around = 503,
+ eCSSKeyword_space_between = 504,
+ eCSSKeyword_space_evenly = 505,
+ eCSSKeyword_span = 506,
+ eCSSKeyword_spell_out = 507,
+ eCSSKeyword_square = 508,
+ eCSSKeyword_stacked_fractions = 509,
+ eCSSKeyword_start = 510,
+ eCSSKeyword_static = 511,
+ eCSSKeyword_standalone = 512,
+ eCSSKeyword_status_bar = 513,
+ eCSSKeyword_step_end = 514,
+ eCSSKeyword_step_start = 515,
+ eCSSKeyword_sticky = 516,
+ eCSSKeyword_stretch = 517,
+ eCSSKeyword_stretch_to_fit = 518,
+ eCSSKeyword_stretched = 519,
+ eCSSKeyword_strict = 520,
+ eCSSKeyword_stroke = 521,
+ eCSSKeyword_stroke_box = 522,
+ eCSSKeyword_style = 523,
+ eCSSKeyword_styleset = 524,
+ eCSSKeyword_stylistic = 525,
+ eCSSKeyword_sub = 526,
+ eCSSKeyword_subgrid = 527,
+ eCSSKeyword_subtract = 528,
+ eCSSKeyword_super = 529,
+ eCSSKeyword_sw_resize = 530,
+ eCSSKeyword_swash = 531,
+ eCSSKeyword_swap = 532,
+ eCSSKeyword_table = 533,
+ eCSSKeyword_table_caption = 534,
+ eCSSKeyword_table_cell = 535,
+ eCSSKeyword_table_column = 536,
+ eCSSKeyword_table_column_group = 537,
+ eCSSKeyword_table_footer_group = 538,
+ eCSSKeyword_table_header_group = 539,
+ eCSSKeyword_table_row = 540,
+ eCSSKeyword_table_row_group = 541,
+ eCSSKeyword_tabular_nums = 542,
+ eCSSKeyword_tailed = 543,
+ eCSSKeyword_tb = 544,
+ eCSSKeyword_tb_rl = 545,
+ eCSSKeyword_text = 546,
+ eCSSKeyword_text_bottom = 547,
+ eCSSKeyword_text_top = 548,
+ eCSSKeyword_thick = 549,
+ eCSSKeyword_thin = 550,
+ eCSSKeyword_threeddarkshadow = 551,
+ eCSSKeyword_threedface = 552,
+ eCSSKeyword_threedhighlight = 553,
+ eCSSKeyword_threedlightshadow = 554,
+ eCSSKeyword_threedshadow = 555,
+ eCSSKeyword_titling_caps = 556,
+ eCSSKeyword_toggle = 557,
+ eCSSKeyword_top = 558,
+ eCSSKeyword_top_outside = 559,
+ eCSSKeyword_traditional = 560,
+ eCSSKeyword_translate = 561,
+ eCSSKeyword_translate3d = 562,
+ eCSSKeyword_translatex = 563,
+ eCSSKeyword_translatey = 564,
+ eCSSKeyword_translatez = 565,
+ eCSSKeyword_transparent = 566,
+ eCSSKeyword_triangle = 567,
+ eCSSKeyword_tri_state = 568,
+ eCSSKeyword_ultra_condensed = 569,
+ eCSSKeyword_ultra_expanded = 570,
+ eCSSKeyword_under = 571,
+ eCSSKeyword_underline = 572,
+ eCSSKeyword_unicase = 573,
+ eCSSKeyword_unsafe = 574,
+ eCSSKeyword_unset = 575,
+ eCSSKeyword_uppercase = 576,
+ eCSSKeyword_upright = 577,
+ eCSSKeyword_vertical = 578,
+ eCSSKeyword_vertical_lr = 579,
+ eCSSKeyword_vertical_rl = 580,
+ eCSSKeyword_vertical_text = 581,
+ eCSSKeyword_view_box = 582,
+ eCSSKeyword_visible = 583,
+ eCSSKeyword_visiblefill = 584,
+ eCSSKeyword_visiblepainted = 585,
+ eCSSKeyword_visiblestroke = 586,
+ eCSSKeyword_w_resize = 587,
+ eCSSKeyword_wait = 588,
+ eCSSKeyword_wavy = 589,
+ eCSSKeyword_weight = 590,
+ eCSSKeyword_wider = 591,
+ eCSSKeyword_window = 592,
+ eCSSKeyword_windowframe = 593,
+ eCSSKeyword_windowtext = 594,
+ eCSSKeyword_words = 595,
+ eCSSKeyword_wrap = 596,
+ eCSSKeyword_wrap_reverse = 597,
+ eCSSKeyword_write_only = 598,
+ eCSSKeyword_x_large = 599,
+ eCSSKeyword_x_small = 600,
+ eCSSKeyword_xx_large = 601,
+ eCSSKeyword_xx_small = 602,
+ eCSSKeyword_zoom_in = 603,
+ eCSSKeyword_zoom_out = 604,
+ eCSSKeyword_radio = 605,
+ eCSSKeyword_checkbox = 606,
+ eCSSKeyword_button_bevel = 607,
+ eCSSKeyword_toolbox = 608,
+ eCSSKeyword_toolbar = 609,
+ eCSSKeyword_toolbarbutton = 610,
+ eCSSKeyword_toolbargripper = 611,
+ eCSSKeyword_dualbutton = 612,
+ eCSSKeyword_toolbarbutton_dropdown = 613,
+ eCSSKeyword_button_arrow_up = 614,
+ eCSSKeyword_button_arrow_down = 615,
+ eCSSKeyword_button_arrow_next = 616,
+ eCSSKeyword_button_arrow_previous = 617,
+ eCSSKeyword_separator = 618,
+ eCSSKeyword_splitter = 619,
+ eCSSKeyword_statusbar = 620,
+ eCSSKeyword_statusbarpanel = 621,
+ eCSSKeyword_resizerpanel = 622,
+ eCSSKeyword_resizer = 623,
+ eCSSKeyword_listbox = 624,
+ eCSSKeyword_listitem = 625,
+ eCSSKeyword_numbers = 626,
+ eCSSKeyword_number_input = 627,
+ eCSSKeyword_treeview = 628,
+ eCSSKeyword_treeitem = 629,
+ eCSSKeyword_treetwisty = 630,
+ eCSSKeyword_treetwistyopen = 631,
+ eCSSKeyword_treeline = 632,
+ eCSSKeyword_treeheader = 633,
+ eCSSKeyword_treeheadercell = 634,
+ eCSSKeyword_treeheadersortarrow = 635,
+ eCSSKeyword_progressbar = 636,
+ eCSSKeyword_progressbar_vertical = 637,
+ eCSSKeyword_progresschunk = 638,
+ eCSSKeyword_progresschunk_vertical = 639,
+ eCSSKeyword_tab = 640,
+ eCSSKeyword_tabpanels = 641,
+ eCSSKeyword_tabpanel = 642,
+ eCSSKeyword_tab_scroll_arrow_back = 643,
+ eCSSKeyword_tab_scroll_arrow_forward = 644,
+ eCSSKeyword_tooltip = 645,
+ eCSSKeyword_inner_spin_button = 646,
+ eCSSKeyword_spinner = 647,
+ eCSSKeyword_spinner_upbutton = 648,
+ eCSSKeyword_spinner_downbutton = 649,
+ eCSSKeyword_spinner_textfield = 650,
+ eCSSKeyword_scrollbarbutton_up = 651,
+ eCSSKeyword_scrollbarbutton_down = 652,
+ eCSSKeyword_scrollbarbutton_left = 653,
+ eCSSKeyword_scrollbarbutton_right = 654,
+ eCSSKeyword_scrollbartrack_horizontal = 655,
+ eCSSKeyword_scrollbartrack_vertical = 656,
+ eCSSKeyword_scrollbarthumb_horizontal = 657,
+ eCSSKeyword_scrollbarthumb_vertical = 658,
+ eCSSKeyword_sheet = 659,
+ eCSSKeyword_textfield = 660,
+ eCSSKeyword_textfield_multiline = 661,
+ eCSSKeyword_caret = 662,
+ eCSSKeyword_searchfield = 663,
+ eCSSKeyword_menubar = 664,
+ eCSSKeyword_menupopup = 665,
+ eCSSKeyword_menuitem = 666,
+ eCSSKeyword_checkmenuitem = 667,
+ eCSSKeyword_radiomenuitem = 668,
+ eCSSKeyword_menucheckbox = 669,
+ eCSSKeyword_menuradio = 670,
+ eCSSKeyword_menuseparator = 671,
+ eCSSKeyword_menuarrow = 672,
+ eCSSKeyword_menuimage = 673,
+ eCSSKeyword_menuitemtext = 674,
+ eCSSKeyword_menulist = 675,
+ eCSSKeyword_menulist_button = 676,
+ eCSSKeyword_menulist_text = 677,
+ eCSSKeyword_menulist_textfield = 678,
+ eCSSKeyword_meterbar = 679,
+ eCSSKeyword_meterchunk = 680,
+ eCSSKeyword_minimal_ui = 681,
+ eCSSKeyword_range = 682,
+ eCSSKeyword_range_thumb = 683,
+ eCSSKeyword_sans_serif = 684,
+ eCSSKeyword_sans_serif_bold_italic = 685,
+ eCSSKeyword_sans_serif_italic = 686,
+ eCSSKeyword_scale_horizontal = 687,
+ eCSSKeyword_scale_vertical = 688,
+ eCSSKeyword_scalethumb_horizontal = 689,
+ eCSSKeyword_scalethumb_vertical = 690,
+ eCSSKeyword_scalethumbstart = 691,
+ eCSSKeyword_scalethumbend = 692,
+ eCSSKeyword_scalethumbtick = 693,
+ eCSSKeyword_groupbox = 694,
+ eCSSKeyword_checkbox_container = 695,
+ eCSSKeyword_radio_container = 696,
+ eCSSKeyword_checkbox_label = 697,
+ eCSSKeyword_radio_label = 698,
+ eCSSKeyword_button_focus = 699,
+ eCSSKeyword__moz_win_media_toolbox = 700,
+ eCSSKeyword__moz_win_communications_toolbox = 701,
+ eCSSKeyword__moz_win_browsertabbar_toolbox = 702,
+ eCSSKeyword__moz_win_accentcolor = 703,
+ eCSSKeyword__moz_win_accentcolortext = 704,
+ eCSSKeyword__moz_win_mediatext = 705,
+ eCSSKeyword__moz_win_communicationstext = 706,
+ eCSSKeyword__moz_win_glass = 707,
+ eCSSKeyword__moz_win_borderless_glass = 708,
+ eCSSKeyword__moz_window_titlebar = 709,
+ eCSSKeyword__moz_window_titlebar_maximized = 710,
+ eCSSKeyword__moz_window_frame_left = 711,
+ eCSSKeyword__moz_window_frame_right = 712,
+ eCSSKeyword__moz_window_frame_bottom = 713,
+ eCSSKeyword__moz_window_button_close = 714,
+ eCSSKeyword__moz_window_button_minimize = 715,
+ eCSSKeyword__moz_window_button_maximize = 716,
+ eCSSKeyword__moz_window_button_restore = 717,
+ eCSSKeyword__moz_window_button_box = 718,
+ eCSSKeyword__moz_window_button_box_maximized = 719,
+ eCSSKeyword__moz_mac_help_button = 720,
+ eCSSKeyword__moz_win_exclude_glass = 721,
+ eCSSKeyword__moz_mac_vibrancy_light = 722,
+ eCSSKeyword__moz_mac_vibrancy_dark = 723,
+ eCSSKeyword__moz_mac_vibrant_titlebar_light = 724,
+ eCSSKeyword__moz_mac_vibrant_titlebar_dark = 725,
+ eCSSKeyword__moz_mac_disclosure_button_closed = 726,
+ eCSSKeyword__moz_mac_disclosure_button_open = 727,
+ eCSSKeyword__moz_mac_source_list = 728,
+ eCSSKeyword__moz_mac_source_list_selection = 729,
+ eCSSKeyword__moz_mac_active_source_list_selection = 730,
+ eCSSKeyword_alphabetic = 731,
+ eCSSKeyword_bevel = 732,
+ eCSSKeyword_butt = 733,
+ eCSSKeyword_central = 734,
+ eCSSKeyword_crispedges = 735,
+ eCSSKeyword_evenodd = 736,
+ eCSSKeyword_geometricprecision = 737,
+ eCSSKeyword_hanging = 738,
+ eCSSKeyword_ideographic = 739,
+ eCSSKeyword_linearrgb = 740,
+ eCSSKeyword_mathematical = 741,
+ eCSSKeyword_miter = 742,
+ eCSSKeyword_no_change = 743,
+ eCSSKeyword_non_scaling_stroke = 744,
+ eCSSKeyword_nonzero = 745,
+ eCSSKeyword_optimizelegibility = 746,
+ eCSSKeyword_optimizequality = 747,
+ eCSSKeyword_optimizespeed = 748,
+ eCSSKeyword_reset_size = 749,
+ eCSSKeyword_srgb = 750,
+ eCSSKeyword_symbolic = 751,
+ eCSSKeyword_symbols = 752,
+ eCSSKeyword_text_after_edge = 753,
+ eCSSKeyword_text_before_edge = 754,
+ eCSSKeyword_use_script = 755,
+ eCSSKeyword__moz_crisp_edges = 756,
+ eCSSKeyword_space = 757,
+ eCSSKeyword_COUNT = 758,
}
- /// Hashtable key class to use with nsTHashtable/nsBaseHashtable
+ /// hashkey wrapper using nsAString KeyType
+ ///
+ /// @see nsTHashtable::EntryType for specification
#[repr(C)]
- #[derive(Debug)]
- pub struct nsURIHashKey {
+ pub struct nsStringHashKey {
pub _base: root::PLDHashEntryHdr,
- pub mKey: root::nsCOMPtr,
+ pub mStr: ::nsstring::nsStringRepr,
}
- pub type nsURIHashKey_KeyType = *mut root::nsIURI;
- pub type nsURIHashKey_KeyTypePointer = *const root::nsIURI;
- pub const nsURIHashKey_ALLOW_MEMMOVE: root::nsURIHashKey__bindgen_ty_1 = 1;
- pub type nsURIHashKey__bindgen_ty_1 = u32;
+ pub type nsStringHashKey_KeyType = *const root::nsAString;
+ pub type nsStringHashKey_KeyTypePointer = *const root::nsAString;
+ pub const nsStringHashKey_ALLOW_MEMMOVE: root::nsStringHashKey__bindgen_ty_1 = 1;
+ pub type nsStringHashKey__bindgen_ty_1 = u32;
#[test]
- fn bindgen_test_layout_nsURIHashKey() {
+ fn bindgen_test_layout_nsStringHashKey() {
assert_eq!(
- ::std::mem::size_of::<nsURIHashKey>(),
- 16usize,
- concat!("Size of: ", stringify!(nsURIHashKey))
+ ::std::mem::size_of::<nsStringHashKey>(),
+ 24usize,
+ concat!("Size of: ", stringify!(nsStringHashKey))
);
assert_eq!(
- ::std::mem::align_of::<nsURIHashKey>(),
+ ::std::mem::align_of::<nsStringHashKey>(),
8usize,
- concat!("Alignment of ", stringify!(nsURIHashKey))
+ concat!("Alignment of ", stringify!(nsStringHashKey))
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsURIHashKey>())).mKey as *const _ as usize },
+ unsafe { &(*(::std::ptr::null::<nsStringHashKey>())).mStr as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
- stringify!(nsURIHashKey),
+ stringify!(nsStringHashKey),
"::",
- stringify!(mKey)
+ stringify!(mStr)
)
);
}
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsContentList {
- _unused: [u8; 0],
- }
- impl Clone for nsContentList {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// The signature of the timer callback function passed to initWithFuncCallback.
- /// This is the function that will get called when the timer expires if the
- /// timer is initialized via initWithFuncCallback.
+ /// hashkey wrapper using nsACString KeyType
///
- /// @param aTimer the timer which has expired
- /// @param aClosure opaque parameter passed to initWithFuncCallback
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsITimer {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsITimer_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsITimer_TYPE_ONE_SHOT: root::nsITimer__bindgen_ty_1 = 0;
- pub const nsITimer_TYPE_REPEATING_SLACK: root::nsITimer__bindgen_ty_1 = 1;
- pub const nsITimer_TYPE_REPEATING_PRECISE: root::nsITimer__bindgen_ty_1 = 2;
- pub const nsITimer_TYPE_REPEATING_PRECISE_CAN_SKIP: root::nsITimer__bindgen_ty_1 = 3;
- pub const nsITimer_TYPE_REPEATING_SLACK_LOW_PRIORITY: root::nsITimer__bindgen_ty_1 = 4;
- pub const nsITimer_TYPE_ONE_SHOT_LOW_PRIORITY: root::nsITimer__bindgen_ty_1 = 5;
- pub type nsITimer__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsITimer() {
- assert_eq!(
- ::std::mem::size_of::<nsITimer>(),
- 8usize,
- concat!("Size of: ", stringify!(nsITimer))
- );
- assert_eq!(
- ::std::mem::align_of::<nsITimer>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsITimer))
- );
- }
- impl Clone for nsITimer {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIRunnable {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIRunnable_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIRunnable() {
- assert_eq!(
- ::std::mem::size_of::<nsIRunnable>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIRunnable))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIRunnable>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIRunnable))
- );
- }
- impl Clone for nsIRunnable {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIEventTarget {
- pub _base: root::nsISupports,
- pub mVirtualThread: *mut root::PRThread,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIEventTarget_COMTypeInfo {
- pub _address: u8,
- }
- pub const nsIEventTarget_DISPATCH_NORMAL: root::nsIEventTarget__bindgen_ty_1 = 0;
- pub const nsIEventTarget_DISPATCH_SYNC: root::nsIEventTarget__bindgen_ty_1 = 1;
- pub const nsIEventTarget_DISPATCH_AT_END: root::nsIEventTarget__bindgen_ty_1 = 2;
- pub type nsIEventTarget__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsIEventTarget() {
- assert_eq!(
- ::std::mem::size_of::<nsIEventTarget>(),
- 16usize,
- concat!("Size of: ", stringify!(nsIEventTarget))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIEventTarget>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIEventTarget))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIEventTarget>())).mVirtualThread as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIEventTarget),
- "::",
- stringify!(mVirtualThread)
- )
- );
- }
- impl Clone for nsIEventTarget {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIObserver {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsIObserver_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsIObserver() {
- assert_eq!(
- ::std::mem::size_of::<nsIObserver>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIObserver))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIObserver>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIObserver))
- );
- }
- impl Clone for nsIObserver {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsICancelableRunnable {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsICancelableRunnable_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsICancelableRunnable() {
- assert_eq!(
- ::std::mem::size_of::<nsICancelableRunnable>(),
- 8usize,
- concat!("Size of: ", stringify!(nsICancelableRunnable))
- );
- assert_eq!(
- ::std::mem::align_of::<nsICancelableRunnable>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsICancelableRunnable))
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsINamed {
- pub _base: root::nsISupports,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsINamed_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsINamed() {
- assert_eq!(
- ::std::mem::size_of::<nsINamed>(),
- 8usize,
- concat!("Size of: ", stringify!(nsINamed))
- );
- assert_eq!(
- ::std::mem::align_of::<nsINamed>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsINamed))
- );
- }
- impl Clone for nsINamed {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsISerialEventTarget {
- pub _base: root::nsIEventTarget,
- }
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsISerialEventTarget_COMTypeInfo {
- pub _address: u8,
- }
- #[test]
- fn bindgen_test_layout_nsISerialEventTarget() {
- assert_eq!(
- ::std::mem::size_of::<nsISerialEventTarget>(),
- 16usize,
- concat!("Size of: ", stringify!(nsISerialEventTarget))
- );
- assert_eq!(
- ::std::mem::align_of::<nsISerialEventTarget>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsISerialEventTarget))
- );
- }
- impl Clone for nsISerialEventTarget {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type nsRunnableMethod_BaseType = u8;
- #[repr(C)]
- #[derive(Debug, Copy, Clone)]
- pub struct nsRunnableMethod_ReturnTypeEnforcer {
- pub _address: u8,
- }
- pub type nsRunnableMethod_ReturnTypeEnforcer_ReturnTypeIsSafe = ::std::os::raw::c_int;
- pub type nsRunnableMethod_check = root::nsRunnableMethod_ReturnTypeEnforcer;
+ /// @see nsTHashtable::EntryType for specification
#[repr(C)]
#[derive(Debug)]
- pub struct nsRevocableEventPtr<T> {
- pub mEvent: root::RefPtr<T>,
- pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIIOService {
- _unused: [u8; 0],
- }
- impl Clone for nsIIOService {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIStringBundleService {
- _unused: [u8; 0],
- }
- impl Clone for nsIStringBundleService {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// Data used to track the expiration state of an object. We promise that this
- /// is 32 bits so that objects that includes this as a field can pad and align
- /// efficiently.
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsExpirationState {
- pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 4usize], u32>,
- pub __bindgen_align: [u32; 0usize],
- }
- pub const nsExpirationState_NOT_TRACKED: root::nsExpirationState__bindgen_ty_1 = 15;
- pub const nsExpirationState_MAX_INDEX_IN_GENERATION: root::nsExpirationState__bindgen_ty_1 =
- 268435455;
- pub type nsExpirationState__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsExpirationState() {
- assert_eq!(
- ::std::mem::size_of::<nsExpirationState>(),
- 4usize,
- concat!("Size of: ", stringify!(nsExpirationState))
- );
- assert_eq!(
- ::std::mem::align_of::<nsExpirationState>(),
- 4usize,
- concat!("Alignment of ", stringify!(nsExpirationState))
- );
- }
- impl Clone for nsExpirationState {
- fn clone(&self) -> Self {
- *self
- }
- }
- impl nsExpirationState {
- #[inline]
- pub fn mGeneration(&self) -> u32 {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
- }
- #[inline]
- pub fn set_mGeneration(&mut self, val: u32) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(0usize, 4u8, val as u64)
- }
- }
- #[inline]
- pub fn mIndexInGeneration(&self) -> u32 {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) }
- }
- #[inline]
- pub fn set_mIndexInGeneration(&mut self, val: u32) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(4usize, 28u8, val as u64)
- }
- }
- #[inline]
- pub fn new_bitfield_1(
- mGeneration: u32,
- mIndexInGeneration: u32,
- ) -> root::__BindgenBitfieldUnit<[u8; 4usize], u32> {
- let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
- [u8; 4usize],
- u32,
- > = Default::default();
- __bindgen_bitfield_unit.set(0usize, 4u8, {
- let mGeneration: u32 = unsafe { ::std::mem::transmute(mGeneration) };
- mGeneration as u64
- });
- __bindgen_bitfield_unit.set(4usize, 28u8, {
- let mIndexInGeneration: u32 = unsafe { ::std::mem::transmute(mIndexInGeneration) };
- mIndexInGeneration as u64
- });
- __bindgen_bitfield_unit
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsBaseContentList {
- _unused: [u8; 0],
- }
- impl Clone for nsBaseContentList {
- fn clone(&self) -> Self {
- *self
- }
- }
- /// Right now our identifier map entries contain information for 'name'
- /// and 'id' mappings of a given string. This is so that
- /// nsHTMLDocument::ResolveName only has to do one hash lookup instead
- /// of two. It's not clear whether this still matters for performance.
- ///
- /// We also store the document.all result list here. This is mainly so that
- /// when all elements with the given ID are removed and we remove
- /// the ID's nsIdentifierMapEntry, the document.all result is released too.
- /// Perhaps the document.all results should have their own hashtable
- /// in nsHTMLDocument.
- #[repr(C)]
- pub struct nsIdentifierMapEntry {
+ pub struct nsCStringHashKey {
pub _base: root::PLDHashEntryHdr,
- pub mKey: root::nsIdentifierMapEntry_AtomOrString,
- pub mIdContentList: [u64; 3usize],
- pub mNameContentList: root::RefPtr<root::nsBaseContentList>,
- pub mChangeCallbacks: u64,
- pub mImageElement: root::RefPtr<root::nsIdentifierMapEntry_Element>,
- }
- pub type nsIdentifierMapEntry_Element = root::mozilla::dom::Element;
- pub use self::super::root::mozilla::net::ReferrerPolicy as nsIdentifierMapEntry_ReferrerPolicy;
- /// @see nsIDocument::IDTargetObserver, this is just here to avoid include
- /// hell.
- pub type nsIdentifierMapEntry_IDTargetObserver = ::std::option::Option<
- unsafe extern "C" fn(
- aOldElement: *mut root::nsIdentifierMapEntry_Element,
- aNewelement: *mut root::nsIdentifierMapEntry_Element,
- aData: *mut ::std::os::raw::c_void,
- ) -> bool,
- >;
- #[repr(C)]
- pub struct nsIdentifierMapEntry_AtomOrString {
- pub mAtom: root::RefPtr<root::nsAtom>,
- pub mString: ::nsstring::nsStringRepr,
- }
- #[test]
- fn bindgen_test_layout_nsIdentifierMapEntry_AtomOrString() {
- assert_eq!(
- ::std::mem::size_of::<nsIdentifierMapEntry_AtomOrString>(),
- 24usize,
- concat!("Size of: ", stringify!(nsIdentifierMapEntry_AtomOrString))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIdentifierMapEntry_AtomOrString>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsIdentifierMapEntry_AtomOrString)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry_AtomOrString>())).mAtom as *const _
- as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry_AtomOrString),
- "::",
- stringify!(mAtom)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry_AtomOrString>())).mString as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry_AtomOrString),
- "::",
- stringify!(mString)
- )
- );
- }
- pub type nsIdentifierMapEntry_KeyType = *const root::nsIdentifierMapEntry_AtomOrString;
- pub type nsIdentifierMapEntry_KeyTypePointer = *const root::nsIdentifierMapEntry_AtomOrString;
- pub const nsIdentifierMapEntry_ALLOW_MEMMOVE: root::nsIdentifierMapEntry__bindgen_ty_1 = 0;
- pub type nsIdentifierMapEntry__bindgen_ty_1 = u32;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIdentifierMapEntry_ChangeCallback {
- pub mCallback: root::nsIdentifierMapEntry_IDTargetObserver,
- pub mData: *mut ::std::os::raw::c_void,
- pub mForImage: bool,
+ pub mStr: root::nsCString,
}
+ pub type nsCStringHashKey_KeyType = *const root::nsACString;
+ pub type nsCStringHashKey_KeyTypePointer = *const root::nsACString;
+ pub const nsCStringHashKey_ALLOW_MEMMOVE: root::nsCStringHashKey__bindgen_ty_1 = 1;
+ pub type nsCStringHashKey__bindgen_ty_1 = u32;
#[test]
- fn bindgen_test_layout_nsIdentifierMapEntry_ChangeCallback() {
+ fn bindgen_test_layout_nsCStringHashKey() {
assert_eq!(
- ::std::mem::size_of::<nsIdentifierMapEntry_ChangeCallback>(),
+ ::std::mem::size_of::<nsCStringHashKey>(),
24usize,
- concat!("Size of: ", stringify!(nsIdentifierMapEntry_ChangeCallback))
+ concat!("Size of: ", stringify!(nsCStringHashKey))
);
assert_eq!(
- ::std::mem::align_of::<nsIdentifierMapEntry_ChangeCallback>(),
+ ::std::mem::align_of::<nsCStringHashKey>(),
8usize,
- concat!(
- "Alignment of ",
- stringify!(nsIdentifierMapEntry_ChangeCallback)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallback>())).mCallback
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry_ChangeCallback),
- "::",
- stringify!(mCallback)
- )
+ concat!("Alignment of ", stringify!(nsCStringHashKey))
);
assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallback>())).mData as *const _
- as usize
- },
+ unsafe { &(*(::std::ptr::null::<nsCStringHashKey>())).mStr as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
- stringify!(nsIdentifierMapEntry_ChangeCallback),
- "::",
- stringify!(mData)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallback>())).mForImage
- as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry_ChangeCallback),
+ stringify!(nsCStringHashKey),
"::",
- stringify!(mForImage)
+ stringify!(mStr)
)
);
}
- impl Clone for nsIdentifierMapEntry_ChangeCallback {
- fn clone(&self) -> Self {
- *self
- }
- }
+ /// hashkey wrapper using refcounted * KeyType
+ ///
+ /// @see nsTHashtable::EntryType for specification
#[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIdentifierMapEntry_ChangeCallbackEntry {
+ #[derive(Debug)]
+ pub struct nsRefPtrHashKey<T> {
pub _base: root::PLDHashEntryHdr,
- pub mKey: root::nsIdentifierMapEntry_ChangeCallback,
- }
- pub type nsIdentifierMapEntry_ChangeCallbackEntry_KeyType =
- root::nsIdentifierMapEntry_ChangeCallback;
- pub type nsIdentifierMapEntry_ChangeCallbackEntry_KeyTypePointer =
- *const root::nsIdentifierMapEntry_ChangeCallback;
- pub const nsIdentifierMapEntry_ChangeCallbackEntry_ALLOW_MEMMOVE:
- root::nsIdentifierMapEntry_ChangeCallbackEntry__bindgen_ty_1 = 1;
- pub type nsIdentifierMapEntry_ChangeCallbackEntry__bindgen_ty_1 = u32;
- #[test]
- fn bindgen_test_layout_nsIdentifierMapEntry_ChangeCallbackEntry() {
- assert_eq!(
- ::std::mem::size_of::<nsIdentifierMapEntry_ChangeCallbackEntry>(),
- 32usize,
- concat!(
- "Size of: ",
- stringify!(nsIdentifierMapEntry_ChangeCallbackEntry)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsIdentifierMapEntry_ChangeCallbackEntry>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsIdentifierMapEntry_ChangeCallbackEntry)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallbackEntry>())).mKey
- as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry_ChangeCallbackEntry),
- "::",
- stringify!(mKey)
- )
- );
- }
- impl Clone for nsIdentifierMapEntry_ChangeCallbackEntry {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_nsIdentifierMapEntry() {
- assert_eq!(
- ::std::mem::size_of::<nsIdentifierMapEntry>(),
- 80usize,
- concat!("Size of: ", stringify!(nsIdentifierMapEntry))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIdentifierMapEntry>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIdentifierMapEntry))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mKey as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry),
- "::",
- stringify!(mKey)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mIdContentList as *const _ as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry),
- "::",
- stringify!(mIdContentList)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mNameContentList as *const _
- as usize
- },
- 56usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry),
- "::",
- stringify!(mNameContentList)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mChangeCallbacks as *const _
- as usize
- },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry),
- "::",
- stringify!(mChangeCallbacks)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mImageElement as *const _ as usize
- },
- 72usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIdentifierMapEntry),
- "::",
- stringify!(mImageElement)
- )
- );
+ pub mKey: root::RefPtr<T>,
+ pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
}
+ pub type nsRefPtrHashKey_KeyType<T> = *mut T;
+ pub type nsRefPtrHashKey_KeyTypePointer<T> = *mut T;
+ pub const nsRefPtrHashKey_ALLOW_MEMMOVE: root::nsRefPtrHashKey__bindgen_ty_1 = 0;
+ pub type nsRefPtrHashKey__bindgen_ty_1 = i32;
pub const nsCSSPropertyID_eCSSProperty_COUNT_no_shorthands: root::nsCSSPropertyID =
nsCSSPropertyID::eCSSProperty_all;
pub const nsCSSPropertyID_eCSSProperty_COUNT_DUMMY: root::nsCSSPropertyID =
@@ -23299,5727 +19040,107 @@ pub mod root {
eCSSCounterDesc_SpeakAs = 9,
eCSSCounterDesc_COUNT = 10,
}
+ pub const nsStyleStructID_nsStyleStructID_None: root::nsStyleStructID = -1;
+ pub const nsStyleStructID_nsStyleStructID_Inherited_Start: root::nsStyleStructID = 0;
+ pub const nsStyleStructID_nsStyleStructID_DUMMY1: root::nsStyleStructID = -1;
+ pub const nsStyleStructID_eStyleStruct_Font: root::nsStyleStructID = 0;
+ pub const nsStyleStructID_eStyleStruct_Color: root::nsStyleStructID = 1;
+ pub const nsStyleStructID_eStyleStruct_List: root::nsStyleStructID = 2;
+ pub const nsStyleStructID_eStyleStruct_Text: root::nsStyleStructID = 3;
+ pub const nsStyleStructID_eStyleStruct_Visibility: root::nsStyleStructID = 4;
+ pub const nsStyleStructID_eStyleStruct_UserInterface: root::nsStyleStructID = 5;
+ pub const nsStyleStructID_eStyleStruct_TableBorder: root::nsStyleStructID = 6;
+ pub const nsStyleStructID_eStyleStruct_SVG: root::nsStyleStructID = 7;
+ pub const nsStyleStructID_eStyleStruct_Variables: root::nsStyleStructID = 8;
+ pub const nsStyleStructID_nsStyleStructID_Reset_Start: root::nsStyleStructID = 9;
+ pub const nsStyleStructID_nsStyleStructID_DUMMY2: root::nsStyleStructID = 8;
+ pub const nsStyleStructID_eStyleStruct_Background: root::nsStyleStructID = 9;
+ pub const nsStyleStructID_eStyleStruct_Position: root::nsStyleStructID = 10;
+ pub const nsStyleStructID_eStyleStruct_TextReset: root::nsStyleStructID = 11;
+ pub const nsStyleStructID_eStyleStruct_Display: root::nsStyleStructID = 12;
+ pub const nsStyleStructID_eStyleStruct_Content: root::nsStyleStructID = 13;
+ pub const nsStyleStructID_eStyleStruct_UIReset: root::nsStyleStructID = 14;
+ pub const nsStyleStructID_eStyleStruct_Table: root::nsStyleStructID = 15;
+ pub const nsStyleStructID_eStyleStruct_Margin: root::nsStyleStructID = 16;
+ pub const nsStyleStructID_eStyleStruct_Padding: root::nsStyleStructID = 17;
+ pub const nsStyleStructID_eStyleStruct_Border: root::nsStyleStructID = 18;
+ pub const nsStyleStructID_eStyleStruct_Outline: root::nsStyleStructID = 19;
+ pub const nsStyleStructID_eStyleStruct_XUL: root::nsStyleStructID = 20;
+ pub const nsStyleStructID_eStyleStruct_SVGReset: root::nsStyleStructID = 21;
+ pub const nsStyleStructID_eStyleStruct_Column: root::nsStyleStructID = 22;
+ pub const nsStyleStructID_eStyleStruct_Effects: root::nsStyleStructID = 23;
+ pub const nsStyleStructID_nsStyleStructID_Length: root::nsStyleStructID = 24;
+ pub const nsStyleStructID_nsStyleStructID_Inherited_Count: root::nsStyleStructID = 9;
+ pub const nsStyleStructID_nsStyleStructID_Reset_Count: root::nsStyleStructID = 15;
+ pub type nsStyleStructID = i32;
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct RawServoAuthorStyles {
- _unused: [u8; 0],
- }
- impl Clone for RawServoAuthorStyles {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoStyleSet {
- _unused: [u8; 0],
- }
- impl Clone for RawServoStyleSet {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoSourceSizeList {
- _unused: [u8; 0],
- }
- impl Clone for RawServoSourceSizeList {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RustString {
- _unused: [u8; 0],
- }
- impl Clone for RustString {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoStyleSheetContents {
- _unused: [u8; 0],
- }
- impl Clone for RawServoStyleSheetContents {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoDeclarationBlock {
- _unused: [u8; 0],
- }
- impl Clone for RawServoDeclarationBlock {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoStyleRule {
- _unused: [u8; 0],
- }
- impl Clone for RawServoStyleRule {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoAnimationValue {
- _unused: [u8; 0],
- }
- impl Clone for RawServoAnimationValue {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoMediaList {
- _unused: [u8; 0],
- }
- impl Clone for RawServoMediaList {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct RawServoFontFaceRule {
- _unused: [u8; 0],
- }
- impl Clone for RawServoFontFaceRule {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub mod nsStyleTransformMatrix {
- #[allow(unused_imports)]
- use self::super::super::root;
- #[repr(u8)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum MatrixTransformOperator {
- Interpolate = 0,
- Accumulate = 1,
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsCSSPropertyIDSet {
- _unused: [u8; 0],
- }
- impl Clone for nsCSSPropertyIDSet {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsSimpleContentList {
- _unused: [u8; 0],
- }
- impl Clone for nsSimpleContentList {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub type RawGeckoNode = root::nsINode;
- pub type RawGeckoElement = root::mozilla::dom::Element;
- pub type RawGeckoDocument = root::nsIDocument;
- pub type RawGeckoPresContext = root::nsPresContext;
- pub type RawGeckoXBLBinding = root::nsXBLBinding;
- pub type RawGeckoURLExtraData = root::mozilla::URLExtraData;
- pub type RawGeckoServoAnimationValueList =
- root::nsTArray<root::RefPtr<root::RawServoAnimationValue>>;
- pub type RawGeckoKeyframeList = root::nsTArray<root::mozilla::Keyframe>;
- pub type RawGeckoPropertyValuePairList = root::nsTArray<root::mozilla::PropertyValuePair>;
- pub type RawGeckoComputedKeyframeValuesList =
- root::nsTArray<root::mozilla::ComputedKeyframeValues>;
- pub type RawGeckoStyleAnimationList = root::nsStyleAutoArray<root::mozilla::StyleAnimation>;
- pub type RawGeckoFontFaceRuleList = root::nsTArray<root::nsFontFaceRuleContainer>;
- pub type RawGeckoAnimationPropertySegment = root::mozilla::AnimationPropertySegment;
- pub type RawGeckoComputedTiming = root::mozilla::ComputedTiming;
- pub type RawGeckoServoStyleRuleList = root::nsTArray<*const root::RawServoStyleRule>;
- pub type RawGeckoCSSPropertyIDList = root::nsTArray<root::nsCSSPropertyID>;
- pub type RawGeckoGfxMatrix4x4 = [root::mozilla::gfx::Float; 16usize];
- pub type RawGeckoStyleChildrenIterator = root::mozilla::dom::StyleChildrenIterator;
- pub type ComputedStyleBorrowed = *const root::mozilla::ComputedStyle;
- pub type ComputedStyleBorrowedOrNull = *const root::mozilla::ComputedStyle;
- pub type ServoComputedDataBorrowed = *const root::ServoComputedData;
- pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
- pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode;
- pub type RawGeckoElementBorrowed = *const root::RawGeckoElement;
- pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement;
- pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument;
- pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument;
- pub type RawGeckoXBLBindingBorrowed = *const root::RawGeckoXBLBinding;
- pub type RawGeckoXBLBindingBorrowedOrNull = *const root::RawGeckoXBLBinding;
- pub type RawGeckoPresContextOwned = *mut root::RawGeckoPresContext;
- pub type RawGeckoPresContextBorrowed = *const root::RawGeckoPresContext;
- pub type RawGeckoPresContextBorrowedMut = *mut root::RawGeckoPresContext;
- pub type RawGeckoServoAnimationValueListBorrowedMut =
- *mut root::RawGeckoServoAnimationValueList;
- pub type RawGeckoServoAnimationValueListBorrowed = *const root::RawGeckoServoAnimationValueList;
- pub type RawGeckoKeyframeListBorrowedMut = *mut root::RawGeckoKeyframeList;
- pub type RawGeckoKeyframeListBorrowed = *const root::RawGeckoKeyframeList;
- pub type RawGeckoPropertyValuePairListBorrowedMut = *mut root::RawGeckoPropertyValuePairList;
- pub type RawGeckoPropertyValuePairListBorrowed = *const root::RawGeckoPropertyValuePairList;
- pub type RawGeckoComputedKeyframeValuesListBorrowedMut =
- *mut root::RawGeckoComputedKeyframeValuesList;
- pub type RawGeckoStyleAnimationListBorrowedMut = *mut root::RawGeckoStyleAnimationList;
- pub type RawGeckoStyleAnimationListBorrowed = *const root::RawGeckoStyleAnimationList;
- pub type RawGeckoFontFaceRuleListBorrowedMut = *mut root::RawGeckoFontFaceRuleList;
- pub type RawGeckoAnimationPropertySegmentBorrowed =
- *const root::RawGeckoAnimationPropertySegment;
- pub type RawGeckoComputedTimingBorrowed = *const root::RawGeckoComputedTiming;
- pub type RawGeckoServoStyleRuleListBorrowedMut = *mut root::RawGeckoServoStyleRuleList;
- pub type RawGeckoCSSPropertyIDListBorrowed = *const root::RawGeckoCSSPropertyIDList;
- pub type RawGeckoStyleChildrenIteratorBorrowedMut = *mut root::RawGeckoStyleChildrenIterator;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsFontFaceRuleContainer {
- pub mRule: root::RefPtr<root::RawServoFontFaceRule>,
- pub mSheetType: root::mozilla::SheetType,
- }
- #[test]
- fn bindgen_test_layout_nsFontFaceRuleContainer() {
- assert_eq!(
- ::std::mem::size_of::<nsFontFaceRuleContainer>(),
- 16usize,
- concat!("Size of: ", stringify!(nsFontFaceRuleContainer))
- );
- assert_eq!(
- ::std::mem::align_of::<nsFontFaceRuleContainer>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsFontFaceRuleContainer))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsFontFaceRuleContainer>())).mRule as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsFontFaceRuleContainer),
- "::",
- stringify!(mRule)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsFontFaceRuleContainer>())).mSheetType as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsFontFaceRuleContainer),
- "::",
- stringify!(mSheetType)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsDOMStyleSheetSetList {
- _unused: [u8; 0],
- }
- impl Clone for nsDOMStyleSheetSetList {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsFrameLoader {
- _unused: [u8; 0],
- }
- impl Clone for nsFrameLoader {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsHTMLCSSStyleSheet {
- _unused: [u8; 0],
- }
- impl Clone for nsHTMLCSSStyleSheet {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIBFCacheEntry {
- _unused: [u8; 0],
- }
- impl Clone for nsIBFCacheEntry {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDocumentEncoder {
- _unused: [u8; 0],
- }
- impl Clone for nsIDocumentEncoder {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIObjectLoadingContent {
- _unused: [u8; 0],
- }
- impl Clone for nsIObjectLoadingContent {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIStructuredCloneContainer {
- _unused: [u8; 0],
- }
- impl Clone for nsIStructuredCloneContainer {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsSMILAnimationController {
- _unused: [u8; 0],
- }
- impl Clone for nsSMILAnimationController {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsSVGElement {
- _unused: [u8; 0],
- }
- impl Clone for nsSVGElement {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- pub struct nsDocHeaderData {
- pub mField: root::RefPtr<root::nsAtom>,
- pub mData: ::nsstring::nsStringRepr,
- pub mNext: *mut root::nsDocHeaderData,
- }
- #[test]
- fn bindgen_test_layout_nsDocHeaderData() {
- assert_eq!(
- ::std::mem::size_of::<nsDocHeaderData>(),
- 32usize,
- concat!("Size of: ", stringify!(nsDocHeaderData))
- );
- assert_eq!(
- ::std::mem::align_of::<nsDocHeaderData>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsDocHeaderData))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsDocHeaderData>())).mField as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsDocHeaderData),
- "::",
- stringify!(mField)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsDocHeaderData>())).mData as *const _ as usize },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsDocHeaderData),
- "::",
- stringify!(mData)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsDocHeaderData>())).mNext as *const _ as usize },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(nsDocHeaderData),
- "::",
- stringify!(mNext)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap {
- pub mMap: [u64; 4usize],
- pub mPendingLoads: [u64; 4usize],
- pub mHaveShutDown: bool,
- }
- pub type nsExternalResourceMap_nsSubDocEnumFunc = ::std::option::Option<
- unsafe extern "C" fn(aDocument: *mut root::nsIDocument, aData: *mut ::std::os::raw::c_void)
- -> bool,
- >;
- /// A class that represents an external resource load that has begun but
- /// doesn't have a document yet. Observers can be registered on this object,
- /// and will be notified after the document is created. Observers registered
- /// after the document has been created will NOT be notified. When observers
- /// are notified, the subject will be the newly-created document, the topic
- /// will be "external-resource-document-created", and the data will be null.
- /// If document creation fails for some reason, observers will still be
- /// notified, with a null document pointer.
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap_ExternalResourceLoad {
+ pub struct nsIObserver {
pub _base: root::nsISupports,
- pub mObservers: [u64; 10usize],
- }
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_ExternalResourceLoad() {
- assert_eq!(
- ::std::mem::size_of::<nsExternalResourceMap_ExternalResourceLoad>(),
- 88usize,
- concat!(
- "Size of: ",
- stringify!(nsExternalResourceMap_ExternalResourceLoad)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsExternalResourceMap_ExternalResourceLoad>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_ExternalResourceLoad)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResourceLoad>())).mObservers
- as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap_ExternalResourceLoad),
- "::",
- stringify!(mObservers)
- )
- );
- }
- #[repr(C)]
- pub struct nsExternalResourceMap_ExternalResource {
- pub mDocument: root::nsCOMPtr,
- pub mViewer: root::nsCOMPtr,
- pub mLoadGroup: root::nsCOMPtr,
- }
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_ExternalResource() {
- assert_eq!(
- ::std::mem::size_of::<nsExternalResourceMap_ExternalResource>(),
- 24usize,
- concat!(
- "Size of: ",
- stringify!(nsExternalResourceMap_ExternalResource)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsExternalResourceMap_ExternalResource>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_ExternalResource)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResource>())).mDocument
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap_ExternalResource),
- "::",
- stringify!(mDocument)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResource>())).mViewer
- as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap_ExternalResource),
- "::",
- stringify!(mViewer)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResource>())).mLoadGroup
- as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap_ExternalResource),
- "::",
- stringify!(mLoadGroup)
- )
- );
- }
- #[repr(C)]
- pub struct nsExternalResourceMap_PendingLoad {
- pub _base: root::nsExternalResourceMap_ExternalResourceLoad,
- pub _base_1: root::nsIStreamListener,
- pub mRefCnt: root::nsAutoRefCnt,
- pub mDisplayDocument: root::nsCOMPtr,
- pub mTargetListener: root::nsCOMPtr,
- pub mURI: root::nsCOMPtr,
- }
- pub type nsExternalResourceMap_PendingLoad_HasThreadSafeRefCnt = root::mozilla::FalseType;
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_PendingLoad() {
- assert_eq!(
- ::std::mem::size_of::<nsExternalResourceMap_PendingLoad>(),
- 128usize,
- concat!("Size of: ", stringify!(nsExternalResourceMap_PendingLoad))
- );
- assert_eq!(
- ::std::mem::align_of::<nsExternalResourceMap_PendingLoad>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_PendingLoad)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap_LoadgroupCallbacks {
- pub _base: root::nsIInterfaceRequestor,
- pub mRefCnt: root::nsAutoRefCnt,
- pub mCallbacks: root::nsCOMPtr,
- }
- pub type nsExternalResourceMap_LoadgroupCallbacks_HasThreadSafeRefCnt =
- root::mozilla::FalseType;
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim {
- pub _base: root::nsIInterfaceRequestor,
- pub _base_1: root::nsILoadContext,
- pub mRefCnt: root::nsAutoRefCnt,
- pub mIfReq: root::nsCOMPtr,
- pub mRealPtr: root::nsCOMPtr,
- }
- pub type nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim_HasThreadSafeRefCnt =
- root::mozilla::FalseType;
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim() {
- assert_eq!(
- ::std::mem::size_of::<nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim>(),
- 40usize,
- concat!(
- "Size of: ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim {
- pub _base: root::nsIInterfaceRequestor,
- pub _base_1: root::nsIProgressEventSink,
- pub mRefCnt: root::nsAutoRefCnt,
- pub mIfReq: root::nsCOMPtr,
- pub mRealPtr: root::nsCOMPtr,
- }
- pub type nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim_HasThreadSafeRefCnt =
- root::mozilla::FalseType;
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim() {
- assert_eq!(
- ::std::mem::size_of::<
- nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim,
- >(),
- 40usize,
- concat!(
- "Size of: ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<
- nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim,
- >(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim {
- pub _base: root::nsIInterfaceRequestor,
- pub _base_1: root::nsIChannelEventSink,
- pub mRefCnt: root::nsAutoRefCnt,
- pub mIfReq: root::nsCOMPtr,
- pub mRealPtr: root::nsCOMPtr,
- }
- pub type nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim_HasThreadSafeRefCnt =
- root::mozilla::FalseType;
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim() {
- assert_eq ! ( :: std :: mem :: size_of :: < nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim ) ) );
- assert_eq!(
- ::std::mem::align_of::<
- nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim,
- >(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim {
- pub _base: root::nsIInterfaceRequestor,
- pub _base_1: root::nsISecurityEventSink,
- pub mRefCnt: root::nsAutoRefCnt,
- pub mIfReq: root::nsCOMPtr,
- pub mRealPtr: root::nsCOMPtr,
- }
- pub type nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim_HasThreadSafeRefCnt =
- root::mozilla::FalseType;
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim() {
- assert_eq!(
- ::std::mem::size_of::<
- nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim,
- >(),
- 40usize,
- concat!(
- "Size of: ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<
- nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim,
- >(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim {
- pub _base: root::nsIInterfaceRequestor,
- pub _base_1: root::nsIApplicationCacheContainer,
- pub mRefCnt: root::nsAutoRefCnt,
- pub mIfReq: root::nsCOMPtr,
- pub mRealPtr: root::nsCOMPtr,
- }
- pub type nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim_HasThreadSafeRefCnt = root :: mozilla :: FalseType ;
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim(
-) {
- assert_eq!(
- ::std::mem::size_of::<
- nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim,
- >(),
- 40usize,
- concat!(
- "Size of: ",
- stringify!(
- nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim
- )
- )
- );
- assert_eq!(
- ::std::mem::align_of::<
- nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim,
- >(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(
- nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim
- )
- )
- );
- }
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks() {
- assert_eq!(
- ::std::mem::size_of::<nsExternalResourceMap_LoadgroupCallbacks>(),
- 24usize,
- concat!(
- "Size of: ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsExternalResourceMap_LoadgroupCallbacks>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap_LoadgroupCallbacks>())).mRefCnt
- as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks),
- "::",
- stringify!(mRefCnt)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap_LoadgroupCallbacks>())).mCallbacks
- as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap_LoadgroupCallbacks),
- "::",
- stringify!(mCallbacks)
- )
- );
- }
- #[test]
- fn bindgen_test_layout_nsExternalResourceMap() {
- assert_eq!(
- ::std::mem::size_of::<nsExternalResourceMap>(),
- 72usize,
- concat!("Size of: ", stringify!(nsExternalResourceMap))
- );
- assert_eq!(
- ::std::mem::align_of::<nsExternalResourceMap>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsExternalResourceMap))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsExternalResourceMap>())).mMap as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap),
- "::",
- stringify!(mMap)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap>())).mPendingLoads as *const _ as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap),
- "::",
- stringify!(mPendingLoads)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsExternalResourceMap>())).mHaveShutDown as *const _ as usize
- },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsExternalResourceMap),
- "::",
- stringify!(mHaveShutDown)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct PrincipalFlashClassifier {
- _unused: [u8; 0],
- }
- impl Clone for PrincipalFlashClassifier {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- pub struct nsIDocument {
- pub _base: root::nsINode,
- pub _base_1: root::mozilla::dom::DocumentOrShadowRoot,
- pub _base_2: root::mozilla::dom::DispatcherTrait,
- pub mDeprecationWarnedAbout: u64,
- pub mDocWarningWarnedAbout: u64,
- pub mServoSelectorCache: root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>,
- pub mGeckoSelectorCache: root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>,
- pub mReferrer: root::nsCString,
- pub mLastModified: ::nsstring::nsStringRepr,
- pub mDocumentURI: root::nsCOMPtr,
- pub mOriginalURI: root::nsCOMPtr,
- pub mChromeXHRDocURI: root::nsCOMPtr,
- pub mDocumentBaseURI: root::nsCOMPtr,
- pub mChromeXHRDocBaseURI: root::nsCOMPtr,
- pub mCachedURLData: root::RefPtr<root::mozilla::URLExtraData>,
- pub mDocumentLoadGroup: root::nsWeakPtr,
- pub mReferrerPolicySet: bool,
- pub mReferrerPolicy: root::nsIDocument_ReferrerPolicyEnum,
- pub mBlockAllMixedContent: bool,
- pub mBlockAllMixedContentPreloads: bool,
- pub mUpgradeInsecureRequests: bool,
- pub mUpgradeInsecurePreloads: bool,
- pub mDocumentContainer: u64,
- pub mCharacterSet: root::mozilla::NotNull<*const root::nsIDocument_Encoding>,
- pub mCharacterSetSource: i32,
- pub mParentDocument: *mut root::nsIDocument,
- pub mCachedRootElement: *mut root::mozilla::dom::Element,
- pub mNodeInfoManager: *mut root::nsNodeInfoManager,
- pub mCSSLoader: root::RefPtr<root::mozilla::css::Loader>,
- pub mStyleImageLoader: root::RefPtr<root::mozilla::css::ImageLoader>,
- pub mAttrStyleSheet: root::RefPtr<root::nsHTMLStyleSheet>,
- pub mStyleAttrStyleSheet: root::RefPtr<root::nsHTMLCSSStyleSheet>,
- pub mImageTracker: root::RefPtr<root::mozilla::dom::ImageTracker>,
- pub mActivityObservers: u64,
- pub mStyledLinks: [u64; 4usize],
- pub mLinksToUpdate: root::nsIDocument_LinksToUpdateList,
- pub mAnimationController: root::RefPtr<root::nsSMILAnimationController>,
- pub mPropertyTable: root::nsPropertyTable,
- pub mChildrenCollection: root::nsCOMPtr,
- pub mImages: root::RefPtr<root::nsContentList>,
- pub mEmbeds: root::RefPtr<root::nsContentList>,
- pub mLinks: root::RefPtr<root::nsContentList>,
- pub mForms: root::RefPtr<root::nsContentList>,
- pub mScripts: root::RefPtr<root::nsContentList>,
- pub mApplets: root::nsCOMPtr,
- pub mAnchors: root::RefPtr<root::nsContentList>,
- pub mFontFaceSet: root::RefPtr<root::mozilla::dom::FontFaceSet>,
- pub mLastFocusTime: root::mozilla::TimeStamp,
- pub mDocumentState: root::mozilla::EventStates,
- pub mReadyForIdle: root::RefPtr<root::mozilla::dom::Promise>,
- pub mAboutCapabilities: root::RefPtr<root::mozilla::dom::AboutCapabilities>,
- pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 11usize], u8>,
- pub mPendingFullscreenRequests: u8,
- pub mXMLDeclarationBits: u8,
- pub mOnloadBlockCount: u32,
- pub mAsyncOnloadBlockCount: u32,
- pub mCompatMode: root::nsCompatibility,
- pub mReadyState: root::nsIDocument_ReadyState,
- pub mVisibilityState: root::mozilla::dom::VisibilityState,
- pub mType: root::nsIDocument_Type,
- pub mDefaultElementType: u8,
- pub mAllowXULXBL: root::nsIDocument_Tri,
- pub mScriptGlobalObject: root::nsCOMPtr,
- pub mOriginalDocument: root::nsCOMPtr,
- pub mBidiOptions: u32,
- pub mSandboxFlags: u32,
- pub mContentLanguage: root::nsCString,
- pub mChannel: root::nsCOMPtr,
- pub mContentType: root::nsCString,
- pub mSecurityInfo: root::nsCOMPtr,
- pub mFailedChannel: root::nsCOMPtr,
- pub mPartID: u32,
- pub mMarkedCCGeneration: u32,
- pub mPresShell: *mut root::nsIPresShell,
- pub mSubtreeModifiedTargets: root::nsCOMArray,
- pub mSubtreeModifiedDepth: u32,
- pub mPreloadingImages: [u64; 4usize],
- pub mPreloadedPreconnects: [u64; 4usize],
- pub mPreloadPictureDepth: u32,
- pub mPreloadPictureFoundSource: ::nsstring::nsStringRepr,
- pub mDisplayDocument: root::nsCOMPtr,
- pub mEventsSuppressed: u32,
- /// https://html.spec.whatwg.org/#ignore-destructive-writes-counter
- pub mIgnoreDestructiveWritesCounter: u32,
- /// The current frame request callback handle
- pub mFrameRequestCallbackCounter: i32,
- pub mStaticCloneCount: u32,
- pub mBlockedTrackingNodes: root::nsTArray<root::nsWeakPtr>,
- pub mWindow: *mut root::nsPIDOMWindowInner,
- pub mCachedEncoder: root::nsCOMPtr,
- pub mFrameRequestCallbacks: root::nsTArray<root::nsIDocument_FrameRequest>,
- pub mBFCacheEntry: *mut root::nsIBFCacheEntry,
- pub mBaseTarget: ::nsstring::nsStringRepr,
- pub mStateObjectContainer: root::nsCOMPtr,
- pub mStateObjectCached: root::nsCOMPtr,
- pub mInSyncOperationCount: u32,
- pub mXPathEvaluator: root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>,
- pub mAnonymousContents: root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>,
- pub mBlockDOMContentLoaded: u32,
- pub mDOMMediaQueryLists: root::mozilla::LinkedList,
- pub mObservers: [u64; 2usize],
- pub mUseCounters: [u64; 2usize],
- pub mChildDocumentUseCounters: [u64; 2usize],
- pub mNotifiedPageForUseCounter: [u64; 2usize],
- pub mIncCounters: u16,
- pub mUserHasInteracted: bool,
- pub mUserHasActivatedInteraction: bool,
- pub mPageUnloadingEventTimeStamp: root::mozilla::TimeStamp,
- pub mDocGroup: root::RefPtr<root::mozilla::dom::DocGroup>,
- pub mTrackingScripts: [u64; 4usize],
- pub mBufferedCSPViolations: root::nsTArray<root::nsCOMPtr>,
- pub mAncestorPrincipals: root::nsTArray<root::nsCOMPtr>,
- pub mAncestorOuterWindowIDs: root::nsTArray<u64>,
- pub mParser: root::nsCOMPtr,
- pub mStackRefCnt: root::nsrefcnt,
- pub mWeakSink: root::nsWeakPtr,
- pub mUpdateNestLevel: u32,
- pub mViewportType: root::nsIDocument_ViewportType,
- pub mSubDocuments: *mut root::PLDHashTable,
- pub mHeaderData: *mut root::nsDocHeaderData,
- pub mPrincipalFlashClassifier: root::RefPtr<root::PrincipalFlashClassifier>,
- pub mFlashClassification: root::mozilla::dom::FlashClassification,
- pub mIsThirdParty: [u8; 2usize],
- pub mPendingTitleChangeEvent: u64,
- pub mTiming: root::RefPtr<root::nsDOMNavigationTiming>,
- pub mLoadingTimeStamp: root::mozilla::TimeStamp,
- pub mAutoFocusElement: root::nsWeakPtr,
- pub mScrollToRef: root::nsCString,
- pub mScopeObject: root::nsWeakPtr,
- pub mIntersectionObservers: [u64; 4usize],
- pub mFullScreenStack: root::nsTArray<root::nsWeakPtr>,
- pub mFullscreenRoot: root::nsWeakPtr,
- pub mDOMImplementation: root::RefPtr<root::mozilla::dom::DOMImplementation>,
- pub mImageMaps: root::RefPtr<root::nsContentList>,
- pub mResponsiveContent: [u64; 4usize],
- pub mPlugins: [u64; 4usize],
- pub mChildren: root::nsAttrAndChildArray,
- pub mDocumentTimeline: root::RefPtr<root::mozilla::dom::DocumentTimeline>,
- pub mTimelines: root::mozilla::LinkedList,
- pub mScriptLoader: root::RefPtr<root::mozilla::dom::ScriptLoader>,
- pub mBoxObjectTable: *mut u8,
- pub mPendingAnimationTracker: root::RefPtr<root::mozilla::PendingAnimationTracker>,
- pub mTemplateContentsOwner: root::nsCOMPtr,
- pub mExternalResourceMap: root::nsExternalResourceMap,
- pub mOrientationPendingPromise: root::RefPtr<root::mozilla::dom::Promise>,
- pub mCurrentOrientationAngle: u16,
- pub mCurrentOrientationType: root::mozilla::dom::OrientationType,
- pub mInitializableFrameLoaders: root::nsTArray<root::RefPtr<root::nsFrameLoader>>,
- pub mFrameLoaderFinalizers: root::nsTArray<root::nsCOMPtr>,
- pub mFrameLoaderRunner: u64,
- pub mLayoutHistoryState: root::nsCOMPtr,
- pub mScaleMinFloat: root::mozilla::LayoutDeviceToScreenScale,
- pub mScaleMaxFloat: root::mozilla::LayoutDeviceToScreenScale,
- pub mScaleFloat: root::mozilla::LayoutDeviceToScreenScale,
- pub mPixelRatio: root::mozilla::CSSToLayoutDeviceScale,
- pub mViewportSize: root::mozilla::CSSSize,
- pub mListenerManager: root::RefPtr<root::mozilla::EventListenerManager>,
- pub mMaybeEndOutermostXBLUpdateRunner: root::nsCOMPtr,
- pub mOnloadBlocker: root::nsCOMPtr,
- pub mOnDemandBuiltInUASheets: root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>,
- pub mAdditionalSheets: [root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>; 3usize],
- pub mLastStyleSheetSet: ::nsstring::nsStringRepr,
- pub mStyleSheetSetList: root::RefPtr<root::nsDOMStyleSheetSetList>,
- pub mLazySVGPresElements: [u64; 4usize],
- pub mServoRestyleRoot: root::nsCOMPtr,
- pub mServoRestyleRootDirtyBits: u32,
- pub mThrowOnDynamicMarkupInsertionCounter: u32,
- pub mIgnoreOpensDuringUnloadCounter: u32,
}
- pub type nsIDocument_GlobalObject = root::mozilla::dom::GlobalObject;
- pub type nsIDocument_Encoding = root::mozilla::Encoding;
- pub type nsIDocument_NotNull<T> = root::mozilla::NotNull<T>;
- pub type nsIDocument_ExternalResourceLoad = root::nsExternalResourceMap_ExternalResourceLoad;
- pub use self::super::root::mozilla::net::ReferrerPolicy as nsIDocument_ReferrerPolicyEnum;
- pub type nsIDocument_Element = root::mozilla::dom::Element;
- pub type nsIDocument_FullscreenRequest = root::mozilla::dom::FullscreenRequest;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
- pub struct nsIDocument_COMTypeInfo {
+ pub struct nsIObserver_COMTypeInfo {
pub _address: u8,
}
- #[repr(C)]
- pub struct nsIDocument_PageUnloadingEventTimeStamp {
- pub mDocument: root::nsCOMPtr,
- pub mSet: bool,
- }
#[test]
- fn bindgen_test_layout_nsIDocument_PageUnloadingEventTimeStamp() {
- assert_eq!(
- ::std::mem::size_of::<nsIDocument_PageUnloadingEventTimeStamp>(),
- 16usize,
- concat!(
- "Size of: ",
- stringify!(nsIDocument_PageUnloadingEventTimeStamp)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsIDocument_PageUnloadingEventTimeStamp>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsIDocument_PageUnloadingEventTimeStamp)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIDocument_PageUnloadingEventTimeStamp>())).mDocument
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIDocument_PageUnloadingEventTimeStamp),
- "::",
- stringify!(mDocument)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIDocument_PageUnloadingEventTimeStamp>())).mSet as *const _
- as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIDocument_PageUnloadingEventTimeStamp),
- "::",
- stringify!(mSet)
- )
- );
- }
- /// 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
- /// which could modify the DOM in any way. Use
- /// nsContentUtils::AddScriptRunner.
- /// @return true to keep the callback in the callback set, false
- /// to remove it.
- pub type nsIDocument_IDTargetObserver = ::std::option::Option<
- unsafe extern "C" fn(
- aOldElement: *mut root::nsIDocument_Element,
- aNewelement: *mut root::nsIDocument_Element,
- aData: *mut ::std::os::raw::c_void,
- ) -> bool,
- >;
- #[repr(C)]
- pub struct nsIDocument_SelectorCacheKey {
- pub mKey: ::nsstring::nsStringRepr,
- pub mState: root::nsExpirationState,
- }
- #[test]
- fn bindgen_test_layout_nsIDocument_SelectorCacheKey() {
- assert_eq!(
- ::std::mem::size_of::<nsIDocument_SelectorCacheKey>(),
- 24usize,
- concat!("Size of: ", stringify!(nsIDocument_SelectorCacheKey))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIDocument_SelectorCacheKey>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIDocument_SelectorCacheKey))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIDocument_SelectorCacheKey>())).mKey as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIDocument_SelectorCacheKey),
- "::",
- stringify!(mKey)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIDocument_SelectorCacheKey>())).mState as *const _ as usize
- },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIDocument_SelectorCacheKey),
- "::",
- stringify!(mState)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDocument_SelectorCacheKeyDeleter {
- _unused: [u8; 0],
- }
- impl Clone for nsIDocument_SelectorCacheKeyDeleter {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDocument_SelectorCache {
- pub _bindgen_opaque_blob: [u64; 16usize],
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsIDocument_SelectorCache_SelectorList {
- pub mIsServo: bool,
- pub __bindgen_anon_1: root::nsIDocument_SelectorCache_SelectorList__bindgen_ty_1,
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDocument_SelectorCache_SelectorList__bindgen_ty_1 {
- pub mGecko: root::__BindgenUnionField<*mut root::nsCSSSelectorList>,
- pub mServo: root::__BindgenUnionField<*mut root::RawServoSelectorList>,
- pub bindgen_union_field: u64,
- }
- #[test]
- fn bindgen_test_layout_nsIDocument_SelectorCache_SelectorList__bindgen_ty_1() {
- assert_eq!(
- ::std::mem::size_of::<nsIDocument_SelectorCache_SelectorList__bindgen_ty_1>(),
- 8usize,
- concat!(
- "Size of: ",
- stringify!(nsIDocument_SelectorCache_SelectorList__bindgen_ty_1)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsIDocument_SelectorCache_SelectorList__bindgen_ty_1>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsIDocument_SelectorCache_SelectorList__bindgen_ty_1)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIDocument_SelectorCache_SelectorList__bindgen_ty_1>()))
- .mGecko as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIDocument_SelectorCache_SelectorList__bindgen_ty_1),
- "::",
- stringify!(mGecko)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIDocument_SelectorCache_SelectorList__bindgen_ty_1>()))
- .mServo as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIDocument_SelectorCache_SelectorList__bindgen_ty_1),
- "::",
- stringify!(mServo)
- )
- );
- }
- impl Clone for nsIDocument_SelectorCache_SelectorList__bindgen_ty_1 {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_nsIDocument_SelectorCache_SelectorList() {
- assert_eq!(
- ::std::mem::size_of::<nsIDocument_SelectorCache_SelectorList>(),
- 16usize,
- concat!(
- "Size of: ",
- stringify!(nsIDocument_SelectorCache_SelectorList)
- )
- );
+ fn bindgen_test_layout_nsIObserver() {
assert_eq!(
- ::std::mem::align_of::<nsIDocument_SelectorCache_SelectorList>(),
+ ::std::mem::size_of::<nsIObserver>(),
8usize,
- concat!(
- "Alignment of ",
- stringify!(nsIDocument_SelectorCache_SelectorList)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsIDocument_SelectorCache_SelectorList>())).mIsServo
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsIDocument_SelectorCache_SelectorList),
- "::",
- stringify!(mIsServo)
- )
- );
- }
- #[test]
- fn bindgen_test_layout_nsIDocument_SelectorCache() {
- assert_eq!(
- ::std::mem::size_of::<nsIDocument_SelectorCache>(),
- 128usize,
- concat!("Size of: ", stringify!(nsIDocument_SelectorCache))
+ concat!("Size of: ", stringify!(nsIObserver))
);
assert_eq!(
- ::std::mem::align_of::<nsIDocument_SelectorCache>(),
+ ::std::mem::align_of::<nsIObserver>(),
8usize,
- concat!("Alignment of ", stringify!(nsIDocument_SelectorCache))
+ concat!("Alignment of ", stringify!(nsIObserver))
);
}
- impl Clone for nsIDocument_SelectorCache {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const nsIDocument_additionalSheetType_eAgentSheet: root::nsIDocument_additionalSheetType =
- 0;
- pub const nsIDocument_additionalSheetType_eUserSheet: root::nsIDocument_additionalSheetType = 1;
- pub const nsIDocument_additionalSheetType_eAuthorSheet: root::nsIDocument_additionalSheetType =
- 2;
- pub const nsIDocument_additionalSheetType_AdditionalSheetTypeCount:
- root::nsIDocument_additionalSheetType = 3;
- pub type nsIDocument_additionalSheetType = u32;
- pub const nsIDocument_ReadyState_READYSTATE_UNINITIALIZED: root::nsIDocument_ReadyState = 0;
- pub const nsIDocument_ReadyState_READYSTATE_LOADING: root::nsIDocument_ReadyState = 1;
- pub const nsIDocument_ReadyState_READYSTATE_INTERACTIVE: root::nsIDocument_ReadyState = 3;
- pub const nsIDocument_ReadyState_READYSTATE_COMPLETE: root::nsIDocument_ReadyState = 4;
- pub type nsIDocument_ReadyState = u32;
- /// Enumerate all subdocuments.
- /// The enumerator callback should return true to continue enumerating, or
- /// false to stop. This will never get passed a null aDocument.
- pub type nsIDocument_nsSubDocEnumFunc = ::std::option::Option<
- unsafe extern "C" fn(aDocument: *mut root::nsIDocument, aData: *mut ::std::os::raw::c_void)
- -> bool,
- >;
- /// Collect all the descendant documents for which |aCalback| returns true.
- /// The callback function must not mutate any state for the given document.
- pub type nsIDocument_nsDocTestFunc =
- ::std::option::Option<unsafe extern "C" fn(aDocument: *const root::nsIDocument) -> bool>;
- pub type nsIDocument_ActivityObserverEnumerator = ::std::option::Option<
- unsafe extern "C" fn(arg1: *mut root::nsISupports, arg2: *mut ::std::os::raw::c_void),
- >;
- #[repr(u32)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum nsIDocument_DocumentTheme {
- Doc_Theme_Uninitialized = 0,
- Doc_Theme_None = 1,
- Doc_Theme_Neutral = 2,
- Doc_Theme_Dark = 3,
- Doc_Theme_Bright = 4,
- }
- pub type nsIDocument_FrameRequestCallbackList =
- root::nsTArray<root::RefPtr<root::mozilla::dom::FrameRequestCallback>>;
- pub const nsIDocument_DeprecatedOperations_eEnablePrivilege:
- root::nsIDocument_DeprecatedOperations = 0;
- pub const nsIDocument_DeprecatedOperations_eDOMExceptionCode:
- root::nsIDocument_DeprecatedOperations = 1;
- pub const nsIDocument_DeprecatedOperations_eMutationEvent:
- root::nsIDocument_DeprecatedOperations = 2;
- pub const nsIDocument_DeprecatedOperations_eComponents: root::nsIDocument_DeprecatedOperations =
- 3;
- pub const nsIDocument_DeprecatedOperations_ePrefixedVisibilityAPI:
- root::nsIDocument_DeprecatedOperations = 4;
- pub const nsIDocument_DeprecatedOperations_eNodeIteratorDetach:
- root::nsIDocument_DeprecatedOperations = 5;
- pub const nsIDocument_DeprecatedOperations_eLenientThis:
- root::nsIDocument_DeprecatedOperations = 6;
- pub const nsIDocument_DeprecatedOperations_eMozGetAsFile:
- root::nsIDocument_DeprecatedOperations = 7;
- pub const nsIDocument_DeprecatedOperations_eUseOfCaptureEvents:
- root::nsIDocument_DeprecatedOperations = 8;
- pub const nsIDocument_DeprecatedOperations_eUseOfReleaseEvents:
- root::nsIDocument_DeprecatedOperations = 9;
- pub const nsIDocument_DeprecatedOperations_eUseOfDOM3LoadMethod:
- root::nsIDocument_DeprecatedOperations = 10;
- pub const nsIDocument_DeprecatedOperations_eChromeUseOfDOM3LoadMethod:
- root::nsIDocument_DeprecatedOperations = 11;
- pub const nsIDocument_DeprecatedOperations_eShowModalDialog:
- root::nsIDocument_DeprecatedOperations = 12;
- pub const nsIDocument_DeprecatedOperations_eSyncXMLHttpRequest:
- root::nsIDocument_DeprecatedOperations = 13;
- pub const nsIDocument_DeprecatedOperations_eWindow_Cc_ontrollers:
- root::nsIDocument_DeprecatedOperations = 14;
- pub const nsIDocument_DeprecatedOperations_eImportXULIntoContent:
- root::nsIDocument_DeprecatedOperations = 15;
- pub const nsIDocument_DeprecatedOperations_ePannerNodeDoppler:
- root::nsIDocument_DeprecatedOperations = 16;
- pub const nsIDocument_DeprecatedOperations_eNavigatorGetUserMedia:
- root::nsIDocument_DeprecatedOperations = 17;
- pub const nsIDocument_DeprecatedOperations_eWebrtcDeprecatedPrefix:
- root::nsIDocument_DeprecatedOperations = 18;
- pub const nsIDocument_DeprecatedOperations_eRTCPeerConnectionGetStreams:
- root::nsIDocument_DeprecatedOperations = 19;
- pub const nsIDocument_DeprecatedOperations_eAppCache: root::nsIDocument_DeprecatedOperations =
- 20;
- pub const nsIDocument_DeprecatedOperations_eAppCacheInsecure:
- root::nsIDocument_DeprecatedOperations = 21;
- pub const nsIDocument_DeprecatedOperations_ePrefixedImageSmoothingEnabled:
- root::nsIDocument_DeprecatedOperations = 22;
- pub const nsIDocument_DeprecatedOperations_ePrefixedFullscreenAPI:
- root::nsIDocument_DeprecatedOperations = 23;
- pub const nsIDocument_DeprecatedOperations_eLenientSetter:
- root::nsIDocument_DeprecatedOperations = 24;
- pub const nsIDocument_DeprecatedOperations_eFileLastModifiedDate:
- root::nsIDocument_DeprecatedOperations = 25;
- pub const nsIDocument_DeprecatedOperations_eImageBitmapRenderingContext_TransferImageBitmap:
- root::nsIDocument_DeprecatedOperations = 26;
- pub const nsIDocument_DeprecatedOperations_eURLCreateObjectURL_MediaStream:
- root::nsIDocument_DeprecatedOperations = 27;
- pub const nsIDocument_DeprecatedOperations_eXMLBaseAttribute:
- root::nsIDocument_DeprecatedOperations = 28;
- pub const nsIDocument_DeprecatedOperations_eWindowContentUntrusted:
- root::nsIDocument_DeprecatedOperations = 29;
- pub const nsIDocument_DeprecatedOperations_eRegisterProtocolHandlerInsecure:
- root::nsIDocument_DeprecatedOperations = 30;
- pub const nsIDocument_DeprecatedOperations_eMixedDisplayObjectSubrequest:
- root::nsIDocument_DeprecatedOperations = 31;
- pub const nsIDocument_DeprecatedOperations_eMotionEvent:
- root::nsIDocument_DeprecatedOperations = 32;
- pub const nsIDocument_DeprecatedOperations_eOrientationEvent:
- root::nsIDocument_DeprecatedOperations = 33;
- pub const nsIDocument_DeprecatedOperations_eProximityEvent:
- root::nsIDocument_DeprecatedOperations = 34;
- pub const nsIDocument_DeprecatedOperations_eAmbientLightEvent:
- root::nsIDocument_DeprecatedOperations = 35;
- pub const nsIDocument_DeprecatedOperations_eIDBOpenDBOptions_StorageType:
- root::nsIDocument_DeprecatedOperations = 36;
- pub const nsIDocument_DeprecatedOperations_eGetPropertyCSSValue:
- root::nsIDocument_DeprecatedOperations = 37;
- pub const nsIDocument_DeprecatedOperations_eDeprecatedOperationCount:
- root::nsIDocument_DeprecatedOperations = 38;
- pub type nsIDocument_DeprecatedOperations = u32;
- pub const nsIDocument_DocumentWarnings_eIgnoringWillChangeOverBudget:
- root::nsIDocument_DocumentWarnings = 0;
- pub const nsIDocument_DocumentWarnings_ePreventDefaultFromPassiveListener:
- root::nsIDocument_DocumentWarnings = 1;
- pub const nsIDocument_DocumentWarnings_eSVGRefLoop: root::nsIDocument_DocumentWarnings = 2;
- pub const nsIDocument_DocumentWarnings_eSVGRefChainLengthExceeded:
- root::nsIDocument_DocumentWarnings = 3;
- pub const nsIDocument_DocumentWarnings_eDocumentWarningCount:
- root::nsIDocument_DocumentWarnings = 4;
- pub type nsIDocument_DocumentWarnings = u32;
- pub const nsIDocument_ElementCallbackType_eConnected: root::nsIDocument_ElementCallbackType = 0;
- pub const nsIDocument_ElementCallbackType_eDisconnected: root::nsIDocument_ElementCallbackType =
- 1;
- pub const nsIDocument_ElementCallbackType_eAdopted: root::nsIDocument_ElementCallbackType = 2;
- pub const nsIDocument_ElementCallbackType_eAttributeChanged:
- root::nsIDocument_ElementCallbackType = 3;
- pub type nsIDocument_ElementCallbackType = u32;
- pub const nsIDocument_UseCounterReportKind_eDefault: root::nsIDocument_UseCounterReportKind = 0;
- pub const nsIDocument_UseCounterReportKind_eIncludeExternalResources:
- root::nsIDocument_UseCounterReportKind = 1;
- pub type nsIDocument_UseCounterReportKind = i32;
- pub type nsIDocument_LinksToUpdateList = [u64; 3usize];
- #[repr(u32)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum nsIDocument_Type {
- eUnknown = 0,
- eHTML = 1,
- eXHTML = 2,
- eGenericXML = 3,
- eSVG = 4,
- eXUL = 5,
- }
- pub const nsIDocument_Tri_eTriUnset: root::nsIDocument_Tri = 0;
- pub const nsIDocument_Tri_eTriFalse: root::nsIDocument_Tri = 1;
- pub const nsIDocument_Tri_eTriTrue: root::nsIDocument_Tri = 2;
- pub type nsIDocument_Tri = u32;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsIDocument_FrameRequest {
- _unused: [u8; 0],
- }
- impl Clone for nsIDocument_FrameRequest {
+ impl Clone for nsIObserver {
fn clone(&self) -> Self {
*self
}
}
- pub const nsIDocument_ViewportType_DisplayWidthHeight: root::nsIDocument_ViewportType = 0;
- pub const nsIDocument_ViewportType_Specified: root::nsIDocument_ViewportType = 1;
- pub const nsIDocument_ViewportType_Unknown: root::nsIDocument_ViewportType = 2;
- pub type nsIDocument_ViewportType = u32;
- pub const nsIDocument_kSegmentSize: usize = 128;
- #[test]
- fn bindgen_test_layout_nsIDocument() {
- assert_eq!(
- ::std::mem::size_of::<nsIDocument>(),
- 1712usize,
- concat!("Size of: ", stringify!(nsIDocument))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIDocument>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIDocument))
- );
- }
- impl nsIDocument {
- #[inline]
- pub fn mBidiEnabled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mBidiEnabled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(0usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mMathMLEnabled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mMathMLEnabled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(1usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsInitialDocumentInWindow(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsInitialDocumentInWindow(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(2usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIgnoreDocGroupMismatches(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIgnoreDocGroupMismatches(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(3usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mLoadedAsData(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mLoadedAsData(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(4usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mLoadedAsInteractiveData(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mLoadedAsInteractiveData(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(5usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mMayStartLayout(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mMayStartLayout(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(6usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHaveFiredTitleChange(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHaveFiredTitleChange(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(7usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsShowing(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsShowing(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(8usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mVisible(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mVisible(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(9usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasReferrerPolicyCSP(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasReferrerPolicyCSP(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(10usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mRemovedFromDocShell(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mRemovedFromDocShell(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(11usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mAllowDNSPrefetch(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mAllowDNSPrefetch(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(12usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsStaticDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsStaticDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(13usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mCreatingStaticClone(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mCreatingStaticClone(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(14usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mInUnlinkOrDeletion(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mInUnlinkOrDeletion(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(15usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasHadScriptHandlingObject(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasHadScriptHandlingObject(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(16usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsBeingUsedAsImage(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsBeingUsedAsImage(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(17usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsSyntheticDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsSyntheticDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(18usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasLinksToUpdateRunnable(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasLinksToUpdateRunnable(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(19usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mFlushingPendingLinkUpdates(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mFlushingPendingLinkUpdates(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(20usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mMayHaveDOMMutationObservers(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mMayHaveDOMMutationObservers(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(21usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mMayHaveAnimationObservers(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mMayHaveAnimationObservers(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(22usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasMixedActiveContentLoaded(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasMixedActiveContentLoaded(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(23usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasMixedActiveContentBlocked(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasMixedActiveContentBlocked(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(24usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasMixedDisplayContentLoaded(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasMixedDisplayContentLoaded(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(25usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasMixedDisplayContentBlocked(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasMixedDisplayContentBlocked(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(26usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasMixedContentObjectSubrequest(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasMixedContentObjectSubrequest(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(27usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasCSP(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasCSP(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(28usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasUnsafeEvalCSP(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasUnsafeEvalCSP(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(29usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasUnsafeInlineCSP(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasUnsafeInlineCSP(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(30usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasTrackingContentBlocked(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasTrackingContentBlocked(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(31usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasTrackingContentLoaded(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasTrackingContentLoaded(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(32usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mBFCacheDisallowed(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mBFCacheDisallowed(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(33usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasHadDefaultView(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasHadDefaultView(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(34usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mStyleSheetChangeEventsEnabled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mStyleSheetChangeEventsEnabled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(35usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsSrcdocDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsSrcdocDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(36usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDidDocumentOpen(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDidDocumentOpen(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(37usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasDisplayDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasDisplayDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(38usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mFontFaceSetDirty(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mFontFaceSetDirty(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(39usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mGetUserFontSetCalled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mGetUserFontSetCalled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(40usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDidFireDOMContentLoaded(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDidFireDOMContentLoaded(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(41usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasScrollLinkedEffect(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasScrollLinkedEffect(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(42usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mFrameRequestCallbacksScheduled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mFrameRequestCallbacksScheduled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(43usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsTopLevelContentDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsTopLevelContentDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(44usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsContentDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(45usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsContentDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(45usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDidCallBeginLoad(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDidCallBeginLoad(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(46usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mBufferingCSPViolations(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(47usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mBufferingCSPViolations(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(47usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mAllowPaymentRequest(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mAllowPaymentRequest(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(48usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mEncodingMenuDisabled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(49usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mEncodingMenuDisabled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(49usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsShadowDOMEnabled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(50usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsShadowDOMEnabled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(50usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsSVGGlyphsDocument(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(51usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsSVGGlyphsDocument(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(51usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mAllowUnsafeHTML(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(52usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mAllowUnsafeHTML(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(52usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mInDestructor(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(53usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mInDestructor(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(53usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsGoingAway(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(54usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mIsGoingAway(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(54usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mInXBLUpdate(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(55usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mInXBLUpdate(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(55usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mNeedsReleaseAfterStackRefCntRelease(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(56usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mNeedsReleaseAfterStackRefCntRelease(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(56usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mStyleSetFilled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(57usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mStyleSetFilled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(57usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mSSApplicableStateNotificationPending(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(58usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mSSApplicableStateNotificationPending(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(58usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mMayHaveTitleElement(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(59usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mMayHaveTitleElement(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(59usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDOMLoadingSet(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(60usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDOMLoadingSet(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(60usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDOMInteractiveSet(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(61usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDOMInteractiveSet(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(61usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDOMCompleteSet(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(62usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDOMCompleteSet(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(62usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mAutoFocusFired(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(63usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mAutoFocusFired(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(63usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mScrolledToRefAlready(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mScrolledToRefAlready(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(64usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mChangeScrollPosWhenScrollingToRef(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(65usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mChangeScrollPosWhenScrollingToRef(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(65usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasWarnedAboutBoxObjects(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(66usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mHasWarnedAboutBoxObjects(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(66usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDelayFrameLoaderInitialization(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(67usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mDelayFrameLoaderInitialization(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(67usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mSynchronousDOMContentLoaded(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(68usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mSynchronousDOMContentLoaded(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(68usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mMaybeServiceWorkerControlled(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(69usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mMaybeServiceWorkerControlled(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(69usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mValidWidth(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(70usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mValidWidth(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(70usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mValidHeight(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(71usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mValidHeight(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(71usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mAutoSize(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(72usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mAutoSize(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(72usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mAllowZoom(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(73usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mAllowZoom(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(73usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mAllowDoubleTapZoom(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(74usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mAllowDoubleTapZoom(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(74usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mValidScaleFloat(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(75usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mValidScaleFloat(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(75usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mValidMaxScale(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(76usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mValidMaxScale(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(76usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mScaleStrEmpty(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(77usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mScaleStrEmpty(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(77usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mWidthStrEmpty(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(78usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mWidthStrEmpty(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(78usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mParserAborted(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(79usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mParserAborted(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(79usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mReportedUseCounters(&self) -> bool {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 1u8) as u8) }
- }
- #[inline]
- pub fn set_mReportedUseCounters(&mut self, val: bool) {
- unsafe {
- let val: u8 = ::std::mem::transmute(val);
- self._bitfield_1.set(80usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn new_bitfield_1(
- mBidiEnabled: bool,
- mMathMLEnabled: bool,
- mIsInitialDocumentInWindow: bool,
- mIgnoreDocGroupMismatches: bool,
- mLoadedAsData: bool,
- mLoadedAsInteractiveData: bool,
- mMayStartLayout: bool,
- mHaveFiredTitleChange: bool,
- mIsShowing: bool,
- mVisible: bool,
- mHasReferrerPolicyCSP: bool,
- mRemovedFromDocShell: bool,
- mAllowDNSPrefetch: bool,
- mIsStaticDocument: bool,
- mCreatingStaticClone: bool,
- mInUnlinkOrDeletion: bool,
- mHasHadScriptHandlingObject: bool,
- mIsBeingUsedAsImage: bool,
- mIsSyntheticDocument: bool,
- mHasLinksToUpdateRunnable: bool,
- mFlushingPendingLinkUpdates: bool,
- mMayHaveDOMMutationObservers: bool,
- mMayHaveAnimationObservers: bool,
- mHasMixedActiveContentLoaded: bool,
- mHasMixedActiveContentBlocked: bool,
- mHasMixedDisplayContentLoaded: bool,
- mHasMixedDisplayContentBlocked: bool,
- mHasMixedContentObjectSubrequest: bool,
- mHasCSP: bool,
- mHasUnsafeEvalCSP: bool,
- mHasUnsafeInlineCSP: bool,
- mHasTrackingContentBlocked: bool,
- mHasTrackingContentLoaded: bool,
- mBFCacheDisallowed: bool,
- mHasHadDefaultView: bool,
- mStyleSheetChangeEventsEnabled: bool,
- mIsSrcdocDocument: bool,
- mDidDocumentOpen: bool,
- mHasDisplayDocument: bool,
- mFontFaceSetDirty: bool,
- mGetUserFontSetCalled: bool,
- mDidFireDOMContentLoaded: bool,
- mHasScrollLinkedEffect: bool,
- mFrameRequestCallbacksScheduled: bool,
- mIsTopLevelContentDocument: bool,
- mIsContentDocument: bool,
- mDidCallBeginLoad: bool,
- mBufferingCSPViolations: bool,
- mAllowPaymentRequest: bool,
- mEncodingMenuDisabled: bool,
- mIsShadowDOMEnabled: bool,
- mIsSVGGlyphsDocument: bool,
- mAllowUnsafeHTML: bool,
- mInDestructor: bool,
- mIsGoingAway: bool,
- mInXBLUpdate: bool,
- mNeedsReleaseAfterStackRefCntRelease: bool,
- mStyleSetFilled: bool,
- mSSApplicableStateNotificationPending: bool,
- mMayHaveTitleElement: bool,
- mDOMLoadingSet: bool,
- mDOMInteractiveSet: bool,
- mDOMCompleteSet: bool,
- mAutoFocusFired: bool,
- mScrolledToRefAlready: bool,
- mChangeScrollPosWhenScrollingToRef: bool,
- mHasWarnedAboutBoxObjects: bool,
- mDelayFrameLoaderInitialization: bool,
- mSynchronousDOMContentLoaded: bool,
- mMaybeServiceWorkerControlled: bool,
- mValidWidth: bool,
- mValidHeight: bool,
- mAutoSize: bool,
- mAllowZoom: bool,
- mAllowDoubleTapZoom: bool,
- mValidScaleFloat: bool,
- mValidMaxScale: bool,
- mScaleStrEmpty: bool,
- mWidthStrEmpty: bool,
- mParserAborted: bool,
- mReportedUseCounters: bool,
- ) -> root::__BindgenBitfieldUnit<[u8; 11usize], u8> {
- let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
- [u8; 11usize],
- u8,
- > = Default::default();
- __bindgen_bitfield_unit.set(0usize, 1u8, {
- let mBidiEnabled: u8 = unsafe { ::std::mem::transmute(mBidiEnabled) };
- mBidiEnabled as u64
- });
- __bindgen_bitfield_unit.set(1usize, 1u8, {
- let mMathMLEnabled: u8 = unsafe { ::std::mem::transmute(mMathMLEnabled) };
- mMathMLEnabled as u64
- });
- __bindgen_bitfield_unit.set(2usize, 1u8, {
- let mIsInitialDocumentInWindow: u8 =
- unsafe { ::std::mem::transmute(mIsInitialDocumentInWindow) };
- mIsInitialDocumentInWindow as u64
- });
- __bindgen_bitfield_unit.set(3usize, 1u8, {
- let mIgnoreDocGroupMismatches: u8 =
- unsafe { ::std::mem::transmute(mIgnoreDocGroupMismatches) };
- mIgnoreDocGroupMismatches as u64
- });
- __bindgen_bitfield_unit.set(4usize, 1u8, {
- let mLoadedAsData: u8 = unsafe { ::std::mem::transmute(mLoadedAsData) };
- mLoadedAsData as u64
- });
- __bindgen_bitfield_unit.set(5usize, 1u8, {
- let mLoadedAsInteractiveData: u8 =
- unsafe { ::std::mem::transmute(mLoadedAsInteractiveData) };
- mLoadedAsInteractiveData as u64
- });
- __bindgen_bitfield_unit.set(6usize, 1u8, {
- let mMayStartLayout: u8 = unsafe { ::std::mem::transmute(mMayStartLayout) };
- mMayStartLayout as u64
- });
- __bindgen_bitfield_unit.set(7usize, 1u8, {
- let mHaveFiredTitleChange: u8 =
- unsafe { ::std::mem::transmute(mHaveFiredTitleChange) };
- mHaveFiredTitleChange as u64
- });
- __bindgen_bitfield_unit.set(8usize, 1u8, {
- let mIsShowing: u8 = unsafe { ::std::mem::transmute(mIsShowing) };
- mIsShowing as u64
- });
- __bindgen_bitfield_unit.set(9usize, 1u8, {
- let mVisible: u8 = unsafe { ::std::mem::transmute(mVisible) };
- mVisible as u64
- });
- __bindgen_bitfield_unit.set(10usize, 1u8, {
- let mHasReferrerPolicyCSP: u8 =
- unsafe { ::std::mem::transmute(mHasReferrerPolicyCSP) };
- mHasReferrerPolicyCSP as u64
- });
- __bindgen_bitfield_unit.set(11usize, 1u8, {
- let mRemovedFromDocShell: u8 =
- unsafe { ::std::mem::transmute(mRemovedFromDocShell) };
- mRemovedFromDocShell as u64
- });
- __bindgen_bitfield_unit.set(12usize, 1u8, {
- let mAllowDNSPrefetch: u8 = unsafe { ::std::mem::transmute(mAllowDNSPrefetch) };
- mAllowDNSPrefetch as u64
- });
- __bindgen_bitfield_unit.set(13usize, 1u8, {
- let mIsStaticDocument: u8 = unsafe { ::std::mem::transmute(mIsStaticDocument) };
- mIsStaticDocument as u64
- });
- __bindgen_bitfield_unit.set(14usize, 1u8, {
- let mCreatingStaticClone: u8 =
- unsafe { ::std::mem::transmute(mCreatingStaticClone) };
- mCreatingStaticClone as u64
- });
- __bindgen_bitfield_unit.set(15usize, 1u8, {
- let mInUnlinkOrDeletion: u8 = unsafe { ::std::mem::transmute(mInUnlinkOrDeletion) };
- mInUnlinkOrDeletion as u64
- });
- __bindgen_bitfield_unit.set(16usize, 1u8, {
- let mHasHadScriptHandlingObject: u8 =
- unsafe { ::std::mem::transmute(mHasHadScriptHandlingObject) };
- mHasHadScriptHandlingObject as u64
- });
- __bindgen_bitfield_unit.set(17usize, 1u8, {
- let mIsBeingUsedAsImage: u8 = unsafe { ::std::mem::transmute(mIsBeingUsedAsImage) };
- mIsBeingUsedAsImage as u64
- });
- __bindgen_bitfield_unit.set(18usize, 1u8, {
- let mIsSyntheticDocument: u8 =
- unsafe { ::std::mem::transmute(mIsSyntheticDocument) };
- mIsSyntheticDocument as u64
- });
- __bindgen_bitfield_unit.set(19usize, 1u8, {
- let mHasLinksToUpdateRunnable: u8 =
- unsafe { ::std::mem::transmute(mHasLinksToUpdateRunnable) };
- mHasLinksToUpdateRunnable as u64
- });
- __bindgen_bitfield_unit.set(20usize, 1u8, {
- let mFlushingPendingLinkUpdates: u8 =
- unsafe { ::std::mem::transmute(mFlushingPendingLinkUpdates) };
- mFlushingPendingLinkUpdates as u64
- });
- __bindgen_bitfield_unit.set(21usize, 1u8, {
- let mMayHaveDOMMutationObservers: u8 =
- unsafe { ::std::mem::transmute(mMayHaveDOMMutationObservers) };
- mMayHaveDOMMutationObservers as u64
- });
- __bindgen_bitfield_unit.set(22usize, 1u8, {
- let mMayHaveAnimationObservers: u8 =
- unsafe { ::std::mem::transmute(mMayHaveAnimationObservers) };
- mMayHaveAnimationObservers as u64
- });
- __bindgen_bitfield_unit.set(23usize, 1u8, {
- let mHasMixedActiveContentLoaded: u8 =
- unsafe { ::std::mem::transmute(mHasMixedActiveContentLoaded) };
- mHasMixedActiveContentLoaded as u64
- });
- __bindgen_bitfield_unit.set(24usize, 1u8, {
- let mHasMixedActiveContentBlocked: u8 =
- unsafe { ::std::mem::transmute(mHasMixedActiveContentBlocked) };
- mHasMixedActiveContentBlocked as u64
- });
- __bindgen_bitfield_unit.set(25usize, 1u8, {
- let mHasMixedDisplayContentLoaded: u8 =
- unsafe { ::std::mem::transmute(mHasMixedDisplayContentLoaded) };
- mHasMixedDisplayContentLoaded as u64
- });
- __bindgen_bitfield_unit.set(26usize, 1u8, {
- let mHasMixedDisplayContentBlocked: u8 =
- unsafe { ::std::mem::transmute(mHasMixedDisplayContentBlocked) };
- mHasMixedDisplayContentBlocked as u64
- });
- __bindgen_bitfield_unit.set(27usize, 1u8, {
- let mHasMixedContentObjectSubrequest: u8 =
- unsafe { ::std::mem::transmute(mHasMixedContentObjectSubrequest) };
- mHasMixedContentObjectSubrequest as u64
- });
- __bindgen_bitfield_unit.set(28usize, 1u8, {
- let mHasCSP: u8 = unsafe { ::std::mem::transmute(mHasCSP) };
- mHasCSP as u64
- });
- __bindgen_bitfield_unit.set(29usize, 1u8, {
- let mHasUnsafeEvalCSP: u8 = unsafe { ::std::mem::transmute(mHasUnsafeEvalCSP) };
- mHasUnsafeEvalCSP as u64
- });
- __bindgen_bitfield_unit.set(30usize, 1u8, {
- let mHasUnsafeInlineCSP: u8 = unsafe { ::std::mem::transmute(mHasUnsafeInlineCSP) };
- mHasUnsafeInlineCSP as u64
- });
- __bindgen_bitfield_unit.set(31usize, 1u8, {
- let mHasTrackingContentBlocked: u8 =
- unsafe { ::std::mem::transmute(mHasTrackingContentBlocked) };
- mHasTrackingContentBlocked as u64
- });
- __bindgen_bitfield_unit.set(32usize, 1u8, {
- let mHasTrackingContentLoaded: u8 =
- unsafe { ::std::mem::transmute(mHasTrackingContentLoaded) };
- mHasTrackingContentLoaded as u64
- });
- __bindgen_bitfield_unit.set(33usize, 1u8, {
- let mBFCacheDisallowed: u8 = unsafe { ::std::mem::transmute(mBFCacheDisallowed) };
- mBFCacheDisallowed as u64
- });
- __bindgen_bitfield_unit.set(34usize, 1u8, {
- let mHasHadDefaultView: u8 = unsafe { ::std::mem::transmute(mHasHadDefaultView) };
- mHasHadDefaultView as u64
- });
- __bindgen_bitfield_unit.set(35usize, 1u8, {
- let mStyleSheetChangeEventsEnabled: u8 =
- unsafe { ::std::mem::transmute(mStyleSheetChangeEventsEnabled) };
- mStyleSheetChangeEventsEnabled as u64
- });
- __bindgen_bitfield_unit.set(36usize, 1u8, {
- let mIsSrcdocDocument: u8 = unsafe { ::std::mem::transmute(mIsSrcdocDocument) };
- mIsSrcdocDocument as u64
- });
- __bindgen_bitfield_unit.set(37usize, 1u8, {
- let mDidDocumentOpen: u8 = unsafe { ::std::mem::transmute(mDidDocumentOpen) };
- mDidDocumentOpen as u64
- });
- __bindgen_bitfield_unit.set(38usize, 1u8, {
- let mHasDisplayDocument: u8 = unsafe { ::std::mem::transmute(mHasDisplayDocument) };
- mHasDisplayDocument as u64
- });
- __bindgen_bitfield_unit.set(39usize, 1u8, {
- let mFontFaceSetDirty: u8 = unsafe { ::std::mem::transmute(mFontFaceSetDirty) };
- mFontFaceSetDirty as u64
- });
- __bindgen_bitfield_unit.set(40usize, 1u8, {
- let mGetUserFontSetCalled: u8 =
- unsafe { ::std::mem::transmute(mGetUserFontSetCalled) };
- mGetUserFontSetCalled as u64
- });
- __bindgen_bitfield_unit.set(41usize, 1u8, {
- let mDidFireDOMContentLoaded: u8 =
- unsafe { ::std::mem::transmute(mDidFireDOMContentLoaded) };
- mDidFireDOMContentLoaded as u64
- });
- __bindgen_bitfield_unit.set(42usize, 1u8, {
- let mHasScrollLinkedEffect: u8 =
- unsafe { ::std::mem::transmute(mHasScrollLinkedEffect) };
- mHasScrollLinkedEffect as u64
- });
- __bindgen_bitfield_unit.set(43usize, 1u8, {
- let mFrameRequestCallbacksScheduled: u8 =
- unsafe { ::std::mem::transmute(mFrameRequestCallbacksScheduled) };
- mFrameRequestCallbacksScheduled as u64
- });
- __bindgen_bitfield_unit.set(44usize, 1u8, {
- let mIsTopLevelContentDocument: u8 =
- unsafe { ::std::mem::transmute(mIsTopLevelContentDocument) };
- mIsTopLevelContentDocument as u64
- });
- __bindgen_bitfield_unit.set(45usize, 1u8, {
- let mIsContentDocument: u8 = unsafe { ::std::mem::transmute(mIsContentDocument) };
- mIsContentDocument as u64
- });
- __bindgen_bitfield_unit.set(46usize, 1u8, {
- let mDidCallBeginLoad: u8 = unsafe { ::std::mem::transmute(mDidCallBeginLoad) };
- mDidCallBeginLoad as u64
- });
- __bindgen_bitfield_unit.set(47usize, 1u8, {
- let mBufferingCSPViolations: u8 =
- unsafe { ::std::mem::transmute(mBufferingCSPViolations) };
- mBufferingCSPViolations as u64
- });
- __bindgen_bitfield_unit.set(48usize, 1u8, {
- let mAllowPaymentRequest: u8 =
- unsafe { ::std::mem::transmute(mAllowPaymentRequest) };
- mAllowPaymentRequest as u64
- });
- __bindgen_bitfield_unit.set(49usize, 1u8, {
- let mEncodingMenuDisabled: u8 =
- unsafe { ::std::mem::transmute(mEncodingMenuDisabled) };
- mEncodingMenuDisabled as u64
- });
- __bindgen_bitfield_unit.set(50usize, 1u8, {
- let mIsShadowDOMEnabled: u8 = unsafe { ::std::mem::transmute(mIsShadowDOMEnabled) };
- mIsShadowDOMEnabled as u64
- });
- __bindgen_bitfield_unit.set(51usize, 1u8, {
- let mIsSVGGlyphsDocument: u8 =
- unsafe { ::std::mem::transmute(mIsSVGGlyphsDocument) };
- mIsSVGGlyphsDocument as u64
- });
- __bindgen_bitfield_unit.set(52usize, 1u8, {
- let mAllowUnsafeHTML: u8 = unsafe { ::std::mem::transmute(mAllowUnsafeHTML) };
- mAllowUnsafeHTML as u64
- });
- __bindgen_bitfield_unit.set(53usize, 1u8, {
- let mInDestructor: u8 = unsafe { ::std::mem::transmute(mInDestructor) };
- mInDestructor as u64
- });
- __bindgen_bitfield_unit.set(54usize, 1u8, {
- let mIsGoingAway: u8 = unsafe { ::std::mem::transmute(mIsGoingAway) };
- mIsGoingAway as u64
- });
- __bindgen_bitfield_unit.set(55usize, 1u8, {
- let mInXBLUpdate: u8 = unsafe { ::std::mem::transmute(mInXBLUpdate) };
- mInXBLUpdate as u64
- });
- __bindgen_bitfield_unit.set(56usize, 1u8, {
- let mNeedsReleaseAfterStackRefCntRelease: u8 =
- unsafe { ::std::mem::transmute(mNeedsReleaseAfterStackRefCntRelease) };
- mNeedsReleaseAfterStackRefCntRelease as u64
- });
- __bindgen_bitfield_unit.set(57usize, 1u8, {
- let mStyleSetFilled: u8 = unsafe { ::std::mem::transmute(mStyleSetFilled) };
- mStyleSetFilled as u64
- });
- __bindgen_bitfield_unit.set(58usize, 1u8, {
- let mSSApplicableStateNotificationPending: u8 =
- unsafe { ::std::mem::transmute(mSSApplicableStateNotificationPending) };
- mSSApplicableStateNotificationPending as u64
- });
- __bindgen_bitfield_unit.set(59usize, 1u8, {
- let mMayHaveTitleElement: u8 =
- unsafe { ::std::mem::transmute(mMayHaveTitleElement) };
- mMayHaveTitleElement as u64
- });
- __bindgen_bitfield_unit.set(60usize, 1u8, {
- let mDOMLoadingSet: u8 = unsafe { ::std::mem::transmute(mDOMLoadingSet) };
- mDOMLoadingSet as u64
- });
- __bindgen_bitfield_unit.set(61usize, 1u8, {
- let mDOMInteractiveSet: u8 = unsafe { ::std::mem::transmute(mDOMInteractiveSet) };
- mDOMInteractiveSet as u64
- });
- __bindgen_bitfield_unit.set(62usize, 1u8, {
- let mDOMCompleteSet: u8 = unsafe { ::std::mem::transmute(mDOMCompleteSet) };
- mDOMCompleteSet as u64
- });
- __bindgen_bitfield_unit.set(63usize, 1u8, {
- let mAutoFocusFired: u8 = unsafe { ::std::mem::transmute(mAutoFocusFired) };
- mAutoFocusFired as u64
- });
- __bindgen_bitfield_unit.set(64usize, 1u8, {
- let mScrolledToRefAlready: u8 =
- unsafe { ::std::mem::transmute(mScrolledToRefAlready) };
- mScrolledToRefAlready as u64
- });
- __bindgen_bitfield_unit.set(65usize, 1u8, {
- let mChangeScrollPosWhenScrollingToRef: u8 =
- unsafe { ::std::mem::transmute(mChangeScrollPosWhenScrollingToRef) };
- mChangeScrollPosWhenScrollingToRef as u64
- });
- __bindgen_bitfield_unit.set(66usize, 1u8, {
- let mHasWarnedAboutBoxObjects: u8 =
- unsafe { ::std::mem::transmute(mHasWarnedAboutBoxObjects) };
- mHasWarnedAboutBoxObjects as u64
- });
- __bindgen_bitfield_unit.set(67usize, 1u8, {
- let mDelayFrameLoaderInitialization: u8 =
- unsafe { ::std::mem::transmute(mDelayFrameLoaderInitialization) };
- mDelayFrameLoaderInitialization as u64
- });
- __bindgen_bitfield_unit.set(68usize, 1u8, {
- let mSynchronousDOMContentLoaded: u8 =
- unsafe { ::std::mem::transmute(mSynchronousDOMContentLoaded) };
- mSynchronousDOMContentLoaded as u64
- });
- __bindgen_bitfield_unit.set(69usize, 1u8, {
- let mMaybeServiceWorkerControlled: u8 =
- unsafe { ::std::mem::transmute(mMaybeServiceWorkerControlled) };
- mMaybeServiceWorkerControlled as u64
- });
- __bindgen_bitfield_unit.set(70usize, 1u8, {
- let mValidWidth: u8 = unsafe { ::std::mem::transmute(mValidWidth) };
- mValidWidth as u64
- });
- __bindgen_bitfield_unit.set(71usize, 1u8, {
- let mValidHeight: u8 = unsafe { ::std::mem::transmute(mValidHeight) };
- mValidHeight as u64
- });
- __bindgen_bitfield_unit.set(72usize, 1u8, {
- let mAutoSize: u8 = unsafe { ::std::mem::transmute(mAutoSize) };
- mAutoSize as u64
- });
- __bindgen_bitfield_unit.set(73usize, 1u8, {
- let mAllowZoom: u8 = unsafe { ::std::mem::transmute(mAllowZoom) };
- mAllowZoom as u64
- });
- __bindgen_bitfield_unit.set(74usize, 1u8, {
- let mAllowDoubleTapZoom: u8 = unsafe { ::std::mem::transmute(mAllowDoubleTapZoom) };
- mAllowDoubleTapZoom as u64
- });
- __bindgen_bitfield_unit.set(75usize, 1u8, {
- let mValidScaleFloat: u8 = unsafe { ::std::mem::transmute(mValidScaleFloat) };
- mValidScaleFloat as u64
- });
- __bindgen_bitfield_unit.set(76usize, 1u8, {
- let mValidMaxScale: u8 = unsafe { ::std::mem::transmute(mValidMaxScale) };
- mValidMaxScale as u64
- });
- __bindgen_bitfield_unit.set(77usize, 1u8, {
- let mScaleStrEmpty: u8 = unsafe { ::std::mem::transmute(mScaleStrEmpty) };
- mScaleStrEmpty as u64
- });
- __bindgen_bitfield_unit.set(78usize, 1u8, {
- let mWidthStrEmpty: u8 = unsafe { ::std::mem::transmute(mWidthStrEmpty) };
- mWidthStrEmpty as u64
- });
- __bindgen_bitfield_unit.set(79usize, 1u8, {
- let mParserAborted: u8 = unsafe { ::std::mem::transmute(mParserAborted) };
- mParserAborted as u64
- });
- __bindgen_bitfield_unit.set(80usize, 1u8, {
- let mReportedUseCounters: u8 =
- unsafe { ::std::mem::transmute(mReportedUseCounters) };
- mReportedUseCounters as u64
- });
- __bindgen_bitfield_unit
- }
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsLanguageAtomService {
- pub mLangToGroup: [u64; 4usize],
- pub mLocaleLanguage: root::RefPtr<root::nsAtom>,
- }
- pub type nsLanguageAtomService_Encoding = root::mozilla::Encoding;
- pub type nsLanguageAtomService_NotNull<T> = root::mozilla::NotNull<T>;
- #[test]
- fn bindgen_test_layout_nsLanguageAtomService() {
- assert_eq!(
- ::std::mem::size_of::<nsLanguageAtomService>(),
- 40usize,
- concat!("Size of: ", stringify!(nsLanguageAtomService))
- );
- assert_eq!(
- ::std::mem::align_of::<nsLanguageAtomService>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsLanguageAtomService))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsLanguageAtomService>())).mLangToGroup as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsLanguageAtomService),
- "::",
- stringify!(mLangToGroup)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsLanguageAtomService>())).mLocaleLanguage as *const _
- as usize
- },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsLanguageAtomService),
- "::",
- stringify!(mLocaleLanguage)
- )
- );
- }
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct nsIXPConnect {
+ pub struct nsIWeakReference {
pub _base: root::nsISupports,
+ pub mObject: *mut root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
- pub struct nsIXPConnect_COMTypeInfo {
+ pub struct nsIWeakReference_COMTypeInfo {
pub _address: u8,
}
#[test]
- fn bindgen_test_layout_nsIXPConnect() {
- assert_eq!(
- ::std::mem::size_of::<nsIXPConnect>(),
- 8usize,
- concat!("Size of: ", stringify!(nsIXPConnect))
- );
- assert_eq!(
- ::std::mem::align_of::<nsIXPConnect>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsIXPConnect))
- );
- }
- impl Clone for nsIXPConnect {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub mod xpc {
- #[allow(unused_imports)]
- use self::super::super::root;
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsXBLPrototypeBinding {
- _unused: [u8; 0],
- }
- impl Clone for nsXBLPrototypeBinding {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsBidi {
- _unused: [u8; 0],
- }
- impl Clone for nsBidi {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct gfxTextPerfMetrics {
- _unused: [u8; 0],
- }
- impl Clone for gfxTextPerfMetrics {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsTransitionManager {
- _unused: [u8; 0],
- }
- impl Clone for nsTransitionManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsAnimationManager {
- _unused: [u8; 0],
- }
- impl Clone for nsAnimationManager {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsDeviceContext {
- _unused: [u8; 0],
- }
- impl Clone for nsDeviceContext {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct gfxMissingFontRecorder {
- _unused: [u8; 0],
- }
- impl Clone for gfxMissingFontRecorder {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const kPresContext_DefaultVariableFont_ID: u8 = 0;
- pub const kPresContext_DefaultFixedFont_ID: u8 = 1;
- #[repr(C)]
- pub struct nsPresContext {
- pub _base: root::nsISupports,
- pub _base_1: u64,
- pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
- pub mType: root::nsPresContext_nsPresContextType,
- pub mShell: *mut root::nsIPresShell,
- pub mDocument: root::nsCOMPtr,
- pub mDeviceContext: root::RefPtr<root::nsDeviceContext>,
- pub mEventManager: root::RefPtr<root::mozilla::EventStateManager>,
- pub mRefreshDriver: root::RefPtr<root::nsRefreshDriver>,
- pub mAnimationEventDispatcher: root::RefPtr<root::mozilla::AnimationEventDispatcher>,
- pub mEffectCompositor: root::RefPtr<root::mozilla::EffectCompositor>,
- pub mTransitionManager: root::RefPtr<root::nsTransitionManager>,
- pub mAnimationManager: root::RefPtr<root::nsAnimationManager>,
- pub mRestyleManager: root::RefPtr<root::mozilla::RestyleManager>,
- pub mCounterStyleManager: root::RefPtr<root::mozilla::CounterStyleManager>,
- pub mMedium: *mut root::nsAtom,
- pub mMediaEmulated: root::RefPtr<root::nsAtom>,
- pub mFontFeatureValuesLookup: root::RefPtr<root::gfxFontFeatureValueSet>,
- pub mLinkHandler: *mut root::nsILinkHandler,
- pub mLanguage: root::RefPtr<root::nsAtom>,
- pub mInflationDisabledForShrinkWrap: bool,
- pub mContainer: u64,
- pub mBaseMinFontSize: i32,
- pub mSystemFontScale: f32,
- pub mTextZoom: f32,
- pub mEffectiveTextZoom: f32,
- pub mFullZoom: f32,
- pub mOverrideDPPX: f32,
- pub mLastFontInflationScreenSize: root::gfxSize,
- pub mCurAppUnitsPerDevPixel: i32,
- pub mAutoQualityMinFontSizePixelsPref: i32,
- pub mTheme: root::nsCOMPtr,
- pub mLangService: *mut root::nsLanguageAtomService,
- pub mPrintSettings: root::nsCOMPtr,
- pub mBidiEngine: root::mozilla::UniquePtr<root::nsBidi>,
- pub mTransactions: [u64; 10usize],
- pub mTextPerf: root::nsAutoPtr<root::gfxTextPerfMetrics>,
- pub mMissingFonts: root::nsAutoPtr<root::gfxMissingFontRecorder>,
- pub mVisibleArea: root::nsRect,
- pub mLastResizeEventVisibleArea: root::nsRect,
- pub mPageSize: root::nsSize,
- pub mPageScale: f32,
- pub mPPScale: f32,
- pub mDefaultColor: root::nscolor,
- pub mBackgroundColor: root::nscolor,
- pub mLinkColor: root::nscolor,
- pub mActiveLinkColor: root::nscolor,
- pub mVisitedLinkColor: root::nscolor,
- pub mFocusBackgroundColor: root::nscolor,
- pub mFocusTextColor: root::nscolor,
- pub mBodyTextColor: root::nscolor,
- pub mViewportScrollbarOverrideElement: *mut root::mozilla::dom::Element,
- pub mViewportStyleScrollbar: root::nsPresContext_ScrollbarStyles,
- pub mFocusRingWidth: u8,
- pub mExistThrottledUpdates: bool,
- pub mImageAnimationMode: u16,
- pub mImageAnimationModePref: u16,
- pub mLangGroupFontPrefs: root::nsPresContext_LangGroupFontPrefs,
- pub mFontGroupCacheDirty: bool,
- pub mLanguagesUsed: [u64; 4usize],
- pub mBorderWidthTable: [root::nscoord; 3usize],
- pub mInterruptChecksToSkip: u32,
- pub mElementsRestyled: u64,
- pub mFramesConstructed: u64,
- pub mFramesReflowed: u64,
- pub mReflowStartTime: root::mozilla::TimeStamp,
- pub mFirstNonBlankPaintTime: root::mozilla::TimeStamp,
- pub mFirstClickTime: root::mozilla::TimeStamp,
- pub mFirstKeyTime: root::mozilla::TimeStamp,
- pub mFirstMouseMoveTime: root::mozilla::TimeStamp,
- pub mFirstScrollTime: root::mozilla::TimeStamp,
- pub mInteractionTimeEnabled: bool,
- pub mLastStyleUpdateForAllAnimations: root::mozilla::TimeStamp,
- pub mTelemetryScrollLastY: root::nscoord,
- pub mTelemetryScrollMaxY: root::nscoord,
- pub mTelemetryScrollTotalY: root::nscoord,
- pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 6usize], u8>,
- pub mPendingMediaFeatureValuesChange: [u32; 4usize],
- }
- pub type nsPresContext_Encoding = root::mozilla::Encoding;
- pub type nsPresContext_NotNull<T> = root::mozilla::NotNull<T>;
- pub type nsPresContext_LangGroupFontPrefs = root::mozilla::LangGroupFontPrefs;
- pub type nsPresContext_ScrollbarStyles = root::mozilla::ScrollbarStyles;
- pub type nsPresContext_StaticPresData = root::mozilla::StaticPresData;
- pub type nsPresContext_HasThreadSafeRefCnt = root::mozilla::FalseType;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsPresContext_cycleCollection {
- pub _base: root::nsXPCOMCycleCollectionParticipant,
- }
- #[test]
- fn bindgen_test_layout_nsPresContext_cycleCollection() {
- assert_eq!(
- ::std::mem::size_of::<nsPresContext_cycleCollection>(),
- 16usize,
- concat!("Size of: ", stringify!(nsPresContext_cycleCollection))
- );
- assert_eq!(
- ::std::mem::align_of::<nsPresContext_cycleCollection>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsPresContext_cycleCollection))
- );
- }
- impl Clone for nsPresContext_cycleCollection {
- fn clone(&self) -> Self {
- *self
- }
- }
- pub const nsPresContext_nsPresContextType_eContext_Galley:
- root::nsPresContext_nsPresContextType = 0;
- pub const nsPresContext_nsPresContextType_eContext_PrintPreview:
- root::nsPresContext_nsPresContextType = 1;
- pub const nsPresContext_nsPresContextType_eContext_Print:
- root::nsPresContext_nsPresContextType = 2;
- pub const nsPresContext_nsPresContextType_eContext_PageLayout:
- root::nsPresContext_nsPresContextType = 3;
- pub type nsPresContext_nsPresContextType = u32;
- pub const nsPresContext_InteractionType_eClickInteraction: root::nsPresContext_InteractionType =
- 0;
- pub const nsPresContext_InteractionType_eKeyInteraction: root::nsPresContext_InteractionType =
- 1;
- pub const nsPresContext_InteractionType_eMouseMoveInteraction:
- root::nsPresContext_InteractionType = 2;
- pub const nsPresContext_InteractionType_eScrollInteraction:
- root::nsPresContext_InteractionType = 3;
- pub type nsPresContext_InteractionType = u32;
- /// A class that can be used to temporarily disable reflow interruption.
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsPresContext_InterruptPreventer {
- pub mCtx: *mut root::nsPresContext,
- pub mInterruptsEnabled: bool,
- pub mHasPendingInterrupt: bool,
- }
- #[test]
- fn bindgen_test_layout_nsPresContext_InterruptPreventer() {
- assert_eq!(
- ::std::mem::size_of::<nsPresContext_InterruptPreventer>(),
- 16usize,
- concat!("Size of: ", stringify!(nsPresContext_InterruptPreventer))
- );
- assert_eq!(
- ::std::mem::align_of::<nsPresContext_InterruptPreventer>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsPresContext_InterruptPreventer)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext_InterruptPreventer>())).mCtx as *const _
- as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext_InterruptPreventer),
- "::",
- stringify!(mCtx)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext_InterruptPreventer>())).mInterruptsEnabled
- as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext_InterruptPreventer),
- "::",
- stringify!(mInterruptsEnabled)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext_InterruptPreventer>())).mHasPendingInterrupt
- as *const _ as usize
- },
- 9usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext_InterruptPreventer),
- "::",
- stringify!(mHasPendingInterrupt)
- )
- );
- }
- #[repr(C)]
- #[derive(Debug)]
- pub struct nsPresContext_TransactionInvalidations {
- pub mTransactionId: u64,
- pub mInvalidations: root::nsTArray<root::nsRect>,
- }
- #[test]
- fn bindgen_test_layout_nsPresContext_TransactionInvalidations() {
+ fn bindgen_test_layout_nsIWeakReference() {
assert_eq!(
- ::std::mem::size_of::<nsPresContext_TransactionInvalidations>(),
+ ::std::mem::size_of::<nsIWeakReference>(),
16usize,
- concat!(
- "Size of: ",
- stringify!(nsPresContext_TransactionInvalidations)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsPresContext_TransactionInvalidations>(),
- 8usize,
- concat!(
- "Alignment of ",
- stringify!(nsPresContext_TransactionInvalidations)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext_TransactionInvalidations>())).mTransactionId
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext_TransactionInvalidations),
- "::",
- stringify!(mTransactionId)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext_TransactionInvalidations>())).mInvalidations
- as *const _ as usize
- },
- 8usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext_TransactionInvalidations),
- "::",
- stringify!(mInvalidations)
- )
- );
- }
- extern "C" {
- #[link_name = "\u{1}_ZN13nsPresContext21_cycleCollectorGlobalE"]
- pub static mut nsPresContext__cycleCollectorGlobal: root::nsPresContext_cycleCollection;
- }
- #[test]
- fn bindgen_test_layout_nsPresContext() {
- assert_eq!(
- ::std::mem::size_of::<nsPresContext>(),
- 1392usize,
- concat!("Size of: ", stringify!(nsPresContext))
+ concat!("Size of: ", stringify!(nsIWeakReference))
);
assert_eq!(
- ::std::mem::align_of::<nsPresContext>(),
+ ::std::mem::align_of::<nsIWeakReference>(),
8usize,
- concat!("Alignment of ", stringify!(nsPresContext))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mRefCnt as *const _ as usize },
- 16usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mRefCnt)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mType as *const _ as usize },
- 24usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mType)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mShell as *const _ as usize },
- 32usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mShell)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mDocument as *const _ as usize },
- 40usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mDocument)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mDeviceContext as *const _ as usize
- },
- 48usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mDeviceContext)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mEventManager as *const _ as usize },
- 56usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mEventManager)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mRefreshDriver as *const _ as usize
- },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mRefreshDriver)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mAnimationEventDispatcher as *const _
- as usize
- },
- 72usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mAnimationEventDispatcher)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mEffectCompositor as *const _ as usize
- },
- 80usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mEffectCompositor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mTransitionManager as *const _ as usize
- },
- 88usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTransitionManager)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mAnimationManager as *const _ as usize
- },
- 96usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mAnimationManager)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mRestyleManager as *const _ as usize
- },
- 104usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mRestyleManager)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mCounterStyleManager as *const _ as usize
- },
- 112usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mCounterStyleManager)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mMedium as *const _ as usize },
- 120usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mMedium)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mMediaEmulated as *const _ as usize
- },
- 128usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mMediaEmulated)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFontFeatureValuesLookup as *const _
- as usize
- },
- 136usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFontFeatureValuesLookup)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLinkHandler as *const _ as usize },
- 144usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLinkHandler)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLanguage as *const _ as usize },
- 152usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLanguage)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mInflationDisabledForShrinkWrap
- as *const _ as usize
- },
- 160usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mInflationDisabledForShrinkWrap)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mContainer as *const _ as usize },
- 168usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mContainer)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mBaseMinFontSize as *const _ as usize
- },
- 176usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mBaseMinFontSize)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mSystemFontScale as *const _ as usize
- },
- 180usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mSystemFontScale)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTextZoom as *const _ as usize },
- 184usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTextZoom)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mEffectiveTextZoom as *const _ as usize
- },
- 188usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mEffectiveTextZoom)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFullZoom as *const _ as usize },
- 192usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFullZoom)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mOverrideDPPX as *const _ as usize },
- 196usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mOverrideDPPX)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mLastFontInflationScreenSize as *const _
- as usize
- },
- 200usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLastFontInflationScreenSize)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mCurAppUnitsPerDevPixel as *const _
- as usize
- },
- 216usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mCurAppUnitsPerDevPixel)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mAutoQualityMinFontSizePixelsPref
- as *const _ as usize
- },
- 220usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mAutoQualityMinFontSizePixelsPref)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTheme as *const _ as usize },
- 224usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTheme)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLangService as *const _ as usize },
- 232usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLangService)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mPrintSettings as *const _ as usize
- },
- 240usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mPrintSettings)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mBidiEngine as *const _ as usize },
- 248usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mBidiEngine)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTransactions as *const _ as usize },
- 256usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTransactions)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTextPerf as *const _ as usize },
- 336usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTextPerf)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mMissingFonts as *const _ as usize },
- 344usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mMissingFonts)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mVisibleArea as *const _ as usize },
- 352usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mVisibleArea)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mLastResizeEventVisibleArea as *const _
- as usize
- },
- 368usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLastResizeEventVisibleArea)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPageSize as *const _ as usize },
- 384usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mPageSize)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPageScale as *const _ as usize },
- 392usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mPageScale)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPPScale as *const _ as usize },
- 396usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mPPScale)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mDefaultColor as *const _ as usize },
- 400usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mDefaultColor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mBackgroundColor as *const _ as usize
- },
- 404usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mBackgroundColor)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLinkColor as *const _ as usize },
- 408usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLinkColor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mActiveLinkColor as *const _ as usize
- },
- 412usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mActiveLinkColor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mVisitedLinkColor as *const _ as usize
- },
- 416usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mVisitedLinkColor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFocusBackgroundColor as *const _ as usize
- },
- 420usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFocusBackgroundColor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFocusTextColor as *const _ as usize
- },
- 424usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFocusTextColor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mBodyTextColor as *const _ as usize
- },
- 428usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mBodyTextColor)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mViewportScrollbarOverrideElement
- as *const _ as usize
- },
- 432usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mViewportScrollbarOverrideElement)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mViewportStyleScrollbar as *const _
- as usize
- },
- 440usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mViewportStyleScrollbar)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFocusRingWidth as *const _ as usize
- },
- 504usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFocusRingWidth)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mExistThrottledUpdates as *const _
- as usize
- },
- 505usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mExistThrottledUpdates)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mImageAnimationMode as *const _ as usize
- },
- 506usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mImageAnimationMode)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mImageAnimationModePref as *const _
- as usize
- },
- 508usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mImageAnimationModePref)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mLangGroupFontPrefs as *const _ as usize
- },
- 512usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLangGroupFontPrefs)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFontGroupCacheDirty as *const _ as usize
- },
- 1208usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFontGroupCacheDirty)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mLanguagesUsed as *const _ as usize
- },
- 1216usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLanguagesUsed)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mBorderWidthTable as *const _ as usize
- },
- 1248usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mBorderWidthTable)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mInterruptChecksToSkip as *const _
- as usize
- },
- 1260usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mInterruptChecksToSkip)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mElementsRestyled as *const _ as usize
- },
- 1264usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mElementsRestyled)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFramesConstructed as *const _ as usize
- },
- 1272usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFramesConstructed)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFramesReflowed as *const _ as usize
- },
- 1280usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFramesReflowed)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mReflowStartTime as *const _ as usize
- },
- 1288usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mReflowStartTime)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFirstNonBlankPaintTime as *const _
- as usize
- },
- 1296usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFirstNonBlankPaintTime)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFirstClickTime as *const _ as usize
- },
- 1304usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFirstClickTime)
- )
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFirstKeyTime as *const _ as usize },
- 1312usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFirstKeyTime)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFirstMouseMoveTime as *const _ as usize
- },
- 1320usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFirstMouseMoveTime)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mFirstScrollTime as *const _ as usize
- },
- 1328usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mFirstScrollTime)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mInteractionTimeEnabled as *const _
- as usize
- },
- 1336usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mInteractionTimeEnabled)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mLastStyleUpdateForAllAnimations
- as *const _ as usize
- },
- 1344usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mLastStyleUpdateForAllAnimations)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollLastY as *const _ as usize
- },
- 1352usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTelemetryScrollLastY)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollMaxY as *const _ as usize
- },
- 1356usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTelemetryScrollMaxY)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollTotalY as *const _
- as usize
- },
- 1360usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mTelemetryScrollTotalY)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsPresContext>())).mPendingMediaFeatureValuesChange
- as *const _ as usize
- },
- 1372usize,
- concat!(
- "Offset of field: ",
- stringify!(nsPresContext),
- "::",
- stringify!(mPendingMediaFeatureValuesChange)
- )
- );
- }
- impl nsPresContext {
- #[inline]
- pub fn mHasPendingInterrupt(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mHasPendingInterrupt(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(0usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPendingInterruptFromTest(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPendingInterruptFromTest(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(1usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mInterruptsEnabled(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mInterruptsEnabled(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(2usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mUseDocumentFonts(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mUseDocumentFonts(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(3usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mUseDocumentColors(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mUseDocumentColors(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(4usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mUnderlineLinks(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mUnderlineLinks(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(5usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mSendAfterPaintToContent(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mSendAfterPaintToContent(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(6usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mUseFocusColors(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mUseFocusColors(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(7usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mFocusRingOnAnything(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mFocusRingOnAnything(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(8usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mFocusRingStyle(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mFocusRingStyle(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(9usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDrawImageBackground(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mDrawImageBackground(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(10usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDrawColorBackground(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mDrawColorBackground(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(11usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mNeverAnimate(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mNeverAnimate(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(12usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsRenderingOnlySelection(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mIsRenderingOnlySelection(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(13usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPaginated(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPaginated(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(14usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mCanPaginatedScroll(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mCanPaginatedScroll(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(15usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mDoScaledTwips(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mDoScaledTwips(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(16usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsRootPaginatedDocument(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mIsRootPaginatedDocument(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(17usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPrefBidiDirection(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPrefBidiDirection(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(18usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPrefScrollbarSide(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 2u8) as u32) }
- }
- #[inline]
- pub fn set_mPrefScrollbarSide(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(19usize, 2u8, val as u64)
- }
- }
- #[inline]
- pub fn mPendingSysColorChanged(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPendingSysColorChanged(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(21usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPendingThemeChanged(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPendingThemeChanged(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(22usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPendingUIResolutionChanged(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPendingUIResolutionChanged(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(23usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPrefChangePendingNeedsReflow(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPrefChangePendingNeedsReflow(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(24usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPostedPrefChangedRunnable(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPostedPrefChangedRunnable(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(25usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsEmulatingMedia(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mIsEmulatingMedia(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(26usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsGlyph(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mIsGlyph(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(27usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mUsesRootEMUnits(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mUsesRootEMUnits(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(28usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mUsesExChUnits(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mUsesExChUnits(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(29usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mCounterStylesDirty(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(30usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mFontFeatureValuesDirty(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mFontFeatureValuesDirty(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(31usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mSuppressResizeReflow(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(32usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsVisual(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(33usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsChrome(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(34usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mIsChromeOriginImage(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(35usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(36usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mPaintFlashingInitialized(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(37usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasWarnedAboutPositionedTableParts(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(38usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius(
- &mut self,
- val: ::std::os::raw::c_uint,
- ) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(39usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(40usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(41usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint {
- unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u32) }
- }
- #[inline]
- pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) {
- unsafe {
- let val: u32 = ::std::mem::transmute(val);
- self._bitfield_1.set(42usize, 1u8, val as u64)
- }
- }
- #[inline]
- pub fn new_bitfield_1(
- mHasPendingInterrupt: ::std::os::raw::c_uint,
- mPendingInterruptFromTest: ::std::os::raw::c_uint,
- mInterruptsEnabled: ::std::os::raw::c_uint,
- mUseDocumentFonts: ::std::os::raw::c_uint,
- mUseDocumentColors: ::std::os::raw::c_uint,
- mUnderlineLinks: ::std::os::raw::c_uint,
- mSendAfterPaintToContent: ::std::os::raw::c_uint,
- mUseFocusColors: ::std::os::raw::c_uint,
- mFocusRingOnAnything: ::std::os::raw::c_uint,
- mFocusRingStyle: ::std::os::raw::c_uint,
- mDrawImageBackground: ::std::os::raw::c_uint,
- mDrawColorBackground: ::std::os::raw::c_uint,
- mNeverAnimate: ::std::os::raw::c_uint,
- mIsRenderingOnlySelection: ::std::os::raw::c_uint,
- mPaginated: ::std::os::raw::c_uint,
- mCanPaginatedScroll: ::std::os::raw::c_uint,
- mDoScaledTwips: ::std::os::raw::c_uint,
- mIsRootPaginatedDocument: ::std::os::raw::c_uint,
- mPrefBidiDirection: ::std::os::raw::c_uint,
- mPrefScrollbarSide: ::std::os::raw::c_uint,
- mPendingSysColorChanged: ::std::os::raw::c_uint,
- mPendingThemeChanged: ::std::os::raw::c_uint,
- mPendingUIResolutionChanged: ::std::os::raw::c_uint,
- mPrefChangePendingNeedsReflow: ::std::os::raw::c_uint,
- mPostedPrefChangedRunnable: ::std::os::raw::c_uint,
- mIsEmulatingMedia: ::std::os::raw::c_uint,
- mIsGlyph: ::std::os::raw::c_uint,
- mUsesRootEMUnits: ::std::os::raw::c_uint,
- mUsesExChUnits: ::std::os::raw::c_uint,
- mCounterStylesDirty: ::std::os::raw::c_uint,
- mFontFeatureValuesDirty: ::std::os::raw::c_uint,
- mSuppressResizeReflow: ::std::os::raw::c_uint,
- mIsVisual: ::std::os::raw::c_uint,
- mIsChrome: ::std::os::raw::c_uint,
- mIsChromeOriginImage: ::std::os::raw::c_uint,
- mPaintFlashing: ::std::os::raw::c_uint,
- mPaintFlashingInitialized: ::std::os::raw::c_uint,
- mHasWarnedAboutPositionedTableParts: ::std::os::raw::c_uint,
- mHasWarnedAboutTooLargeDashedOrDottedRadius: ::std::os::raw::c_uint,
- mQuirkSheetAdded: ::std::os::raw::c_uint,
- mNeedsPrefUpdate: ::std::os::raw::c_uint,
- mHadNonBlankPaint: ::std::os::raw::c_uint,
- ) -> root::__BindgenBitfieldUnit<[u8; 6usize], u8> {
- let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
- [u8; 6usize],
- u8,
- > = Default::default();
- __bindgen_bitfield_unit.set(0usize, 1u8, {
- let mHasPendingInterrupt: u32 =
- unsafe { ::std::mem::transmute(mHasPendingInterrupt) };
- mHasPendingInterrupt as u64
- });
- __bindgen_bitfield_unit.set(1usize, 1u8, {
- let mPendingInterruptFromTest: u32 =
- unsafe { ::std::mem::transmute(mPendingInterruptFromTest) };
- mPendingInterruptFromTest as u64
- });
- __bindgen_bitfield_unit.set(2usize, 1u8, {
- let mInterruptsEnabled: u32 = unsafe { ::std::mem::transmute(mInterruptsEnabled) };
- mInterruptsEnabled as u64
- });
- __bindgen_bitfield_unit.set(3usize, 1u8, {
- let mUseDocumentFonts: u32 = unsafe { ::std::mem::transmute(mUseDocumentFonts) };
- mUseDocumentFonts as u64
- });
- __bindgen_bitfield_unit.set(4usize, 1u8, {
- let mUseDocumentColors: u32 = unsafe { ::std::mem::transmute(mUseDocumentColors) };
- mUseDocumentColors as u64
- });
- __bindgen_bitfield_unit.set(5usize, 1u8, {
- let mUnderlineLinks: u32 = unsafe { ::std::mem::transmute(mUnderlineLinks) };
- mUnderlineLinks as u64
- });
- __bindgen_bitfield_unit.set(6usize, 1u8, {
- let mSendAfterPaintToContent: u32 =
- unsafe { ::std::mem::transmute(mSendAfterPaintToContent) };
- mSendAfterPaintToContent as u64
- });
- __bindgen_bitfield_unit.set(7usize, 1u8, {
- let mUseFocusColors: u32 = unsafe { ::std::mem::transmute(mUseFocusColors) };
- mUseFocusColors as u64
- });
- __bindgen_bitfield_unit.set(8usize, 1u8, {
- let mFocusRingOnAnything: u32 =
- unsafe { ::std::mem::transmute(mFocusRingOnAnything) };
- mFocusRingOnAnything as u64
- });
- __bindgen_bitfield_unit.set(9usize, 1u8, {
- let mFocusRingStyle: u32 = unsafe { ::std::mem::transmute(mFocusRingStyle) };
- mFocusRingStyle as u64
- });
- __bindgen_bitfield_unit.set(10usize, 1u8, {
- let mDrawImageBackground: u32 =
- unsafe { ::std::mem::transmute(mDrawImageBackground) };
- mDrawImageBackground as u64
- });
- __bindgen_bitfield_unit.set(11usize, 1u8, {
- let mDrawColorBackground: u32 =
- unsafe { ::std::mem::transmute(mDrawColorBackground) };
- mDrawColorBackground as u64
- });
- __bindgen_bitfield_unit.set(12usize, 1u8, {
- let mNeverAnimate: u32 = unsafe { ::std::mem::transmute(mNeverAnimate) };
- mNeverAnimate as u64
- });
- __bindgen_bitfield_unit.set(13usize, 1u8, {
- let mIsRenderingOnlySelection: u32 =
- unsafe { ::std::mem::transmute(mIsRenderingOnlySelection) };
- mIsRenderingOnlySelection as u64
- });
- __bindgen_bitfield_unit.set(14usize, 1u8, {
- let mPaginated: u32 = unsafe { ::std::mem::transmute(mPaginated) };
- mPaginated as u64
- });
- __bindgen_bitfield_unit.set(15usize, 1u8, {
- let mCanPaginatedScroll: u32 =
- unsafe { ::std::mem::transmute(mCanPaginatedScroll) };
- mCanPaginatedScroll as u64
- });
- __bindgen_bitfield_unit.set(16usize, 1u8, {
- let mDoScaledTwips: u32 = unsafe { ::std::mem::transmute(mDoScaledTwips) };
- mDoScaledTwips as u64
- });
- __bindgen_bitfield_unit.set(17usize, 1u8, {
- let mIsRootPaginatedDocument: u32 =
- unsafe { ::std::mem::transmute(mIsRootPaginatedDocument) };
- mIsRootPaginatedDocument as u64
- });
- __bindgen_bitfield_unit.set(18usize, 1u8, {
- let mPrefBidiDirection: u32 = unsafe { ::std::mem::transmute(mPrefBidiDirection) };
- mPrefBidiDirection as u64
- });
- __bindgen_bitfield_unit.set(19usize, 2u8, {
- let mPrefScrollbarSide: u32 = unsafe { ::std::mem::transmute(mPrefScrollbarSide) };
- mPrefScrollbarSide as u64
- });
- __bindgen_bitfield_unit.set(21usize, 1u8, {
- let mPendingSysColorChanged: u32 =
- unsafe { ::std::mem::transmute(mPendingSysColorChanged) };
- mPendingSysColorChanged as u64
- });
- __bindgen_bitfield_unit.set(22usize, 1u8, {
- let mPendingThemeChanged: u32 =
- unsafe { ::std::mem::transmute(mPendingThemeChanged) };
- mPendingThemeChanged as u64
- });
- __bindgen_bitfield_unit.set(23usize, 1u8, {
- let mPendingUIResolutionChanged: u32 =
- unsafe { ::std::mem::transmute(mPendingUIResolutionChanged) };
- mPendingUIResolutionChanged as u64
- });
- __bindgen_bitfield_unit.set(24usize, 1u8, {
- let mPrefChangePendingNeedsReflow: u32 =
- unsafe { ::std::mem::transmute(mPrefChangePendingNeedsReflow) };
- mPrefChangePendingNeedsReflow as u64
- });
- __bindgen_bitfield_unit.set(25usize, 1u8, {
- let mPostedPrefChangedRunnable: u32 =
- unsafe { ::std::mem::transmute(mPostedPrefChangedRunnable) };
- mPostedPrefChangedRunnable as u64
- });
- __bindgen_bitfield_unit.set(26usize, 1u8, {
- let mIsEmulatingMedia: u32 = unsafe { ::std::mem::transmute(mIsEmulatingMedia) };
- mIsEmulatingMedia as u64
- });
- __bindgen_bitfield_unit.set(27usize, 1u8, {
- let mIsGlyph: u32 = unsafe { ::std::mem::transmute(mIsGlyph) };
- mIsGlyph as u64
- });
- __bindgen_bitfield_unit.set(28usize, 1u8, {
- let mUsesRootEMUnits: u32 = unsafe { ::std::mem::transmute(mUsesRootEMUnits) };
- mUsesRootEMUnits as u64
- });
- __bindgen_bitfield_unit.set(29usize, 1u8, {
- let mUsesExChUnits: u32 = unsafe { ::std::mem::transmute(mUsesExChUnits) };
- mUsesExChUnits as u64
- });
- __bindgen_bitfield_unit.set(30usize, 1u8, {
- let mCounterStylesDirty: u32 =
- unsafe { ::std::mem::transmute(mCounterStylesDirty) };
- mCounterStylesDirty as u64
- });
- __bindgen_bitfield_unit.set(31usize, 1u8, {
- let mFontFeatureValuesDirty: u32 =
- unsafe { ::std::mem::transmute(mFontFeatureValuesDirty) };
- mFontFeatureValuesDirty as u64
- });
- __bindgen_bitfield_unit.set(32usize, 1u8, {
- let mSuppressResizeReflow: u32 =
- unsafe { ::std::mem::transmute(mSuppressResizeReflow) };
- mSuppressResizeReflow as u64
- });
- __bindgen_bitfield_unit.set(33usize, 1u8, {
- let mIsVisual: u32 = unsafe { ::std::mem::transmute(mIsVisual) };
- mIsVisual as u64
- });
- __bindgen_bitfield_unit.set(34usize, 1u8, {
- let mIsChrome: u32 = unsafe { ::std::mem::transmute(mIsChrome) };
- mIsChrome as u64
- });
- __bindgen_bitfield_unit.set(35usize, 1u8, {
- let mIsChromeOriginImage: u32 =
- unsafe { ::std::mem::transmute(mIsChromeOriginImage) };
- mIsChromeOriginImage as u64
- });
- __bindgen_bitfield_unit.set(36usize, 1u8, {
- let mPaintFlashing: u32 = unsafe { ::std::mem::transmute(mPaintFlashing) };
- mPaintFlashing as u64
- });
- __bindgen_bitfield_unit.set(37usize, 1u8, {
- let mPaintFlashingInitialized: u32 =
- unsafe { ::std::mem::transmute(mPaintFlashingInitialized) };
- mPaintFlashingInitialized as u64
- });
- __bindgen_bitfield_unit.set(38usize, 1u8, {
- let mHasWarnedAboutPositionedTableParts: u32 =
- unsafe { ::std::mem::transmute(mHasWarnedAboutPositionedTableParts) };
- mHasWarnedAboutPositionedTableParts as u64
- });
- __bindgen_bitfield_unit.set(39usize, 1u8, {
- let mHasWarnedAboutTooLargeDashedOrDottedRadius: u32 =
- unsafe { ::std::mem::transmute(mHasWarnedAboutTooLargeDashedOrDottedRadius) };
- mHasWarnedAboutTooLargeDashedOrDottedRadius as u64
- });
- __bindgen_bitfield_unit.set(40usize, 1u8, {
- let mQuirkSheetAdded: u32 = unsafe { ::std::mem::transmute(mQuirkSheetAdded) };
- mQuirkSheetAdded as u64
- });
- __bindgen_bitfield_unit.set(41usize, 1u8, {
- let mNeedsPrefUpdate: u32 = unsafe { ::std::mem::transmute(mNeedsPrefUpdate) };
- mNeedsPrefUpdate as u64
- });
- __bindgen_bitfield_unit.set(42usize, 1u8, {
- let mHadNonBlankPaint: u32 = unsafe { ::std::mem::transmute(mHadNonBlankPaint) };
- mHadNonBlankPaint as u64
- });
- __bindgen_bitfield_unit
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsTimingFunction {
- pub mType: root::nsTimingFunction_Type,
- pub __bindgen_anon_1: root::nsTimingFunction__bindgen_ty_1,
- }
- #[repr(i32)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum nsTimingFunction_Type {
- Ease = 0,
- Linear = 1,
- EaseIn = 2,
- EaseOut = 3,
- EaseInOut = 4,
- StepStart = 5,
- StepEnd = 6,
- CubicBezier = 7,
- Frames = 8,
- }
- pub const nsTimingFunction_Keyword_Implicit: root::nsTimingFunction_Keyword = 0;
- pub const nsTimingFunction_Keyword_Explicit: root::nsTimingFunction_Keyword = 1;
- pub type nsTimingFunction_Keyword = i32;
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsTimingFunction__bindgen_ty_1 {
- pub mFunc: root::__BindgenUnionField<root::nsTimingFunction__bindgen_ty_1__bindgen_ty_1>,
- pub __bindgen_anon_1:
- root::__BindgenUnionField<root::nsTimingFunction__bindgen_ty_1__bindgen_ty_2>,
- pub bindgen_union_field: [u32; 4usize],
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsTimingFunction__bindgen_ty_1__bindgen_ty_1 {
- pub mX1: f32,
- pub mY1: f32,
- pub mX2: f32,
- pub mY2: f32,
- }
- #[test]
- fn bindgen_test_layout_nsTimingFunction__bindgen_ty_1__bindgen_ty_1() {
- assert_eq!(
- ::std::mem::size_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>(),
- 16usize,
- concat!(
- "Size of: ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>(),
- 4usize,
- concat!(
- "Alignment of ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mX1
- as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
- "::",
- stringify!(mX1)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mY1
- as *const _ as usize
- },
- 4usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
- "::",
- stringify!(mY1)
- )
+ concat!("Alignment of ", stringify!(nsIWeakReference))
);
assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mX2
- as *const _ as usize
- },
+ unsafe { &(*(::std::ptr::null::<nsIWeakReference>())).mObject as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
- "::",
- stringify!(mX2)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_1>())).mY2
- as *const _ as usize
- },
- 12usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_1),
- "::",
- stringify!(mY2)
- )
- );
- }
- impl Clone for nsTimingFunction__bindgen_ty_1__bindgen_ty_1 {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsTimingFunction__bindgen_ty_1__bindgen_ty_2 {
- pub mStepsOrFrames: u32,
- }
- #[test]
- fn bindgen_test_layout_nsTimingFunction__bindgen_ty_1__bindgen_ty_2() {
- assert_eq!(
- ::std::mem::size_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_2>(),
- 4usize,
- concat!(
- "Size of: ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_2)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<nsTimingFunction__bindgen_ty_1__bindgen_ty_2>(),
- 4usize,
- concat!(
- "Alignment of ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_2)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1__bindgen_ty_2>()))
- .mStepsOrFrames as *const _ as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTimingFunction__bindgen_ty_1__bindgen_ty_2),
- "::",
- stringify!(mStepsOrFrames)
- )
- );
- }
- impl Clone for nsTimingFunction__bindgen_ty_1__bindgen_ty_2 {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_nsTimingFunction__bindgen_ty_1() {
- assert_eq!(
- ::std::mem::size_of::<nsTimingFunction__bindgen_ty_1>(),
- 16usize,
- concat!("Size of: ", stringify!(nsTimingFunction__bindgen_ty_1))
- );
- assert_eq!(
- ::std::mem::align_of::<nsTimingFunction__bindgen_ty_1>(),
- 4usize,
- concat!("Alignment of ", stringify!(nsTimingFunction__bindgen_ty_1))
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsTimingFunction__bindgen_ty_1>())).mFunc as *const _
- as usize
- },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTimingFunction__bindgen_ty_1),
- "::",
- stringify!(mFunc)
- )
- );
- }
- impl Clone for nsTimingFunction__bindgen_ty_1 {
- fn clone(&self) -> Self {
- *self
- }
- }
- #[test]
- fn bindgen_test_layout_nsTimingFunction() {
- assert_eq!(
- ::std::mem::size_of::<nsTimingFunction>(),
- 20usize,
- concat!("Size of: ", stringify!(nsTimingFunction))
- );
- assert_eq!(
- ::std::mem::align_of::<nsTimingFunction>(),
- 4usize,
- concat!("Alignment of ", stringify!(nsTimingFunction))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsTimingFunction>())).mType as *const _ as usize },
- 0usize,
- concat!(
- "Offset of field: ",
- stringify!(nsTimingFunction),
+ stringify!(nsIWeakReference),
"::",
- stringify!(mType)
+ stringify!(mObject)
)
);
}
- impl Clone for nsTimingFunction {
+ impl Clone for nsIWeakReference {
fn clone(&self) -> Self {
*self
}
}
- #[repr(i16)]
- #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
- pub enum nsCSSKeyword {
- eCSSKeyword_UNKNOWN = -1,
- eCSSKeyword__moz_activehyperlinktext = 0,
- eCSSKeyword__moz_all = 1,
- eCSSKeyword__moz_alt_content = 2,
- eCSSKeyword__moz_available = 3,
- eCSSKeyword__moz_box = 4,
- eCSSKeyword__moz_button = 5,
- eCSSKeyword__moz_buttondefault = 6,
- eCSSKeyword__moz_buttonhoverface = 7,
- eCSSKeyword__moz_buttonhovertext = 8,
- eCSSKeyword__moz_cellhighlight = 9,
- eCSSKeyword__moz_cellhighlighttext = 10,
- eCSSKeyword__moz_center = 11,
- eCSSKeyword__moz_combobox = 12,
- eCSSKeyword__moz_comboboxtext = 13,
- eCSSKeyword__moz_context_properties = 14,
- eCSSKeyword__moz_block_height = 15,
- eCSSKeyword__moz_deck = 16,
- eCSSKeyword__moz_default_background_color = 17,
- eCSSKeyword__moz_default_color = 18,
- eCSSKeyword__moz_desktop = 19,
- eCSSKeyword__moz_dialog = 20,
- eCSSKeyword__moz_dialogtext = 21,
- eCSSKeyword__moz_document = 22,
- eCSSKeyword__moz_dragtargetzone = 23,
- eCSSKeyword__moz_element = 24,
- eCSSKeyword__moz_eventreerow = 25,
- eCSSKeyword__moz_field = 26,
- eCSSKeyword__moz_fieldtext = 27,
- eCSSKeyword__moz_fit_content = 28,
- eCSSKeyword__moz_fixed = 29,
- eCSSKeyword__moz_grabbing = 30,
- eCSSKeyword__moz_grab = 31,
- eCSSKeyword__moz_grid_group = 32,
- eCSSKeyword__moz_grid_line = 33,
- eCSSKeyword__moz_grid = 34,
- eCSSKeyword__moz_groupbox = 35,
- eCSSKeyword__moz_gtk_info_bar = 36,
- eCSSKeyword__moz_gtk_info_bar_text = 37,
- eCSSKeyword__moz_hidden_unscrollable = 38,
- eCSSKeyword__moz_hyperlinktext = 39,
- eCSSKeyword__moz_html_cellhighlight = 40,
- eCSSKeyword__moz_html_cellhighlighttext = 41,
- eCSSKeyword__moz_image_rect = 42,
- eCSSKeyword__moz_info = 43,
- eCSSKeyword__moz_inline_box = 44,
- eCSSKeyword__moz_inline_grid = 45,
- eCSSKeyword__moz_inline_stack = 46,
- eCSSKeyword__moz_left = 47,
- eCSSKeyword__moz_list = 48,
- eCSSKeyword__moz_mac_buttonactivetext = 49,
- eCSSKeyword__moz_mac_chrome_active = 50,
- eCSSKeyword__moz_mac_chrome_inactive = 51,
- eCSSKeyword__moz_mac_defaultbuttontext = 52,
- eCSSKeyword__moz_mac_focusring = 53,
- eCSSKeyword__moz_mac_fullscreen_button = 54,
- eCSSKeyword__moz_mac_menuselect = 55,
- eCSSKeyword__moz_mac_menushadow = 56,
- eCSSKeyword__moz_mac_menutextdisable = 57,
- eCSSKeyword__moz_mac_menutextselect = 58,
- eCSSKeyword__moz_mac_disabledtoolbartext = 59,
- eCSSKeyword__moz_mac_secondaryhighlight = 60,
- eCSSKeyword__moz_mac_menuitem = 61,
- eCSSKeyword__moz_mac_active_menuitem = 62,
- eCSSKeyword__moz_mac_menupopup = 63,
- eCSSKeyword__moz_mac_tooltip = 64,
- eCSSKeyword__moz_max_content = 65,
- eCSSKeyword__moz_menuhover = 66,
- eCSSKeyword__moz_menuhovertext = 67,
- eCSSKeyword__moz_menubartext = 68,
- eCSSKeyword__moz_menubarhovertext = 69,
- eCSSKeyword__moz_middle_with_baseline = 70,
- eCSSKeyword__moz_min_content = 71,
- eCSSKeyword__moz_nativehyperlinktext = 72,
- eCSSKeyword__moz_none = 73,
- eCSSKeyword__moz_oddtreerow = 74,
- eCSSKeyword__moz_popup = 75,
- eCSSKeyword__moz_pre_space = 76,
- eCSSKeyword__moz_pull_down_menu = 77,
- eCSSKeyword__moz_right = 78,
- eCSSKeyword__moz_scrollbars_horizontal = 79,
- eCSSKeyword__moz_scrollbars_none = 80,
- eCSSKeyword__moz_scrollbars_vertical = 81,
- eCSSKeyword__moz_stack = 82,
- eCSSKeyword__moz_text = 83,
- eCSSKeyword__moz_use_system_font = 84,
- eCSSKeyword__moz_visitedhyperlinktext = 85,
- eCSSKeyword__moz_window = 86,
- eCSSKeyword__moz_workspace = 87,
- eCSSKeyword__moz_zoom_in = 88,
- eCSSKeyword__moz_zoom_out = 89,
- eCSSKeyword__webkit_box = 90,
- eCSSKeyword__webkit_flex = 91,
- eCSSKeyword__webkit_inline_box = 92,
- eCSSKeyword__webkit_inline_flex = 93,
- eCSSKeyword_absolute = 94,
- eCSSKeyword_active = 95,
- eCSSKeyword_activeborder = 96,
- eCSSKeyword_activecaption = 97,
- eCSSKeyword_add = 98,
- eCSSKeyword_additive = 99,
- eCSSKeyword_alias = 100,
- eCSSKeyword_all = 101,
- eCSSKeyword_all_petite_caps = 102,
- eCSSKeyword_all_scroll = 103,
- eCSSKeyword_all_small_caps = 104,
- eCSSKeyword_alpha = 105,
- eCSSKeyword_alternate = 106,
- eCSSKeyword_alternate_reverse = 107,
- eCSSKeyword_always = 108,
- eCSSKeyword_annotation = 109,
- eCSSKeyword_appworkspace = 110,
- eCSSKeyword_auto = 111,
- eCSSKeyword_auto_fill = 112,
- eCSSKeyword_auto_fit = 113,
- eCSSKeyword_auto_flow = 114,
- eCSSKeyword_avoid = 115,
- eCSSKeyword_background = 116,
- eCSSKeyword_backwards = 117,
- eCSSKeyword_balance = 118,
- eCSSKeyword_baseline = 119,
- eCSSKeyword_bidi_override = 120,
- eCSSKeyword_blink = 121,
- eCSSKeyword_block = 122,
- eCSSKeyword_block_axis = 123,
- eCSSKeyword_blur = 124,
- eCSSKeyword_bold = 125,
- eCSSKeyword_bold_fraktur = 126,
- eCSSKeyword_bold_italic = 127,
- eCSSKeyword_bold_sans_serif = 128,
- eCSSKeyword_bold_script = 129,
- eCSSKeyword_bolder = 130,
- eCSSKeyword_border_box = 131,
- eCSSKeyword_both = 132,
- eCSSKeyword_bottom = 133,
- eCSSKeyword_bottom_outside = 134,
- eCSSKeyword_break_all = 135,
- eCSSKeyword_break_word = 136,
- eCSSKeyword_brightness = 137,
- eCSSKeyword_browser = 138,
- eCSSKeyword_bullets = 139,
- eCSSKeyword_button = 140,
- eCSSKeyword_buttonface = 141,
- eCSSKeyword_buttonhighlight = 142,
- eCSSKeyword_buttonshadow = 143,
- eCSSKeyword_buttontext = 144,
- eCSSKeyword_capitalize = 145,
- eCSSKeyword_caption = 146,
- eCSSKeyword_captiontext = 147,
- eCSSKeyword_cell = 148,
- eCSSKeyword_center = 149,
- eCSSKeyword_ch = 150,
- eCSSKeyword_character_variant = 151,
- eCSSKeyword_circle = 152,
- eCSSKeyword_cjk_decimal = 153,
- eCSSKeyword_clip = 154,
- eCSSKeyword_clone = 155,
- eCSSKeyword_close_quote = 156,
- eCSSKeyword_closest_corner = 157,
- eCSSKeyword_closest_side = 158,
- eCSSKeyword_cm = 159,
- eCSSKeyword_col_resize = 160,
- eCSSKeyword_collapse = 161,
- eCSSKeyword_color = 162,
- eCSSKeyword_color_burn = 163,
- eCSSKeyword_color_dodge = 164,
- eCSSKeyword_common_ligatures = 165,
- eCSSKeyword_column = 166,
- eCSSKeyword_column_reverse = 167,
- eCSSKeyword_condensed = 168,
- eCSSKeyword_contain = 169,
- eCSSKeyword_content_box = 170,
- eCSSKeyword_contents = 171,
- eCSSKeyword_context_fill = 172,
- eCSSKeyword_context_fill_opacity = 173,
- eCSSKeyword_context_menu = 174,
- eCSSKeyword_context_stroke = 175,
- eCSSKeyword_context_stroke_opacity = 176,
- eCSSKeyword_context_value = 177,
- eCSSKeyword_continuous = 178,
- eCSSKeyword_contrast = 179,
- eCSSKeyword_copy = 180,
- eCSSKeyword_contextual = 181,
- eCSSKeyword_cover = 182,
- eCSSKeyword_crop = 183,
- eCSSKeyword_cross = 184,
- eCSSKeyword_crosshair = 185,
- eCSSKeyword_currentcolor = 186,
- eCSSKeyword_cursive = 187,
- eCSSKeyword_cyclic = 188,
- eCSSKeyword_darken = 189,
- eCSSKeyword_dashed = 190,
- eCSSKeyword_dense = 191,
- eCSSKeyword_decimal = 192,
- eCSSKeyword_default = 193,
- eCSSKeyword_deg = 194,
- eCSSKeyword_diagonal_fractions = 195,
- eCSSKeyword_dialog = 196,
- eCSSKeyword_difference = 197,
- eCSSKeyword_digits = 198,
- eCSSKeyword_disabled = 199,
- eCSSKeyword_disc = 200,
- eCSSKeyword_discretionary_ligatures = 201,
- eCSSKeyword_distribute = 202,
- eCSSKeyword_dot = 203,
- eCSSKeyword_dotted = 204,
- eCSSKeyword_double = 205,
- eCSSKeyword_double_circle = 206,
- eCSSKeyword_double_struck = 207,
- eCSSKeyword_drag = 208,
- eCSSKeyword_drop_shadow = 209,
- eCSSKeyword_e_resize = 210,
- eCSSKeyword_ease = 211,
- eCSSKeyword_ease_in = 212,
- eCSSKeyword_ease_in_out = 213,
- eCSSKeyword_ease_out = 214,
- eCSSKeyword_economy = 215,
- eCSSKeyword_element = 216,
- eCSSKeyword_elements = 217,
- eCSSKeyword_ellipse = 218,
- eCSSKeyword_ellipsis = 219,
- eCSSKeyword_em = 220,
- eCSSKeyword_embed = 221,
- eCSSKeyword_enabled = 222,
- eCSSKeyword_end = 223,
- eCSSKeyword_ex = 224,
- eCSSKeyword_exact = 225,
- eCSSKeyword_exclude = 226,
- eCSSKeyword_exclusion = 227,
- eCSSKeyword_expanded = 228,
- eCSSKeyword_extends = 229,
- eCSSKeyword_extra_condensed = 230,
- eCSSKeyword_extra_expanded = 231,
- eCSSKeyword_ew_resize = 232,
- eCSSKeyword_fallback = 233,
- eCSSKeyword_fantasy = 234,
- eCSSKeyword_farthest_side = 235,
- eCSSKeyword_farthest_corner = 236,
- eCSSKeyword_fill = 237,
- eCSSKeyword_filled = 238,
- eCSSKeyword_fill_box = 239,
- eCSSKeyword_first = 240,
- eCSSKeyword_fit_content = 241,
- eCSSKeyword_fixed = 242,
- eCSSKeyword_flat = 243,
- eCSSKeyword_flex = 244,
- eCSSKeyword_flex_end = 245,
- eCSSKeyword_flex_start = 246,
- eCSSKeyword_flip = 247,
- eCSSKeyword_flow_root = 248,
- eCSSKeyword_forwards = 249,
- eCSSKeyword_fraktur = 250,
- eCSSKeyword_frames = 251,
- eCSSKeyword_from_image = 252,
- eCSSKeyword_full_width = 253,
- eCSSKeyword_fullscreen = 254,
- eCSSKeyword_grab = 255,
- eCSSKeyword_grabbing = 256,
- eCSSKeyword_grad = 257,
- eCSSKeyword_grayscale = 258,
- eCSSKeyword_graytext = 259,
- eCSSKeyword_grid = 260,
- eCSSKeyword_groove = 261,
- eCSSKeyword_hard_light = 262,
- eCSSKeyword_help = 263,
- eCSSKeyword_hidden = 264,
- eCSSKeyword_hide = 265,
- eCSSKeyword_highlight = 266,
- eCSSKeyword_highlighttext = 267,
- eCSSKeyword_historical_forms = 268,
- eCSSKeyword_historical_ligatures = 269,
- eCSSKeyword_horizontal = 270,
- eCSSKeyword_horizontal_tb = 271,
- eCSSKeyword_hue = 272,
- eCSSKeyword_hue_rotate = 273,
- eCSSKeyword_hz = 274,
- eCSSKeyword_icon = 275,
- eCSSKeyword_ignore = 276,
- eCSSKeyword_ignore_horizontal = 277,
- eCSSKeyword_ignore_vertical = 278,
- eCSSKeyword_in = 279,
- eCSSKeyword_interlace = 280,
- eCSSKeyword_inactive = 281,
- eCSSKeyword_inactiveborder = 282,
- eCSSKeyword_inactivecaption = 283,
- eCSSKeyword_inactivecaptiontext = 284,
- eCSSKeyword_infinite = 285,
- eCSSKeyword_infobackground = 286,
- eCSSKeyword_infotext = 287,
- eCSSKeyword_inherit = 288,
- eCSSKeyword_initial = 289,
- eCSSKeyword_inline = 290,
- eCSSKeyword_inline_axis = 291,
- eCSSKeyword_inline_block = 292,
- eCSSKeyword_inline_end = 293,
- eCSSKeyword_inline_flex = 294,
- eCSSKeyword_inline_grid = 295,
- eCSSKeyword_inline_start = 296,
- eCSSKeyword_inline_table = 297,
- eCSSKeyword_inset = 298,
- eCSSKeyword_inside = 299,
- eCSSKeyword_inter_character = 300,
- eCSSKeyword_inter_word = 301,
- eCSSKeyword_interpolatematrix = 302,
- eCSSKeyword_accumulatematrix = 303,
- eCSSKeyword_intersect = 304,
- eCSSKeyword_isolate = 305,
- eCSSKeyword_isolate_override = 306,
- eCSSKeyword_invert = 307,
- eCSSKeyword_italic = 308,
- eCSSKeyword_jis78 = 309,
- eCSSKeyword_jis83 = 310,
- eCSSKeyword_jis90 = 311,
- eCSSKeyword_jis04 = 312,
- eCSSKeyword_justify = 313,
- eCSSKeyword_keep_all = 314,
- eCSSKeyword_khz = 315,
- eCSSKeyword_landscape = 316,
- eCSSKeyword_large = 317,
- eCSSKeyword_larger = 318,
- eCSSKeyword_last = 319,
- eCSSKeyword_last_baseline = 320,
- eCSSKeyword_layout = 321,
- eCSSKeyword_left = 322,
- eCSSKeyword_legacy = 323,
- eCSSKeyword_lighten = 324,
- eCSSKeyword_lighter = 325,
- eCSSKeyword_line_through = 326,
- eCSSKeyword_linear = 327,
- eCSSKeyword_lining_nums = 328,
- eCSSKeyword_list_item = 329,
- eCSSKeyword_local = 330,
- eCSSKeyword_logical = 331,
- eCSSKeyword_looped = 332,
- eCSSKeyword_lowercase = 333,
- eCSSKeyword_lr = 334,
- eCSSKeyword_lr_tb = 335,
- eCSSKeyword_ltr = 336,
- eCSSKeyword_luminance = 337,
- eCSSKeyword_luminosity = 338,
- eCSSKeyword_mandatory = 339,
- eCSSKeyword_manipulation = 340,
- eCSSKeyword_manual = 341,
- eCSSKeyword_margin_box = 342,
- eCSSKeyword_markers = 343,
- eCSSKeyword_match_parent = 344,
- eCSSKeyword_match_source = 345,
- eCSSKeyword_matrix = 346,
- eCSSKeyword_matrix3d = 347,
- eCSSKeyword_max_content = 348,
- eCSSKeyword_medium = 349,
- eCSSKeyword_menu = 350,
- eCSSKeyword_menutext = 351,
- eCSSKeyword_message_box = 352,
- eCSSKeyword_middle = 353,
- eCSSKeyword_min_content = 354,
- eCSSKeyword_minmax = 355,
- eCSSKeyword_mix = 356,
- eCSSKeyword_mixed = 357,
- eCSSKeyword_mm = 358,
- eCSSKeyword_monospace = 359,
- eCSSKeyword_move = 360,
- eCSSKeyword_ms = 361,
- eCSSKeyword_multiply = 362,
- eCSSKeyword_n_resize = 363,
- eCSSKeyword_narrower = 364,
- eCSSKeyword_ne_resize = 365,
- eCSSKeyword_nesw_resize = 366,
- eCSSKeyword_no_clip = 367,
- eCSSKeyword_no_close_quote = 368,
- eCSSKeyword_no_common_ligatures = 369,
- eCSSKeyword_no_contextual = 370,
- eCSSKeyword_no_discretionary_ligatures = 371,
- eCSSKeyword_no_drag = 372,
- eCSSKeyword_no_drop = 373,
- eCSSKeyword_no_historical_ligatures = 374,
- eCSSKeyword_no_open_quote = 375,
- eCSSKeyword_no_repeat = 376,
- eCSSKeyword_none = 377,
- eCSSKeyword_normal = 378,
- eCSSKeyword_not_allowed = 379,
- eCSSKeyword_nowrap = 380,
- eCSSKeyword_numeric = 381,
- eCSSKeyword_ns_resize = 382,
- eCSSKeyword_nw_resize = 383,
- eCSSKeyword_nwse_resize = 384,
- eCSSKeyword_oblique = 385,
- eCSSKeyword_oldstyle_nums = 386,
- eCSSKeyword_opacity = 387,
- eCSSKeyword_open = 388,
- eCSSKeyword_open_quote = 389,
- eCSSKeyword_optional = 390,
- eCSSKeyword_ordinal = 391,
- eCSSKeyword_ornaments = 392,
- eCSSKeyword_outset = 393,
- eCSSKeyword_outside = 394,
- eCSSKeyword_over = 395,
- eCSSKeyword_overlay = 396,
- eCSSKeyword_overline = 397,
- eCSSKeyword_paint = 398,
- eCSSKeyword_padding_box = 399,
- eCSSKeyword_painted = 400,
- eCSSKeyword_pan_x = 401,
- eCSSKeyword_pan_y = 402,
- eCSSKeyword_paused = 403,
- eCSSKeyword_pc = 404,
- eCSSKeyword_perspective = 405,
- eCSSKeyword_petite_caps = 406,
- eCSSKeyword_physical = 407,
- eCSSKeyword_plaintext = 408,
- eCSSKeyword_pointer = 409,
- eCSSKeyword_polygon = 410,
- eCSSKeyword_portrait = 411,
- eCSSKeyword_pre = 412,
- eCSSKeyword_pre_wrap = 413,
- eCSSKeyword_pre_line = 414,
- eCSSKeyword_preserve_3d = 415,
- eCSSKeyword_progress = 416,
- eCSSKeyword_progressive = 417,
- eCSSKeyword_proportional_nums = 418,
- eCSSKeyword_proportional_width = 419,
- eCSSKeyword_proximity = 420,
- eCSSKeyword_pt = 421,
- eCSSKeyword_px = 422,
- eCSSKeyword_rad = 423,
- eCSSKeyword_read_only = 424,
- eCSSKeyword_read_write = 425,
- eCSSKeyword_relative = 426,
- eCSSKeyword_repeat = 427,
- eCSSKeyword_repeat_x = 428,
- eCSSKeyword_repeat_y = 429,
- eCSSKeyword_reverse = 430,
- eCSSKeyword_ridge = 431,
- eCSSKeyword_right = 432,
- eCSSKeyword_rl = 433,
- eCSSKeyword_rl_tb = 434,
- eCSSKeyword_rotate = 435,
- eCSSKeyword_rotate3d = 436,
- eCSSKeyword_rotatex = 437,
- eCSSKeyword_rotatey = 438,
- eCSSKeyword_rotatez = 439,
- eCSSKeyword_round = 440,
- eCSSKeyword_row = 441,
- eCSSKeyword_row_resize = 442,
- eCSSKeyword_row_reverse = 443,
- eCSSKeyword_rtl = 444,
- eCSSKeyword_ruby = 445,
- eCSSKeyword_ruby_base = 446,
- eCSSKeyword_ruby_base_container = 447,
- eCSSKeyword_ruby_text = 448,
- eCSSKeyword_ruby_text_container = 449,
- eCSSKeyword_running = 450,
- eCSSKeyword_s = 451,
- eCSSKeyword_s_resize = 452,
- eCSSKeyword_safe = 453,
- eCSSKeyword_saturate = 454,
- eCSSKeyword_saturation = 455,
- eCSSKeyword_scale = 456,
- eCSSKeyword_scale_down = 457,
- eCSSKeyword_scale3d = 458,
- eCSSKeyword_scalex = 459,
- eCSSKeyword_scaley = 460,
- eCSSKeyword_scalez = 461,
- eCSSKeyword_screen = 462,
- eCSSKeyword_script = 463,
- eCSSKeyword_scroll = 464,
- eCSSKeyword_scrollbar = 465,
- eCSSKeyword_scrollbar_small = 466,
- eCSSKeyword_scrollbar_horizontal = 467,
- eCSSKeyword_scrollbar_vertical = 468,
- eCSSKeyword_se_resize = 469,
- eCSSKeyword_select_after = 470,
- eCSSKeyword_select_all = 471,
- eCSSKeyword_select_before = 472,
- eCSSKeyword_select_menu = 473,
- eCSSKeyword_select_same = 474,
- eCSSKeyword_self_end = 475,
- eCSSKeyword_self_start = 476,
- eCSSKeyword_semi_condensed = 477,
- eCSSKeyword_semi_expanded = 478,
- eCSSKeyword_separate = 479,
- eCSSKeyword_sepia = 480,
- eCSSKeyword_serif = 481,
- eCSSKeyword_sesame = 482,
- eCSSKeyword_show = 483,
- eCSSKeyword_sideways = 484,
- eCSSKeyword_sideways_lr = 485,
- eCSSKeyword_sideways_right = 486,
- eCSSKeyword_sideways_rl = 487,
- eCSSKeyword_simplified = 488,
- eCSSKeyword_skew = 489,
- eCSSKeyword_skewx = 490,
- eCSSKeyword_skewy = 491,
- eCSSKeyword_slashed_zero = 492,
- eCSSKeyword_slice = 493,
- eCSSKeyword_small = 494,
- eCSSKeyword_small_caps = 495,
- eCSSKeyword_small_caption = 496,
- eCSSKeyword_smaller = 497,
- eCSSKeyword_smooth = 498,
- eCSSKeyword_soft = 499,
- eCSSKeyword_soft_light = 500,
- eCSSKeyword_solid = 501,
- eCSSKeyword_space_around = 502,
- eCSSKeyword_space_between = 503,
- eCSSKeyword_space_evenly = 504,
- eCSSKeyword_span = 505,
- eCSSKeyword_spell_out = 506,
- eCSSKeyword_square = 507,
- eCSSKeyword_stacked_fractions = 508,
- eCSSKeyword_start = 509,
- eCSSKeyword_static = 510,
- eCSSKeyword_standalone = 511,
- eCSSKeyword_status_bar = 512,
- eCSSKeyword_step_end = 513,
- eCSSKeyword_step_start = 514,
- eCSSKeyword_sticky = 515,
- eCSSKeyword_stretch = 516,
- eCSSKeyword_stretch_to_fit = 517,
- eCSSKeyword_stretched = 518,
- eCSSKeyword_strict = 519,
- eCSSKeyword_stroke = 520,
- eCSSKeyword_stroke_box = 521,
- eCSSKeyword_style = 522,
- eCSSKeyword_styleset = 523,
- eCSSKeyword_stylistic = 524,
- eCSSKeyword_sub = 525,
- eCSSKeyword_subgrid = 526,
- eCSSKeyword_subtract = 527,
- eCSSKeyword_super = 528,
- eCSSKeyword_sw_resize = 529,
- eCSSKeyword_swash = 530,
- eCSSKeyword_swap = 531,
- eCSSKeyword_table = 532,
- eCSSKeyword_table_caption = 533,
- eCSSKeyword_table_cell = 534,
- eCSSKeyword_table_column = 535,
- eCSSKeyword_table_column_group = 536,
- eCSSKeyword_table_footer_group = 537,
- eCSSKeyword_table_header_group = 538,
- eCSSKeyword_table_row = 539,
- eCSSKeyword_table_row_group = 540,
- eCSSKeyword_tabular_nums = 541,
- eCSSKeyword_tailed = 542,
- eCSSKeyword_tb = 543,
- eCSSKeyword_tb_rl = 544,
- eCSSKeyword_text = 545,
- eCSSKeyword_text_bottom = 546,
- eCSSKeyword_text_top = 547,
- eCSSKeyword_thick = 548,
- eCSSKeyword_thin = 549,
- eCSSKeyword_threeddarkshadow = 550,
- eCSSKeyword_threedface = 551,
- eCSSKeyword_threedhighlight = 552,
- eCSSKeyword_threedlightshadow = 553,
- eCSSKeyword_threedshadow = 554,
- eCSSKeyword_titling_caps = 555,
- eCSSKeyword_toggle = 556,
- eCSSKeyword_top = 557,
- eCSSKeyword_top_outside = 558,
- eCSSKeyword_traditional = 559,
- eCSSKeyword_translate = 560,
- eCSSKeyword_translate3d = 561,
- eCSSKeyword_translatex = 562,
- eCSSKeyword_translatey = 563,
- eCSSKeyword_translatez = 564,
- eCSSKeyword_transparent = 565,
- eCSSKeyword_triangle = 566,
- eCSSKeyword_tri_state = 567,
- eCSSKeyword_ultra_condensed = 568,
- eCSSKeyword_ultra_expanded = 569,
- eCSSKeyword_under = 570,
- eCSSKeyword_underline = 571,
- eCSSKeyword_unicase = 572,
- eCSSKeyword_unsafe = 573,
- eCSSKeyword_unset = 574,
- eCSSKeyword_uppercase = 575,
- eCSSKeyword_upright = 576,
- eCSSKeyword_vertical = 577,
- eCSSKeyword_vertical_lr = 578,
- eCSSKeyword_vertical_rl = 579,
- eCSSKeyword_vertical_text = 580,
- eCSSKeyword_view_box = 581,
- eCSSKeyword_visible = 582,
- eCSSKeyword_visiblefill = 583,
- eCSSKeyword_visiblepainted = 584,
- eCSSKeyword_visiblestroke = 585,
- eCSSKeyword_w_resize = 586,
- eCSSKeyword_wait = 587,
- eCSSKeyword_wavy = 588,
- eCSSKeyword_weight = 589,
- eCSSKeyword_wider = 590,
- eCSSKeyword_window = 591,
- eCSSKeyword_windowframe = 592,
- eCSSKeyword_windowtext = 593,
- eCSSKeyword_words = 594,
- eCSSKeyword_wrap = 595,
- eCSSKeyword_wrap_reverse = 596,
- eCSSKeyword_write_only = 597,
- eCSSKeyword_x_large = 598,
- eCSSKeyword_x_small = 599,
- eCSSKeyword_xx_large = 600,
- eCSSKeyword_xx_small = 601,
- eCSSKeyword_zoom_in = 602,
- eCSSKeyword_zoom_out = 603,
- eCSSKeyword_radio = 604,
- eCSSKeyword_checkbox = 605,
- eCSSKeyword_button_bevel = 606,
- eCSSKeyword_toolbox = 607,
- eCSSKeyword_toolbar = 608,
- eCSSKeyword_toolbarbutton = 609,
- eCSSKeyword_toolbargripper = 610,
- eCSSKeyword_dualbutton = 611,
- eCSSKeyword_toolbarbutton_dropdown = 612,
- eCSSKeyword_button_arrow_up = 613,
- eCSSKeyword_button_arrow_down = 614,
- eCSSKeyword_button_arrow_next = 615,
- eCSSKeyword_button_arrow_previous = 616,
- eCSSKeyword_separator = 617,
- eCSSKeyword_splitter = 618,
- eCSSKeyword_statusbar = 619,
- eCSSKeyword_statusbarpanel = 620,
- eCSSKeyword_resizerpanel = 621,
- eCSSKeyword_resizer = 622,
- eCSSKeyword_listbox = 623,
- eCSSKeyword_listitem = 624,
- eCSSKeyword_numbers = 625,
- eCSSKeyword_number_input = 626,
- eCSSKeyword_treeview = 627,
- eCSSKeyword_treeitem = 628,
- eCSSKeyword_treetwisty = 629,
- eCSSKeyword_treetwistyopen = 630,
- eCSSKeyword_treeline = 631,
- eCSSKeyword_treeheader = 632,
- eCSSKeyword_treeheadercell = 633,
- eCSSKeyword_treeheadersortarrow = 634,
- eCSSKeyword_progressbar = 635,
- eCSSKeyword_progressbar_vertical = 636,
- eCSSKeyword_progresschunk = 637,
- eCSSKeyword_progresschunk_vertical = 638,
- eCSSKeyword_tab = 639,
- eCSSKeyword_tabpanels = 640,
- eCSSKeyword_tabpanel = 641,
- eCSSKeyword_tab_scroll_arrow_back = 642,
- eCSSKeyword_tab_scroll_arrow_forward = 643,
- eCSSKeyword_tooltip = 644,
- eCSSKeyword_inner_spin_button = 645,
- eCSSKeyword_spinner = 646,
- eCSSKeyword_spinner_upbutton = 647,
- eCSSKeyword_spinner_downbutton = 648,
- eCSSKeyword_spinner_textfield = 649,
- eCSSKeyword_scrollbarbutton_up = 650,
- eCSSKeyword_scrollbarbutton_down = 651,
- eCSSKeyword_scrollbarbutton_left = 652,
- eCSSKeyword_scrollbarbutton_right = 653,
- eCSSKeyword_scrollbartrack_horizontal = 654,
- eCSSKeyword_scrollbartrack_vertical = 655,
- eCSSKeyword_scrollbarthumb_horizontal = 656,
- eCSSKeyword_scrollbarthumb_vertical = 657,
- eCSSKeyword_sheet = 658,
- eCSSKeyword_textfield = 659,
- eCSSKeyword_textfield_multiline = 660,
- eCSSKeyword_caret = 661,
- eCSSKeyword_searchfield = 662,
- eCSSKeyword_menubar = 663,
- eCSSKeyword_menupopup = 664,
- eCSSKeyword_menuitem = 665,
- eCSSKeyword_checkmenuitem = 666,
- eCSSKeyword_radiomenuitem = 667,
- eCSSKeyword_menucheckbox = 668,
- eCSSKeyword_menuradio = 669,
- eCSSKeyword_menuseparator = 670,
- eCSSKeyword_menuarrow = 671,
- eCSSKeyword_menuimage = 672,
- eCSSKeyword_menuitemtext = 673,
- eCSSKeyword_menulist = 674,
- eCSSKeyword_menulist_button = 675,
- eCSSKeyword_menulist_text = 676,
- eCSSKeyword_menulist_textfield = 677,
- eCSSKeyword_meterbar = 678,
- eCSSKeyword_meterchunk = 679,
- eCSSKeyword_minimal_ui = 680,
- eCSSKeyword_range = 681,
- eCSSKeyword_range_thumb = 682,
- eCSSKeyword_sans_serif = 683,
- eCSSKeyword_sans_serif_bold_italic = 684,
- eCSSKeyword_sans_serif_italic = 685,
- eCSSKeyword_scale_horizontal = 686,
- eCSSKeyword_scale_vertical = 687,
- eCSSKeyword_scalethumb_horizontal = 688,
- eCSSKeyword_scalethumb_vertical = 689,
- eCSSKeyword_scalethumbstart = 690,
- eCSSKeyword_scalethumbend = 691,
- eCSSKeyword_scalethumbtick = 692,
- eCSSKeyword_groupbox = 693,
- eCSSKeyword_checkbox_container = 694,
- eCSSKeyword_radio_container = 695,
- eCSSKeyword_checkbox_label = 696,
- eCSSKeyword_radio_label = 697,
- eCSSKeyword_button_focus = 698,
- eCSSKeyword__moz_win_media_toolbox = 699,
- eCSSKeyword__moz_win_communications_toolbox = 700,
- eCSSKeyword__moz_win_browsertabbar_toolbox = 701,
- eCSSKeyword__moz_win_accentcolor = 702,
- eCSSKeyword__moz_win_accentcolortext = 703,
- eCSSKeyword__moz_win_mediatext = 704,
- eCSSKeyword__moz_win_communicationstext = 705,
- eCSSKeyword__moz_win_glass = 706,
- eCSSKeyword__moz_win_borderless_glass = 707,
- eCSSKeyword__moz_window_titlebar = 708,
- eCSSKeyword__moz_window_titlebar_maximized = 709,
- eCSSKeyword__moz_window_frame_left = 710,
- eCSSKeyword__moz_window_frame_right = 711,
- eCSSKeyword__moz_window_frame_bottom = 712,
- eCSSKeyword__moz_window_button_close = 713,
- eCSSKeyword__moz_window_button_minimize = 714,
- eCSSKeyword__moz_window_button_maximize = 715,
- eCSSKeyword__moz_window_button_restore = 716,
- eCSSKeyword__moz_window_button_box = 717,
- eCSSKeyword__moz_window_button_box_maximized = 718,
- eCSSKeyword__moz_mac_help_button = 719,
- eCSSKeyword__moz_win_exclude_glass = 720,
- eCSSKeyword__moz_mac_vibrancy_light = 721,
- eCSSKeyword__moz_mac_vibrancy_dark = 722,
- eCSSKeyword__moz_mac_vibrant_titlebar_light = 723,
- eCSSKeyword__moz_mac_vibrant_titlebar_dark = 724,
- eCSSKeyword__moz_mac_disclosure_button_closed = 725,
- eCSSKeyword__moz_mac_disclosure_button_open = 726,
- eCSSKeyword__moz_mac_source_list = 727,
- eCSSKeyword__moz_mac_source_list_selection = 728,
- eCSSKeyword__moz_mac_active_source_list_selection = 729,
- eCSSKeyword_alphabetic = 730,
- eCSSKeyword_bevel = 731,
- eCSSKeyword_butt = 732,
- eCSSKeyword_central = 733,
- eCSSKeyword_crispedges = 734,
- eCSSKeyword_evenodd = 735,
- eCSSKeyword_geometricprecision = 736,
- eCSSKeyword_hanging = 737,
- eCSSKeyword_ideographic = 738,
- eCSSKeyword_linearrgb = 739,
- eCSSKeyword_mathematical = 740,
- eCSSKeyword_miter = 741,
- eCSSKeyword_no_change = 742,
- eCSSKeyword_non_scaling_stroke = 743,
- eCSSKeyword_nonzero = 744,
- eCSSKeyword_optimizelegibility = 745,
- eCSSKeyword_optimizequality = 746,
- eCSSKeyword_optimizespeed = 747,
- eCSSKeyword_reset_size = 748,
- eCSSKeyword_srgb = 749,
- eCSSKeyword_symbolic = 750,
- eCSSKeyword_symbols = 751,
- eCSSKeyword_text_after_edge = 752,
- eCSSKeyword_text_before_edge = 753,
- eCSSKeyword_use_script = 754,
- eCSSKeyword__moz_crisp_edges = 755,
- eCSSKeyword_space = 756,
- eCSSKeyword_COUNT = 757,
- }
- pub const nsStyleStructID_nsStyleStructID_None: root::nsStyleStructID = -1;
- pub const nsStyleStructID_nsStyleStructID_Inherited_Start: root::nsStyleStructID = 0;
- pub const nsStyleStructID_nsStyleStructID_DUMMY1: root::nsStyleStructID = -1;
- pub const nsStyleStructID_eStyleStruct_Font: root::nsStyleStructID = 0;
- pub const nsStyleStructID_eStyleStruct_Color: root::nsStyleStructID = 1;
- pub const nsStyleStructID_eStyleStruct_List: root::nsStyleStructID = 2;
- pub const nsStyleStructID_eStyleStruct_Text: root::nsStyleStructID = 3;
- pub const nsStyleStructID_eStyleStruct_Visibility: root::nsStyleStructID = 4;
- pub const nsStyleStructID_eStyleStruct_UserInterface: root::nsStyleStructID = 5;
- pub const nsStyleStructID_eStyleStruct_TableBorder: root::nsStyleStructID = 6;
- pub const nsStyleStructID_eStyleStruct_SVG: root::nsStyleStructID = 7;
- pub const nsStyleStructID_eStyleStruct_Variables: root::nsStyleStructID = 8;
- pub const nsStyleStructID_nsStyleStructID_Reset_Start: root::nsStyleStructID = 9;
- pub const nsStyleStructID_nsStyleStructID_DUMMY2: root::nsStyleStructID = 8;
- pub const nsStyleStructID_eStyleStruct_Background: root::nsStyleStructID = 9;
- pub const nsStyleStructID_eStyleStruct_Position: root::nsStyleStructID = 10;
- pub const nsStyleStructID_eStyleStruct_TextReset: root::nsStyleStructID = 11;
- pub const nsStyleStructID_eStyleStruct_Display: root::nsStyleStructID = 12;
- pub const nsStyleStructID_eStyleStruct_Content: root::nsStyleStructID = 13;
- pub const nsStyleStructID_eStyleStruct_UIReset: root::nsStyleStructID = 14;
- pub const nsStyleStructID_eStyleStruct_Table: root::nsStyleStructID = 15;
- pub const nsStyleStructID_eStyleStruct_Margin: root::nsStyleStructID = 16;
- pub const nsStyleStructID_eStyleStruct_Padding: root::nsStyleStructID = 17;
- pub const nsStyleStructID_eStyleStruct_Border: root::nsStyleStructID = 18;
- pub const nsStyleStructID_eStyleStruct_Outline: root::nsStyleStructID = 19;
- pub const nsStyleStructID_eStyleStruct_XUL: root::nsStyleStructID = 20;
- pub const nsStyleStructID_eStyleStruct_SVGReset: root::nsStyleStructID = 21;
- pub const nsStyleStructID_eStyleStruct_Column: root::nsStyleStructID = 22;
- pub const nsStyleStructID_eStyleStruct_Effects: root::nsStyleStructID = 23;
- pub const nsStyleStructID_nsStyleStructID_Length: root::nsStyleStructID = 24;
- pub const nsStyleStructID_nsStyleStructID_Inherited_Count: root::nsStyleStructID = 9;
- pub const nsStyleStructID_nsStyleStructID_Reset_Count: root::nsStyleStructID = 15;
- pub type nsStyleStructID = i32;
+ pub type nsWeakPtr = root::nsCOMPtr;
pub const nsStyleAnimType_eStyleAnimType_Custom: root::nsStyleAnimType = 0;
pub const nsStyleAnimType_eStyleAnimType_Coord: root::nsStyleAnimType = 1;
pub const nsStyleAnimType_eStyleAnimType_Sides_Top: root::nsStyleAnimType = 2;
@@ -29108,10 +19229,6 @@ pub mod root {
pub static mut nsCSSProps_kAnimTypeTable: [root::nsStyleAnimType; 327usize];
}
extern "C" {
- #[link_name = "\u{1}_ZN10nsCSSProps23kStyleStructOffsetTableE"]
- pub static mut nsCSSProps_kStyleStructOffsetTable: [isize; 327usize];
- }
- extern "C" {
#[link_name = "\u{1}_ZN10nsCSSProps11kFlagsTableE"]
pub static mut nsCSSProps_kFlagsTable: [u32; 376usize];
}
@@ -29124,27 +19241,6 @@ pub mod root {
pub static mut nsCSSProps_kSubpropertyTable: [*const root::nsCSSPropertyID; 49usize];
}
extern "C" {
- #[link_name = "\u{1}_ZN10nsCSSProps26gShorthandsContainingTableE"]
- pub static mut nsCSSProps_gShorthandsContainingTable:
- [*mut root::nsCSSPropertyID; 327usize];
- }
- extern "C" {
- #[link_name = "\u{1}_ZN10nsCSSProps25gShorthandsContainingPoolE"]
- pub static mut nsCSSProps_gShorthandsContainingPool: *mut root::nsCSSPropertyID;
- }
- extern "C" {
- #[link_name = "\u{1}_ZN10nsCSSProps22gPropertyCountInStructE"]
- pub static mut nsCSSProps_gPropertyCountInStruct: [usize; 24usize];
- }
- extern "C" {
- #[link_name = "\u{1}_ZN10nsCSSProps22gPropertyIndexInStructE"]
- pub static mut nsCSSProps_gPropertyIndexInStruct: [usize; 327usize];
- }
- extern "C" {
- #[link_name = "\u{1}_ZN10nsCSSProps18kLogicalGroupTableE"]
- pub static mut nsCSSProps_kLogicalGroupTable: [*const root::nsCSSPropertyID; 9usize];
- }
- extern "C" {
#[link_name = "\u{1}_ZN10nsCSSProps16gPropertyEnabledE"]
pub static mut nsCSSProps_gPropertyEnabled: [bool; 486usize];
}
@@ -29879,6 +19975,10 @@ pub mod root {
pub static mut nsCSSProps_kWidthKTable: [root::nsCSSProps_KTableEntry; 0usize];
}
extern "C" {
+ #[link_name = "\u{1}_ZN10nsCSSProps16kFlexBasisKTableE"]
+ pub static mut nsCSSProps_kFlexBasisKTable: [root::nsCSSProps_KTableEntry; 0usize];
+ }
+ extern "C" {
#[link_name = "\u{1}_ZN10nsCSSProps21kWindowDraggingKTableE"]
pub static mut nsCSSProps_kWindowDraggingKTable: [root::nsCSSProps_KTableEntry; 0usize];
}
@@ -29912,6 +20012,213 @@ pub mod root {
*self
}
}
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIRunnable {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIRunnable_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIRunnable() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIRunnable>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIRunnable))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIRunnable>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIRunnable))
+ );
+ }
+ impl Clone for nsIRunnable {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIEventTarget {
+ pub _base: root::nsISupports,
+ pub mVirtualThread: *mut root::PRThread,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIEventTarget_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsIEventTarget_DISPATCH_NORMAL: root::nsIEventTarget__bindgen_ty_1 = 0;
+ pub const nsIEventTarget_DISPATCH_SYNC: root::nsIEventTarget__bindgen_ty_1 = 1;
+ pub const nsIEventTarget_DISPATCH_AT_END: root::nsIEventTarget__bindgen_ty_1 = 2;
+ pub type nsIEventTarget__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_nsIEventTarget() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIEventTarget>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsIEventTarget))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIEventTarget>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIEventTarget))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIEventTarget>())).mVirtualThread as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIEventTarget),
+ "::",
+ stringify!(mVirtualThread)
+ )
+ );
+ }
+ impl Clone for nsIEventTarget {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsISerialEventTarget {
+ pub _base: root::nsIEventTarget,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsISerialEventTarget_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsISerialEventTarget() {
+ assert_eq!(
+ ::std::mem::size_of::<nsISerialEventTarget>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsISerialEventTarget))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsISerialEventTarget>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsISerialEventTarget))
+ );
+ }
+ impl Clone for nsISerialEventTarget {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsICancelableRunnable {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsICancelableRunnable_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsICancelableRunnable() {
+ assert_eq!(
+ ::std::mem::size_of::<nsICancelableRunnable>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsICancelableRunnable))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsICancelableRunnable>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsICancelableRunnable))
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsINamed {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsINamed_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsINamed() {
+ assert_eq!(
+ ::std::mem::size_of::<nsINamed>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsINamed))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsINamed>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsINamed))
+ );
+ }
+ impl Clone for nsINamed {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// The signature of the timer callback function passed to initWithFuncCallback.
+ /// This is the function that will get called when the timer expires if the
+ /// timer is initialized via initWithFuncCallback.
+ ///
+ /// @param aTimer the timer which has expired
+ /// @param aClosure opaque parameter passed to initWithFuncCallback
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsITimer {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsITimer_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsITimer_TYPE_ONE_SHOT: root::nsITimer__bindgen_ty_1 = 0;
+ pub const nsITimer_TYPE_REPEATING_SLACK: root::nsITimer__bindgen_ty_1 = 1;
+ pub const nsITimer_TYPE_REPEATING_PRECISE: root::nsITimer__bindgen_ty_1 = 2;
+ pub const nsITimer_TYPE_REPEATING_PRECISE_CAN_SKIP: root::nsITimer__bindgen_ty_1 = 3;
+ pub const nsITimer_TYPE_REPEATING_SLACK_LOW_PRIORITY: root::nsITimer__bindgen_ty_1 = 4;
+ pub const nsITimer_TYPE_ONE_SHOT_LOW_PRIORITY: root::nsITimer__bindgen_ty_1 = 5;
+ pub type nsITimer__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_nsITimer() {
+ assert_eq!(
+ ::std::mem::size_of::<nsITimer>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsITimer))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsITimer>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsITimer))
+ );
+ }
+ impl Clone for nsITimer {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type nsRunnableMethod_BaseType = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsRunnableMethod_ReturnTypeEnforcer {
+ pub _address: u8,
+ }
+ pub type nsRunnableMethod_ReturnTypeEnforcer_ReturnTypeIsSafe = ::std::os::raw::c_int;
+ pub type nsRunnableMethod_check = root::nsRunnableMethod_ReturnTypeEnforcer;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsRevocableEventPtr<T> {
+ pub mEvent: root::RefPtr<T>,
+ pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
+ }
/// Class to safely handle main-thread-only pointers off the main thread.
///
/// Classes like XPCWrappedJS are main-thread-only, which means that it is
@@ -29965,6 +20272,85 @@ pub mod root {
pub mPtr: root::RefPtr<root::nsMainThreadPtrHolder<T>>,
pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
}
+ /// the private nsTHashtable::EntryType class used by nsBaseHashtable
+ /// @see nsTHashtable for the specification of this class
+ /// @see nsBaseHashtable for template parameters
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsBaseHashtableET<KeyClass, DataType> {
+ pub _base: KeyClass,
+ pub mData: DataType,
+ pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>,
+ pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>,
+ }
+ pub type nsBaseHashtableET_KeyType = [u8; 0usize];
+ pub type nsBaseHashtableET_KeyTypePointer = [u8; 0usize];
+ /// templated hashtable for simple data types
+ /// This class manages simple data types that do not need construction or
+ /// destruction.
+ ///
+ /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
+ /// for a complete specification.
+ /// @param DataType the datatype stored in the hashtable,
+ /// for example, uint32_t or nsCOMPtr. If UserDataType is not the same,
+ /// DataType must implicitly cast to UserDataType
+ /// @param UserDataType the user sees, for example uint32_t or nsISupports*
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsBaseHashtable {
+ pub _address: u8,
+ }
+ pub type nsBaseHashtable_fallible_t = root::mozilla::fallible_t;
+ pub type nsBaseHashtable_KeyType = [u8; 0usize];
+ pub type nsBaseHashtable_EntryType<KeyClass, DataType> =
+ root::nsBaseHashtableET<KeyClass, DataType>;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsBaseHashtable_LookupResult<KeyClass, DataType> {
+ pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>,
+ pub mTable: *mut u8,
+ pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>,
+ pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>,
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsBaseHashtable_EntryPtr<KeyClass, DataType> {
+ pub mEntry: *mut root::nsBaseHashtable_EntryType<KeyClass, DataType>,
+ pub mExistingEntry: bool,
+ pub mTable: *mut u8,
+ pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<KeyClass>>,
+ pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<DataType>>,
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsBaseHashtable_Iterator {
+ pub _base: root::PLDHashTable_Iterator,
+ }
+ pub type nsBaseHashtable_Iterator_Base = root::PLDHashTable_Iterator;
+ /// templated hashtable class maps keys to reference pointers.
+ /// See nsBaseHashtable for complete declaration.
+ /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
+ /// for a complete specification.
+ /// @param PtrType the reference-type being wrapped
+ /// @see nsDataHashtable, nsClassHashtable
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsRefPtrHashtable {
+ pub _address: u8,
+ }
+ pub type nsRefPtrHashtable_KeyType = [u8; 0usize];
+ pub type nsRefPtrHashtable_UserDataType<PtrType> = *mut PtrType;
+ pub type nsRefPtrHashtable_base_type = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RustString {
+ _unused: [u8; 0],
+ }
+ impl Clone for RustString {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsCSSUnit {
@@ -31330,6 +21716,50 @@ pub mod root {
)
);
}
+ pub type nsLoadFlags = u32;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIRequest {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIRequest_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsIRequest_LOAD_REQUESTMASK: root::nsIRequest__bindgen_ty_1 = 65535;
+ pub const nsIRequest_LOAD_NORMAL: root::nsIRequest__bindgen_ty_1 = 0;
+ pub const nsIRequest_LOAD_BACKGROUND: root::nsIRequest__bindgen_ty_1 = 1;
+ pub const nsIRequest_LOAD_HTML_OBJECT_DATA: root::nsIRequest__bindgen_ty_1 = 2;
+ pub const nsIRequest_LOAD_DOCUMENT_NEEDS_COOKIE: root::nsIRequest__bindgen_ty_1 = 4;
+ pub const nsIRequest_INHIBIT_CACHING: root::nsIRequest__bindgen_ty_1 = 128;
+ pub const nsIRequest_INHIBIT_PERSISTENT_CACHING: root::nsIRequest__bindgen_ty_1 = 256;
+ pub const nsIRequest_LOAD_BYPASS_CACHE: root::nsIRequest__bindgen_ty_1 = 512;
+ pub const nsIRequest_LOAD_FROM_CACHE: root::nsIRequest__bindgen_ty_1 = 1024;
+ pub const nsIRequest_VALIDATE_ALWAYS: root::nsIRequest__bindgen_ty_1 = 2048;
+ pub const nsIRequest_VALIDATE_NEVER: root::nsIRequest__bindgen_ty_1 = 4096;
+ pub const nsIRequest_VALIDATE_ONCE_PER_SESSION: root::nsIRequest__bindgen_ty_1 = 8192;
+ pub const nsIRequest_LOAD_ANONYMOUS: root::nsIRequest__bindgen_ty_1 = 16384;
+ pub const nsIRequest_LOAD_FRESH_CONNECTION: root::nsIRequest__bindgen_ty_1 = 32768;
+ pub type nsIRequest__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_nsIRequest() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIRequest>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIRequest))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIRequest>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIRequest))
+ );
+ }
+ impl Clone for nsIRequest {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct imgIContainer {
@@ -31415,6 +21845,34 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
+ pub struct nsILoadGroup {
+ pub _base: root::nsIRequest,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsILoadGroup_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsILoadGroup() {
+ assert_eq!(
+ ::std::mem::size_of::<nsILoadGroup>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsILoadGroup))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsILoadGroup>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsILoadGroup))
+ );
+ }
+ impl Clone for nsILoadGroup {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
pub struct nsISupportsPriority {
pub _base: root::nsISupports,
}
@@ -31477,6 +21935,532 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
+ pub struct nsIChannelEventSink {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIChannelEventSink_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsIChannelEventSink_REDIRECT_TEMPORARY: root::nsIChannelEventSink__bindgen_ty_1 = 1;
+ pub const nsIChannelEventSink_REDIRECT_PERMANENT: root::nsIChannelEventSink__bindgen_ty_1 = 2;
+ pub const nsIChannelEventSink_REDIRECT_INTERNAL: root::nsIChannelEventSink__bindgen_ty_1 = 4;
+ pub const nsIChannelEventSink_REDIRECT_STS_UPGRADE: root::nsIChannelEventSink__bindgen_ty_1 = 8;
+ pub type nsIChannelEventSink__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_nsIChannelEventSink() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIChannelEventSink>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIChannelEventSink))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIChannelEventSink>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIChannelEventSink))
+ );
+ }
+ impl Clone for nsIChannelEventSink {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIInterfaceRequestor {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIInterfaceRequestor_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIInterfaceRequestor() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIInterfaceRequestor>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIInterfaceRequestor))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIInterfaceRequestor>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIInterfaceRequestor))
+ );
+ }
+ impl Clone for nsIInterfaceRequestor {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIRequestObserver {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIRequestObserver_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIRequestObserver() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIRequestObserver>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIRequestObserver))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIRequestObserver>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIRequestObserver))
+ );
+ }
+ impl Clone for nsIRequestObserver {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIStreamListener {
+ pub _base: root::nsIRequestObserver,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIStreamListener_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIStreamListener() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIStreamListener>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIStreamListener))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIStreamListener>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIStreamListener))
+ );
+ }
+ impl Clone for nsIStreamListener {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIContentPolicy {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIContentPolicy_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsIContentPolicy_TYPE_INVALID: root::nsIContentPolicy__bindgen_ty_1 = 0;
+ pub const nsIContentPolicy_TYPE_OTHER: root::nsIContentPolicy__bindgen_ty_1 = 1;
+ pub const nsIContentPolicy_TYPE_SCRIPT: root::nsIContentPolicy__bindgen_ty_1 = 2;
+ pub const nsIContentPolicy_TYPE_IMAGE: root::nsIContentPolicy__bindgen_ty_1 = 3;
+ pub const nsIContentPolicy_TYPE_STYLESHEET: root::nsIContentPolicy__bindgen_ty_1 = 4;
+ pub const nsIContentPolicy_TYPE_OBJECT: root::nsIContentPolicy__bindgen_ty_1 = 5;
+ pub const nsIContentPolicy_TYPE_DOCUMENT: root::nsIContentPolicy__bindgen_ty_1 = 6;
+ pub const nsIContentPolicy_TYPE_SUBDOCUMENT: root::nsIContentPolicy__bindgen_ty_1 = 7;
+ pub const nsIContentPolicy_TYPE_REFRESH: root::nsIContentPolicy__bindgen_ty_1 = 8;
+ pub const nsIContentPolicy_TYPE_XBL: root::nsIContentPolicy__bindgen_ty_1 = 9;
+ pub const nsIContentPolicy_TYPE_PING: root::nsIContentPolicy__bindgen_ty_1 = 10;
+ pub const nsIContentPolicy_TYPE_XMLHTTPREQUEST: root::nsIContentPolicy__bindgen_ty_1 = 11;
+ pub const nsIContentPolicy_TYPE_DATAREQUEST: root::nsIContentPolicy__bindgen_ty_1 = 11;
+ pub const nsIContentPolicy_TYPE_OBJECT_SUBREQUEST: root::nsIContentPolicy__bindgen_ty_1 = 12;
+ pub const nsIContentPolicy_TYPE_DTD: root::nsIContentPolicy__bindgen_ty_1 = 13;
+ pub const nsIContentPolicy_TYPE_FONT: root::nsIContentPolicy__bindgen_ty_1 = 14;
+ pub const nsIContentPolicy_TYPE_MEDIA: root::nsIContentPolicy__bindgen_ty_1 = 15;
+ pub const nsIContentPolicy_TYPE_WEBSOCKET: root::nsIContentPolicy__bindgen_ty_1 = 16;
+ pub const nsIContentPolicy_TYPE_CSP_REPORT: root::nsIContentPolicy__bindgen_ty_1 = 17;
+ pub const nsIContentPolicy_TYPE_XSLT: root::nsIContentPolicy__bindgen_ty_1 = 18;
+ pub const nsIContentPolicy_TYPE_BEACON: root::nsIContentPolicy__bindgen_ty_1 = 19;
+ pub const nsIContentPolicy_TYPE_FETCH: root::nsIContentPolicy__bindgen_ty_1 = 20;
+ pub const nsIContentPolicy_TYPE_IMAGESET: root::nsIContentPolicy__bindgen_ty_1 = 21;
+ pub const nsIContentPolicy_TYPE_WEB_MANIFEST: root::nsIContentPolicy__bindgen_ty_1 = 22;
+ pub const nsIContentPolicy_TYPE_INTERNAL_SCRIPT: root::nsIContentPolicy__bindgen_ty_1 = 23;
+ pub const nsIContentPolicy_TYPE_INTERNAL_WORKER: root::nsIContentPolicy__bindgen_ty_1 = 24;
+ pub const nsIContentPolicy_TYPE_INTERNAL_SHARED_WORKER: root::nsIContentPolicy__bindgen_ty_1 =
+ 25;
+ pub const nsIContentPolicy_TYPE_INTERNAL_EMBED: root::nsIContentPolicy__bindgen_ty_1 = 26;
+ pub const nsIContentPolicy_TYPE_INTERNAL_OBJECT: root::nsIContentPolicy__bindgen_ty_1 = 27;
+ pub const nsIContentPolicy_TYPE_INTERNAL_FRAME: root::nsIContentPolicy__bindgen_ty_1 = 28;
+ pub const nsIContentPolicy_TYPE_INTERNAL_IFRAME: root::nsIContentPolicy__bindgen_ty_1 = 29;
+ pub const nsIContentPolicy_TYPE_INTERNAL_AUDIO: root::nsIContentPolicy__bindgen_ty_1 = 30;
+ pub const nsIContentPolicy_TYPE_INTERNAL_VIDEO: root::nsIContentPolicy__bindgen_ty_1 = 31;
+ pub const nsIContentPolicy_TYPE_INTERNAL_TRACK: root::nsIContentPolicy__bindgen_ty_1 = 32;
+ pub const nsIContentPolicy_TYPE_INTERNAL_XMLHTTPREQUEST: root::nsIContentPolicy__bindgen_ty_1 =
+ 33;
+ pub const nsIContentPolicy_TYPE_INTERNAL_EVENTSOURCE: root::nsIContentPolicy__bindgen_ty_1 = 34;
+ pub const nsIContentPolicy_TYPE_INTERNAL_SERVICE_WORKER: root::nsIContentPolicy__bindgen_ty_1 =
+ 35;
+ pub const nsIContentPolicy_TYPE_INTERNAL_SCRIPT_PRELOAD: root::nsIContentPolicy__bindgen_ty_1 =
+ 36;
+ pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE: root::nsIContentPolicy__bindgen_ty_1 = 37;
+ pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE_PRELOAD: root::nsIContentPolicy__bindgen_ty_1 =
+ 38;
+ pub const nsIContentPolicy_TYPE_INTERNAL_STYLESHEET: root::nsIContentPolicy__bindgen_ty_1 = 39;
+ pub const nsIContentPolicy_TYPE_INTERNAL_STYLESHEET_PRELOAD:
+ root::nsIContentPolicy__bindgen_ty_1 = 40;
+ pub const nsIContentPolicy_TYPE_INTERNAL_IMAGE_FAVICON: root::nsIContentPolicy__bindgen_ty_1 =
+ 41;
+ pub const nsIContentPolicy_TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS:
+ root::nsIContentPolicy__bindgen_ty_1 = 42;
+ pub const nsIContentPolicy_TYPE_SAVEAS_DOWNLOAD: root::nsIContentPolicy__bindgen_ty_1 = 43;
+ pub const nsIContentPolicy_TYPE_SPECULATIVE: root::nsIContentPolicy__bindgen_ty_1 = 44;
+ pub const nsIContentPolicy_REJECT_REQUEST: root::nsIContentPolicy__bindgen_ty_1 = -1;
+ pub const nsIContentPolicy_REJECT_TYPE: root::nsIContentPolicy__bindgen_ty_1 = -2;
+ pub const nsIContentPolicy_REJECT_SERVER: root::nsIContentPolicy__bindgen_ty_1 = -3;
+ pub const nsIContentPolicy_REJECT_OTHER: root::nsIContentPolicy__bindgen_ty_1 = -4;
+ pub const nsIContentPolicy_ACCEPT: root::nsIContentPolicy__bindgen_ty_1 = 1;
+ pub type nsIContentPolicy__bindgen_ty_1 = i32;
+ #[test]
+ fn bindgen_test_layout_nsIContentPolicy() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIContentPolicy>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIContentPolicy))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIContentPolicy>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIContentPolicy))
+ );
+ }
+ impl Clone for nsIContentPolicy {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// Base class that implements parts shared by JSErrorReport and
+ /// JSErrorNotes::Note.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct JSErrorBase {
+ pub message_: root::JS::ConstUTF8CharsZ,
+ pub filename: *const ::std::os::raw::c_char,
+ pub lineno: ::std::os::raw::c_uint,
+ pub column: ::std::os::raw::c_uint,
+ pub errorNumber: ::std::os::raw::c_uint,
+ pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 1usize], u8>,
+ pub __bindgen_padding_0: [u8; 3usize],
+ }
+ #[test]
+ fn bindgen_test_layout_JSErrorBase() {
+ assert_eq!(
+ ::std::mem::size_of::<JSErrorBase>(),
+ 32usize,
+ concat!("Size of: ", stringify!(JSErrorBase))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<JSErrorBase>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(JSErrorBase))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<JSErrorBase>())).message_ as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(JSErrorBase),
+ "::",
+ stringify!(message_)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<JSErrorBase>())).filename as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(JSErrorBase),
+ "::",
+ stringify!(filename)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<JSErrorBase>())).lineno as *const _ as usize },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(JSErrorBase),
+ "::",
+ stringify!(lineno)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<JSErrorBase>())).column as *const _ as usize },
+ 20usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(JSErrorBase),
+ "::",
+ stringify!(column)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<JSErrorBase>())).errorNumber as *const _ as usize },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(JSErrorBase),
+ "::",
+ stringify!(errorNumber)
+ )
+ );
+ }
+ impl JSErrorBase {
+ #[inline]
+ pub fn ownsMessage_(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_ownsMessage_(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(0usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn new_bitfield_1(ownsMessage_: bool) -> root::__BindgenBitfieldUnit<[u8; 1usize], u8> {
+ let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
+ [u8; 1usize],
+ u8,
+ > = Default::default();
+ __bindgen_bitfield_unit.set(0usize, 1u8, {
+ let ownsMessage_: u8 = unsafe { ::std::mem::transmute(ownsMessage_) };
+ ownsMessage_ as u64
+ });
+ __bindgen_bitfield_unit
+ }
+ }
+ /// Notes associated with JSErrorReport.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct JSErrorNotes {
+ pub notes_: [u64; 4usize],
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct JSErrorNotes_Note {
+ pub _base: root::JSErrorBase,
+ }
+ #[test]
+ fn bindgen_test_layout_JSErrorNotes_Note() {
+ assert_eq!(
+ ::std::mem::size_of::<JSErrorNotes_Note>(),
+ 32usize,
+ concat!("Size of: ", stringify!(JSErrorNotes_Note))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<JSErrorNotes_Note>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(JSErrorNotes_Note))
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct JSErrorNotes_iterator {
+ pub note_: *mut root::mozilla::UniquePtr<root::JSErrorNotes_Note>,
+ }
+ #[test]
+ fn bindgen_test_layout_JSErrorNotes_iterator() {
+ assert_eq!(
+ ::std::mem::size_of::<JSErrorNotes_iterator>(),
+ 8usize,
+ concat!("Size of: ", stringify!(JSErrorNotes_iterator))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<JSErrorNotes_iterator>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(JSErrorNotes_iterator))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<JSErrorNotes_iterator>())).note_ as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(JSErrorNotes_iterator),
+ "::",
+ stringify!(note_)
+ )
+ );
+ }
+ #[test]
+ fn bindgen_test_layout_JSErrorNotes() {
+ assert_eq!(
+ ::std::mem::size_of::<JSErrorNotes>(),
+ 32usize,
+ concat!("Size of: ", stringify!(JSErrorNotes))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<JSErrorNotes>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(JSErrorNotes))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<JSErrorNotes>())).notes_ as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(JSErrorNotes),
+ "::",
+ stringify!(notes_)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct ProfilerBacktrace {
+ _unused: [u8; 0],
+ }
+ impl Clone for ProfilerBacktrace {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct ProfilerMarkerPayload {
+ _unused: [u8; 0],
+ }
+ impl Clone for ProfilerMarkerPayload {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct ProfilerBacktraceDestructor {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_ProfilerBacktraceDestructor() {
+ assert_eq!(
+ ::std::mem::size_of::<ProfilerBacktraceDestructor>(),
+ 1usize,
+ concat!("Size of: ", stringify!(ProfilerBacktraceDestructor))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<ProfilerBacktraceDestructor>(),
+ 1usize,
+ concat!("Alignment of ", stringify!(ProfilerBacktraceDestructor))
+ );
+ }
+ impl Clone for ProfilerBacktraceDestructor {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type UniqueProfilerBacktrace = root::mozilla::UniquePtr<root::ProfilerBacktrace>;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIDocShell {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIDocShell {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIScriptSecurityManager {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIScriptSecurityManager_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsIScriptSecurityManager_STANDARD: root::nsIScriptSecurityManager__bindgen_ty_1 = 0;
+ pub const nsIScriptSecurityManager_LOAD_IS_AUTOMATIC_DOCUMENT_REPLACEMENT:
+ root::nsIScriptSecurityManager__bindgen_ty_1 = 1;
+ pub const nsIScriptSecurityManager_ALLOW_CHROME: root::nsIScriptSecurityManager__bindgen_ty_1 =
+ 2;
+ pub const nsIScriptSecurityManager_DISALLOW_INHERIT_PRINCIPAL:
+ root::nsIScriptSecurityManager__bindgen_ty_1 = 4;
+ pub const nsIScriptSecurityManager_DISALLOW_SCRIPT_OR_DATA:
+ root::nsIScriptSecurityManager__bindgen_ty_1 = 4;
+ pub const nsIScriptSecurityManager_DISALLOW_SCRIPT:
+ root::nsIScriptSecurityManager__bindgen_ty_1 = 8;
+ pub const nsIScriptSecurityManager_DONT_REPORT_ERRORS:
+ root::nsIScriptSecurityManager__bindgen_ty_1 = 16;
+ pub type nsIScriptSecurityManager__bindgen_ty_1 = u32;
+ pub const nsIScriptSecurityManager_NO_APP_ID: root::nsIScriptSecurityManager__bindgen_ty_2 = 0;
+ pub const nsIScriptSecurityManager_UNKNOWN_APP_ID:
+ root::nsIScriptSecurityManager__bindgen_ty_2 = 4294967295;
+ pub const nsIScriptSecurityManager_DEFAULT_USER_CONTEXT_ID:
+ root::nsIScriptSecurityManager__bindgen_ty_2 = 0;
+ pub type nsIScriptSecurityManager__bindgen_ty_2 = u32;
+ #[test]
+ fn bindgen_test_layout_nsIScriptSecurityManager() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIScriptSecurityManager>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIScriptSecurityManager))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIScriptSecurityManager>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIScriptSecurityManager))
+ );
+ }
+ impl Clone for nsIScriptSecurityManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIChannel {
+ pub _base: root::nsIRequest,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIChannel_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsIChannel_LOAD_DOCUMENT_URI: root::nsIChannel__bindgen_ty_1 = 65536;
+ pub const nsIChannel_LOAD_RETARGETED_DOCUMENT_URI: root::nsIChannel__bindgen_ty_1 = 131072;
+ pub const nsIChannel_LOAD_REPLACE: root::nsIChannel__bindgen_ty_1 = 262144;
+ pub const nsIChannel_LOAD_INITIAL_DOCUMENT_URI: root::nsIChannel__bindgen_ty_1 = 524288;
+ pub const nsIChannel_LOAD_TARGETED: root::nsIChannel__bindgen_ty_1 = 1048576;
+ pub const nsIChannel_LOAD_CALL_CONTENT_SNIFFERS: root::nsIChannel__bindgen_ty_1 = 2097152;
+ pub const nsIChannel_LOAD_CLASSIFY_URI: root::nsIChannel__bindgen_ty_1 = 4194304;
+ pub const nsIChannel_LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE: root::nsIChannel__bindgen_ty_1 =
+ 8388608;
+ pub const nsIChannel_LOAD_EXPLICIT_CREDENTIALS: root::nsIChannel__bindgen_ty_1 = 16777216;
+ pub const nsIChannel_LOAD_BYPASS_SERVICE_WORKER: root::nsIChannel__bindgen_ty_1 = 33554432;
+ pub type nsIChannel__bindgen_ty_1 = u32;
+ pub const nsIChannel_DISPOSITION_INLINE: root::nsIChannel__bindgen_ty_2 = 0;
+ pub const nsIChannel_DISPOSITION_ATTACHMENT: root::nsIChannel__bindgen_ty_2 = 1;
+ pub type nsIChannel__bindgen_ty_2 = u32;
+ #[test]
+ fn bindgen_test_layout_nsIChannel() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIChannel>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIChannel))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIChannel>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIChannel))
+ );
+ }
+ impl Clone for nsIChannel {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
pub struct ProxyBehaviour {
_unused: [u8; 0],
}
@@ -31729,6 +22713,28 @@ pub mod root {
__bindgen_bitfield_unit
}
}
+ /// templated hashtable class maps keys to simple datatypes.
+ /// See nsBaseHashtable for complete declaration
+ /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
+ /// for a complete specification.
+ /// @param DataType the simple datatype being wrapped
+ /// @see nsInterfaceHashtable, nsClassHashtable
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsDataHashtable {
+ pub _address: u8,
+ }
+ pub type nsDataHashtable_BaseClass = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIFrame {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIFrame {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
#[repr(C)]
pub struct nsStyleFont {
pub mFont: root::nsFont,
@@ -33677,7 +24683,7 @@ pub mod root {
}
/// An object that allows sharing of arrays that store 'quotes' property
/// values. This is particularly important for inheritance, where we want
- /// to share the same 'quotes' value with a parent style context.
+ /// to share the same 'quotes' value with a parent ComputedStyle.
#[repr(C)]
pub struct nsStyleQuoteValues {
pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
@@ -37948,6 +28954,232 @@ pub mod root {
pub struct nsCOMArray {
pub mBuffer: root::nsTArray<*mut root::nsISupports>,
}
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoAuthorStyles {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoAuthorStyles {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoStyleSet {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoStyleSet {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoSelectorList {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoSelectorList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoSourceSizeList {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoSourceSizeList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoStyleSheetContents {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoStyleSheetContents {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoDeclarationBlock {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoDeclarationBlock {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoStyleRule {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoStyleRule {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoAnimationValue {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoAnimationValue {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoMediaList {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoMediaList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct RawServoFontFaceRule {
+ _unused: [u8; 0],
+ }
+ impl Clone for RawServoFontFaceRule {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub mod nsStyleTransformMatrix {
+ #[allow(unused_imports)]
+ use self::super::super::root;
+ #[repr(u8)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum MatrixTransformOperator {
+ Interpolate = 0,
+ Accumulate = 1,
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsCSSPropertyIDSet {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsCSSPropertyIDSet {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsSimpleContentList {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsSimpleContentList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type RawGeckoNode = root::nsINode;
+ pub type RawGeckoElement = root::mozilla::dom::Element;
+ pub type RawGeckoDocument = root::nsIDocument;
+ pub type RawGeckoPresContext = root::nsPresContext;
+ pub type RawGeckoXBLBinding = root::nsXBLBinding;
+ pub type RawGeckoURLExtraData = root::mozilla::URLExtraData;
+ pub type RawGeckoServoAnimationValueList =
+ root::nsTArray<root::RefPtr<root::RawServoAnimationValue>>;
+ pub type RawGeckoKeyframeList = root::nsTArray<root::mozilla::Keyframe>;
+ pub type RawGeckoPropertyValuePairList = root::nsTArray<root::mozilla::PropertyValuePair>;
+ pub type RawGeckoComputedKeyframeValuesList =
+ root::nsTArray<root::mozilla::ComputedKeyframeValues>;
+ pub type RawGeckoStyleAnimationList = root::nsStyleAutoArray<root::mozilla::StyleAnimation>;
+ pub type RawGeckoFontFaceRuleList = root::nsTArray<root::nsFontFaceRuleContainer>;
+ pub type RawGeckoAnimationPropertySegment = root::mozilla::AnimationPropertySegment;
+ pub type RawGeckoComputedTiming = root::mozilla::ComputedTiming;
+ pub type RawGeckoServoStyleRuleList = root::nsTArray<*const root::RawServoStyleRule>;
+ pub type RawGeckoCSSPropertyIDList = root::nsTArray<root::nsCSSPropertyID>;
+ pub type RawGeckoGfxMatrix4x4 = [root::mozilla::gfx::Float; 16usize];
+ pub type RawGeckoStyleChildrenIterator = root::mozilla::dom::StyleChildrenIterator;
+ pub type ComputedStyleBorrowed = *const root::mozilla::ComputedStyle;
+ pub type ComputedStyleBorrowedOrNull = *const root::mozilla::ComputedStyle;
+ pub type ServoComputedDataBorrowed = *const root::ServoComputedData;
+ pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
+ pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode;
+ pub type RawGeckoElementBorrowed = *const root::RawGeckoElement;
+ pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement;
+ pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument;
+ pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument;
+ pub type RawGeckoXBLBindingBorrowed = *const root::RawGeckoXBLBinding;
+ pub type RawGeckoXBLBindingBorrowedOrNull = *const root::RawGeckoXBLBinding;
+ pub type RawGeckoPresContextOwned = *mut root::RawGeckoPresContext;
+ pub type RawGeckoPresContextBorrowed = *const root::RawGeckoPresContext;
+ pub type RawGeckoPresContextBorrowedMut = *mut root::RawGeckoPresContext;
+ pub type RawGeckoServoAnimationValueListBorrowedMut =
+ *mut root::RawGeckoServoAnimationValueList;
+ pub type RawGeckoServoAnimationValueListBorrowed = *const root::RawGeckoServoAnimationValueList;
+ pub type RawGeckoKeyframeListBorrowedMut = *mut root::RawGeckoKeyframeList;
+ pub type RawGeckoKeyframeListBorrowed = *const root::RawGeckoKeyframeList;
+ pub type RawGeckoPropertyValuePairListBorrowedMut = *mut root::RawGeckoPropertyValuePairList;
+ pub type RawGeckoPropertyValuePairListBorrowed = *const root::RawGeckoPropertyValuePairList;
+ pub type RawGeckoComputedKeyframeValuesListBorrowedMut =
+ *mut root::RawGeckoComputedKeyframeValuesList;
+ pub type RawGeckoStyleAnimationListBorrowedMut = *mut root::RawGeckoStyleAnimationList;
+ pub type RawGeckoStyleAnimationListBorrowed = *const root::RawGeckoStyleAnimationList;
+ pub type RawGeckoFontFaceRuleListBorrowedMut = *mut root::RawGeckoFontFaceRuleList;
+ pub type RawGeckoAnimationPropertySegmentBorrowed =
+ *const root::RawGeckoAnimationPropertySegment;
+ pub type RawGeckoComputedTimingBorrowed = *const root::RawGeckoComputedTiming;
+ pub type RawGeckoServoStyleRuleListBorrowedMut = *mut root::RawGeckoServoStyleRuleList;
+ pub type RawGeckoCSSPropertyIDListBorrowed = *const root::RawGeckoCSSPropertyIDList;
+ pub type RawGeckoStyleChildrenIteratorBorrowedMut = *mut root::RawGeckoStyleChildrenIterator;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsFontFaceRuleContainer {
+ pub mRule: root::RefPtr<root::RawServoFontFaceRule>,
+ pub mSheetType: root::mozilla::SheetType,
+ }
+ #[test]
+ fn bindgen_test_layout_nsFontFaceRuleContainer() {
+ assert_eq!(
+ ::std::mem::size_of::<nsFontFaceRuleContainer>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsFontFaceRuleContainer))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsFontFaceRuleContainer>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsFontFaceRuleContainer))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsFontFaceRuleContainer>())).mRule as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsFontFaceRuleContainer),
+ "::",
+ stringify!(mRule)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsFontFaceRuleContainer>())).mSheetType as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsFontFaceRuleContainer),
+ "::",
+ stringify!(mSheetType)
+ )
+ );
+ }
+ pub type gfxSize = [u64; 2usize];
pub const ThemeWidgetType_NS_THEME_NONE: root::ThemeWidgetType = 0;
pub const ThemeWidgetType_NS_THEME_BUTTON: root::ThemeWidgetType = 1;
pub const ThemeWidgetType_NS_THEME_RADIO: root::ThemeWidgetType = 2;
@@ -38079,6 +29311,141 @@ pub mod root {
127;
pub const ThemeWidgetType_ThemeWidgetType_COUNT: root::ThemeWidgetType = 128;
pub type ThemeWidgetType = u8;
+ #[repr(u32)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum nsCompatibility {
+ eCompatibility_FullStandards = 1,
+ eCompatibility_AlmostStandards = 2,
+ eCompatibility_NavQuirks = 3,
+ }
+ pub type nsTObserverArray_base_index_type = usize;
+ pub type nsTObserverArray_base_size_type = usize;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsTObserverArray_base_Iterator_base {
+ pub mPosition: root::nsTObserverArray_base_index_type,
+ pub mNext: *mut root::nsTObserverArray_base_Iterator_base,
+ }
+ #[test]
+ fn bindgen_test_layout_nsTObserverArray_base_Iterator_base() {
+ assert_eq!(
+ ::std::mem::size_of::<nsTObserverArray_base_Iterator_base>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsTObserverArray_base_Iterator_base))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsTObserverArray_base_Iterator_base>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsTObserverArray_base_Iterator_base)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTObserverArray_base_Iterator_base>())).mPosition
+ as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTObserverArray_base_Iterator_base),
+ "::",
+ stringify!(mPosition)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsTObserverArray_base_Iterator_base>())).mNext as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsTObserverArray_base_Iterator_base),
+ "::",
+ stringify!(mNext)
+ )
+ );
+ }
+ impl Clone for nsTObserverArray_base_Iterator_base {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type nsAutoTObserverArray_elem_type<T> = T;
+ pub type nsAutoTObserverArray_array_type<T> = root::nsTArray<T>;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAutoTObserverArray_Iterator {
+ pub _base: root::nsTObserverArray_base_Iterator_base,
+ pub mArray: *mut root::nsAutoTObserverArray_Iterator_array_type,
+ }
+ pub type nsAutoTObserverArray_Iterator_array_type = u8;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAutoTObserverArray_ForwardIterator {
+ pub _base: root::nsAutoTObserverArray_Iterator,
+ }
+ pub type nsAutoTObserverArray_ForwardIterator_array_type = u8;
+ pub type nsAutoTObserverArray_ForwardIterator_base_type = root::nsAutoTObserverArray_Iterator;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAutoTObserverArray_EndLimitedIterator {
+ pub _base: root::nsAutoTObserverArray_ForwardIterator,
+ pub mEnd: root::nsAutoTObserverArray_ForwardIterator,
+ }
+ pub type nsAutoTObserverArray_EndLimitedIterator_array_type = u8;
+ pub type nsAutoTObserverArray_EndLimitedIterator_base_type =
+ root::nsAutoTObserverArray_Iterator;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAutoTObserverArray_BackwardIterator {
+ pub _base: root::nsAutoTObserverArray_Iterator,
+ }
+ pub type nsAutoTObserverArray_BackwardIterator_array_type = u8;
+ pub type nsAutoTObserverArray_BackwardIterator_base_type = root::nsAutoTObserverArray_Iterator;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsTObserverArray {
+ pub _address: u8,
+ }
+ pub type nsTObserverArray_base_type = u8;
+ pub type nsTObserverArray_size_type = root::nsTObserverArray_base_size_type;
+ /// Hashtable key class to use with nsTHashtable/nsBaseHashtable
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsURIHashKey {
+ pub _base: root::PLDHashEntryHdr,
+ pub mKey: root::nsCOMPtr,
+ }
+ pub type nsURIHashKey_KeyType = *mut root::nsIURI;
+ pub type nsURIHashKey_KeyTypePointer = *const root::nsIURI;
+ pub const nsURIHashKey_ALLOW_MEMMOVE: root::nsURIHashKey__bindgen_ty_1 = 1;
+ pub type nsURIHashKey__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_nsURIHashKey() {
+ assert_eq!(
+ ::std::mem::size_of::<nsURIHashKey>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsURIHashKey))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsURIHashKey>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsURIHashKey))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsURIHashKey>())).mKey as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsURIHashKey),
+ "::",
+ stringify!(mKey)
+ )
+ );
+ }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsIConsoleReportCollector {
@@ -38091,38 +29458,785 @@ pub mod root {
}
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct nsIStyleSheetLinkingElement {
+ pub struct nsICSSLoaderObserver {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsICSSLoaderObserver_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsICSSLoaderObserver() {
+ assert_eq!(
+ ::std::mem::size_of::<nsICSSLoaderObserver>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsICSSLoaderObserver))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsICSSLoaderObserver>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsICSSLoaderObserver))
+ );
+ }
+ impl Clone for nsICSSLoaderObserver {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type DOMHighResTimeStamp = f64;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIDOMNode {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIDOMNode_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIDOMNode() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIDOMNode>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIDOMNode))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIDOMNode>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIDOMNode))
+ );
+ }
+ impl Clone for nsIDOMNode {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const kNameSpaceID_None: i32 = 0;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIVariant {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIVariant_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIVariant() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIVariant>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIVariant))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIVariant>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIVariant))
+ );
+ }
+ impl Clone for nsIVariant {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsBindingManager {
_unused: [u8; 0],
}
- impl Clone for nsIStyleSheetLinkingElement {
+ impl Clone for nsBindingManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsNodeInfoManager {
+ pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
+ pub mNodeInfoHash: [u64; 4usize],
+ pub mDocument: *mut root::nsIDocument,
+ pub mNonDocumentNodeInfos: u32,
+ pub mPrincipal: root::nsCOMPtr,
+ pub mDefaultPrincipal: root::nsCOMPtr,
+ pub mTextNodeInfo: *mut root::mozilla::dom::NodeInfo,
+ pub mCommentNodeInfo: *mut root::mozilla::dom::NodeInfo,
+ pub mDocumentNodeInfo: *mut root::mozilla::dom::NodeInfo,
+ pub mBindingManager: root::RefPtr<root::nsBindingManager>,
+ pub mRecentlyUsedNodeInfos: [*mut root::mozilla::dom::NodeInfo; 31usize],
+ pub mSVGEnabled: root::nsNodeInfoManager_Tri,
+ pub mMathMLEnabled: root::nsNodeInfoManager_Tri,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsNodeInfoManager_cycleCollection {
+ pub _base: root::nsCycleCollectionParticipant,
+ }
+ #[test]
+ fn bindgen_test_layout_nsNodeInfoManager_cycleCollection() {
+ assert_eq!(
+ ::std::mem::size_of::<nsNodeInfoManager_cycleCollection>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsNodeInfoManager_cycleCollection))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsNodeInfoManager_cycleCollection>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsNodeInfoManager_cycleCollection)
+ )
+ );
+ }
+ impl Clone for nsNodeInfoManager_cycleCollection {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type nsNodeInfoManager_HasThreadSafeRefCnt = root::mozilla::FalseType;
+ pub const nsNodeInfoManager_Tri_eTriUnset: root::nsNodeInfoManager_Tri = 0;
+ pub const nsNodeInfoManager_Tri_eTriFalse: root::nsNodeInfoManager_Tri = 1;
+ pub const nsNodeInfoManager_Tri_eTriTrue: root::nsNodeInfoManager_Tri = 2;
+ pub type nsNodeInfoManager_Tri = u32;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsNodeInfoManager_NodeInfoInnerKey {
+ pub _base: root::nsPtrHashKey<root::mozilla::dom::NodeInfo_NodeInfoInner>,
+ }
+ #[test]
+ fn bindgen_test_layout_nsNodeInfoManager_NodeInfoInnerKey() {
+ assert_eq!(
+ ::std::mem::size_of::<nsNodeInfoManager_NodeInfoInnerKey>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsNodeInfoManager_NodeInfoInnerKey))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsNodeInfoManager_NodeInfoInnerKey>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsNodeInfoManager_NodeInfoInnerKey)
+ )
+ );
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN17nsNodeInfoManager21_cycleCollectorGlobalE"]
+ pub static mut nsNodeInfoManager__cycleCollectorGlobal:
+ root::nsNodeInfoManager_cycleCollection;
+ }
+ #[test]
+ fn bindgen_test_layout_nsNodeInfoManager() {
+ assert_eq!(
+ ::std::mem::size_of::<nsNodeInfoManager>(),
+ 360usize,
+ concat!("Size of: ", stringify!(nsNodeInfoManager))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsNodeInfoManager>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsNodeInfoManager))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsNodeInfoManager>())).mRefCnt as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mRefCnt)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mNodeInfoHash as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mNodeInfoHash)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsNodeInfoManager>())).mDocument as *const _ as usize },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mDocument)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mNonDocumentNodeInfos as *const _
+ as usize
+ },
+ 48usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mNonDocumentNodeInfos)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mPrincipal as *const _ as usize
+ },
+ 56usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mPrincipal)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mDefaultPrincipal as *const _ as usize
+ },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mDefaultPrincipal)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mTextNodeInfo as *const _ as usize
+ },
+ 72usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mTextNodeInfo)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mCommentNodeInfo as *const _ as usize
+ },
+ 80usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mCommentNodeInfo)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mDocumentNodeInfo as *const _ as usize
+ },
+ 88usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mDocumentNodeInfo)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mBindingManager as *const _ as usize
+ },
+ 96usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mBindingManager)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mRecentlyUsedNodeInfos as *const _
+ as usize
+ },
+ 104usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mRecentlyUsedNodeInfos)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mSVGEnabled as *const _ as usize
+ },
+ 352usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mSVGEnabled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsNodeInfoManager>())).mMathMLEnabled as *const _ as usize
+ },
+ 356usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsNodeInfoManager),
+ "::",
+ stringify!(mMathMLEnabled)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsPropertyTable {
+ pub mPropertyList: *mut root::nsPropertyTable_PropertyList,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsPropertyTable_PropertyList {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsPropertyTable_PropertyList {
fn clone(&self) -> Self {
*self
}
}
+ #[test]
+ fn bindgen_test_layout_nsPropertyTable() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPropertyTable>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsPropertyTable))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPropertyTable>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsPropertyTable))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPropertyTable>())).mPropertyList as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPropertyTable),
+ "::",
+ stringify!(mPropertyList)
+ )
+ );
+ }
#[repr(C)]
#[derive(Debug, Copy)]
- pub struct nsIUnicharStreamLoaderObserver {
+ pub struct nsIDOMEventTarget {
pub _base: root::nsISupports,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
- pub struct nsIUnicharStreamLoaderObserver_COMTypeInfo {
+ pub struct nsIDOMEventTarget_COMTypeInfo {
pub _address: u8,
}
#[test]
- fn bindgen_test_layout_nsIUnicharStreamLoaderObserver() {
+ fn bindgen_test_layout_nsIDOMEventTarget() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIDOMEventTarget>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIDOMEventTarget))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIDOMEventTarget>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIDOMEventTarget))
+ );
+ }
+ impl Clone for nsIDOMEventTarget {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsAttrChildContentList {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsAttrChildContentList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsRange {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsRange {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_29 = 4;
+ pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_29 = 8;
+ pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_29 = 16;
+ pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_29 = 32;
+ pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_29 = 64;
+ pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_29 = 128;
+ pub const NODE_IS_EDITABLE: root::_bindgen_ty_29 = 256;
+ pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_29 = 512;
+ pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_29 = 1024;
+ pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_29 = 2048;
+ pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_29 = 4096;
+ pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_29 = 8192;
+ pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_29 = 16384;
+ pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_29 = 30720;
+ pub const NODE_NEEDS_FRAME: root::_bindgen_ty_29 = 32768;
+ pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_29 = 65536;
+ pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_29 = 131072;
+ pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_29 = 262144;
+ pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_29 = 524288;
+ pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_29 = 786432;
+ pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_29 = 1048576;
+ pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_29 = 2097152;
+ pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_29 = 20;
+ pub type _bindgen_ty_29 = u32;
+ /// An internal interface that abstracts some DOMNode-related parts that both
+ /// nsIContent and nsIDocument share. An instance of this interface has a list
+ /// of nsIContent children and provides access to them.
+ #[repr(C)]
+ pub struct nsINode {
+ pub _base: root::mozilla::dom::EventTarget,
+ pub mNodeInfo: root::RefPtr<root::mozilla::dom::NodeInfo>,
+ pub mParent: *mut root::nsINode,
+ pub mNextSibling: *mut root::nsIContent,
+ pub mPreviousSibling: *mut root::nsIContent,
+ pub mFirstChild: *mut root::nsIContent,
+ pub __bindgen_anon_1: root::nsINode__bindgen_ty_2,
+ pub mSlots: *mut root::nsINode_nsSlots,
+ }
+ pub type nsINode_BoxQuadOptions = root::mozilla::dom::BoxQuadOptions;
+ pub type nsINode_ConvertCoordinateOptions = root::mozilla::dom::ConvertCoordinateOptions;
+ pub type nsINode_DocGroup = root::mozilla::dom::DocGroup;
+ pub type nsINode_DOMPoint = root::mozilla::dom::DOMPoint;
+ pub type nsINode_DOMPointInit = root::mozilla::dom::DOMPointInit;
+ pub type nsINode_DOMQuad = root::mozilla::dom::DOMQuad;
+ pub type nsINode_DOMRectReadOnly = root::mozilla::dom::DOMRectReadOnly;
+ pub type nsINode_OwningNodeOrString = root::mozilla::dom::OwningNodeOrString;
+ pub type nsINode_TextOrElementOrDocument = root::mozilla::dom::TextOrElementOrDocument;
+ pub use self::super::root::mozilla::dom::CallerType as nsINode_CallerType;
+ pub type nsINode_Sequence = u8;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsINode_COMTypeInfo {
+ pub _address: u8,
+ }
+ /// nsIDocument nodes
+ pub const nsINode_eDOCUMENT: root::nsINode__bindgen_ty_1 = 2;
+ /// nsIAttribute nodes
+ pub const nsINode_eATTRIBUTE: root::nsINode__bindgen_ty_1 = 4;
+ /// text nodes
+ pub const nsINode_eTEXT: root::nsINode__bindgen_ty_1 = 8;
+ /// xml processing instructions
+ pub const nsINode_ePROCESSING_INSTRUCTION: root::nsINode__bindgen_ty_1 = 16;
+ /// comment nodes
+ pub const nsINode_eCOMMENT: root::nsINode__bindgen_ty_1 = 32;
+ /// form control elements
+ pub const nsINode_eHTML_FORM_CONTROL: root::nsINode__bindgen_ty_1 = 64;
+ /// document fragments
+ pub const nsINode_eDOCUMENT_FRAGMENT: root::nsINode__bindgen_ty_1 = 128;
+ /// character data nodes (comments, PIs, text).
+ pub const nsINode_eDATA_NODE: root::nsINode__bindgen_ty_1 = 256;
+ /// HTMLMediaElement
+ pub const nsINode_eMEDIA: root::nsINode__bindgen_ty_1 = 512;
+ /// animation elements
+ pub const nsINode_eANIMATION: root::nsINode__bindgen_ty_1 = 1024;
+ /// filter elements that implement SVGFilterPrimitiveStandardAttributes
+ pub const nsINode_eFILTER: root::nsINode__bindgen_ty_1 = 2048;
+ /// SVGGeometryElement
+ pub const nsINode_eSHAPE: root::nsINode__bindgen_ty_1 = 4096;
+ /// Bit-flags to pass (or'ed together) to IsNodeOfType()
+ pub type nsINode__bindgen_ty_1 = u32;
+ pub const nsINode_FlattenedParentType_eNotForStyle: root::nsINode_FlattenedParentType = 0;
+ pub const nsINode_FlattenedParentType_eForStyle: root::nsINode_FlattenedParentType = 1;
+ pub type nsINode_FlattenedParentType = u32;
+ #[repr(C)]
+ pub struct nsINode_nsSlots__bindgen_vtable(::std::os::raw::c_void);
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsINode_nsSlots {
+ pub vtable_: *const nsINode_nsSlots__bindgen_vtable,
+ /// A list of mutation observers
+ pub mMutationObservers: [u64; 4usize],
+ /// An object implementing nsIDOMNodeList for this content (childNodes)
+ /// @see nsIDOMNodeList
+ /// @see nsGenericHTMLElement::GetChildNodes
+ pub mChildNodes: root::RefPtr<root::nsAttrChildContentList>,
+ /// Weak reference to this node. This is cleared by the destructor of
+ /// nsNodeWeakReference.
+ pub mWeakReference: *mut root::nsNodeWeakReference,
+ /// A set of ranges which are in the selection and which have this node as
+ /// their endpoints' common ancestor. This is a UniquePtr instead of just a
+ /// LinkedList, because that prevents us from pushing DOMSlots up to the next
+ /// allocation bucket size, at the cost of some complexity.
+ pub mCommonAncestorRanges: root::mozilla::UniquePtr<root::mozilla::LinkedList>,
+ /// Number of descendant nodes in the uncomposed document that have been
+ /// explicitly set as editable.
+ pub mEditableDescendantCount: u32,
+ }
+ #[test]
+ fn bindgen_test_layout_nsINode_nsSlots() {
+ assert_eq!(
+ ::std::mem::size_of::<nsINode_nsSlots>(),
+ 72usize,
+ concat!("Size of: ", stringify!(nsINode_nsSlots))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsINode_nsSlots>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsINode_nsSlots))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsINode_nsSlots>())).mMutationObservers as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode_nsSlots),
+ "::",
+ stringify!(mMutationObservers)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsINode_nsSlots>())).mChildNodes as *const _ as usize },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode_nsSlots),
+ "::",
+ stringify!(mChildNodes)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsINode_nsSlots>())).mWeakReference as *const _ as usize
+ },
+ 48usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode_nsSlots),
+ "::",
+ stringify!(mWeakReference)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsINode_nsSlots>())).mCommonAncestorRanges as *const _
+ as usize
+ },
+ 56usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode_nsSlots),
+ "::",
+ stringify!(mCommonAncestorRanges)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsINode_nsSlots>())).mEditableDescendantCount as *const _
+ as usize
+ },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode_nsSlots),
+ "::",
+ stringify!(mEditableDescendantCount)
+ )
+ );
+ }
+ #[repr(u32)]
+ /// Boolean flags
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum nsINode_BooleanFlag {
+ NodeHasRenderingObservers = 0,
+ IsInDocument = 1,
+ ParentIsContent = 2,
+ NodeIsElement = 3,
+ ElementHasID = 4,
+ ElementMayHaveClass = 5,
+ ElementMayHaveStyle = 6,
+ ElementHasName = 7,
+ ElementMayHaveContentEditableAttr = 8,
+ NodeIsCommonAncestorForRangeInSelection = 9,
+ NodeIsDescendantOfCommonAncestorForRangeInSelection = 10,
+ NodeIsCCMarkedRoot = 11,
+ NodeIsCCBlackTree = 12,
+ NodeIsPurpleRoot = 13,
+ ElementHasLockedStyleStates = 14,
+ ElementHasPointerLock = 15,
+ NodeMayHaveDOMMutationObserver = 16,
+ NodeIsContent = 17,
+ ElementHasAnimations = 18,
+ NodeHasValidDirAttribute = 19,
+ NodeHasDirAutoSet = 20,
+ NodeHasTextNodeDirectionalityMap = 21,
+ NodeAncestorHasDirAuto = 22,
+ NodeHandlingClick = 23,
+ NodeHasRelevantHoverRules = 24,
+ ElementHasWeirdParserInsertionMode = 25,
+ ParserHasNotified = 26,
+ MayBeApzAware = 27,
+ ElementMayHaveAnonymousChildren = 28,
+ NodeMayHaveChildrenWithLayoutBoxesDisabled = 29,
+ BooleanFlagCount = 30,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsINode__bindgen_ty_2 {
+ pub mPrimaryFrame: root::__BindgenUnionField<*mut root::nsIFrame>,
+ pub mSubtreeRoot: root::__BindgenUnionField<*mut root::nsINode>,
+ pub bindgen_union_field: u64,
+ }
+ #[test]
+ fn bindgen_test_layout_nsINode__bindgen_ty_2() {
assert_eq!(
- ::std::mem::size_of::<nsIUnicharStreamLoaderObserver>(),
+ ::std::mem::size_of::<nsINode__bindgen_ty_2>(),
8usize,
- concat!("Size of: ", stringify!(nsIUnicharStreamLoaderObserver))
+ concat!("Size of: ", stringify!(nsINode__bindgen_ty_2))
);
assert_eq!(
- ::std::mem::align_of::<nsIUnicharStreamLoaderObserver>(),
+ ::std::mem::align_of::<nsINode__bindgen_ty_2>(),
8usize,
- concat!("Alignment of ", stringify!(nsIUnicharStreamLoaderObserver))
+ concat!("Alignment of ", stringify!(nsINode__bindgen_ty_2))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsINode__bindgen_ty_2>())).mPrimaryFrame as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode__bindgen_ty_2),
+ "::",
+ stringify!(mPrimaryFrame)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsINode__bindgen_ty_2>())).mSubtreeRoot as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode__bindgen_ty_2),
+ "::",
+ stringify!(mSubtreeRoot)
+ )
+ );
+ }
+ impl Clone for nsINode__bindgen_ty_2 {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const nsINode_ELEMENT_NODE: ::std::os::raw::c_ushort = 1;
+ pub const nsINode_ATTRIBUTE_NODE: ::std::os::raw::c_ushort = 2;
+ pub const nsINode_TEXT_NODE: ::std::os::raw::c_ushort = 3;
+ pub const nsINode_CDATA_SECTION_NODE: ::std::os::raw::c_ushort = 4;
+ pub const nsINode_ENTITY_REFERENCE_NODE: ::std::os::raw::c_ushort = 5;
+ pub const nsINode_ENTITY_NODE: ::std::os::raw::c_ushort = 6;
+ pub const nsINode_PROCESSING_INSTRUCTION_NODE: ::std::os::raw::c_ushort = 7;
+ pub const nsINode_COMMENT_NODE: ::std::os::raw::c_ushort = 8;
+ pub const nsINode_DOCUMENT_NODE: ::std::os::raw::c_ushort = 9;
+ pub const nsINode_DOCUMENT_TYPE_NODE: ::std::os::raw::c_ushort = 10;
+ pub const nsINode_DOCUMENT_FRAGMENT_NODE: ::std::os::raw::c_ushort = 11;
+ pub const nsINode_NOTATION_NODE: ::std::os::raw::c_ushort = 12;
+ #[test]
+ fn bindgen_test_layout_nsINode() {
+ assert_eq!(
+ ::std::mem::size_of::<nsINode>(),
+ 88usize,
+ concat!("Size of: ", stringify!(nsINode))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsINode>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsINode))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsINode>())).mNodeInfo as *const _ as usize },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode),
+ "::",
+ stringify!(mNodeInfo)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsINode>())).mParent as *const _ as usize },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode),
+ "::",
+ stringify!(mParent)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsINode>())).mNextSibling as *const _ as usize },
+ 48usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode),
+ "::",
+ stringify!(mNextSibling)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsINode>())).mPreviousSibling as *const _ as usize },
+ 56usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode),
+ "::",
+ stringify!(mPreviousSibling)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsINode>())).mFirstChild as *const _ as usize },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode),
+ "::",
+ stringify!(mFirstChild)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsINode>())).mSlots as *const _ as usize },
+ 80usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsINode),
+ "::",
+ stringify!(mSlots)
+ )
);
}
- impl Clone for nsIUnicharStreamLoaderObserver {
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIStyleSheetLinkingElement {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIStyleSheetLinkingElement {
fn clone(&self) -> Self {
*self
}
@@ -38155,6 +30269,5934 @@ pub mod root {
*self
}
}
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsIGlobalObject {
+ pub _base: root::nsISupports,
+ pub _base_1: root::mozilla::dom::DispatcherTrait,
+ pub mHostObjectURIs: root::nsTArray<root::nsCString>,
+ pub mEventTargetObjects: [u64; 4usize],
+ pub mIsDying: bool,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIGlobalObject_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIGlobalObject() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIGlobalObject>(),
+ 64usize,
+ concat!("Size of: ", stringify!(nsIGlobalObject))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIGlobalObject>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIGlobalObject))
+ );
+ }
+ /// The global object which keeps a script context for each supported script
+ /// language. This often used to store per-window global state.
+ /// This is a heavyweight interface implemented only by DOM globals, and
+ /// it might go away some time in the future.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsIScriptGlobalObject {
+ pub _base: root::nsIGlobalObject,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIScriptGlobalObject_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIScriptGlobalObject() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIScriptGlobalObject>(),
+ 64usize,
+ concat!("Size of: ", stringify!(nsIScriptGlobalObject))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIScriptGlobalObject>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIScriptGlobalObject))
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIXPConnect {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIXPConnect_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIXPConnect() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIXPConnect>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIXPConnect))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIXPConnect>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIXPConnect))
+ );
+ }
+ impl Clone for nsIXPConnect {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIControllers {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIControllers {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct mozIDOMWindow {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct mozIDOMWindow_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_mozIDOMWindow() {
+ assert_eq!(
+ ::std::mem::size_of::<mozIDOMWindow>(),
+ 8usize,
+ concat!("Size of: ", stringify!(mozIDOMWindow))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<mozIDOMWindow>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(mozIDOMWindow))
+ );
+ }
+ impl Clone for mozIDOMWindow {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct mozIDOMWindowProxy {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct mozIDOMWindowProxy_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_mozIDOMWindowProxy() {
+ assert_eq!(
+ ::std::mem::size_of::<mozIDOMWindowProxy>(),
+ 8usize,
+ concat!("Size of: ", stringify!(mozIDOMWindowProxy))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<mozIDOMWindowProxy>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(mozIDOMWindowProxy))
+ );
+ }
+ impl Clone for mozIDOMWindowProxy {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type SuspendTypes = u32;
+ pub const PopupControlState_openAllowed: root::PopupControlState = 0;
+ pub const PopupControlState_openControlled: root::PopupControlState = 1;
+ pub const PopupControlState_openBlocked: root::PopupControlState = 2;
+ pub const PopupControlState_openAbused: root::PopupControlState = 3;
+ pub const PopupControlState_openOverridden: root::PopupControlState = 4;
+ pub type PopupControlState = u32;
+ #[repr(C)]
+ pub struct nsPIDOMWindowInner {
+ pub _base: root::mozIDOMWindow,
+ pub mChromeEventHandler: root::nsCOMPtr,
+ pub mDoc: root::nsCOMPtr,
+ pub mDocumentURI: root::nsCOMPtr,
+ pub mDocBaseURI: root::nsCOMPtr,
+ pub mParentTarget: root::nsCOMPtr,
+ pub mPerformance: root::RefPtr<root::mozilla::dom::Performance>,
+ pub mTimeoutManager: root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>,
+ pub mNavigator: root::RefPtr<root::mozilla::dom::Navigator>,
+ pub mMutationBits: u32,
+ pub mActivePeerConnections: u32,
+ pub mIsDocumentLoaded: bool,
+ pub mIsHandlingResizeEvent: bool,
+ pub mMayHavePaintEventListener: bool,
+ pub mMayHaveTouchEventListener: bool,
+ pub mMayHaveSelectionChangeEventListener: bool,
+ pub mMayHaveMouseEnterLeaveEventListener: bool,
+ pub mMayHavePointerEnterLeaveEventListener: bool,
+ pub mInnerObjectsFreed: bool,
+ pub mAudioCaptured: bool,
+ pub mOuterWindow: root::nsCOMPtr,
+ pub mFocusedNode: root::nsCOMPtr,
+ pub mAudioContexts: root::nsTArray<*mut root::mozilla::dom::AudioContext>,
+ pub mTabGroup: root::RefPtr<root::mozilla::dom::TabGroup>,
+ pub mWindowID: u64,
+ pub mHasNotifiedGlobalCreated: bool,
+ pub mMarkedCCGeneration: u32,
+ pub mTopInnerWindow: root::nsCOMPtr,
+ pub mHasTriedToCacheTopInnerWindow: bool,
+ pub mNumOfIndexedDBDatabases: u32,
+ pub mNumOfOpenWebSockets: u32,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsPIDOMWindowInner_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsPIDOMWindowInner() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPIDOMWindowInner>(),
+ 168usize,
+ concat!("Size of: ", stringify!(nsPIDOMWindowInner))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPIDOMWindowInner>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsPIDOMWindowInner))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mChromeEventHandler as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mChromeEventHandler)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mDoc as *const _ as usize },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mDoc)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mDocumentURI as *const _ as usize
+ },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mDocumentURI)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mDocBaseURI as *const _ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mDocBaseURI)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mParentTarget as *const _ as usize
+ },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mParentTarget)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mPerformance as *const _ as usize
+ },
+ 48usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mPerformance)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mTimeoutManager as *const _ as usize
+ },
+ 56usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mTimeoutManager)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mNavigator as *const _ as usize
+ },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mNavigator)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMutationBits as *const _ as usize
+ },
+ 72usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mMutationBits)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mActivePeerConnections as *const _
+ as usize
+ },
+ 76usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mActivePeerConnections)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mIsDocumentLoaded as *const _
+ as usize
+ },
+ 80usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mIsDocumentLoaded)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mIsHandlingResizeEvent as *const _
+ as usize
+ },
+ 81usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mIsHandlingResizeEvent)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHavePaintEventListener
+ as *const _ as usize
+ },
+ 82usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mMayHavePaintEventListener)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHaveTouchEventListener
+ as *const _ as usize
+ },
+ 83usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mMayHaveTouchEventListener)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHaveSelectionChangeEventListener
+ as *const _ as usize
+ },
+ 84usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mMayHaveSelectionChangeEventListener)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMayHaveMouseEnterLeaveEventListener
+ as *const _ as usize
+ },
+ 85usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mMayHaveMouseEnterLeaveEventListener)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>()))
+ .mMayHavePointerEnterLeaveEventListener as *const _ as usize
+ },
+ 86usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mMayHavePointerEnterLeaveEventListener)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mInnerObjectsFreed as *const _
+ as usize
+ },
+ 87usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mInnerObjectsFreed)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mAudioCaptured as *const _ as usize
+ },
+ 88usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mAudioCaptured)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mOuterWindow as *const _ as usize
+ },
+ 96usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mOuterWindow)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mFocusedNode as *const _ as usize
+ },
+ 104usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mFocusedNode)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mAudioContexts as *const _ as usize
+ },
+ 112usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mAudioContexts)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mTabGroup as *const _ as usize
+ },
+ 120usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mTabGroup)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mWindowID as *const _ as usize
+ },
+ 128usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mWindowID)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mHasNotifiedGlobalCreated as *const _
+ as usize
+ },
+ 136usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mHasNotifiedGlobalCreated)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mMarkedCCGeneration as *const _
+ as usize
+ },
+ 140usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mMarkedCCGeneration)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mTopInnerWindow as *const _ as usize
+ },
+ 144usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mTopInnerWindow)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mHasTriedToCacheTopInnerWindow
+ as *const _ as usize
+ },
+ 152usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mHasTriedToCacheTopInnerWindow)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mNumOfIndexedDBDatabases as *const _
+ as usize
+ },
+ 156usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mNumOfIndexedDBDatabases)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowInner>())).mNumOfOpenWebSockets as *const _
+ as usize
+ },
+ 160usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowInner),
+ "::",
+ stringify!(mNumOfOpenWebSockets)
+ )
+ );
+ }
+ #[repr(C)]
+ pub struct nsPIDOMWindowOuter {
+ pub _base: root::mozIDOMWindowProxy,
+ pub mChromeEventHandler: root::nsCOMPtr,
+ pub mDoc: root::nsCOMPtr,
+ pub mDocumentURI: root::nsCOMPtr,
+ pub mDocBaseURI: root::nsCOMPtr,
+ pub mParentTarget: root::nsCOMPtr,
+ pub mFrameElement: root::nsCOMPtr,
+ pub mDocShell: root::nsCOMPtr,
+ pub mModalStateDepth: u32,
+ pub mIsActive: bool,
+ pub mIsBackground: bool,
+ /// The suspended types can be "disposable" or "permanent". This varable only
+ /// stores the value about permanent suspend.
+ /// - disposable
+ /// To pause all playing media in that window, but doesn't affect the media
+ /// which starts after that.
+ ///
+ /// - permanent
+ /// To pause all media in that window, and also affect the media which starts
+ /// after that.
+ pub mMediaSuspend: root::SuspendTypes,
+ pub mAudioMuted: bool,
+ pub mAudioVolume: f32,
+ pub mDesktopModeViewport: bool,
+ pub mIsRootOuterWindow: bool,
+ pub mInnerWindow: *mut root::nsPIDOMWindowInner,
+ pub mTabGroup: root::RefPtr<root::mozilla::dom::TabGroup>,
+ pub mWindowID: u64,
+ pub mMarkedCCGeneration: u32,
+ pub mServiceWorkersTestingEnabled: bool,
+ pub mLargeAllocStatus: root::mozilla::dom::LargeAllocStatus,
+ pub mOpenerForInitialContentBrowser: root::nsCOMPtr,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsPIDOMWindowOuter_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsPIDOMWindowOuter() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPIDOMWindowOuter>(),
+ 128usize,
+ concat!("Size of: ", stringify!(nsPIDOMWindowOuter))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPIDOMWindowOuter>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsPIDOMWindowOuter))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mChromeEventHandler as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mChromeEventHandler)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDoc as *const _ as usize },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mDoc)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDocumentURI as *const _ as usize
+ },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mDocumentURI)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDocBaseURI as *const _ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mDocBaseURI)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mParentTarget as *const _ as usize
+ },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mParentTarget)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mFrameElement as *const _ as usize
+ },
+ 48usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mFrameElement)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDocShell as *const _ as usize
+ },
+ 56usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mDocShell)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mModalStateDepth as *const _ as usize
+ },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mModalStateDepth)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mIsActive as *const _ as usize
+ },
+ 68usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mIsActive)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mIsBackground as *const _ as usize
+ },
+ 69usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mIsBackground)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mMediaSuspend as *const _ as usize
+ },
+ 72usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mMediaSuspend)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mAudioMuted as *const _ as usize
+ },
+ 76usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mAudioMuted)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mAudioVolume as *const _ as usize
+ },
+ 80usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mAudioVolume)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mDesktopModeViewport as *const _
+ as usize
+ },
+ 84usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mDesktopModeViewport)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mIsRootOuterWindow as *const _
+ as usize
+ },
+ 85usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mIsRootOuterWindow)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mInnerWindow as *const _ as usize
+ },
+ 88usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mInnerWindow)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mTabGroup as *const _ as usize
+ },
+ 96usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mTabGroup)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mWindowID as *const _ as usize
+ },
+ 104usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mWindowID)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mMarkedCCGeneration as *const _
+ as usize
+ },
+ 112usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mMarkedCCGeneration)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mServiceWorkersTestingEnabled
+ as *const _ as usize
+ },
+ 116usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mServiceWorkersTestingEnabled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mLargeAllocStatus as *const _
+ as usize
+ },
+ 117usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mLargeAllocStatus)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPIDOMWindowOuter>())).mOpenerForInitialContentBrowser
+ as *const _ as usize
+ },
+ 120usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPIDOMWindowOuter),
+ "::",
+ stringify!(mOpenerForInitialContentBrowser)
+ )
+ );
+ }
+ pub mod xpc {
+ #[allow(unused_imports)]
+ use self::super::super::root;
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAttrName {
+ pub mBits: usize,
+ }
+ #[test]
+ fn bindgen_test_layout_nsAttrName() {
+ assert_eq!(
+ ::std::mem::size_of::<nsAttrName>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsAttrName))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsAttrName>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsAttrName))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsAttrName>())).mBits as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrName),
+ "::",
+ stringify!(mBits)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAttrValue {
+ pub mBits: usize,
+ }
+ pub const nsAttrValue_ValueType_eString: root::nsAttrValue_ValueType = 0;
+ pub const nsAttrValue_ValueType_eAtom: root::nsAttrValue_ValueType = 2;
+ pub const nsAttrValue_ValueType_eInteger: root::nsAttrValue_ValueType = 3;
+ pub const nsAttrValue_ValueType_eColor: root::nsAttrValue_ValueType = 7;
+ pub const nsAttrValue_ValueType_eEnum: root::nsAttrValue_ValueType = 11;
+ pub const nsAttrValue_ValueType_ePercent: root::nsAttrValue_ValueType = 15;
+ pub const nsAttrValue_ValueType_eCSSDeclaration: root::nsAttrValue_ValueType = 16;
+ pub const nsAttrValue_ValueType_eURL: root::nsAttrValue_ValueType = 17;
+ pub const nsAttrValue_ValueType_eImage: root::nsAttrValue_ValueType = 18;
+ pub const nsAttrValue_ValueType_eAtomArray: root::nsAttrValue_ValueType = 19;
+ pub const nsAttrValue_ValueType_eDoubleValue: root::nsAttrValue_ValueType = 20;
+ pub const nsAttrValue_ValueType_eIntMarginValue: root::nsAttrValue_ValueType = 21;
+ pub const nsAttrValue_ValueType_eSVGAngle: root::nsAttrValue_ValueType = 22;
+ pub const nsAttrValue_ValueType_eSVGTypesBegin: root::nsAttrValue_ValueType = 22;
+ pub const nsAttrValue_ValueType_eSVGIntegerPair: root::nsAttrValue_ValueType = 23;
+ pub const nsAttrValue_ValueType_eSVGLength: root::nsAttrValue_ValueType = 24;
+ pub const nsAttrValue_ValueType_eSVGLengthList: root::nsAttrValue_ValueType = 25;
+ pub const nsAttrValue_ValueType_eSVGNumberList: root::nsAttrValue_ValueType = 26;
+ pub const nsAttrValue_ValueType_eSVGNumberPair: root::nsAttrValue_ValueType = 27;
+ pub const nsAttrValue_ValueType_eSVGPathData: root::nsAttrValue_ValueType = 28;
+ pub const nsAttrValue_ValueType_eSVGPointList: root::nsAttrValue_ValueType = 29;
+ pub const nsAttrValue_ValueType_eSVGPreserveAspectRatio: root::nsAttrValue_ValueType = 30;
+ pub const nsAttrValue_ValueType_eSVGStringList: root::nsAttrValue_ValueType = 31;
+ pub const nsAttrValue_ValueType_eSVGTransformList: root::nsAttrValue_ValueType = 32;
+ pub const nsAttrValue_ValueType_eSVGViewBox: root::nsAttrValue_ValueType = 33;
+ pub const nsAttrValue_ValueType_eSVGTypesEnd: root::nsAttrValue_ValueType = 33;
+ pub type nsAttrValue_ValueType = u32;
+ /// Structure for a mapping from int (enum) values to strings. When you use
+ /// it you generally create an array of them.
+ /// Instantiate like this:
+ /// EnumTable myTable[] = {
+ /// { "string1", 1 },
+ /// { "string2", 2 },
+ /// { nullptr, 0 }
+ /// }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsAttrValue_EnumTable {
+ /// The string the value maps to
+ pub tag: *const ::std::os::raw::c_char,
+ /// The enum value that maps to this string
+ pub value: i16,
+ }
+ #[test]
+ fn bindgen_test_layout_nsAttrValue_EnumTable() {
+ assert_eq!(
+ ::std::mem::size_of::<nsAttrValue_EnumTable>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsAttrValue_EnumTable))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsAttrValue_EnumTable>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsAttrValue_EnumTable))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsAttrValue_EnumTable>())).tag as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrValue_EnumTable),
+ "::",
+ stringify!(tag)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsAttrValue_EnumTable>())).value as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrValue_EnumTable),
+ "::",
+ stringify!(value)
+ )
+ );
+ }
+ impl Clone for nsAttrValue_EnumTable {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const nsAttrValue_ValueBaseType_eStringBase: root::nsAttrValue_ValueBaseType = 0;
+ pub const nsAttrValue_ValueBaseType_eOtherBase: root::nsAttrValue_ValueBaseType = 1;
+ pub const nsAttrValue_ValueBaseType_eAtomBase: root::nsAttrValue_ValueBaseType = 2;
+ pub const nsAttrValue_ValueBaseType_eIntegerBase: root::nsAttrValue_ValueBaseType = 3;
+ pub type nsAttrValue_ValueBaseType = u32;
+ extern "C" {
+ #[link_name = "\u{1}_ZN11nsAttrValue15sEnumTableArrayE"]
+ pub static mut nsAttrValue_sEnumTableArray:
+ *mut root::nsTArray<*const root::nsAttrValue_EnumTable>;
+ }
+ #[test]
+ fn bindgen_test_layout_nsAttrValue() {
+ assert_eq!(
+ ::std::mem::size_of::<nsAttrValue>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsAttrValue))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsAttrValue>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsAttrValue))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsAttrValue>())).mBits as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrValue),
+ "::",
+ stringify!(mBits)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsMappedAttributes {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsMappedAttributes {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsHTMLStyleSheet {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsHTMLStyleSheet {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAttrAndChildArray {
+ pub mImpl: *mut root::nsAttrAndChildArray_Impl,
+ }
+ pub type nsAttrAndChildArray_BorrowedAttrInfo = root::mozilla::dom::BorrowedAttrInfo;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsAttrAndChildArray_InternalAttr {
+ pub mName: root::nsAttrName,
+ pub mValue: root::nsAttrValue,
+ }
+ #[test]
+ fn bindgen_test_layout_nsAttrAndChildArray_InternalAttr() {
+ assert_eq!(
+ ::std::mem::size_of::<nsAttrAndChildArray_InternalAttr>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsAttrAndChildArray_InternalAttr))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsAttrAndChildArray_InternalAttr>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsAttrAndChildArray_InternalAttr)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsAttrAndChildArray_InternalAttr>())).mName as *const _
+ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrAndChildArray_InternalAttr),
+ "::",
+ stringify!(mName)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsAttrAndChildArray_InternalAttr>())).mValue as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrAndChildArray_InternalAttr),
+ "::",
+ stringify!(mValue)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsAttrAndChildArray_Impl {
+ pub mAttrAndChildCount: u32,
+ pub mBufferSize: u32,
+ pub mMappedAttrs: *mut root::nsMappedAttributes,
+ pub mBuffer: [*mut ::std::os::raw::c_void; 1usize],
+ }
+ #[test]
+ fn bindgen_test_layout_nsAttrAndChildArray_Impl() {
+ assert_eq!(
+ ::std::mem::size_of::<nsAttrAndChildArray_Impl>(),
+ 24usize,
+ concat!("Size of: ", stringify!(nsAttrAndChildArray_Impl))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsAttrAndChildArray_Impl>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsAttrAndChildArray_Impl))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mAttrAndChildCount as *const _
+ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrAndChildArray_Impl),
+ "::",
+ stringify!(mAttrAndChildCount)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mBufferSize as *const _
+ as usize
+ },
+ 4usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrAndChildArray_Impl),
+ "::",
+ stringify!(mBufferSize)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mMappedAttrs as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrAndChildArray_Impl),
+ "::",
+ stringify!(mMappedAttrs)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsAttrAndChildArray_Impl>())).mBuffer as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrAndChildArray_Impl),
+ "::",
+ stringify!(mBuffer)
+ )
+ );
+ }
+ impl Clone for nsAttrAndChildArray_Impl {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[test]
+ fn bindgen_test_layout_nsAttrAndChildArray() {
+ assert_eq!(
+ ::std::mem::size_of::<nsAttrAndChildArray>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsAttrAndChildArray))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsAttrAndChildArray>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsAttrAndChildArray))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsAttrAndChildArray>())).mImpl as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsAttrAndChildArray),
+ "::",
+ stringify!(mImpl)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIApplicationCacheContainer {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIApplicationCacheContainer_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIApplicationCacheContainer() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIApplicationCacheContainer>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIApplicationCacheContainer))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIApplicationCacheContainer>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIApplicationCacheContainer))
+ );
+ }
+ impl Clone for nsIApplicationCacheContainer {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIPrintSettings {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIPrintSettings {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsDOMNavigationTiming {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsDOMNavigationTiming {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIContentViewer {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIContentViewer_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const nsIContentViewer_ePrompt: root::nsIContentViewer__bindgen_ty_1 = 0;
+ pub const nsIContentViewer_eDontPromptAndDontUnload: root::nsIContentViewer__bindgen_ty_1 = 1;
+ pub const nsIContentViewer_eDontPromptAndUnload: root::nsIContentViewer__bindgen_ty_1 = 2;
+ pub type nsIContentViewer__bindgen_ty_1 = u32;
+ pub const nsIContentViewer_eDelayResize: root::nsIContentViewer__bindgen_ty_2 = 1;
+ pub type nsIContentViewer__bindgen_ty_2 = u32;
+ #[test]
+ fn bindgen_test_layout_nsIContentViewer() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIContentViewer>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIContentViewer))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIContentViewer>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIContentViewer))
+ );
+ }
+ impl Clone for nsIContentViewer {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// Mutation observer interface
+ ///
+ /// See nsINode::AddMutationObserver, nsINode::RemoveMutationObserver for how to
+ /// attach or remove your observers.
+ ///
+ /// WARNING: During these notifications, you are not allowed to perform
+ /// any mutations to the current or any other document, or start a
+ /// network load. If you need to perform such operations do that
+ /// during the _last_ nsIDocumentObserver::EndUpdate notification. The
+ /// expection for this is ParentChainChanged, where mutations should be
+ /// done from an async event, as the notification might not be
+ /// surrounded by BeginUpdate/EndUpdate calls.
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIMutationObserver {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIMutationObserver_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIMutationObserver() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIMutationObserver>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIMutationObserver))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIMutationObserver>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIMutationObserver))
+ );
+ }
+ impl Clone for nsIMutationObserver {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIDocumentObserver {
+ pub _base: root::nsIMutationObserver,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIDocumentObserver_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIDocumentObserver() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIDocumentObserver>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIDocumentObserver))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIDocumentObserver>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIDocumentObserver))
+ );
+ }
+ impl Clone for nsIDocumentObserver {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsILoadContext {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsILoadContext_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsILoadContext() {
+ assert_eq!(
+ ::std::mem::size_of::<nsILoadContext>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsILoadContext))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsILoadContext>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsILoadContext))
+ );
+ }
+ impl Clone for nsILoadContext {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsParserBase {
+ pub _base: root::nsISupports,
+ }
+ #[test]
+ fn bindgen_test_layout_nsParserBase() {
+ assert_eq!(
+ ::std::mem::size_of::<nsParserBase>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsParserBase))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsParserBase>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsParserBase))
+ );
+ }
+ impl Clone for nsParserBase {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// This GECKO-INTERNAL interface is on track to being REMOVED (or refactored
+ /// to the point of being near-unrecognizable).
+ ///
+ /// Please DO NOT #include this file in comm-central code, in your XULRunner
+ /// app or binary extensions.
+ ///
+ /// Please DO NOT #include this into new files even inside Gecko. It is more
+ /// likely than not that #including this header is the wrong thing to do.
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIParser {
+ pub _base: root::nsParserBase,
+ }
+ pub type nsIParser_Encoding = root::mozilla::Encoding;
+ pub type nsIParser_NotNull<T> = root::mozilla::NotNull<T>;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIParser_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIParser() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIParser>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIParser))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIParser>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIParser))
+ );
+ }
+ impl Clone for nsIParser {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub type nsCSSAnonBoxes_NonInheritingBase = u8;
+ pub const nsCSSAnonBoxes_NonInheriting_oofPlaceholder: root::nsCSSAnonBoxes_NonInheriting = 0;
+ pub const nsCSSAnonBoxes_NonInheriting_horizontalFramesetBorder:
+ root::nsCSSAnonBoxes_NonInheriting = 1;
+ pub const nsCSSAnonBoxes_NonInheriting_verticalFramesetBorder:
+ root::nsCSSAnonBoxes_NonInheriting = 2;
+ pub const nsCSSAnonBoxes_NonInheriting_framesetBlank: root::nsCSSAnonBoxes_NonInheriting = 3;
+ pub const nsCSSAnonBoxes_NonInheriting_tableColGroup: root::nsCSSAnonBoxes_NonInheriting = 4;
+ pub const nsCSSAnonBoxes_NonInheriting_tableCol: root::nsCSSAnonBoxes_NonInheriting = 5;
+ pub const nsCSSAnonBoxes_NonInheriting_pageBreak: root::nsCSSAnonBoxes_NonInheriting = 6;
+ pub const nsCSSAnonBoxes_NonInheriting__Count: root::nsCSSAnonBoxes_NonInheriting = 7;
+ pub type nsCSSAnonBoxes_NonInheriting = u8;
+ /// A node of content in a document's content model. This interface
+ /// is supported by all content objects.
+ #[repr(C)]
+ pub struct nsIContent {
+ pub _base: root::nsINode,
+ pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
+ }
+ pub type nsIContent_IMEState = root::mozilla::widget::IMEState;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIContent_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub type nsIContent_HasThreadSafeRefCnt = root::mozilla::FalseType;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIContent_cycleCollection {
+ pub _base: root::nsXPCOMCycleCollectionParticipant,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIContent_cycleCollection() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIContent_cycleCollection>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsIContent_cycleCollection))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIContent_cycleCollection>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIContent_cycleCollection))
+ );
+ }
+ impl Clone for nsIContent_cycleCollection {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// All XBL flattened tree children of the node, as well as :before and
+ /// :after anonymous content and native anonymous children.
+ ///
+ /// @note the result children order is
+ /// 1. :before generated node
+ /// 2. XBL flattened tree children of this node
+ /// 3. native anonymous nodes
+ /// 4. :after generated node
+ pub const nsIContent_eAllChildren: root::nsIContent__bindgen_ty_1 = 0;
+ /// All XBL explicit children of the node (see
+ /// http://www.w3.org/TR/xbl/#explicit3 ), as well as :before and :after
+ /// anonymous content and native anonymous children.
+ ///
+ /// @note the result children order is
+ /// 1. :before generated node
+ /// 2. XBL explicit children of the node
+ /// 3. native anonymous nodes
+ /// 4. :after generated node
+ pub const nsIContent_eAllButXBL: root::nsIContent__bindgen_ty_1 = 1;
+ /// Skip native anonymous content created for placeholder of HTML input,
+ /// used in conjunction with eAllChildren or eAllButXBL.
+ pub const nsIContent_eSkipPlaceholderContent: root::nsIContent__bindgen_ty_1 = 2;
+ /// Skip native anonymous content created by ancestor frames of the root
+ /// element's primary frame, such as scrollbar elements created by the root
+ /// scroll frame.
+ pub const nsIContent_eSkipDocumentLevelNativeAnonymousContent: root::nsIContent__bindgen_ty_1 =
+ 4;
+ pub type nsIContent__bindgen_ty_1 = u32;
+ #[repr(C)]
+ pub struct nsIContent_nsExtendedContentSlots__bindgen_vtable(::std::os::raw::c_void);
+ /// Lazily allocated extended slots to avoid
+ /// that may only be instantiated when a content object is accessed
+ /// through the DOM. Rather than burn actual slots in the content
+ /// objects for each of these instance variables, we put them off
+ /// in a side structure that's only allocated when the content is
+ /// accessed through the DOM.
+ #[repr(C)]
+ pub struct nsIContent_nsExtendedContentSlots {
+ pub vtable_: *const nsIContent_nsExtendedContentSlots__bindgen_vtable,
+ /// The nearest enclosing content node with a binding that created us.
+ /// @see nsIContent::GetBindingParent
+ pub mBindingParent: *mut root::nsIContent,
+ /// @see nsIContent::GetXBLInsertionPoint
+ pub mXBLInsertionPoint: root::nsCOMPtr,
+ /// @see nsIContent::GetContainingShadow
+ pub mContainingShadow: root::RefPtr<root::mozilla::dom::ShadowRoot>,
+ /// @see nsIContent::GetAssignedSlot
+ pub mAssignedSlot: root::RefPtr<root::mozilla::dom::HTMLSlotElement>,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIContent_nsExtendedContentSlots() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIContent_nsExtendedContentSlots>(),
+ 40usize,
+ concat!("Size of: ", stringify!(nsIContent_nsExtendedContentSlots))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIContent_nsExtendedContentSlots>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsIContent_nsExtendedContentSlots)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mBindingParent
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIContent_nsExtendedContentSlots),
+ "::",
+ stringify!(mBindingParent)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mXBLInsertionPoint
+ as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIContent_nsExtendedContentSlots),
+ "::",
+ stringify!(mXBLInsertionPoint)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mContainingShadow
+ as *const _ as usize
+ },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIContent_nsExtendedContentSlots),
+ "::",
+ stringify!(mContainingShadow)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIContent_nsExtendedContentSlots>())).mAssignedSlot
+ as *const _ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIContent_nsExtendedContentSlots),
+ "::",
+ stringify!(mAssignedSlot)
+ )
+ );
+ }
+ #[repr(C)]
+ pub struct nsIContent_nsContentSlots {
+ pub _base: root::nsINode_nsSlots,
+ pub mExtendedSlots: root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIContent_nsContentSlots() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIContent_nsContentSlots>(),
+ 80usize,
+ concat!("Size of: ", stringify!(nsIContent_nsContentSlots))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIContent_nsContentSlots>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIContent_nsContentSlots))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIContent_nsContentSlots>())).mExtendedSlots as *const _
+ as usize
+ },
+ 72usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIContent_nsContentSlots),
+ "::",
+ stringify!(mExtendedSlots)
+ )
+ );
+ }
+ pub const nsIContent_ETabFocusType_eTabFocus_textControlsMask: root::nsIContent_ETabFocusType =
+ 1;
+ pub const nsIContent_ETabFocusType_eTabFocus_formElementsMask: root::nsIContent_ETabFocusType =
+ 2;
+ pub const nsIContent_ETabFocusType_eTabFocus_linksMask: root::nsIContent_ETabFocusType = 4;
+ pub const nsIContent_ETabFocusType_eTabFocus_any: root::nsIContent_ETabFocusType = 7;
+ pub type nsIContent_ETabFocusType = u32;
+ extern "C" {
+ #[link_name = "\u{1}_ZN10nsIContent21_cycleCollectorGlobalE"]
+ pub static mut nsIContent__cycleCollectorGlobal: root::nsIContent_cycleCollection;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN10nsIContent14sTabFocusModelE"]
+ pub static mut nsIContent_sTabFocusModel: i32;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN10nsIContent26sTabFocusModelAppliesToXULE"]
+ pub static mut nsIContent_sTabFocusModelAppliesToXUL: bool;
+ }
+ #[test]
+ fn bindgen_test_layout_nsIContent() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIContent>(),
+ 96usize,
+ concat!("Size of: ", stringify!(nsIContent))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIContent>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIContent))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIContent>())).mRefCnt as *const _ as usize },
+ 88usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIContent),
+ "::",
+ stringify!(mRefCnt)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsILayoutHistoryState {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsILayoutHistoryState {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// Frame manager interface. The frame manager serves one purpose:
+ /// <li>handles structural modifications to the frame model. If the frame model
+ /// lock can be acquired, then the changes are processed immediately; otherwise,
+ /// they're queued and processed later.
+ ///
+ /// FIXME(emilio): The comment above doesn't make any sense, there's no "frame
+ /// model lock" of any sort afaict.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsFrameManager {
+ pub mPresShell: *mut root::nsIPresShell,
+ pub mRootFrame: *mut root::nsIFrame,
+ pub mDisplayNoneMap: *mut root::nsFrameManager_UndisplayedMap,
+ pub mDisplayContentsMap: *mut root::nsFrameManager_UndisplayedMap,
+ pub mIsDestroyingFrames: bool,
+ }
+ pub type nsFrameManager_ComputedStyle = root::mozilla::ComputedStyle;
+ pub use self::super::root::mozilla::layout::FrameChildListID as nsFrameManager_ChildListID;
+ pub type nsFrameManager_UndisplayedNode = root::mozilla::UndisplayedNode;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsFrameManager_UndisplayedMap {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsFrameManager_UndisplayedMap {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[test]
+ fn bindgen_test_layout_nsFrameManager() {
+ assert_eq!(
+ ::std::mem::size_of::<nsFrameManager>(),
+ 40usize,
+ concat!("Size of: ", stringify!(nsFrameManager))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsFrameManager>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsFrameManager))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsFrameManager>())).mPresShell as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsFrameManager),
+ "::",
+ stringify!(mPresShell)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsFrameManager>())).mRootFrame as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsFrameManager),
+ "::",
+ stringify!(mRootFrame)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsFrameManager>())).mDisplayNoneMap as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsFrameManager),
+ "::",
+ stringify!(mDisplayNoneMap)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsFrameManager>())).mDisplayContentsMap as *const _ as usize
+ },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsFrameManager),
+ "::",
+ stringify!(mDisplayContentsMap)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsFrameManager>())).mIsDestroyingFrames as *const _ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsFrameManager),
+ "::",
+ stringify!(mIsDestroyingFrames)
+ )
+ );
+ }
+ /// templated hashtable class maps keys to C++ object pointers.
+ /// See nsBaseHashtable for complete declaration.
+ /// @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
+ /// for a complete specification.
+ /// @param Class the class-type being wrapped
+ /// @see nsInterfaceHashtable, nsClassHashtable
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsClassHashtable {
+ pub _address: u8,
+ }
+ pub type nsClassHashtable_KeyType = [u8; 0usize];
+ pub type nsClassHashtable_UserDataType<T> = *mut T;
+ pub type nsClassHashtable_base_type = u8;
+ #[repr(C)]
+ pub struct nsPresArena {
+ pub mFreeLists: [root::nsPresArena_FreeList; 187usize],
+ pub mPool: [u64; 5usize],
+ pub mArenaRefPtrs: [u64; 4usize],
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsPresArena_FreeList {
+ pub mEntries: root::nsTArray<*mut ::std::os::raw::c_void>,
+ pub mEntrySize: usize,
+ pub mEntriesEverAllocated: usize,
+ }
+ #[test]
+ fn bindgen_test_layout_nsPresArena_FreeList() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPresArena_FreeList>(),
+ 24usize,
+ concat!("Size of: ", stringify!(nsPresArena_FreeList))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPresArena_FreeList>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsPresArena_FreeList))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresArena_FreeList>())).mEntries as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresArena_FreeList),
+ "::",
+ stringify!(mEntries)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresArena_FreeList>())).mEntrySize as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresArena_FreeList),
+ "::",
+ stringify!(mEntrySize)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresArena_FreeList>())).mEntriesEverAllocated as *const _
+ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresArena_FreeList),
+ "::",
+ stringify!(mEntriesEverAllocated)
+ )
+ );
+ }
+ #[test]
+ fn bindgen_test_layout_nsPresArena() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPresArena>(),
+ 4560usize,
+ concat!("Size of: ", stringify!(nsPresArena))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPresArena>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsPresArena))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresArena>())).mFreeLists as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresArena),
+ "::",
+ stringify!(mFreeLists)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresArena>())).mPool as *const _ as usize },
+ 4488usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresArena),
+ "::",
+ stringify!(mPool)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresArena>())).mArenaRefPtrs as *const _ as usize },
+ 4528usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresArena),
+ "::",
+ stringify!(mArenaRefPtrs)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct imgINotificationObserver {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct imgINotificationObserver_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub const imgINotificationObserver_SIZE_AVAILABLE:
+ root::imgINotificationObserver__bindgen_ty_1 = 1;
+ pub const imgINotificationObserver_FRAME_UPDATE: root::imgINotificationObserver__bindgen_ty_1 =
+ 2;
+ pub const imgINotificationObserver_FRAME_COMPLETE:
+ root::imgINotificationObserver__bindgen_ty_1 = 3;
+ pub const imgINotificationObserver_LOAD_COMPLETE: root::imgINotificationObserver__bindgen_ty_1 =
+ 4;
+ pub const imgINotificationObserver_DECODE_COMPLETE:
+ root::imgINotificationObserver__bindgen_ty_1 = 5;
+ pub const imgINotificationObserver_DISCARD: root::imgINotificationObserver__bindgen_ty_1 = 6;
+ pub const imgINotificationObserver_UNLOCKED_DRAW: root::imgINotificationObserver__bindgen_ty_1 =
+ 7;
+ pub const imgINotificationObserver_IS_ANIMATED: root::imgINotificationObserver__bindgen_ty_1 =
+ 8;
+ pub const imgINotificationObserver_HAS_TRANSPARENCY:
+ root::imgINotificationObserver__bindgen_ty_1 = 9;
+ pub type imgINotificationObserver__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_imgINotificationObserver() {
+ assert_eq!(
+ ::std::mem::size_of::<imgINotificationObserver>(),
+ 8usize,
+ concat!("Size of: ", stringify!(imgINotificationObserver))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<imgINotificationObserver>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(imgINotificationObserver))
+ );
+ }
+ impl Clone for imgINotificationObserver {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// There are two advantages to inheriting from nsStubDocumentObserver
+ /// rather than directly from nsIDocumentObserver:
+ /// 1. smaller compiled code size (since there's no need for the code
+ /// for the empty virtual function implementations for every
+ /// nsIDocumentObserver implementation)
+ /// 2. the performance of document's loop over observers benefits from
+ /// the fact that more of the functions called are the same (which
+ /// can reduce instruction cache misses and perhaps improve branch
+ /// prediction)
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsStubDocumentObserver {
+ pub _base: root::nsIDocumentObserver,
+ }
+ #[test]
+ fn bindgen_test_layout_nsStubDocumentObserver() {
+ assert_eq!(
+ ::std::mem::size_of::<nsStubDocumentObserver>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsStubDocumentObserver))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsStubDocumentObserver>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsStubDocumentObserver))
+ );
+ }
+ impl Clone for nsStubDocumentObserver {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsDocShell {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsDocShell {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsViewManager {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsViewManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsFrameSelection {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsFrameSelection {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsCSSFrameConstructor {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsCSSFrameConstructor {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct AutoWeakFrame {
+ _unused: [u8; 0],
+ }
+ impl Clone for AutoWeakFrame {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct WeakFrame {
+ _unused: [u8; 0],
+ }
+ impl Clone for WeakFrame {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsRefreshDriver {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsRefreshDriver {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ pub struct CapturingContentInfo {
+ pub mAllowed: bool,
+ pub mPointerLock: bool,
+ pub mRetargetToElement: bool,
+ pub mPreventDrag: bool,
+ pub mContent: root::mozilla::StaticRefPtr<root::nsIContent>,
+ }
+ #[test]
+ fn bindgen_test_layout_CapturingContentInfo() {
+ assert_eq!(
+ ::std::mem::size_of::<CapturingContentInfo>(),
+ 16usize,
+ concat!("Size of: ", stringify!(CapturingContentInfo))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<CapturingContentInfo>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(CapturingContentInfo))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<CapturingContentInfo>())).mAllowed as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(CapturingContentInfo),
+ "::",
+ stringify!(mAllowed)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<CapturingContentInfo>())).mPointerLock as *const _ as usize
+ },
+ 1usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(CapturingContentInfo),
+ "::",
+ stringify!(mPointerLock)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<CapturingContentInfo>())).mRetargetToElement as *const _
+ as usize
+ },
+ 2usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(CapturingContentInfo),
+ "::",
+ stringify!(mRetargetToElement)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<CapturingContentInfo>())).mPreventDrag as *const _ as usize
+ },
+ 3usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(CapturingContentInfo),
+ "::",
+ stringify!(mPreventDrag)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<CapturingContentInfo>())).mContent as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(CapturingContentInfo),
+ "::",
+ stringify!(mContent)
+ )
+ );
+ }
+ /// Presentation shell interface. Presentation shells are the
+ /// controlling point for managing the presentation of a document. The
+ /// presentation shell holds a live reference to the document, the
+ /// presentation context, the style manager, the style set and the root
+ /// frame. <p>
+ ///
+ /// When this object is Release'd, it will release the document, the
+ /// presentation context, the style manager, the style set and the root
+ /// frame.
+ #[repr(C)]
+ pub struct nsIPresShell {
+ pub _base: root::nsStubDocumentObserver,
+ pub mDocument: root::nsCOMPtr,
+ pub mPresContext: root::RefPtr<root::nsPresContext>,
+ pub mStyleSet: root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>,
+ pub mFrameConstructor: *mut root::nsCSSFrameConstructor,
+ pub mViewManager: *mut root::nsViewManager,
+ pub mFrameArena: root::nsPresArena,
+ pub mSelection: root::RefPtr<root::nsFrameSelection>,
+ pub mFrameManager: *mut root::nsFrameManager,
+ pub mForwardingContainer: u64,
+ pub mDocAccessible: *mut root::mozilla::a11y::DocAccessible,
+ pub mReflowContinueTimer: root::nsCOMPtr,
+ pub mPaintCount: u64,
+ pub mScrollPositionClampingScrollPortSize: root::nsSize,
+ pub mAutoWeakFrames: *mut root::AutoWeakFrame,
+ pub mWeakFrames: [u64; 4usize],
+ pub mStyleCause: root::UniqueProfilerBacktrace,
+ pub mReflowCause: root::UniqueProfilerBacktrace,
+ pub mCanvasBackgroundColor: root::nscolor,
+ pub mResolution: [u32; 2usize],
+ pub mSelectionFlags: i16,
+ pub mChangeNestCount: u16,
+ pub mRenderFlags: root::nsIPresShell_RenderFlags,
+ pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 3usize], u8>,
+ pub mPresShellId: u32,
+ pub mFontSizeInflationEmPerLine: u32,
+ pub mFontSizeInflationMinTwips: u32,
+ pub mFontSizeInflationLineThreshold: u32,
+ pub mFontSizeInflationForceEnabled: bool,
+ pub mFontSizeInflationDisabledInMasterProcess: bool,
+ pub mFontSizeInflationEnabled: bool,
+ pub mFontSizeInflationEnabledIsDirty: bool,
+ pub mPaintingIsFrozen: bool,
+ pub mIsNeverPainting: bool,
+ pub mInFlush: bool,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIPresShell_COMTypeInfo {
+ pub _address: u8,
+ }
+ pub type nsIPresShell_LayerManager = root::mozilla::layers::LayerManager;
+ pub type nsIPresShell_SourceSurface = root::mozilla::gfx::SourceSurface;
+ pub const nsIPresShell_eRenderFlag_STATE_IGNORING_VIEWPORT_SCROLLING:
+ root::nsIPresShell_eRenderFlag = 1;
+ pub const nsIPresShell_eRenderFlag_STATE_DRAWWINDOW_NOT_FLUSHING:
+ root::nsIPresShell_eRenderFlag = 2;
+ pub type nsIPresShell_eRenderFlag = u32;
+ pub type nsIPresShell_RenderFlags = u8;
+ pub const nsIPresShell_ResizeReflowOptions_eBSizeExact: root::nsIPresShell_ResizeReflowOptions =
+ 0;
+ pub const nsIPresShell_ResizeReflowOptions_eBSizeLimit: root::nsIPresShell_ResizeReflowOptions =
+ 1;
+ pub type nsIPresShell_ResizeReflowOptions = u32;
+ pub const nsIPresShell_ScrollDirection_eHorizontal: root::nsIPresShell_ScrollDirection = 0;
+ pub const nsIPresShell_ScrollDirection_eVertical: root::nsIPresShell_ScrollDirection = 1;
+ pub const nsIPresShell_ScrollDirection_eEither: root::nsIPresShell_ScrollDirection = 2;
+ /// Gets nearest scrollable frame from the specified content node. The frame
+ /// is scrollable with overflow:scroll or overflow:auto in some direction when
+ /// aDirection is eEither. Otherwise, this returns a nearest frame that is
+ /// scrollable in the specified direction.
+ pub type nsIPresShell_ScrollDirection = u32;
+ pub const nsIPresShell_IntrinsicDirty_eResize: root::nsIPresShell_IntrinsicDirty = 0;
+ pub const nsIPresShell_IntrinsicDirty_eTreeChange: root::nsIPresShell_IntrinsicDirty = 1;
+ pub const nsIPresShell_IntrinsicDirty_eStyleChange: root::nsIPresShell_IntrinsicDirty = 2;
+ /// Tell the pres shell that a frame needs to be marked dirty and needs
+ /// Reflow. It's OK if this is an ancestor of the frame needing reflow as
+ /// long as the ancestor chain between them doesn't cross a reflow root.
+ ///
+ /// The bit to add should be NS_FRAME_IS_DIRTY, NS_FRAME_HAS_DIRTY_CHILDREN
+ /// or nsFrameState(0); passing 0 means that dirty bits won't be set on the
+ /// frame or its ancestors/descendants, but that intrinsic widths will still
+ /// be marked dirty. Passing aIntrinsicDirty = eResize and aBitToAdd = 0
+ /// would result in no work being done, so don't do that.
+ pub type nsIPresShell_IntrinsicDirty = u32;
+ pub const nsIPresShell_ReflowRootHandling_ePositionOrSizeChange:
+ root::nsIPresShell_ReflowRootHandling = 0;
+ pub const nsIPresShell_ReflowRootHandling_eNoPositionOrSizeChange:
+ root::nsIPresShell_ReflowRootHandling = 1;
+ pub const nsIPresShell_ReflowRootHandling_eInferFromBitToAdd:
+ root::nsIPresShell_ReflowRootHandling = 2;
+ pub type nsIPresShell_ReflowRootHandling = u32;
+ pub const nsIPresShell_SCROLL_TOP: root::nsIPresShell__bindgen_ty_1 = 0;
+ pub const nsIPresShell_SCROLL_BOTTOM: root::nsIPresShell__bindgen_ty_1 = 100;
+ pub const nsIPresShell_SCROLL_LEFT: root::nsIPresShell__bindgen_ty_1 = 0;
+ pub const nsIPresShell_SCROLL_RIGHT: root::nsIPresShell__bindgen_ty_1 = 100;
+ pub const nsIPresShell_SCROLL_CENTER: root::nsIPresShell__bindgen_ty_1 = 50;
+ pub const nsIPresShell_SCROLL_MINIMUM: root::nsIPresShell__bindgen_ty_1 = -1;
+ pub type nsIPresShell__bindgen_ty_1 = i32;
+ pub const nsIPresShell_WhenToScroll_SCROLL_ALWAYS: root::nsIPresShell_WhenToScroll = 0;
+ pub const nsIPresShell_WhenToScroll_SCROLL_IF_NOT_VISIBLE: root::nsIPresShell_WhenToScroll = 1;
+ pub const nsIPresShell_WhenToScroll_SCROLL_IF_NOT_FULLY_VISIBLE:
+ root::nsIPresShell_WhenToScroll = 2;
+ pub type nsIPresShell_WhenToScroll = u32;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIPresShell_ScrollAxis {
+ pub _bindgen_opaque_blob: u32,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIPresShell_ScrollAxis() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIPresShell_ScrollAxis>(),
+ 4usize,
+ concat!("Size of: ", stringify!(nsIPresShell_ScrollAxis))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIPresShell_ScrollAxis>(),
+ 4usize,
+ concat!("Alignment of ", stringify!(nsIPresShell_ScrollAxis))
+ );
+ }
+ impl Clone for nsIPresShell_ScrollAxis {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const nsIPresShell_SCROLL_FIRST_ANCESTOR_ONLY: root::nsIPresShell__bindgen_ty_2 = 1;
+ pub const nsIPresShell_SCROLL_OVERFLOW_HIDDEN: root::nsIPresShell__bindgen_ty_2 = 2;
+ pub const nsIPresShell_SCROLL_NO_PARENT_FRAMES: root::nsIPresShell__bindgen_ty_2 = 4;
+ pub const nsIPresShell_SCROLL_SMOOTH: root::nsIPresShell__bindgen_ty_2 = 8;
+ pub const nsIPresShell_SCROLL_SMOOTH_AUTO: root::nsIPresShell__bindgen_ty_2 = 16;
+ pub type nsIPresShell__bindgen_ty_2 = u32;
+ pub const nsIPresShell_RENDER_IS_UNTRUSTED: root::nsIPresShell__bindgen_ty_3 = 1;
+ pub const nsIPresShell_RENDER_IGNORE_VIEWPORT_SCROLLING: root::nsIPresShell__bindgen_ty_3 = 2;
+ pub const nsIPresShell_RENDER_CARET: root::nsIPresShell__bindgen_ty_3 = 4;
+ pub const nsIPresShell_RENDER_USE_WIDGET_LAYERS: root::nsIPresShell__bindgen_ty_3 = 8;
+ pub const nsIPresShell_RENDER_ASYNC_DECODE_IMAGES: root::nsIPresShell__bindgen_ty_3 = 16;
+ pub const nsIPresShell_RENDER_DOCUMENT_RELATIVE: root::nsIPresShell__bindgen_ty_3 = 32;
+ pub const nsIPresShell_RENDER_DRAWWINDOW_NOT_FLUSHING: root::nsIPresShell__bindgen_ty_3 = 64;
+ /// Render the document into an arbitrary gfxContext
+ /// Designed for getting a picture of a document or a piece of a document
+ /// Note that callers will generally want to call FlushPendingNotifications
+ /// to get an up-to-date view of the document
+ /// @param aRect is the region to capture into the offscreen buffer, in the
+ /// root frame's coordinate system (if aIgnoreViewportScrolling is false)
+ /// or in the root scrolled frame's coordinate system
+ /// (if aIgnoreViewportScrolling is true). The coordinates are in appunits.
+ /// @param aFlags see below;
+ /// set RENDER_IS_UNTRUSTED if the contents may be passed to malicious
+ /// agents. E.g. we might choose not to paint the contents of sensitive widgets
+ /// such as the file name in a file upload widget, and we might choose not
+ /// to paint themes.
+ /// set RENDER_IGNORE_VIEWPORT_SCROLLING to ignore
+ /// clipping and scrollbar painting due to scrolling in the viewport
+ /// set RENDER_CARET to draw the caret if one would be visible
+ /// (by default the caret is never drawn)
+ /// set RENDER_USE_LAYER_MANAGER to force rendering to go through
+ /// the layer manager for the window. This may be unexpectedly slow
+ /// (if the layer manager must read back data from the GPU) or low-quality
+ /// (if the layer manager reads back pixel data and scales it
+ /// instead of rendering using the appropriate scaling). It may also
+ /// slow everything down if the area rendered does not correspond to the
+ /// normal visible area of the window.
+ /// set RENDER_ASYNC_DECODE_IMAGES to avoid having images synchronously
+ /// decoded during rendering.
+ /// (by default images decode synchronously with RenderDocument)
+ /// set RENDER_DOCUMENT_RELATIVE to render the document as if there has been
+ /// no scrolling and interpret |aRect| relative to the document instead of the
+ /// CSS viewport. Only considered if RENDER_IGNORE_VIEWPORT_SCROLLING is set
+ /// or the document is in ignore viewport scrolling mode
+ /// (nsIPresShell::SetIgnoreViewportScrolling/IgnoringViewportScrolling).
+ /// @param aBackgroundColor a background color to render onto
+ /// @param aRenderedContext the gfxContext to render to. We render so that
+ /// one CSS pixel in the source document is rendered to one unit in the current
+ /// transform.
+ pub type nsIPresShell__bindgen_ty_3 = u32;
+ pub const nsIPresShell_RENDER_IS_IMAGE: root::nsIPresShell__bindgen_ty_4 = 256;
+ pub const nsIPresShell_RENDER_AUTO_SCALE: root::nsIPresShell__bindgen_ty_4 = 128;
+ pub type nsIPresShell__bindgen_ty_4 = u32;
+ pub const nsIPresShell_FORCE_DRAW: root::nsIPresShell__bindgen_ty_5 = 1;
+ pub const nsIPresShell_ADD_FOR_SUBDOC: root::nsIPresShell__bindgen_ty_5 = 2;
+ pub const nsIPresShell_APPEND_UNSCROLLED_ONLY: root::nsIPresShell__bindgen_ty_5 = 4;
+ /// Add a solid color item to the bottom of aList with frame aFrame and bounds
+ /// aBounds. Checks first if this needs to be done by checking if aFrame is a
+ /// canvas frame (if the FORCE_DRAW flag is passed then this check is skipped).
+ /// aBackstopColor is composed behind the background color of the canvas, it is
+ /// transparent by default.
+ /// We attempt to make the background color part of the scrolled canvas (to reduce
+ /// transparent layers), and if async scrolling is enabled (and the background
+ /// is opaque) then we add a second, unscrolled item to handle the checkerboarding
+ /// case.
+ /// ADD_FOR_SUBDOC shoud be specified when calling this for a subdocument, and
+ /// LayoutUseContainersForRootFrame might cause the whole list to be scrolled. In
+ /// that case the second unscrolled item will be elided.
+ /// APPEND_UNSCROLLED_ONLY only attempts to add the unscrolled item, so that we
+ /// can add it manually after LayoutUseContainersForRootFrame has built the
+ /// scrolling ContainerLayer.
+ pub type nsIPresShell__bindgen_ty_5 = u32;
+ pub const nsIPresShell_PaintFlags_PAINT_LAYERS: root::nsIPresShell_PaintFlags = 1;
+ pub const nsIPresShell_PaintFlags_PAINT_COMPOSITE: root::nsIPresShell_PaintFlags = 2;
+ pub const nsIPresShell_PaintFlags_PAINT_SYNC_DECODE_IMAGES: root::nsIPresShell_PaintFlags = 4;
+ pub type nsIPresShell_PaintFlags = u32;
+ pub const nsIPresShell_PaintType_PAINT_DEFAULT: root::nsIPresShell_PaintType = 0;
+ pub const nsIPresShell_PaintType_PAINT_DELAYED_COMPRESS: root::nsIPresShell_PaintType = 1;
+ /// Ensures that the refresh driver is running, and schedules a view
+ /// manager flush on the next tick.
+ ///
+ /// @param aType PAINT_DELAYED_COMPRESS : Schedule a paint to be executed after a delay, and
+ /// put FrameLayerBuilder in 'compressed' mode that avoids short cut optimizations.
+ pub type nsIPresShell_PaintType = u32;
+ extern "C" {
+ #[link_name = "\u{1}_ZN12nsIPresShell12gCaptureInfoE"]
+ pub static mut nsIPresShell_gCaptureInfo: root::CapturingContentInfo;
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN12nsIPresShell14gKeyDownTargetE"]
+ pub static mut nsIPresShell_gKeyDownTarget: *mut root::nsIContent;
+ }
+ #[test]
+ fn bindgen_test_layout_nsIPresShell() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIPresShell>(),
+ 4768usize,
+ concat!("Size of: ", stringify!(nsIPresShell))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIPresShell>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIPresShell))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mDocument as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mDocument)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mPresContext as *const _ as usize },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mPresContext)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mStyleSet as *const _ as usize },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mStyleSet)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFrameConstructor as *const _ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFrameConstructor)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mViewManager as *const _ as usize },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mViewManager)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mFrameArena as *const _ as usize },
+ 48usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFrameArena)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mSelection as *const _ as usize },
+ 4608usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mSelection)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mFrameManager as *const _ as usize },
+ 4616usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFrameManager)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mForwardingContainer as *const _ as usize
+ },
+ 4624usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mForwardingContainer)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mDocAccessible as *const _ as usize },
+ 4632usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mDocAccessible)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mReflowContinueTimer as *const _ as usize
+ },
+ 4640usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mReflowContinueTimer)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mPaintCount as *const _ as usize },
+ 4648usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mPaintCount)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mScrollPositionClampingScrollPortSize
+ as *const _ as usize
+ },
+ 4656usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mScrollPositionClampingScrollPortSize)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mAutoWeakFrames as *const _ as usize
+ },
+ 4664usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mAutoWeakFrames)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mWeakFrames as *const _ as usize },
+ 4672usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mWeakFrames)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mStyleCause as *const _ as usize },
+ 4704usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mStyleCause)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mReflowCause as *const _ as usize },
+ 4712usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mReflowCause)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mCanvasBackgroundColor as *const _ as usize
+ },
+ 4720usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mCanvasBackgroundColor)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mResolution as *const _ as usize },
+ 4724usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mResolution)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mSelectionFlags as *const _ as usize
+ },
+ 4732usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mSelectionFlags)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mChangeNestCount as *const _ as usize
+ },
+ 4734usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mChangeNestCount)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mRenderFlags as *const _ as usize },
+ 4736usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mRenderFlags)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mPresShellId as *const _ as usize },
+ 4740usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mPresShellId)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationEmPerLine as *const _
+ as usize
+ },
+ 4744usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFontSizeInflationEmPerLine)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationMinTwips as *const _
+ as usize
+ },
+ 4748usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFontSizeInflationMinTwips)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationLineThreshold as *const _
+ as usize
+ },
+ 4752usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFontSizeInflationLineThreshold)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationForceEnabled as *const _
+ as usize
+ },
+ 4756usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFontSizeInflationForceEnabled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationDisabledInMasterProcess
+ as *const _ as usize
+ },
+ 4757usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFontSizeInflationDisabledInMasterProcess)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationEnabled as *const _
+ as usize
+ },
+ 4758usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFontSizeInflationEnabled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mFontSizeInflationEnabledIsDirty
+ as *const _ as usize
+ },
+ 4759usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mFontSizeInflationEnabledIsDirty)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mPaintingIsFrozen as *const _ as usize
+ },
+ 4760usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mPaintingIsFrozen)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIPresShell>())).mIsNeverPainting as *const _ as usize
+ },
+ 4761usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mIsNeverPainting)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIPresShell>())).mInFlush as *const _ as usize },
+ 4762usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIPresShell),
+ "::",
+ stringify!(mInFlush)
+ )
+ );
+ }
+ impl nsIPresShell {
+ #[inline]
+ pub fn mDidInitialize(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDidInitialize(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(0usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsDestroying(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsDestroying(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(1usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsReflowing(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsReflowing(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(2usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsObservingDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsObservingDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(3usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsDocumentGone(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsDocumentGone(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(4usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPaintingSuppressed(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mPaintingSuppressed(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(5usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsActive(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsActive(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(6usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mFrozen(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mFrozen(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(7usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsFirstPaint(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsFirstPaint(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(8usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mObservesMutationsForPrint(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mObservesMutationsForPrint(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(9usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mWasLastReflowInterrupted(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mWasLastReflowInterrupted(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(10usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mScrollPositionClampingScrollPortSizeSet(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mScrollPositionClampingScrollPortSizeSet(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(11usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mNeedLayoutFlush(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mNeedLayoutFlush(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(12usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mNeedStyleFlush(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mNeedStyleFlush(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(13usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mObservingStyleFlushes(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mObservingStyleFlushes(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(14usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mObservingLayoutFlushes(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mObservingLayoutFlushes(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(15usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mResizeEventPending(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mResizeEventPending(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(16usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mNeedThrottledAnimationFlush(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mNeedThrottledAnimationFlush(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(17usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn new_bitfield_1(
+ mDidInitialize: bool,
+ mIsDestroying: bool,
+ mIsReflowing: bool,
+ mIsObservingDocument: bool,
+ mIsDocumentGone: bool,
+ mPaintingSuppressed: bool,
+ mIsActive: bool,
+ mFrozen: bool,
+ mIsFirstPaint: bool,
+ mObservesMutationsForPrint: bool,
+ mWasLastReflowInterrupted: bool,
+ mScrollPositionClampingScrollPortSizeSet: bool,
+ mNeedLayoutFlush: bool,
+ mNeedStyleFlush: bool,
+ mObservingStyleFlushes: bool,
+ mObservingLayoutFlushes: bool,
+ mResizeEventPending: bool,
+ mNeedThrottledAnimationFlush: bool,
+ ) -> root::__BindgenBitfieldUnit<[u8; 3usize], u8> {
+ let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
+ [u8; 3usize],
+ u8,
+ > = Default::default();
+ __bindgen_bitfield_unit.set(0usize, 1u8, {
+ let mDidInitialize: u8 = unsafe { ::std::mem::transmute(mDidInitialize) };
+ mDidInitialize as u64
+ });
+ __bindgen_bitfield_unit.set(1usize, 1u8, {
+ let mIsDestroying: u8 = unsafe { ::std::mem::transmute(mIsDestroying) };
+ mIsDestroying as u64
+ });
+ __bindgen_bitfield_unit.set(2usize, 1u8, {
+ let mIsReflowing: u8 = unsafe { ::std::mem::transmute(mIsReflowing) };
+ mIsReflowing as u64
+ });
+ __bindgen_bitfield_unit.set(3usize, 1u8, {
+ let mIsObservingDocument: u8 =
+ unsafe { ::std::mem::transmute(mIsObservingDocument) };
+ mIsObservingDocument as u64
+ });
+ __bindgen_bitfield_unit.set(4usize, 1u8, {
+ let mIsDocumentGone: u8 = unsafe { ::std::mem::transmute(mIsDocumentGone) };
+ mIsDocumentGone as u64
+ });
+ __bindgen_bitfield_unit.set(5usize, 1u8, {
+ let mPaintingSuppressed: u8 = unsafe { ::std::mem::transmute(mPaintingSuppressed) };
+ mPaintingSuppressed as u64
+ });
+ __bindgen_bitfield_unit.set(6usize, 1u8, {
+ let mIsActive: u8 = unsafe { ::std::mem::transmute(mIsActive) };
+ mIsActive as u64
+ });
+ __bindgen_bitfield_unit.set(7usize, 1u8, {
+ let mFrozen: u8 = unsafe { ::std::mem::transmute(mFrozen) };
+ mFrozen as u64
+ });
+ __bindgen_bitfield_unit.set(8usize, 1u8, {
+ let mIsFirstPaint: u8 = unsafe { ::std::mem::transmute(mIsFirstPaint) };
+ mIsFirstPaint as u64
+ });
+ __bindgen_bitfield_unit.set(9usize, 1u8, {
+ let mObservesMutationsForPrint: u8 =
+ unsafe { ::std::mem::transmute(mObservesMutationsForPrint) };
+ mObservesMutationsForPrint as u64
+ });
+ __bindgen_bitfield_unit.set(10usize, 1u8, {
+ let mWasLastReflowInterrupted: u8 =
+ unsafe { ::std::mem::transmute(mWasLastReflowInterrupted) };
+ mWasLastReflowInterrupted as u64
+ });
+ __bindgen_bitfield_unit.set(11usize, 1u8, {
+ let mScrollPositionClampingScrollPortSizeSet: u8 =
+ unsafe { ::std::mem::transmute(mScrollPositionClampingScrollPortSizeSet) };
+ mScrollPositionClampingScrollPortSizeSet as u64
+ });
+ __bindgen_bitfield_unit.set(12usize, 1u8, {
+ let mNeedLayoutFlush: u8 = unsafe { ::std::mem::transmute(mNeedLayoutFlush) };
+ mNeedLayoutFlush as u64
+ });
+ __bindgen_bitfield_unit.set(13usize, 1u8, {
+ let mNeedStyleFlush: u8 = unsafe { ::std::mem::transmute(mNeedStyleFlush) };
+ mNeedStyleFlush as u64
+ });
+ __bindgen_bitfield_unit.set(14usize, 1u8, {
+ let mObservingStyleFlushes: u8 =
+ unsafe { ::std::mem::transmute(mObservingStyleFlushes) };
+ mObservingStyleFlushes as u64
+ });
+ __bindgen_bitfield_unit.set(15usize, 1u8, {
+ let mObservingLayoutFlushes: u8 =
+ unsafe { ::std::mem::transmute(mObservingLayoutFlushes) };
+ mObservingLayoutFlushes as u64
+ });
+ __bindgen_bitfield_unit.set(16usize, 1u8, {
+ let mResizeEventPending: u8 = unsafe { ::std::mem::transmute(mResizeEventPending) };
+ mResizeEventPending as u64
+ });
+ __bindgen_bitfield_unit.set(17usize, 1u8, {
+ let mNeedThrottledAnimationFlush: u8 =
+ unsafe { ::std::mem::transmute(mNeedThrottledAnimationFlush) };
+ mNeedThrottledAnimationFlush as u64
+ });
+ __bindgen_bitfield_unit
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIProgressEventSink {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIProgressEventSink_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIProgressEventSink() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIProgressEventSink>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIProgressEventSink))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIProgressEventSink>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIProgressEventSink))
+ );
+ }
+ impl Clone for nsIProgressEventSink {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsISecurityEventSink {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsISecurityEventSink_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsISecurityEventSink() {
+ assert_eq!(
+ ::std::mem::size_of::<nsISecurityEventSink>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsISecurityEventSink))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsISecurityEventSink>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsISecurityEventSink))
+ );
+ }
+ impl Clone for nsISecurityEventSink {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIUUIDGenerator {
+ pub _base: root::nsISupports,
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIUUIDGenerator_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIUUIDGenerator() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIUUIDGenerator>(),
+ 8usize,
+ concat!("Size of: ", stringify!(nsIUUIDGenerator))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIUUIDGenerator>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIUUIDGenerator))
+ );
+ }
+ impl Clone for nsIUUIDGenerator {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsContentList {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsContentList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIIOService {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIIOService {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIStringBundleService {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIStringBundleService {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// Data used to track the expiration state of an object. We promise that this
+ /// is 32 bits so that objects that includes this as a field can pad and align
+ /// efficiently.
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsExpirationState {
+ pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 4usize], u32>,
+ pub __bindgen_align: [u32; 0usize],
+ }
+ pub const nsExpirationState_NOT_TRACKED: root::nsExpirationState__bindgen_ty_1 = 15;
+ pub const nsExpirationState_MAX_INDEX_IN_GENERATION: root::nsExpirationState__bindgen_ty_1 =
+ 268435455;
+ pub type nsExpirationState__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_nsExpirationState() {
+ assert_eq!(
+ ::std::mem::size_of::<nsExpirationState>(),
+ 4usize,
+ concat!("Size of: ", stringify!(nsExpirationState))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsExpirationState>(),
+ 4usize,
+ concat!("Alignment of ", stringify!(nsExpirationState))
+ );
+ }
+ impl Clone for nsExpirationState {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ impl nsExpirationState {
+ #[inline]
+ pub fn mGeneration(&self) -> u32 {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mGeneration(&mut self, val: u32) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(0usize, 4u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIndexInGeneration(&self) -> u32 {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIndexInGeneration(&mut self, val: u32) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(4usize, 28u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn new_bitfield_1(
+ mGeneration: u32,
+ mIndexInGeneration: u32,
+ ) -> root::__BindgenBitfieldUnit<[u8; 4usize], u32> {
+ let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
+ [u8; 4usize],
+ u32,
+ > = Default::default();
+ __bindgen_bitfield_unit.set(0usize, 4u8, {
+ let mGeneration: u32 = unsafe { ::std::mem::transmute(mGeneration) };
+ mGeneration as u64
+ });
+ __bindgen_bitfield_unit.set(4usize, 28u8, {
+ let mIndexInGeneration: u32 = unsafe { ::std::mem::transmute(mIndexInGeneration) };
+ mIndexInGeneration as u64
+ });
+ __bindgen_bitfield_unit
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsBaseContentList {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsBaseContentList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ /// Right now our identifier map entries contain information for 'name'
+ /// and 'id' mappings of a given string. This is so that
+ /// nsHTMLDocument::ResolveName only has to do one hash lookup instead
+ /// of two. It's not clear whether this still matters for performance.
+ ///
+ /// We also store the document.all result list here. This is mainly so that
+ /// when all elements with the given ID are removed and we remove
+ /// the ID's nsIdentifierMapEntry, the document.all result is released too.
+ /// Perhaps the document.all results should have their own hashtable
+ /// in nsHTMLDocument.
+ #[repr(C)]
+ pub struct nsIdentifierMapEntry {
+ pub _base: root::PLDHashEntryHdr,
+ pub mKey: root::nsIdentifierMapEntry_AtomOrString,
+ pub mIdContentList: [u64; 3usize],
+ pub mNameContentList: root::RefPtr<root::nsBaseContentList>,
+ pub mChangeCallbacks: u64,
+ pub mImageElement: root::RefPtr<root::nsIdentifierMapEntry_Element>,
+ }
+ pub type nsIdentifierMapEntry_Element = root::mozilla::dom::Element;
+ pub use self::super::root::mozilla::net::ReferrerPolicy as nsIdentifierMapEntry_ReferrerPolicy;
+ /// @see nsIDocument::IDTargetObserver, this is just here to avoid include
+ /// hell.
+ pub type nsIdentifierMapEntry_IDTargetObserver = ::std::option::Option<
+ unsafe extern "C" fn(
+ aOldElement: *mut root::nsIdentifierMapEntry_Element,
+ aNewelement: *mut root::nsIdentifierMapEntry_Element,
+ aData: *mut ::std::os::raw::c_void,
+ ) -> bool,
+ >;
+ #[repr(C)]
+ pub struct nsIdentifierMapEntry_AtomOrString {
+ pub mAtom: root::RefPtr<root::nsAtom>,
+ pub mString: ::nsstring::nsStringRepr,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIdentifierMapEntry_AtomOrString() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIdentifierMapEntry_AtomOrString>(),
+ 24usize,
+ concat!("Size of: ", stringify!(nsIdentifierMapEntry_AtomOrString))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIdentifierMapEntry_AtomOrString>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsIdentifierMapEntry_AtomOrString)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry_AtomOrString>())).mAtom as *const _
+ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry_AtomOrString),
+ "::",
+ stringify!(mAtom)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry_AtomOrString>())).mString as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry_AtomOrString),
+ "::",
+ stringify!(mString)
+ )
+ );
+ }
+ pub type nsIdentifierMapEntry_KeyType = *const root::nsIdentifierMapEntry_AtomOrString;
+ pub type nsIdentifierMapEntry_KeyTypePointer = *const root::nsIdentifierMapEntry_AtomOrString;
+ pub const nsIdentifierMapEntry_ALLOW_MEMMOVE: root::nsIdentifierMapEntry__bindgen_ty_1 = 0;
+ pub type nsIdentifierMapEntry__bindgen_ty_1 = u32;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIdentifierMapEntry_ChangeCallback {
+ pub mCallback: root::nsIdentifierMapEntry_IDTargetObserver,
+ pub mData: *mut ::std::os::raw::c_void,
+ pub mForImage: bool,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIdentifierMapEntry_ChangeCallback() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIdentifierMapEntry_ChangeCallback>(),
+ 24usize,
+ concat!("Size of: ", stringify!(nsIdentifierMapEntry_ChangeCallback))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIdentifierMapEntry_ChangeCallback>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsIdentifierMapEntry_ChangeCallback)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallback>())).mCallback
+ as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry_ChangeCallback),
+ "::",
+ stringify!(mCallback)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallback>())).mData as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry_ChangeCallback),
+ "::",
+ stringify!(mData)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallback>())).mForImage
+ as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry_ChangeCallback),
+ "::",
+ stringify!(mForImage)
+ )
+ );
+ }
+ impl Clone for nsIdentifierMapEntry_ChangeCallback {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIdentifierMapEntry_ChangeCallbackEntry {
+ pub _base: root::PLDHashEntryHdr,
+ pub mKey: root::nsIdentifierMapEntry_ChangeCallback,
+ }
+ pub type nsIdentifierMapEntry_ChangeCallbackEntry_KeyType =
+ root::nsIdentifierMapEntry_ChangeCallback;
+ pub type nsIdentifierMapEntry_ChangeCallbackEntry_KeyTypePointer =
+ *const root::nsIdentifierMapEntry_ChangeCallback;
+ pub const nsIdentifierMapEntry_ChangeCallbackEntry_ALLOW_MEMMOVE:
+ root::nsIdentifierMapEntry_ChangeCallbackEntry__bindgen_ty_1 = 1;
+ pub type nsIdentifierMapEntry_ChangeCallbackEntry__bindgen_ty_1 = u32;
+ #[test]
+ fn bindgen_test_layout_nsIdentifierMapEntry_ChangeCallbackEntry() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIdentifierMapEntry_ChangeCallbackEntry>(),
+ 32usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsIdentifierMapEntry_ChangeCallbackEntry)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIdentifierMapEntry_ChangeCallbackEntry>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsIdentifierMapEntry_ChangeCallbackEntry)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry_ChangeCallbackEntry>())).mKey
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry_ChangeCallbackEntry),
+ "::",
+ stringify!(mKey)
+ )
+ );
+ }
+ impl Clone for nsIdentifierMapEntry_ChangeCallbackEntry {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[test]
+ fn bindgen_test_layout_nsIdentifierMapEntry() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIdentifierMapEntry>(),
+ 80usize,
+ concat!("Size of: ", stringify!(nsIdentifierMapEntry))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIdentifierMapEntry>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIdentifierMapEntry))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mKey as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry),
+ "::",
+ stringify!(mKey)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mIdContentList as *const _ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry),
+ "::",
+ stringify!(mIdContentList)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mNameContentList as *const _
+ as usize
+ },
+ 56usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry),
+ "::",
+ stringify!(mNameContentList)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mChangeCallbacks as *const _
+ as usize
+ },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry),
+ "::",
+ stringify!(mChangeCallbacks)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIdentifierMapEntry>())).mImageElement as *const _ as usize
+ },
+ 72usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIdentifierMapEntry),
+ "::",
+ stringify!(mImageElement)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsDOMStyleSheetSetList {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsDOMStyleSheetSetList {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsFrameLoader {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsFrameLoader {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsHTMLCSSStyleSheet {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsHTMLCSSStyleSheet {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIBFCacheEntry {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIBFCacheEntry {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIDocumentEncoder {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIDocumentEncoder {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIObjectLoadingContent {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIObjectLoadingContent {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIStructuredCloneContainer {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIStructuredCloneContainer {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsSMILAnimationController {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsSMILAnimationController {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsSVGElement {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsSVGElement {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ pub struct nsDocHeaderData {
+ pub mField: root::RefPtr<root::nsAtom>,
+ pub mData: ::nsstring::nsStringRepr,
+ pub mNext: *mut root::nsDocHeaderData,
+ }
+ #[test]
+ fn bindgen_test_layout_nsDocHeaderData() {
+ assert_eq!(
+ ::std::mem::size_of::<nsDocHeaderData>(),
+ 32usize,
+ concat!("Size of: ", stringify!(nsDocHeaderData))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsDocHeaderData>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsDocHeaderData))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsDocHeaderData>())).mField as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsDocHeaderData),
+ "::",
+ stringify!(mField)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsDocHeaderData>())).mData as *const _ as usize },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsDocHeaderData),
+ "::",
+ stringify!(mData)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsDocHeaderData>())).mNext as *const _ as usize },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsDocHeaderData),
+ "::",
+ stringify!(mNext)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap {
+ pub mMap: [u64; 4usize],
+ pub mPendingLoads: [u64; 4usize],
+ pub mHaveShutDown: bool,
+ }
+ pub type nsExternalResourceMap_nsSubDocEnumFunc = ::std::option::Option<
+ unsafe extern "C" fn(aDocument: *mut root::nsIDocument, aData: *mut ::std::os::raw::c_void)
+ -> bool,
+ >;
+ /// A class that represents an external resource load that has begun but
+ /// doesn't have a document yet. Observers can be registered on this object,
+ /// and will be notified after the document is created. Observers registered
+ /// after the document has been created will NOT be notified. When observers
+ /// are notified, the subject will be the newly-created document, the topic
+ /// will be "external-resource-document-created", and the data will be null.
+ /// If document creation fails for some reason, observers will still be
+ /// notified, with a null document pointer.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap_ExternalResourceLoad {
+ pub _base: root::nsISupports,
+ pub mObservers: [u64; 10usize],
+ }
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_ExternalResourceLoad() {
+ assert_eq!(
+ ::std::mem::size_of::<nsExternalResourceMap_ExternalResourceLoad>(),
+ 88usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsExternalResourceMap_ExternalResourceLoad)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsExternalResourceMap_ExternalResourceLoad>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_ExternalResourceLoad)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResourceLoad>())).mObservers
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap_ExternalResourceLoad),
+ "::",
+ stringify!(mObservers)
+ )
+ );
+ }
+ #[repr(C)]
+ pub struct nsExternalResourceMap_ExternalResource {
+ pub mDocument: root::nsCOMPtr,
+ pub mViewer: root::nsCOMPtr,
+ pub mLoadGroup: root::nsCOMPtr,
+ }
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_ExternalResource() {
+ assert_eq!(
+ ::std::mem::size_of::<nsExternalResourceMap_ExternalResource>(),
+ 24usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsExternalResourceMap_ExternalResource)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsExternalResourceMap_ExternalResource>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_ExternalResource)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResource>())).mDocument
+ as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap_ExternalResource),
+ "::",
+ stringify!(mDocument)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResource>())).mViewer
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap_ExternalResource),
+ "::",
+ stringify!(mViewer)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap_ExternalResource>())).mLoadGroup
+ as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap_ExternalResource),
+ "::",
+ stringify!(mLoadGroup)
+ )
+ );
+ }
+ #[repr(C)]
+ pub struct nsExternalResourceMap_PendingLoad {
+ pub _base: root::nsExternalResourceMap_ExternalResourceLoad,
+ pub _base_1: root::nsIStreamListener,
+ pub mRefCnt: root::nsAutoRefCnt,
+ pub mDisplayDocument: root::nsCOMPtr,
+ pub mTargetListener: root::nsCOMPtr,
+ pub mURI: root::nsCOMPtr,
+ }
+ pub type nsExternalResourceMap_PendingLoad_HasThreadSafeRefCnt = root::mozilla::FalseType;
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_PendingLoad() {
+ assert_eq!(
+ ::std::mem::size_of::<nsExternalResourceMap_PendingLoad>(),
+ 128usize,
+ concat!("Size of: ", stringify!(nsExternalResourceMap_PendingLoad))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsExternalResourceMap_PendingLoad>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_PendingLoad)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap_LoadgroupCallbacks {
+ pub _base: root::nsIInterfaceRequestor,
+ pub mRefCnt: root::nsAutoRefCnt,
+ pub mCallbacks: root::nsCOMPtr,
+ }
+ pub type nsExternalResourceMap_LoadgroupCallbacks_HasThreadSafeRefCnt =
+ root::mozilla::FalseType;
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim {
+ pub _base: root::nsIInterfaceRequestor,
+ pub _base_1: root::nsILoadContext,
+ pub mRefCnt: root::nsAutoRefCnt,
+ pub mIfReq: root::nsCOMPtr,
+ pub mRealPtr: root::nsCOMPtr,
+ }
+ pub type nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim_HasThreadSafeRefCnt =
+ root::mozilla::FalseType;
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim() {
+ assert_eq!(
+ ::std::mem::size_of::<nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim>(),
+ 40usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsILoadContextShim)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim {
+ pub _base: root::nsIInterfaceRequestor,
+ pub _base_1: root::nsIProgressEventSink,
+ pub mRefCnt: root::nsAutoRefCnt,
+ pub mIfReq: root::nsCOMPtr,
+ pub mRealPtr: root::nsCOMPtr,
+ }
+ pub type nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim_HasThreadSafeRefCnt =
+ root::mozilla::FalseType;
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim() {
+ assert_eq!(
+ ::std::mem::size_of::<
+ nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim,
+ >(),
+ 40usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<
+ nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim,
+ >(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsIProgressEventSinkShim)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim {
+ pub _base: root::nsIInterfaceRequestor,
+ pub _base_1: root::nsIChannelEventSink,
+ pub mRefCnt: root::nsAutoRefCnt,
+ pub mIfReq: root::nsCOMPtr,
+ pub mRealPtr: root::nsCOMPtr,
+ }
+ pub type nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim_HasThreadSafeRefCnt =
+ root::mozilla::FalseType;
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim() {
+ assert_eq ! ( :: std :: mem :: size_of :: < nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim ) ) );
+ assert_eq!(
+ ::std::mem::align_of::<
+ nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim,
+ >(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsIChannelEventSinkShim)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim {
+ pub _base: root::nsIInterfaceRequestor,
+ pub _base_1: root::nsISecurityEventSink,
+ pub mRefCnt: root::nsAutoRefCnt,
+ pub mIfReq: root::nsCOMPtr,
+ pub mRealPtr: root::nsCOMPtr,
+ }
+ pub type nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim_HasThreadSafeRefCnt =
+ root::mozilla::FalseType;
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim() {
+ assert_eq!(
+ ::std::mem::size_of::<
+ nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim,
+ >(),
+ 40usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<
+ nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim,
+ >(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks_nsISecurityEventSinkShim)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim {
+ pub _base: root::nsIInterfaceRequestor,
+ pub _base_1: root::nsIApplicationCacheContainer,
+ pub mRefCnt: root::nsAutoRefCnt,
+ pub mIfReq: root::nsCOMPtr,
+ pub mRealPtr: root::nsCOMPtr,
+ }
+ pub type nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim_HasThreadSafeRefCnt = root :: mozilla :: FalseType ;
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim(
+) {
+ assert_eq!(
+ ::std::mem::size_of::<
+ nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim,
+ >(),
+ 40usize,
+ concat!(
+ "Size of: ",
+ stringify!(
+ nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim
+ )
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<
+ nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim,
+ >(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(
+ nsExternalResourceMap_LoadgroupCallbacks_nsIApplicationCacheContainerShim
+ )
+ )
+ );
+ }
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap_LoadgroupCallbacks() {
+ assert_eq!(
+ ::std::mem::size_of::<nsExternalResourceMap_LoadgroupCallbacks>(),
+ 24usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsExternalResourceMap_LoadgroupCallbacks>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap_LoadgroupCallbacks>())).mRefCnt
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks),
+ "::",
+ stringify!(mRefCnt)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap_LoadgroupCallbacks>())).mCallbacks
+ as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap_LoadgroupCallbacks),
+ "::",
+ stringify!(mCallbacks)
+ )
+ );
+ }
+ #[test]
+ fn bindgen_test_layout_nsExternalResourceMap() {
+ assert_eq!(
+ ::std::mem::size_of::<nsExternalResourceMap>(),
+ 72usize,
+ concat!("Size of: ", stringify!(nsExternalResourceMap))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsExternalResourceMap>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsExternalResourceMap))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsExternalResourceMap>())).mMap as *const _ as usize },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap),
+ "::",
+ stringify!(mMap)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap>())).mPendingLoads as *const _ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap),
+ "::",
+ stringify!(mPendingLoads)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsExternalResourceMap>())).mHaveShutDown as *const _ as usize
+ },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsExternalResourceMap),
+ "::",
+ stringify!(mHaveShutDown)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct PrincipalFlashClassifier {
+ _unused: [u8; 0],
+ }
+ impl Clone for PrincipalFlashClassifier {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ pub struct nsIDocument {
+ pub _base: root::nsINode,
+ pub _base_1: root::mozilla::dom::DocumentOrShadowRoot,
+ pub _base_2: root::mozilla::dom::DispatcherTrait,
+ pub mDeprecationWarnedAbout: u64,
+ pub mDocWarningWarnedAbout: u64,
+ pub mSelectorCache: root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>,
+ pub mReferrer: root::nsCString,
+ pub mLastModified: ::nsstring::nsStringRepr,
+ pub mDocumentURI: root::nsCOMPtr,
+ pub mOriginalURI: root::nsCOMPtr,
+ pub mChromeXHRDocURI: root::nsCOMPtr,
+ pub mDocumentBaseURI: root::nsCOMPtr,
+ pub mChromeXHRDocBaseURI: root::nsCOMPtr,
+ pub mCachedURLData: root::RefPtr<root::mozilla::URLExtraData>,
+ pub mDocumentLoadGroup: root::nsWeakPtr,
+ pub mReferrerPolicySet: bool,
+ pub mReferrerPolicy: root::nsIDocument_ReferrerPolicyEnum,
+ pub mBlockAllMixedContent: bool,
+ pub mBlockAllMixedContentPreloads: bool,
+ pub mUpgradeInsecureRequests: bool,
+ pub mUpgradeInsecurePreloads: bool,
+ pub mDocumentContainer: u64,
+ pub mCharacterSet: root::mozilla::NotNull<*const root::nsIDocument_Encoding>,
+ pub mCharacterSetSource: i32,
+ pub mParentDocument: *mut root::nsIDocument,
+ pub mCachedRootElement: *mut root::mozilla::dom::Element,
+ pub mNodeInfoManager: *mut root::nsNodeInfoManager,
+ pub mCSSLoader: root::RefPtr<root::mozilla::css::Loader>,
+ pub mStyleImageLoader: root::RefPtr<root::mozilla::css::ImageLoader>,
+ pub mAttrStyleSheet: root::RefPtr<root::nsHTMLStyleSheet>,
+ pub mStyleAttrStyleSheet: root::RefPtr<root::nsHTMLCSSStyleSheet>,
+ pub mImageTracker: root::RefPtr<root::mozilla::dom::ImageTracker>,
+ pub mActivityObservers: u64,
+ pub mStyledLinks: [u64; 4usize],
+ pub mLinksToUpdate: root::nsIDocument_LinksToUpdateList,
+ pub mAnimationController: root::RefPtr<root::nsSMILAnimationController>,
+ pub mPropertyTable: root::nsPropertyTable,
+ pub mChildrenCollection: root::nsCOMPtr,
+ pub mImages: root::RefPtr<root::nsContentList>,
+ pub mEmbeds: root::RefPtr<root::nsContentList>,
+ pub mLinks: root::RefPtr<root::nsContentList>,
+ pub mForms: root::RefPtr<root::nsContentList>,
+ pub mScripts: root::RefPtr<root::nsContentList>,
+ pub mApplets: root::nsCOMPtr,
+ pub mAnchors: root::RefPtr<root::nsContentList>,
+ pub mFontFaceSet: root::RefPtr<root::mozilla::dom::FontFaceSet>,
+ pub mLastFocusTime: root::mozilla::TimeStamp,
+ pub mDocumentState: root::mozilla::EventStates,
+ pub mReadyForIdle: root::RefPtr<root::mozilla::dom::Promise>,
+ pub mAboutCapabilities: root::RefPtr<root::mozilla::dom::AboutCapabilities>,
+ pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 10usize], u8>,
+ pub mPendingFullscreenRequests: u8,
+ pub mXMLDeclarationBits: u8,
+ pub mOnloadBlockCount: u32,
+ pub mAsyncOnloadBlockCount: u32,
+ pub mCompatMode: root::nsCompatibility,
+ pub mReadyState: root::nsIDocument_ReadyState,
+ pub mVisibilityState: root::mozilla::dom::VisibilityState,
+ pub mType: root::nsIDocument_Type,
+ pub mDefaultElementType: u8,
+ pub mAllowXULXBL: root::nsIDocument_Tri,
+ pub mScriptGlobalObject: root::nsCOMPtr,
+ pub mOriginalDocument: root::nsCOMPtr,
+ pub mBidiOptions: u32,
+ pub mSandboxFlags: u32,
+ pub mContentLanguage: root::nsCString,
+ pub mChannel: root::nsCOMPtr,
+ pub mContentType: root::nsCString,
+ pub mContentTypeForWriteCalls: root::nsCString,
+ pub mSecurityInfo: root::nsCOMPtr,
+ pub mFailedChannel: root::nsCOMPtr,
+ pub mPartID: u32,
+ pub mMarkedCCGeneration: u32,
+ pub mPresShell: *mut root::nsIPresShell,
+ pub mSubtreeModifiedTargets: root::nsCOMArray,
+ pub mSubtreeModifiedDepth: u32,
+ pub mPreloadingImages: [u64; 4usize],
+ pub mPreloadedPreconnects: [u64; 4usize],
+ pub mPreloadPictureDepth: u32,
+ pub mPreloadPictureFoundSource: ::nsstring::nsStringRepr,
+ pub mDisplayDocument: root::nsCOMPtr,
+ pub mEventsSuppressed: u32,
+ /// https://html.spec.whatwg.org/#ignore-destructive-writes-counter
+ pub mIgnoreDestructiveWritesCounter: u32,
+ /// The current frame request callback handle
+ pub mFrameRequestCallbackCounter: i32,
+ pub mStaticCloneCount: u32,
+ pub mBlockedTrackingNodes: root::nsTArray<root::nsWeakPtr>,
+ pub mWindow: *mut root::nsPIDOMWindowInner,
+ pub mCachedEncoder: root::nsCOMPtr,
+ pub mFrameRequestCallbacks: root::nsTArray<root::nsIDocument_FrameRequest>,
+ pub mBFCacheEntry: *mut root::nsIBFCacheEntry,
+ pub mBaseTarget: ::nsstring::nsStringRepr,
+ pub mStateObjectContainer: root::nsCOMPtr,
+ pub mStateObjectCached: root::nsCOMPtr,
+ pub mInSyncOperationCount: u32,
+ pub mXPathEvaluator: root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>,
+ pub mAnonymousContents: root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>,
+ pub mBlockDOMContentLoaded: u32,
+ pub mDOMMediaQueryLists: root::mozilla::LinkedList,
+ pub mObservers: [u64; 2usize],
+ pub mUseCounters: [u64; 2usize],
+ pub mChildDocumentUseCounters: [u64; 2usize],
+ pub mNotifiedPageForUseCounter: [u64; 2usize],
+ pub mIncCounters: u16,
+ pub mUserHasInteracted: bool,
+ pub mUserHasActivatedInteraction: bool,
+ pub mPageUnloadingEventTimeStamp: root::mozilla::TimeStamp,
+ pub mDocGroup: root::RefPtr<root::mozilla::dom::DocGroup>,
+ pub mTrackingScripts: [u64; 4usize],
+ pub mAncestorPrincipals: root::nsTArray<root::nsCOMPtr>,
+ pub mAncestorOuterWindowIDs: root::nsTArray<u64>,
+ pub mParser: root::nsCOMPtr,
+ pub mStackRefCnt: root::nsrefcnt,
+ pub mWeakSink: root::nsWeakPtr,
+ pub mUpdateNestLevel: u32,
+ pub mViewportType: root::nsIDocument_ViewportType,
+ pub mSubDocuments: *mut root::PLDHashTable,
+ pub mHeaderData: *mut root::nsDocHeaderData,
+ pub mPrincipalFlashClassifier: root::RefPtr<root::PrincipalFlashClassifier>,
+ pub mFlashClassification: root::mozilla::dom::FlashClassification,
+ pub mIsThirdParty: [u8; 2usize],
+ pub mPendingTitleChangeEvent: u64,
+ pub mTiming: root::RefPtr<root::nsDOMNavigationTiming>,
+ pub mLoadingTimeStamp: root::mozilla::TimeStamp,
+ pub mAutoFocusElement: root::nsWeakPtr,
+ pub mScrollToRef: root::nsCString,
+ pub mScopeObject: root::nsWeakPtr,
+ pub mIntersectionObservers: [u64; 4usize],
+ pub mFullScreenStack: root::nsTArray<root::nsWeakPtr>,
+ pub mFullscreenRoot: root::nsWeakPtr,
+ pub mDOMImplementation: root::RefPtr<root::mozilla::dom::DOMImplementation>,
+ pub mImageMaps: root::RefPtr<root::nsContentList>,
+ pub mResponsiveContent: [u64; 4usize],
+ pub mPlugins: [u64; 4usize],
+ pub mChildren: root::nsAttrAndChildArray,
+ pub mDocumentTimeline: root::RefPtr<root::mozilla::dom::DocumentTimeline>,
+ pub mTimelines: root::mozilla::LinkedList,
+ pub mScriptLoader: root::RefPtr<root::mozilla::dom::ScriptLoader>,
+ pub mBoxObjectTable: *mut u8,
+ pub mPendingAnimationTracker: root::RefPtr<root::mozilla::PendingAnimationTracker>,
+ pub mTemplateContentsOwner: root::nsCOMPtr,
+ pub mExternalResourceMap: root::nsExternalResourceMap,
+ pub mOrientationPendingPromise: root::RefPtr<root::mozilla::dom::Promise>,
+ pub mCurrentOrientationAngle: u16,
+ pub mCurrentOrientationType: root::mozilla::dom::OrientationType,
+ pub mInitializableFrameLoaders: root::nsTArray<root::RefPtr<root::nsFrameLoader>>,
+ pub mFrameLoaderFinalizers: root::nsTArray<root::nsCOMPtr>,
+ pub mFrameLoaderRunner: u64,
+ pub mLayoutHistoryState: root::nsCOMPtr,
+ pub mScaleMinFloat: root::mozilla::LayoutDeviceToScreenScale,
+ pub mScaleMaxFloat: root::mozilla::LayoutDeviceToScreenScale,
+ pub mScaleFloat: root::mozilla::LayoutDeviceToScreenScale,
+ pub mPixelRatio: root::mozilla::CSSToLayoutDeviceScale,
+ pub mViewportSize: root::mozilla::CSSSize,
+ pub mListenerManager: root::RefPtr<root::mozilla::EventListenerManager>,
+ pub mMaybeEndOutermostXBLUpdateRunner: root::nsCOMPtr,
+ pub mOnloadBlocker: root::nsCOMPtr,
+ pub mOnDemandBuiltInUASheets: root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>,
+ pub mAdditionalSheets: [root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>; 3usize],
+ pub mLastStyleSheetSet: ::nsstring::nsStringRepr,
+ pub mStyleSheetSetList: root::RefPtr<root::nsDOMStyleSheetSetList>,
+ pub mLazySVGPresElements: [u64; 4usize],
+ pub mServoRestyleRoot: root::nsCOMPtr,
+ pub mServoRestyleRootDirtyBits: u32,
+ pub mThrowOnDynamicMarkupInsertionCounter: u32,
+ pub mIgnoreOpensDuringUnloadCounter: u32,
+ }
+ pub type nsIDocument_GlobalObject = root::mozilla::dom::GlobalObject;
+ pub type nsIDocument_Encoding = root::mozilla::Encoding;
+ pub type nsIDocument_NotNull<T> = root::mozilla::NotNull<T>;
+ pub type nsIDocument_ExternalResourceLoad = root::nsExternalResourceMap_ExternalResourceLoad;
+ pub use self::super::root::mozilla::net::ReferrerPolicy as nsIDocument_ReferrerPolicyEnum;
+ pub type nsIDocument_Element = root::mozilla::dom::Element;
+ pub type nsIDocument_FullscreenRequest = root::mozilla::dom::FullscreenRequest;
+ #[repr(C)]
+ #[derive(Debug, Copy, Clone)]
+ pub struct nsIDocument_COMTypeInfo {
+ pub _address: u8,
+ }
+ #[repr(C)]
+ pub struct nsIDocument_PageUnloadingEventTimeStamp {
+ pub mDocument: root::nsCOMPtr,
+ pub mSet: bool,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIDocument_PageUnloadingEventTimeStamp() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIDocument_PageUnloadingEventTimeStamp>(),
+ 16usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsIDocument_PageUnloadingEventTimeStamp)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIDocument_PageUnloadingEventTimeStamp>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsIDocument_PageUnloadingEventTimeStamp)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIDocument_PageUnloadingEventTimeStamp>())).mDocument
+ as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIDocument_PageUnloadingEventTimeStamp),
+ "::",
+ stringify!(mDocument)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIDocument_PageUnloadingEventTimeStamp>())).mSet as *const _
+ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIDocument_PageUnloadingEventTimeStamp),
+ "::",
+ stringify!(mSet)
+ )
+ );
+ }
+ /// 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
+ /// which could modify the DOM in any way. Use
+ /// nsContentUtils::AddScriptRunner.
+ /// @return true to keep the callback in the callback set, false
+ /// to remove it.
+ pub type nsIDocument_IDTargetObserver = ::std::option::Option<
+ unsafe extern "C" fn(
+ aOldElement: *mut root::nsIDocument_Element,
+ aNewelement: *mut root::nsIDocument_Element,
+ aData: *mut ::std::os::raw::c_void,
+ ) -> bool,
+ >;
+ #[repr(C)]
+ pub struct nsIDocument_SelectorCacheKey {
+ pub mKey: ::nsstring::nsStringRepr,
+ pub mState: root::nsExpirationState,
+ }
+ #[test]
+ fn bindgen_test_layout_nsIDocument_SelectorCacheKey() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIDocument_SelectorCacheKey>(),
+ 24usize,
+ concat!("Size of: ", stringify!(nsIDocument_SelectorCacheKey))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIDocument_SelectorCacheKey>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIDocument_SelectorCacheKey))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIDocument_SelectorCacheKey>())).mKey as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIDocument_SelectorCacheKey),
+ "::",
+ stringify!(mKey)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsIDocument_SelectorCacheKey>())).mState as *const _ as usize
+ },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsIDocument_SelectorCacheKey),
+ "::",
+ stringify!(mState)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIDocument_SelectorCacheKeyDeleter {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIDocument_SelectorCacheKeyDeleter {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIDocument_SelectorCache {
+ pub _bindgen_opaque_blob: [u64; 16usize],
+ }
+ pub type nsIDocument_SelectorCache_SelectorList =
+ root::mozilla::UniquePtr<root::RawServoSelectorList>;
+ #[test]
+ fn bindgen_test_layout_nsIDocument_SelectorCache() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIDocument_SelectorCache>(),
+ 128usize,
+ concat!("Size of: ", stringify!(nsIDocument_SelectorCache))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIDocument_SelectorCache>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIDocument_SelectorCache))
+ );
+ }
+ impl Clone for nsIDocument_SelectorCache {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const nsIDocument_additionalSheetType_eAgentSheet: root::nsIDocument_additionalSheetType =
+ 0;
+ pub const nsIDocument_additionalSheetType_eUserSheet: root::nsIDocument_additionalSheetType = 1;
+ pub const nsIDocument_additionalSheetType_eAuthorSheet: root::nsIDocument_additionalSheetType =
+ 2;
+ pub const nsIDocument_additionalSheetType_AdditionalSheetTypeCount:
+ root::nsIDocument_additionalSheetType = 3;
+ pub type nsIDocument_additionalSheetType = u32;
+ pub const nsIDocument_ReadyState_READYSTATE_UNINITIALIZED: root::nsIDocument_ReadyState = 0;
+ pub const nsIDocument_ReadyState_READYSTATE_LOADING: root::nsIDocument_ReadyState = 1;
+ pub const nsIDocument_ReadyState_READYSTATE_INTERACTIVE: root::nsIDocument_ReadyState = 3;
+ pub const nsIDocument_ReadyState_READYSTATE_COMPLETE: root::nsIDocument_ReadyState = 4;
+ pub type nsIDocument_ReadyState = u32;
+ /// Enumerate all subdocuments.
+ /// The enumerator callback should return true to continue enumerating, or
+ /// false to stop. This will never get passed a null aDocument.
+ pub type nsIDocument_nsSubDocEnumFunc = ::std::option::Option<
+ unsafe extern "C" fn(aDocument: *mut root::nsIDocument, aData: *mut ::std::os::raw::c_void)
+ -> bool,
+ >;
+ /// Collect all the descendant documents for which |aCalback| returns true.
+ /// The callback function must not mutate any state for the given document.
+ pub type nsIDocument_nsDocTestFunc =
+ ::std::option::Option<unsafe extern "C" fn(aDocument: *const root::nsIDocument) -> bool>;
+ pub type nsIDocument_ActivityObserverEnumerator = ::std::option::Option<
+ unsafe extern "C" fn(arg1: *mut root::nsISupports, arg2: *mut ::std::os::raw::c_void),
+ >;
+ #[repr(u32)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum nsIDocument_DocumentTheme {
+ Doc_Theme_Uninitialized = 0,
+ Doc_Theme_None = 1,
+ Doc_Theme_Neutral = 2,
+ Doc_Theme_Dark = 3,
+ Doc_Theme_Bright = 4,
+ }
+ pub type nsIDocument_FrameRequestCallbackList =
+ root::nsTArray<root::RefPtr<root::mozilla::dom::FrameRequestCallback>>;
+ pub const nsIDocument_DeprecatedOperations_eEnablePrivilege:
+ root::nsIDocument_DeprecatedOperations = 0;
+ pub const nsIDocument_DeprecatedOperations_eDOMExceptionCode:
+ root::nsIDocument_DeprecatedOperations = 1;
+ pub const nsIDocument_DeprecatedOperations_eMutationEvent:
+ root::nsIDocument_DeprecatedOperations = 2;
+ pub const nsIDocument_DeprecatedOperations_eComponents: root::nsIDocument_DeprecatedOperations =
+ 3;
+ pub const nsIDocument_DeprecatedOperations_ePrefixedVisibilityAPI:
+ root::nsIDocument_DeprecatedOperations = 4;
+ pub const nsIDocument_DeprecatedOperations_eNodeIteratorDetach:
+ root::nsIDocument_DeprecatedOperations = 5;
+ pub const nsIDocument_DeprecatedOperations_eLenientThis:
+ root::nsIDocument_DeprecatedOperations = 6;
+ pub const nsIDocument_DeprecatedOperations_eMozGetAsFile:
+ root::nsIDocument_DeprecatedOperations = 7;
+ pub const nsIDocument_DeprecatedOperations_eUseOfCaptureEvents:
+ root::nsIDocument_DeprecatedOperations = 8;
+ pub const nsIDocument_DeprecatedOperations_eUseOfReleaseEvents:
+ root::nsIDocument_DeprecatedOperations = 9;
+ pub const nsIDocument_DeprecatedOperations_eUseOfDOM3LoadMethod:
+ root::nsIDocument_DeprecatedOperations = 10;
+ pub const nsIDocument_DeprecatedOperations_eChromeUseOfDOM3LoadMethod:
+ root::nsIDocument_DeprecatedOperations = 11;
+ pub const nsIDocument_DeprecatedOperations_eShowModalDialog:
+ root::nsIDocument_DeprecatedOperations = 12;
+ pub const nsIDocument_DeprecatedOperations_eSyncXMLHttpRequest:
+ root::nsIDocument_DeprecatedOperations = 13;
+ pub const nsIDocument_DeprecatedOperations_eWindow_Cc_ontrollers:
+ root::nsIDocument_DeprecatedOperations = 14;
+ pub const nsIDocument_DeprecatedOperations_eImportXULIntoContent:
+ root::nsIDocument_DeprecatedOperations = 15;
+ pub const nsIDocument_DeprecatedOperations_ePannerNodeDoppler:
+ root::nsIDocument_DeprecatedOperations = 16;
+ pub const nsIDocument_DeprecatedOperations_eNavigatorGetUserMedia:
+ root::nsIDocument_DeprecatedOperations = 17;
+ pub const nsIDocument_DeprecatedOperations_eWebrtcDeprecatedPrefix:
+ root::nsIDocument_DeprecatedOperations = 18;
+ pub const nsIDocument_DeprecatedOperations_eRTCPeerConnectionGetStreams:
+ root::nsIDocument_DeprecatedOperations = 19;
+ pub const nsIDocument_DeprecatedOperations_eAppCache: root::nsIDocument_DeprecatedOperations =
+ 20;
+ pub const nsIDocument_DeprecatedOperations_eAppCacheInsecure:
+ root::nsIDocument_DeprecatedOperations = 21;
+ pub const nsIDocument_DeprecatedOperations_ePrefixedImageSmoothingEnabled:
+ root::nsIDocument_DeprecatedOperations = 22;
+ pub const nsIDocument_DeprecatedOperations_ePrefixedFullscreenAPI:
+ root::nsIDocument_DeprecatedOperations = 23;
+ pub const nsIDocument_DeprecatedOperations_eLenientSetter:
+ root::nsIDocument_DeprecatedOperations = 24;
+ pub const nsIDocument_DeprecatedOperations_eFileLastModifiedDate:
+ root::nsIDocument_DeprecatedOperations = 25;
+ pub const nsIDocument_DeprecatedOperations_eImageBitmapRenderingContext_TransferImageBitmap:
+ root::nsIDocument_DeprecatedOperations = 26;
+ pub const nsIDocument_DeprecatedOperations_eURLCreateObjectURL_MediaStream:
+ root::nsIDocument_DeprecatedOperations = 27;
+ pub const nsIDocument_DeprecatedOperations_eXMLBaseAttribute:
+ root::nsIDocument_DeprecatedOperations = 28;
+ pub const nsIDocument_DeprecatedOperations_eWindowContentUntrusted:
+ root::nsIDocument_DeprecatedOperations = 29;
+ pub const nsIDocument_DeprecatedOperations_eRegisterProtocolHandlerInsecure:
+ root::nsIDocument_DeprecatedOperations = 30;
+ pub const nsIDocument_DeprecatedOperations_eMixedDisplayObjectSubrequest:
+ root::nsIDocument_DeprecatedOperations = 31;
+ pub const nsIDocument_DeprecatedOperations_eMotionEvent:
+ root::nsIDocument_DeprecatedOperations = 32;
+ pub const nsIDocument_DeprecatedOperations_eOrientationEvent:
+ root::nsIDocument_DeprecatedOperations = 33;
+ pub const nsIDocument_DeprecatedOperations_eProximityEvent:
+ root::nsIDocument_DeprecatedOperations = 34;
+ pub const nsIDocument_DeprecatedOperations_eAmbientLightEvent:
+ root::nsIDocument_DeprecatedOperations = 35;
+ pub const nsIDocument_DeprecatedOperations_eIDBOpenDBOptions_StorageType:
+ root::nsIDocument_DeprecatedOperations = 36;
+ pub const nsIDocument_DeprecatedOperations_eGetPropertyCSSValue:
+ root::nsIDocument_DeprecatedOperations = 37;
+ pub const nsIDocument_DeprecatedOperations_eDeprecatedOperationCount:
+ root::nsIDocument_DeprecatedOperations = 38;
+ pub type nsIDocument_DeprecatedOperations = u32;
+ pub const nsIDocument_DocumentWarnings_eIgnoringWillChangeOverBudget:
+ root::nsIDocument_DocumentWarnings = 0;
+ pub const nsIDocument_DocumentWarnings_ePreventDefaultFromPassiveListener:
+ root::nsIDocument_DocumentWarnings = 1;
+ pub const nsIDocument_DocumentWarnings_eSVGRefLoop: root::nsIDocument_DocumentWarnings = 2;
+ pub const nsIDocument_DocumentWarnings_eSVGRefChainLengthExceeded:
+ root::nsIDocument_DocumentWarnings = 3;
+ pub const nsIDocument_DocumentWarnings_eDocumentWarningCount:
+ root::nsIDocument_DocumentWarnings = 4;
+ pub type nsIDocument_DocumentWarnings = u32;
+ pub const nsIDocument_ElementCallbackType_eConnected: root::nsIDocument_ElementCallbackType = 0;
+ pub const nsIDocument_ElementCallbackType_eDisconnected: root::nsIDocument_ElementCallbackType =
+ 1;
+ pub const nsIDocument_ElementCallbackType_eAdopted: root::nsIDocument_ElementCallbackType = 2;
+ pub const nsIDocument_ElementCallbackType_eAttributeChanged:
+ root::nsIDocument_ElementCallbackType = 3;
+ pub type nsIDocument_ElementCallbackType = u32;
+ pub const nsIDocument_UseCounterReportKind_eDefault: root::nsIDocument_UseCounterReportKind = 0;
+ pub const nsIDocument_UseCounterReportKind_eIncludeExternalResources:
+ root::nsIDocument_UseCounterReportKind = 1;
+ pub type nsIDocument_UseCounterReportKind = i32;
+ pub type nsIDocument_LinksToUpdateList = [u64; 3usize];
+ #[repr(u32)]
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
+ pub enum nsIDocument_Type {
+ eUnknown = 0,
+ eHTML = 1,
+ eXHTML = 2,
+ eGenericXML = 3,
+ eSVG = 4,
+ eXUL = 5,
+ }
+ pub const nsIDocument_Tri_eTriUnset: root::nsIDocument_Tri = 0;
+ pub const nsIDocument_Tri_eTriFalse: root::nsIDocument_Tri = 1;
+ pub const nsIDocument_Tri_eTriTrue: root::nsIDocument_Tri = 2;
+ pub type nsIDocument_Tri = u32;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsIDocument_FrameRequest {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsIDocument_FrameRequest {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const nsIDocument_ViewportType_DisplayWidthHeight: root::nsIDocument_ViewportType = 0;
+ pub const nsIDocument_ViewportType_Specified: root::nsIDocument_ViewportType = 1;
+ pub const nsIDocument_ViewportType_Unknown: root::nsIDocument_ViewportType = 2;
+ pub type nsIDocument_ViewportType = u32;
+ pub const nsIDocument_kSegmentSize: usize = 128;
+ #[test]
+ fn bindgen_test_layout_nsIDocument() {
+ assert_eq!(
+ ::std::mem::size_of::<nsIDocument>(),
+ 1712usize,
+ concat!("Size of: ", stringify!(nsIDocument))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsIDocument>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsIDocument))
+ );
+ }
+ impl nsIDocument {
+ #[inline]
+ pub fn mBidiEnabled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mBidiEnabled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(0usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mMathMLEnabled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mMathMLEnabled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(1usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsInitialDocumentInWindow(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsInitialDocumentInWindow(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(2usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIgnoreDocGroupMismatches(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIgnoreDocGroupMismatches(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(3usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mLoadedAsData(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mLoadedAsData(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(4usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mLoadedAsInteractiveData(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mLoadedAsInteractiveData(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(5usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mMayStartLayout(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mMayStartLayout(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(6usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHaveFiredTitleChange(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHaveFiredTitleChange(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(7usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsShowing(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsShowing(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(8usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mVisible(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mVisible(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(9usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasReferrerPolicyCSP(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasReferrerPolicyCSP(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(10usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mRemovedFromDocShell(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mRemovedFromDocShell(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(11usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mAllowDNSPrefetch(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mAllowDNSPrefetch(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(12usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsStaticDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsStaticDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(13usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mCreatingStaticClone(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mCreatingStaticClone(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(14usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mInUnlinkOrDeletion(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mInUnlinkOrDeletion(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(15usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasHadScriptHandlingObject(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasHadScriptHandlingObject(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(16usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsBeingUsedAsImage(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsBeingUsedAsImage(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(17usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsSyntheticDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsSyntheticDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(18usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasLinksToUpdateRunnable(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasLinksToUpdateRunnable(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(19usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mFlushingPendingLinkUpdates(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mFlushingPendingLinkUpdates(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(20usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mMayHaveDOMMutationObservers(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mMayHaveDOMMutationObservers(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(21usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mMayHaveAnimationObservers(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mMayHaveAnimationObservers(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(22usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasMixedActiveContentLoaded(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasMixedActiveContentLoaded(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(23usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasMixedActiveContentBlocked(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasMixedActiveContentBlocked(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(24usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasMixedDisplayContentLoaded(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasMixedDisplayContentLoaded(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(25usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasMixedDisplayContentBlocked(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasMixedDisplayContentBlocked(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(26usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasMixedContentObjectSubrequest(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasMixedContentObjectSubrequest(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(27usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasCSP(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasCSP(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(28usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasUnsafeEvalCSP(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasUnsafeEvalCSP(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(29usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasUnsafeInlineCSP(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasUnsafeInlineCSP(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(30usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasTrackingContentBlocked(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasTrackingContentBlocked(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(31usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasTrackingContentLoaded(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasTrackingContentLoaded(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(32usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mBFCacheDisallowed(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mBFCacheDisallowed(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(33usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasHadDefaultView(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasHadDefaultView(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(34usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mStyleSheetChangeEventsEnabled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mStyleSheetChangeEventsEnabled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(35usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsSrcdocDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsSrcdocDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(36usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDidDocumentOpen(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDidDocumentOpen(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(37usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasDisplayDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasDisplayDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(38usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mFontFaceSetDirty(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mFontFaceSetDirty(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(39usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mGetUserFontSetCalled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mGetUserFontSetCalled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(40usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDidFireDOMContentLoaded(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDidFireDOMContentLoaded(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(41usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasScrollLinkedEffect(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasScrollLinkedEffect(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(42usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mFrameRequestCallbacksScheduled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mFrameRequestCallbacksScheduled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(43usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsTopLevelContentDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsTopLevelContentDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(44usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsContentDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(45usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsContentDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(45usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDidCallBeginLoad(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDidCallBeginLoad(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(46usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mAllowPaymentRequest(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(47usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mAllowPaymentRequest(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(47usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mEncodingMenuDisabled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mEncodingMenuDisabled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(48usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsShadowDOMEnabled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(49usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsShadowDOMEnabled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(49usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsSVGGlyphsDocument(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(50usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsSVGGlyphsDocument(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(50usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mInDestructor(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(51usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mInDestructor(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(51usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsGoingAway(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(52usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mIsGoingAway(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(52usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mInXBLUpdate(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(53usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mInXBLUpdate(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(53usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mNeedsReleaseAfterStackRefCntRelease(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(54usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mNeedsReleaseAfterStackRefCntRelease(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(54usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mStyleSetFilled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(55usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mStyleSetFilled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(55usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mSSApplicableStateNotificationPending(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(56usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mSSApplicableStateNotificationPending(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(56usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mMayHaveTitleElement(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(57usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mMayHaveTitleElement(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(57usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDOMLoadingSet(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(58usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDOMLoadingSet(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(58usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDOMInteractiveSet(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(59usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDOMInteractiveSet(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(59usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDOMCompleteSet(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(60usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDOMCompleteSet(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(60usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mAutoFocusFired(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(61usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mAutoFocusFired(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(61usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mScrolledToRefAlready(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(62usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mScrolledToRefAlready(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(62usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mChangeScrollPosWhenScrollingToRef(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(63usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mChangeScrollPosWhenScrollingToRef(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(63usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasWarnedAboutBoxObjects(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mHasWarnedAboutBoxObjects(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(64usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDelayFrameLoaderInitialization(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(65usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mDelayFrameLoaderInitialization(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(65usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mSynchronousDOMContentLoaded(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(66usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mSynchronousDOMContentLoaded(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(66usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mMaybeServiceWorkerControlled(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(67usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mMaybeServiceWorkerControlled(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(67usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mValidWidth(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(68usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mValidWidth(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(68usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mValidHeight(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(69usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mValidHeight(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(69usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mAutoSize(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(70usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mAutoSize(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(70usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mAllowZoom(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(71usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mAllowZoom(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(71usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mAllowDoubleTapZoom(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(72usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mAllowDoubleTapZoom(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(72usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mValidScaleFloat(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(73usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mValidScaleFloat(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(73usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mValidMaxScale(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(74usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mValidMaxScale(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(74usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mScaleStrEmpty(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(75usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mScaleStrEmpty(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(75usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mWidthStrEmpty(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(76usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mWidthStrEmpty(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(76usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mParserAborted(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(77usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mParserAborted(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(77usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mReportedUseCounters(&self) -> bool {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(78usize, 1u8) as u8) }
+ }
+ #[inline]
+ pub fn set_mReportedUseCounters(&mut self, val: bool) {
+ unsafe {
+ let val: u8 = ::std::mem::transmute(val);
+ self._bitfield_1.set(78usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn new_bitfield_1(
+ mBidiEnabled: bool,
+ mMathMLEnabled: bool,
+ mIsInitialDocumentInWindow: bool,
+ mIgnoreDocGroupMismatches: bool,
+ mLoadedAsData: bool,
+ mLoadedAsInteractiveData: bool,
+ mMayStartLayout: bool,
+ mHaveFiredTitleChange: bool,
+ mIsShowing: bool,
+ mVisible: bool,
+ mHasReferrerPolicyCSP: bool,
+ mRemovedFromDocShell: bool,
+ mAllowDNSPrefetch: bool,
+ mIsStaticDocument: bool,
+ mCreatingStaticClone: bool,
+ mInUnlinkOrDeletion: bool,
+ mHasHadScriptHandlingObject: bool,
+ mIsBeingUsedAsImage: bool,
+ mIsSyntheticDocument: bool,
+ mHasLinksToUpdateRunnable: bool,
+ mFlushingPendingLinkUpdates: bool,
+ mMayHaveDOMMutationObservers: bool,
+ mMayHaveAnimationObservers: bool,
+ mHasMixedActiveContentLoaded: bool,
+ mHasMixedActiveContentBlocked: bool,
+ mHasMixedDisplayContentLoaded: bool,
+ mHasMixedDisplayContentBlocked: bool,
+ mHasMixedContentObjectSubrequest: bool,
+ mHasCSP: bool,
+ mHasUnsafeEvalCSP: bool,
+ mHasUnsafeInlineCSP: bool,
+ mHasTrackingContentBlocked: bool,
+ mHasTrackingContentLoaded: bool,
+ mBFCacheDisallowed: bool,
+ mHasHadDefaultView: bool,
+ mStyleSheetChangeEventsEnabled: bool,
+ mIsSrcdocDocument: bool,
+ mDidDocumentOpen: bool,
+ mHasDisplayDocument: bool,
+ mFontFaceSetDirty: bool,
+ mGetUserFontSetCalled: bool,
+ mDidFireDOMContentLoaded: bool,
+ mHasScrollLinkedEffect: bool,
+ mFrameRequestCallbacksScheduled: bool,
+ mIsTopLevelContentDocument: bool,
+ mIsContentDocument: bool,
+ mDidCallBeginLoad: bool,
+ mAllowPaymentRequest: bool,
+ mEncodingMenuDisabled: bool,
+ mIsShadowDOMEnabled: bool,
+ mIsSVGGlyphsDocument: bool,
+ mInDestructor: bool,
+ mIsGoingAway: bool,
+ mInXBLUpdate: bool,
+ mNeedsReleaseAfterStackRefCntRelease: bool,
+ mStyleSetFilled: bool,
+ mSSApplicableStateNotificationPending: bool,
+ mMayHaveTitleElement: bool,
+ mDOMLoadingSet: bool,
+ mDOMInteractiveSet: bool,
+ mDOMCompleteSet: bool,
+ mAutoFocusFired: bool,
+ mScrolledToRefAlready: bool,
+ mChangeScrollPosWhenScrollingToRef: bool,
+ mHasWarnedAboutBoxObjects: bool,
+ mDelayFrameLoaderInitialization: bool,
+ mSynchronousDOMContentLoaded: bool,
+ mMaybeServiceWorkerControlled: bool,
+ mValidWidth: bool,
+ mValidHeight: bool,
+ mAutoSize: bool,
+ mAllowZoom: bool,
+ mAllowDoubleTapZoom: bool,
+ mValidScaleFloat: bool,
+ mValidMaxScale: bool,
+ mScaleStrEmpty: bool,
+ mWidthStrEmpty: bool,
+ mParserAborted: bool,
+ mReportedUseCounters: bool,
+ ) -> root::__BindgenBitfieldUnit<[u8; 10usize], u8> {
+ let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
+ [u8; 10usize],
+ u8,
+ > = Default::default();
+ __bindgen_bitfield_unit.set(0usize, 1u8, {
+ let mBidiEnabled: u8 = unsafe { ::std::mem::transmute(mBidiEnabled) };
+ mBidiEnabled as u64
+ });
+ __bindgen_bitfield_unit.set(1usize, 1u8, {
+ let mMathMLEnabled: u8 = unsafe { ::std::mem::transmute(mMathMLEnabled) };
+ mMathMLEnabled as u64
+ });
+ __bindgen_bitfield_unit.set(2usize, 1u8, {
+ let mIsInitialDocumentInWindow: u8 =
+ unsafe { ::std::mem::transmute(mIsInitialDocumentInWindow) };
+ mIsInitialDocumentInWindow as u64
+ });
+ __bindgen_bitfield_unit.set(3usize, 1u8, {
+ let mIgnoreDocGroupMismatches: u8 =
+ unsafe { ::std::mem::transmute(mIgnoreDocGroupMismatches) };
+ mIgnoreDocGroupMismatches as u64
+ });
+ __bindgen_bitfield_unit.set(4usize, 1u8, {
+ let mLoadedAsData: u8 = unsafe { ::std::mem::transmute(mLoadedAsData) };
+ mLoadedAsData as u64
+ });
+ __bindgen_bitfield_unit.set(5usize, 1u8, {
+ let mLoadedAsInteractiveData: u8 =
+ unsafe { ::std::mem::transmute(mLoadedAsInteractiveData) };
+ mLoadedAsInteractiveData as u64
+ });
+ __bindgen_bitfield_unit.set(6usize, 1u8, {
+ let mMayStartLayout: u8 = unsafe { ::std::mem::transmute(mMayStartLayout) };
+ mMayStartLayout as u64
+ });
+ __bindgen_bitfield_unit.set(7usize, 1u8, {
+ let mHaveFiredTitleChange: u8 =
+ unsafe { ::std::mem::transmute(mHaveFiredTitleChange) };
+ mHaveFiredTitleChange as u64
+ });
+ __bindgen_bitfield_unit.set(8usize, 1u8, {
+ let mIsShowing: u8 = unsafe { ::std::mem::transmute(mIsShowing) };
+ mIsShowing as u64
+ });
+ __bindgen_bitfield_unit.set(9usize, 1u8, {
+ let mVisible: u8 = unsafe { ::std::mem::transmute(mVisible) };
+ mVisible as u64
+ });
+ __bindgen_bitfield_unit.set(10usize, 1u8, {
+ let mHasReferrerPolicyCSP: u8 =
+ unsafe { ::std::mem::transmute(mHasReferrerPolicyCSP) };
+ mHasReferrerPolicyCSP as u64
+ });
+ __bindgen_bitfield_unit.set(11usize, 1u8, {
+ let mRemovedFromDocShell: u8 =
+ unsafe { ::std::mem::transmute(mRemovedFromDocShell) };
+ mRemovedFromDocShell as u64
+ });
+ __bindgen_bitfield_unit.set(12usize, 1u8, {
+ let mAllowDNSPrefetch: u8 = unsafe { ::std::mem::transmute(mAllowDNSPrefetch) };
+ mAllowDNSPrefetch as u64
+ });
+ __bindgen_bitfield_unit.set(13usize, 1u8, {
+ let mIsStaticDocument: u8 = unsafe { ::std::mem::transmute(mIsStaticDocument) };
+ mIsStaticDocument as u64
+ });
+ __bindgen_bitfield_unit.set(14usize, 1u8, {
+ let mCreatingStaticClone: u8 =
+ unsafe { ::std::mem::transmute(mCreatingStaticClone) };
+ mCreatingStaticClone as u64
+ });
+ __bindgen_bitfield_unit.set(15usize, 1u8, {
+ let mInUnlinkOrDeletion: u8 = unsafe { ::std::mem::transmute(mInUnlinkOrDeletion) };
+ mInUnlinkOrDeletion as u64
+ });
+ __bindgen_bitfield_unit.set(16usize, 1u8, {
+ let mHasHadScriptHandlingObject: u8 =
+ unsafe { ::std::mem::transmute(mHasHadScriptHandlingObject) };
+ mHasHadScriptHandlingObject as u64
+ });
+ __bindgen_bitfield_unit.set(17usize, 1u8, {
+ let mIsBeingUsedAsImage: u8 = unsafe { ::std::mem::transmute(mIsBeingUsedAsImage) };
+ mIsBeingUsedAsImage as u64
+ });
+ __bindgen_bitfield_unit.set(18usize, 1u8, {
+ let mIsSyntheticDocument: u8 =
+ unsafe { ::std::mem::transmute(mIsSyntheticDocument) };
+ mIsSyntheticDocument as u64
+ });
+ __bindgen_bitfield_unit.set(19usize, 1u8, {
+ let mHasLinksToUpdateRunnable: u8 =
+ unsafe { ::std::mem::transmute(mHasLinksToUpdateRunnable) };
+ mHasLinksToUpdateRunnable as u64
+ });
+ __bindgen_bitfield_unit.set(20usize, 1u8, {
+ let mFlushingPendingLinkUpdates: u8 =
+ unsafe { ::std::mem::transmute(mFlushingPendingLinkUpdates) };
+ mFlushingPendingLinkUpdates as u64
+ });
+ __bindgen_bitfield_unit.set(21usize, 1u8, {
+ let mMayHaveDOMMutationObservers: u8 =
+ unsafe { ::std::mem::transmute(mMayHaveDOMMutationObservers) };
+ mMayHaveDOMMutationObservers as u64
+ });
+ __bindgen_bitfield_unit.set(22usize, 1u8, {
+ let mMayHaveAnimationObservers: u8 =
+ unsafe { ::std::mem::transmute(mMayHaveAnimationObservers) };
+ mMayHaveAnimationObservers as u64
+ });
+ __bindgen_bitfield_unit.set(23usize, 1u8, {
+ let mHasMixedActiveContentLoaded: u8 =
+ unsafe { ::std::mem::transmute(mHasMixedActiveContentLoaded) };
+ mHasMixedActiveContentLoaded as u64
+ });
+ __bindgen_bitfield_unit.set(24usize, 1u8, {
+ let mHasMixedActiveContentBlocked: u8 =
+ unsafe { ::std::mem::transmute(mHasMixedActiveContentBlocked) };
+ mHasMixedActiveContentBlocked as u64
+ });
+ __bindgen_bitfield_unit.set(25usize, 1u8, {
+ let mHasMixedDisplayContentLoaded: u8 =
+ unsafe { ::std::mem::transmute(mHasMixedDisplayContentLoaded) };
+ mHasMixedDisplayContentLoaded as u64
+ });
+ __bindgen_bitfield_unit.set(26usize, 1u8, {
+ let mHasMixedDisplayContentBlocked: u8 =
+ unsafe { ::std::mem::transmute(mHasMixedDisplayContentBlocked) };
+ mHasMixedDisplayContentBlocked as u64
+ });
+ __bindgen_bitfield_unit.set(27usize, 1u8, {
+ let mHasMixedContentObjectSubrequest: u8 =
+ unsafe { ::std::mem::transmute(mHasMixedContentObjectSubrequest) };
+ mHasMixedContentObjectSubrequest as u64
+ });
+ __bindgen_bitfield_unit.set(28usize, 1u8, {
+ let mHasCSP: u8 = unsafe { ::std::mem::transmute(mHasCSP) };
+ mHasCSP as u64
+ });
+ __bindgen_bitfield_unit.set(29usize, 1u8, {
+ let mHasUnsafeEvalCSP: u8 = unsafe { ::std::mem::transmute(mHasUnsafeEvalCSP) };
+ mHasUnsafeEvalCSP as u64
+ });
+ __bindgen_bitfield_unit.set(30usize, 1u8, {
+ let mHasUnsafeInlineCSP: u8 = unsafe { ::std::mem::transmute(mHasUnsafeInlineCSP) };
+ mHasUnsafeInlineCSP as u64
+ });
+ __bindgen_bitfield_unit.set(31usize, 1u8, {
+ let mHasTrackingContentBlocked: u8 =
+ unsafe { ::std::mem::transmute(mHasTrackingContentBlocked) };
+ mHasTrackingContentBlocked as u64
+ });
+ __bindgen_bitfield_unit.set(32usize, 1u8, {
+ let mHasTrackingContentLoaded: u8 =
+ unsafe { ::std::mem::transmute(mHasTrackingContentLoaded) };
+ mHasTrackingContentLoaded as u64
+ });
+ __bindgen_bitfield_unit.set(33usize, 1u8, {
+ let mBFCacheDisallowed: u8 = unsafe { ::std::mem::transmute(mBFCacheDisallowed) };
+ mBFCacheDisallowed as u64
+ });
+ __bindgen_bitfield_unit.set(34usize, 1u8, {
+ let mHasHadDefaultView: u8 = unsafe { ::std::mem::transmute(mHasHadDefaultView) };
+ mHasHadDefaultView as u64
+ });
+ __bindgen_bitfield_unit.set(35usize, 1u8, {
+ let mStyleSheetChangeEventsEnabled: u8 =
+ unsafe { ::std::mem::transmute(mStyleSheetChangeEventsEnabled) };
+ mStyleSheetChangeEventsEnabled as u64
+ });
+ __bindgen_bitfield_unit.set(36usize, 1u8, {
+ let mIsSrcdocDocument: u8 = unsafe { ::std::mem::transmute(mIsSrcdocDocument) };
+ mIsSrcdocDocument as u64
+ });
+ __bindgen_bitfield_unit.set(37usize, 1u8, {
+ let mDidDocumentOpen: u8 = unsafe { ::std::mem::transmute(mDidDocumentOpen) };
+ mDidDocumentOpen as u64
+ });
+ __bindgen_bitfield_unit.set(38usize, 1u8, {
+ let mHasDisplayDocument: u8 = unsafe { ::std::mem::transmute(mHasDisplayDocument) };
+ mHasDisplayDocument as u64
+ });
+ __bindgen_bitfield_unit.set(39usize, 1u8, {
+ let mFontFaceSetDirty: u8 = unsafe { ::std::mem::transmute(mFontFaceSetDirty) };
+ mFontFaceSetDirty as u64
+ });
+ __bindgen_bitfield_unit.set(40usize, 1u8, {
+ let mGetUserFontSetCalled: u8 =
+ unsafe { ::std::mem::transmute(mGetUserFontSetCalled) };
+ mGetUserFontSetCalled as u64
+ });
+ __bindgen_bitfield_unit.set(41usize, 1u8, {
+ let mDidFireDOMContentLoaded: u8 =
+ unsafe { ::std::mem::transmute(mDidFireDOMContentLoaded) };
+ mDidFireDOMContentLoaded as u64
+ });
+ __bindgen_bitfield_unit.set(42usize, 1u8, {
+ let mHasScrollLinkedEffect: u8 =
+ unsafe { ::std::mem::transmute(mHasScrollLinkedEffect) };
+ mHasScrollLinkedEffect as u64
+ });
+ __bindgen_bitfield_unit.set(43usize, 1u8, {
+ let mFrameRequestCallbacksScheduled: u8 =
+ unsafe { ::std::mem::transmute(mFrameRequestCallbacksScheduled) };
+ mFrameRequestCallbacksScheduled as u64
+ });
+ __bindgen_bitfield_unit.set(44usize, 1u8, {
+ let mIsTopLevelContentDocument: u8 =
+ unsafe { ::std::mem::transmute(mIsTopLevelContentDocument) };
+ mIsTopLevelContentDocument as u64
+ });
+ __bindgen_bitfield_unit.set(45usize, 1u8, {
+ let mIsContentDocument: u8 = unsafe { ::std::mem::transmute(mIsContentDocument) };
+ mIsContentDocument as u64
+ });
+ __bindgen_bitfield_unit.set(46usize, 1u8, {
+ let mDidCallBeginLoad: u8 = unsafe { ::std::mem::transmute(mDidCallBeginLoad) };
+ mDidCallBeginLoad as u64
+ });
+ __bindgen_bitfield_unit.set(47usize, 1u8, {
+ let mAllowPaymentRequest: u8 =
+ unsafe { ::std::mem::transmute(mAllowPaymentRequest) };
+ mAllowPaymentRequest as u64
+ });
+ __bindgen_bitfield_unit.set(48usize, 1u8, {
+ let mEncodingMenuDisabled: u8 =
+ unsafe { ::std::mem::transmute(mEncodingMenuDisabled) };
+ mEncodingMenuDisabled as u64
+ });
+ __bindgen_bitfield_unit.set(49usize, 1u8, {
+ let mIsShadowDOMEnabled: u8 = unsafe { ::std::mem::transmute(mIsShadowDOMEnabled) };
+ mIsShadowDOMEnabled as u64
+ });
+ __bindgen_bitfield_unit.set(50usize, 1u8, {
+ let mIsSVGGlyphsDocument: u8 =
+ unsafe { ::std::mem::transmute(mIsSVGGlyphsDocument) };
+ mIsSVGGlyphsDocument as u64
+ });
+ __bindgen_bitfield_unit.set(51usize, 1u8, {
+ let mInDestructor: u8 = unsafe { ::std::mem::transmute(mInDestructor) };
+ mInDestructor as u64
+ });
+ __bindgen_bitfield_unit.set(52usize, 1u8, {
+ let mIsGoingAway: u8 = unsafe { ::std::mem::transmute(mIsGoingAway) };
+ mIsGoingAway as u64
+ });
+ __bindgen_bitfield_unit.set(53usize, 1u8, {
+ let mInXBLUpdate: u8 = unsafe { ::std::mem::transmute(mInXBLUpdate) };
+ mInXBLUpdate as u64
+ });
+ __bindgen_bitfield_unit.set(54usize, 1u8, {
+ let mNeedsReleaseAfterStackRefCntRelease: u8 =
+ unsafe { ::std::mem::transmute(mNeedsReleaseAfterStackRefCntRelease) };
+ mNeedsReleaseAfterStackRefCntRelease as u64
+ });
+ __bindgen_bitfield_unit.set(55usize, 1u8, {
+ let mStyleSetFilled: u8 = unsafe { ::std::mem::transmute(mStyleSetFilled) };
+ mStyleSetFilled as u64
+ });
+ __bindgen_bitfield_unit.set(56usize, 1u8, {
+ let mSSApplicableStateNotificationPending: u8 =
+ unsafe { ::std::mem::transmute(mSSApplicableStateNotificationPending) };
+ mSSApplicableStateNotificationPending as u64
+ });
+ __bindgen_bitfield_unit.set(57usize, 1u8, {
+ let mMayHaveTitleElement: u8 =
+ unsafe { ::std::mem::transmute(mMayHaveTitleElement) };
+ mMayHaveTitleElement as u64
+ });
+ __bindgen_bitfield_unit.set(58usize, 1u8, {
+ let mDOMLoadingSet: u8 = unsafe { ::std::mem::transmute(mDOMLoadingSet) };
+ mDOMLoadingSet as u64
+ });
+ __bindgen_bitfield_unit.set(59usize, 1u8, {
+ let mDOMInteractiveSet: u8 = unsafe { ::std::mem::transmute(mDOMInteractiveSet) };
+ mDOMInteractiveSet as u64
+ });
+ __bindgen_bitfield_unit.set(60usize, 1u8, {
+ let mDOMCompleteSet: u8 = unsafe { ::std::mem::transmute(mDOMCompleteSet) };
+ mDOMCompleteSet as u64
+ });
+ __bindgen_bitfield_unit.set(61usize, 1u8, {
+ let mAutoFocusFired: u8 = unsafe { ::std::mem::transmute(mAutoFocusFired) };
+ mAutoFocusFired as u64
+ });
+ __bindgen_bitfield_unit.set(62usize, 1u8, {
+ let mScrolledToRefAlready: u8 =
+ unsafe { ::std::mem::transmute(mScrolledToRefAlready) };
+ mScrolledToRefAlready as u64
+ });
+ __bindgen_bitfield_unit.set(63usize, 1u8, {
+ let mChangeScrollPosWhenScrollingToRef: u8 =
+ unsafe { ::std::mem::transmute(mChangeScrollPosWhenScrollingToRef) };
+ mChangeScrollPosWhenScrollingToRef as u64
+ });
+ __bindgen_bitfield_unit.set(64usize, 1u8, {
+ let mHasWarnedAboutBoxObjects: u8 =
+ unsafe { ::std::mem::transmute(mHasWarnedAboutBoxObjects) };
+ mHasWarnedAboutBoxObjects as u64
+ });
+ __bindgen_bitfield_unit.set(65usize, 1u8, {
+ let mDelayFrameLoaderInitialization: u8 =
+ unsafe { ::std::mem::transmute(mDelayFrameLoaderInitialization) };
+ mDelayFrameLoaderInitialization as u64
+ });
+ __bindgen_bitfield_unit.set(66usize, 1u8, {
+ let mSynchronousDOMContentLoaded: u8 =
+ unsafe { ::std::mem::transmute(mSynchronousDOMContentLoaded) };
+ mSynchronousDOMContentLoaded as u64
+ });
+ __bindgen_bitfield_unit.set(67usize, 1u8, {
+ let mMaybeServiceWorkerControlled: u8 =
+ unsafe { ::std::mem::transmute(mMaybeServiceWorkerControlled) };
+ mMaybeServiceWorkerControlled as u64
+ });
+ __bindgen_bitfield_unit.set(68usize, 1u8, {
+ let mValidWidth: u8 = unsafe { ::std::mem::transmute(mValidWidth) };
+ mValidWidth as u64
+ });
+ __bindgen_bitfield_unit.set(69usize, 1u8, {
+ let mValidHeight: u8 = unsafe { ::std::mem::transmute(mValidHeight) };
+ mValidHeight as u64
+ });
+ __bindgen_bitfield_unit.set(70usize, 1u8, {
+ let mAutoSize: u8 = unsafe { ::std::mem::transmute(mAutoSize) };
+ mAutoSize as u64
+ });
+ __bindgen_bitfield_unit.set(71usize, 1u8, {
+ let mAllowZoom: u8 = unsafe { ::std::mem::transmute(mAllowZoom) };
+ mAllowZoom as u64
+ });
+ __bindgen_bitfield_unit.set(72usize, 1u8, {
+ let mAllowDoubleTapZoom: u8 = unsafe { ::std::mem::transmute(mAllowDoubleTapZoom) };
+ mAllowDoubleTapZoom as u64
+ });
+ __bindgen_bitfield_unit.set(73usize, 1u8, {
+ let mValidScaleFloat: u8 = unsafe { ::std::mem::transmute(mValidScaleFloat) };
+ mValidScaleFloat as u64
+ });
+ __bindgen_bitfield_unit.set(74usize, 1u8, {
+ let mValidMaxScale: u8 = unsafe { ::std::mem::transmute(mValidMaxScale) };
+ mValidMaxScale as u64
+ });
+ __bindgen_bitfield_unit.set(75usize, 1u8, {
+ let mScaleStrEmpty: u8 = unsafe { ::std::mem::transmute(mScaleStrEmpty) };
+ mScaleStrEmpty as u64
+ });
+ __bindgen_bitfield_unit.set(76usize, 1u8, {
+ let mWidthStrEmpty: u8 = unsafe { ::std::mem::transmute(mWidthStrEmpty) };
+ mWidthStrEmpty as u64
+ });
+ __bindgen_bitfield_unit.set(77usize, 1u8, {
+ let mParserAborted: u8 = unsafe { ::std::mem::transmute(mParserAborted) };
+ mParserAborted as u64
+ });
+ __bindgen_bitfield_unit.set(78usize, 1u8, {
+ let mReportedUseCounters: u8 =
+ unsafe { ::std::mem::transmute(mReportedUseCounters) };
+ mReportedUseCounters as u64
+ });
+ __bindgen_bitfield_unit
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsXBLPrototypeBinding {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsXBLPrototypeBinding {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
/// An internal interface
#[repr(C)]
#[derive(Debug, Copy)]
@@ -38707,6 +36749,1947 @@ pub mod root {
);
}
#[repr(C)]
+ #[derive(Debug)]
+ pub struct nsLanguageAtomService {
+ pub mLangToGroup: [u64; 4usize],
+ pub mLocaleLanguage: root::RefPtr<root::nsAtom>,
+ }
+ pub type nsLanguageAtomService_Encoding = root::mozilla::Encoding;
+ pub type nsLanguageAtomService_NotNull<T> = root::mozilla::NotNull<T>;
+ #[test]
+ fn bindgen_test_layout_nsLanguageAtomService() {
+ assert_eq!(
+ ::std::mem::size_of::<nsLanguageAtomService>(),
+ 40usize,
+ concat!("Size of: ", stringify!(nsLanguageAtomService))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsLanguageAtomService>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsLanguageAtomService))
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsLanguageAtomService>())).mLangToGroup as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsLanguageAtomService),
+ "::",
+ stringify!(mLangToGroup)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsLanguageAtomService>())).mLocaleLanguage as *const _
+ as usize
+ },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsLanguageAtomService),
+ "::",
+ stringify!(mLocaleLanguage)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsBidi {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsBidi {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct gfxTextPerfMetrics {
+ _unused: [u8; 0],
+ }
+ impl Clone for gfxTextPerfMetrics {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsTransitionManager {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsTransitionManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsAnimationManager {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsAnimationManager {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsDeviceContext {
+ _unused: [u8; 0],
+ }
+ impl Clone for nsDeviceContext {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct gfxMissingFontRecorder {
+ _unused: [u8; 0],
+ }
+ impl Clone for gfxMissingFontRecorder {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const kPresContext_DefaultVariableFont_ID: u8 = 0;
+ pub const kPresContext_DefaultFixedFont_ID: u8 = 1;
+ #[repr(C)]
+ pub struct nsPresContext {
+ pub _base: root::nsISupports,
+ pub _base_1: u64,
+ pub mRefCnt: root::nsCycleCollectingAutoRefCnt,
+ pub mType: root::nsPresContext_nsPresContextType,
+ pub mShell: *mut root::nsIPresShell,
+ pub mDocument: root::nsCOMPtr,
+ pub mDeviceContext: root::RefPtr<root::nsDeviceContext>,
+ pub mEventManager: root::RefPtr<root::mozilla::EventStateManager>,
+ pub mRefreshDriver: root::RefPtr<root::nsRefreshDriver>,
+ pub mAnimationEventDispatcher: root::RefPtr<root::mozilla::AnimationEventDispatcher>,
+ pub mEffectCompositor: root::RefPtr<root::mozilla::EffectCompositor>,
+ pub mTransitionManager: root::RefPtr<root::nsTransitionManager>,
+ pub mAnimationManager: root::RefPtr<root::nsAnimationManager>,
+ pub mRestyleManager: root::RefPtr<root::mozilla::RestyleManager>,
+ pub mCounterStyleManager: root::RefPtr<root::mozilla::CounterStyleManager>,
+ pub mMedium: *mut root::nsAtom,
+ pub mMediaEmulated: root::RefPtr<root::nsAtom>,
+ pub mFontFeatureValuesLookup: root::RefPtr<root::gfxFontFeatureValueSet>,
+ pub mLinkHandler: *mut root::nsILinkHandler,
+ pub mLanguage: root::RefPtr<root::nsAtom>,
+ pub mInflationDisabledForShrinkWrap: bool,
+ pub mContainer: u64,
+ pub mBaseMinFontSize: i32,
+ pub mSystemFontScale: f32,
+ pub mTextZoom: f32,
+ pub mEffectiveTextZoom: f32,
+ pub mFullZoom: f32,
+ pub mOverrideDPPX: f32,
+ pub mLastFontInflationScreenSize: root::gfxSize,
+ pub mCurAppUnitsPerDevPixel: i32,
+ pub mAutoQualityMinFontSizePixelsPref: i32,
+ pub mTheme: root::nsCOMPtr,
+ pub mLangService: *mut root::nsLanguageAtomService,
+ pub mPrintSettings: root::nsCOMPtr,
+ pub mBidiEngine: root::mozilla::UniquePtr<root::nsBidi>,
+ pub mTransactions: [u64; 10usize],
+ pub mTextPerf: root::nsAutoPtr<root::gfxTextPerfMetrics>,
+ pub mMissingFonts: root::nsAutoPtr<root::gfxMissingFontRecorder>,
+ pub mVisibleArea: root::nsRect,
+ pub mLastResizeEventVisibleArea: root::nsRect,
+ pub mPageSize: root::nsSize,
+ pub mPageScale: f32,
+ pub mPPScale: f32,
+ pub mDefaultColor: root::nscolor,
+ pub mBackgroundColor: root::nscolor,
+ pub mLinkColor: root::nscolor,
+ pub mActiveLinkColor: root::nscolor,
+ pub mVisitedLinkColor: root::nscolor,
+ pub mFocusBackgroundColor: root::nscolor,
+ pub mFocusTextColor: root::nscolor,
+ pub mBodyTextColor: root::nscolor,
+ pub mViewportScrollbarOverrideElement: *mut root::mozilla::dom::Element,
+ pub mViewportStyleScrollbar: root::nsPresContext_ScrollbarStyles,
+ pub mFocusRingWidth: u8,
+ pub mExistThrottledUpdates: bool,
+ pub mImageAnimationMode: u16,
+ pub mImageAnimationModePref: u16,
+ pub mLangGroupFontPrefs: root::nsPresContext_LangGroupFontPrefs,
+ pub mFontGroupCacheDirty: bool,
+ pub mLanguagesUsed: [u64; 4usize],
+ pub mBorderWidthTable: [root::nscoord; 3usize],
+ pub mInterruptChecksToSkip: u32,
+ pub mElementsRestyled: u64,
+ pub mFramesConstructed: u64,
+ pub mFramesReflowed: u64,
+ pub mReflowStartTime: root::mozilla::TimeStamp,
+ pub mFirstNonBlankPaintTime: root::mozilla::TimeStamp,
+ pub mFirstClickTime: root::mozilla::TimeStamp,
+ pub mFirstKeyTime: root::mozilla::TimeStamp,
+ pub mFirstMouseMoveTime: root::mozilla::TimeStamp,
+ pub mFirstScrollTime: root::mozilla::TimeStamp,
+ pub mInteractionTimeEnabled: bool,
+ pub mLastStyleUpdateForAllAnimations: root::mozilla::TimeStamp,
+ pub mTelemetryScrollLastY: root::nscoord,
+ pub mTelemetryScrollMaxY: root::nscoord,
+ pub mTelemetryScrollTotalY: root::nscoord,
+ pub _bitfield_1: root::__BindgenBitfieldUnit<[u8; 6usize], u8>,
+ pub mPendingMediaFeatureValuesChange: [u32; 4usize],
+ }
+ pub type nsPresContext_Encoding = root::mozilla::Encoding;
+ pub type nsPresContext_NotNull<T> = root::mozilla::NotNull<T>;
+ pub type nsPresContext_LangGroupFontPrefs = root::mozilla::LangGroupFontPrefs;
+ pub type nsPresContext_ScrollbarStyles = root::mozilla::ScrollbarStyles;
+ pub type nsPresContext_StaticPresData = root::mozilla::StaticPresData;
+ pub type nsPresContext_HasThreadSafeRefCnt = root::mozilla::FalseType;
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct nsPresContext_cycleCollection {
+ pub _base: root::nsXPCOMCycleCollectionParticipant,
+ }
+ #[test]
+ fn bindgen_test_layout_nsPresContext_cycleCollection() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPresContext_cycleCollection>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsPresContext_cycleCollection))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPresContext_cycleCollection>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsPresContext_cycleCollection))
+ );
+ }
+ impl Clone for nsPresContext_cycleCollection {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
+ pub const nsPresContext_nsPresContextType_eContext_Galley:
+ root::nsPresContext_nsPresContextType = 0;
+ pub const nsPresContext_nsPresContextType_eContext_PrintPreview:
+ root::nsPresContext_nsPresContextType = 1;
+ pub const nsPresContext_nsPresContextType_eContext_Print:
+ root::nsPresContext_nsPresContextType = 2;
+ pub const nsPresContext_nsPresContextType_eContext_PageLayout:
+ root::nsPresContext_nsPresContextType = 3;
+ pub type nsPresContext_nsPresContextType = u32;
+ pub const nsPresContext_InteractionType_eClickInteraction: root::nsPresContext_InteractionType =
+ 0;
+ pub const nsPresContext_InteractionType_eKeyInteraction: root::nsPresContext_InteractionType =
+ 1;
+ pub const nsPresContext_InteractionType_eMouseMoveInteraction:
+ root::nsPresContext_InteractionType = 2;
+ pub const nsPresContext_InteractionType_eScrollInteraction:
+ root::nsPresContext_InteractionType = 3;
+ pub type nsPresContext_InteractionType = u32;
+ /// A class that can be used to temporarily disable reflow interruption.
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsPresContext_InterruptPreventer {
+ pub mCtx: *mut root::nsPresContext,
+ pub mInterruptsEnabled: bool,
+ pub mHasPendingInterrupt: bool,
+ }
+ #[test]
+ fn bindgen_test_layout_nsPresContext_InterruptPreventer() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPresContext_InterruptPreventer>(),
+ 16usize,
+ concat!("Size of: ", stringify!(nsPresContext_InterruptPreventer))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPresContext_InterruptPreventer>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsPresContext_InterruptPreventer)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext_InterruptPreventer>())).mCtx as *const _
+ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext_InterruptPreventer),
+ "::",
+ stringify!(mCtx)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext_InterruptPreventer>())).mInterruptsEnabled
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext_InterruptPreventer),
+ "::",
+ stringify!(mInterruptsEnabled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext_InterruptPreventer>())).mHasPendingInterrupt
+ as *const _ as usize
+ },
+ 9usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext_InterruptPreventer),
+ "::",
+ stringify!(mHasPendingInterrupt)
+ )
+ );
+ }
+ #[repr(C)]
+ #[derive(Debug)]
+ pub struct nsPresContext_TransactionInvalidations {
+ pub mTransactionId: u64,
+ pub mInvalidations: root::nsTArray<root::nsRect>,
+ }
+ #[test]
+ fn bindgen_test_layout_nsPresContext_TransactionInvalidations() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPresContext_TransactionInvalidations>(),
+ 16usize,
+ concat!(
+ "Size of: ",
+ stringify!(nsPresContext_TransactionInvalidations)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPresContext_TransactionInvalidations>(),
+ 8usize,
+ concat!(
+ "Alignment of ",
+ stringify!(nsPresContext_TransactionInvalidations)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext_TransactionInvalidations>())).mTransactionId
+ as *const _ as usize
+ },
+ 0usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext_TransactionInvalidations),
+ "::",
+ stringify!(mTransactionId)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext_TransactionInvalidations>())).mInvalidations
+ as *const _ as usize
+ },
+ 8usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext_TransactionInvalidations),
+ "::",
+ stringify!(mInvalidations)
+ )
+ );
+ }
+ extern "C" {
+ #[link_name = "\u{1}_ZN13nsPresContext21_cycleCollectorGlobalE"]
+ pub static mut nsPresContext__cycleCollectorGlobal: root::nsPresContext_cycleCollection;
+ }
+ #[test]
+ fn bindgen_test_layout_nsPresContext() {
+ assert_eq!(
+ ::std::mem::size_of::<nsPresContext>(),
+ 1392usize,
+ concat!("Size of: ", stringify!(nsPresContext))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<nsPresContext>(),
+ 8usize,
+ concat!("Alignment of ", stringify!(nsPresContext))
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mRefCnt as *const _ as usize },
+ 16usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mRefCnt)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mType as *const _ as usize },
+ 24usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mType)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mShell as *const _ as usize },
+ 32usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mShell)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mDocument as *const _ as usize },
+ 40usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mDocument)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mDeviceContext as *const _ as usize
+ },
+ 48usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mDeviceContext)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mEventManager as *const _ as usize },
+ 56usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mEventManager)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mRefreshDriver as *const _ as usize
+ },
+ 64usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mRefreshDriver)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mAnimationEventDispatcher as *const _
+ as usize
+ },
+ 72usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mAnimationEventDispatcher)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mEffectCompositor as *const _ as usize
+ },
+ 80usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mEffectCompositor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mTransitionManager as *const _ as usize
+ },
+ 88usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTransitionManager)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mAnimationManager as *const _ as usize
+ },
+ 96usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mAnimationManager)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mRestyleManager as *const _ as usize
+ },
+ 104usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mRestyleManager)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mCounterStyleManager as *const _ as usize
+ },
+ 112usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mCounterStyleManager)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mMedium as *const _ as usize },
+ 120usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mMedium)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mMediaEmulated as *const _ as usize
+ },
+ 128usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mMediaEmulated)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFontFeatureValuesLookup as *const _
+ as usize
+ },
+ 136usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFontFeatureValuesLookup)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLinkHandler as *const _ as usize },
+ 144usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLinkHandler)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLanguage as *const _ as usize },
+ 152usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLanguage)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mInflationDisabledForShrinkWrap
+ as *const _ as usize
+ },
+ 160usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mInflationDisabledForShrinkWrap)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mContainer as *const _ as usize },
+ 168usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mContainer)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mBaseMinFontSize as *const _ as usize
+ },
+ 176usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mBaseMinFontSize)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mSystemFontScale as *const _ as usize
+ },
+ 180usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mSystemFontScale)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTextZoom as *const _ as usize },
+ 184usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTextZoom)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mEffectiveTextZoom as *const _ as usize
+ },
+ 188usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mEffectiveTextZoom)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFullZoom as *const _ as usize },
+ 192usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFullZoom)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mOverrideDPPX as *const _ as usize },
+ 196usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mOverrideDPPX)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mLastFontInflationScreenSize as *const _
+ as usize
+ },
+ 200usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLastFontInflationScreenSize)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mCurAppUnitsPerDevPixel as *const _
+ as usize
+ },
+ 216usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mCurAppUnitsPerDevPixel)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mAutoQualityMinFontSizePixelsPref
+ as *const _ as usize
+ },
+ 220usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mAutoQualityMinFontSizePixelsPref)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTheme as *const _ as usize },
+ 224usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTheme)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLangService as *const _ as usize },
+ 232usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLangService)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mPrintSettings as *const _ as usize
+ },
+ 240usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mPrintSettings)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mBidiEngine as *const _ as usize },
+ 248usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mBidiEngine)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTransactions as *const _ as usize },
+ 256usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTransactions)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mTextPerf as *const _ as usize },
+ 336usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTextPerf)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mMissingFonts as *const _ as usize },
+ 344usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mMissingFonts)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mVisibleArea as *const _ as usize },
+ 352usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mVisibleArea)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mLastResizeEventVisibleArea as *const _
+ as usize
+ },
+ 368usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLastResizeEventVisibleArea)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPageSize as *const _ as usize },
+ 384usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mPageSize)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPageScale as *const _ as usize },
+ 392usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mPageScale)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mPPScale as *const _ as usize },
+ 396usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mPPScale)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mDefaultColor as *const _ as usize },
+ 400usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mDefaultColor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mBackgroundColor as *const _ as usize
+ },
+ 404usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mBackgroundColor)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mLinkColor as *const _ as usize },
+ 408usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLinkColor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mActiveLinkColor as *const _ as usize
+ },
+ 412usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mActiveLinkColor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mVisitedLinkColor as *const _ as usize
+ },
+ 416usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mVisitedLinkColor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFocusBackgroundColor as *const _ as usize
+ },
+ 420usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFocusBackgroundColor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFocusTextColor as *const _ as usize
+ },
+ 424usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFocusTextColor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mBodyTextColor as *const _ as usize
+ },
+ 428usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mBodyTextColor)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mViewportScrollbarOverrideElement
+ as *const _ as usize
+ },
+ 432usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mViewportScrollbarOverrideElement)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mViewportStyleScrollbar as *const _
+ as usize
+ },
+ 440usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mViewportStyleScrollbar)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFocusRingWidth as *const _ as usize
+ },
+ 504usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFocusRingWidth)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mExistThrottledUpdates as *const _
+ as usize
+ },
+ 505usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mExistThrottledUpdates)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mImageAnimationMode as *const _ as usize
+ },
+ 506usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mImageAnimationMode)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mImageAnimationModePref as *const _
+ as usize
+ },
+ 508usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mImageAnimationModePref)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mLangGroupFontPrefs as *const _ as usize
+ },
+ 512usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLangGroupFontPrefs)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFontGroupCacheDirty as *const _ as usize
+ },
+ 1208usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFontGroupCacheDirty)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mLanguagesUsed as *const _ as usize
+ },
+ 1216usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLanguagesUsed)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mBorderWidthTable as *const _ as usize
+ },
+ 1248usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mBorderWidthTable)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mInterruptChecksToSkip as *const _
+ as usize
+ },
+ 1260usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mInterruptChecksToSkip)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mElementsRestyled as *const _ as usize
+ },
+ 1264usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mElementsRestyled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFramesConstructed as *const _ as usize
+ },
+ 1272usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFramesConstructed)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFramesReflowed as *const _ as usize
+ },
+ 1280usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFramesReflowed)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mReflowStartTime as *const _ as usize
+ },
+ 1288usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mReflowStartTime)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFirstNonBlankPaintTime as *const _
+ as usize
+ },
+ 1296usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFirstNonBlankPaintTime)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFirstClickTime as *const _ as usize
+ },
+ 1304usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFirstClickTime)
+ )
+ );
+ assert_eq!(
+ unsafe { &(*(::std::ptr::null::<nsPresContext>())).mFirstKeyTime as *const _ as usize },
+ 1312usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFirstKeyTime)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFirstMouseMoveTime as *const _ as usize
+ },
+ 1320usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFirstMouseMoveTime)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mFirstScrollTime as *const _ as usize
+ },
+ 1328usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mFirstScrollTime)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mInteractionTimeEnabled as *const _
+ as usize
+ },
+ 1336usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mInteractionTimeEnabled)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mLastStyleUpdateForAllAnimations
+ as *const _ as usize
+ },
+ 1344usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mLastStyleUpdateForAllAnimations)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollLastY as *const _ as usize
+ },
+ 1352usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTelemetryScrollLastY)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollMaxY as *const _ as usize
+ },
+ 1356usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTelemetryScrollMaxY)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mTelemetryScrollTotalY as *const _
+ as usize
+ },
+ 1360usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mTelemetryScrollTotalY)
+ )
+ );
+ assert_eq!(
+ unsafe {
+ &(*(::std::ptr::null::<nsPresContext>())).mPendingMediaFeatureValuesChange
+ as *const _ as usize
+ },
+ 1372usize,
+ concat!(
+ "Offset of field: ",
+ stringify!(nsPresContext),
+ "::",
+ stringify!(mPendingMediaFeatureValuesChange)
+ )
+ );
+ }
+ impl nsPresContext {
+ #[inline]
+ pub fn mHasPendingInterrupt(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mHasPendingInterrupt(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(0usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPendingInterruptFromTest(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPendingInterruptFromTest(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(1usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mInterruptsEnabled(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mInterruptsEnabled(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(2usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mUseDocumentFonts(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mUseDocumentFonts(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(3usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mUseDocumentColors(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mUseDocumentColors(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(4usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mUnderlineLinks(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mUnderlineLinks(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(5usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mSendAfterPaintToContent(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mSendAfterPaintToContent(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(6usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mUseFocusColors(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mUseFocusColors(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(7usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mFocusRingOnAnything(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mFocusRingOnAnything(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(8usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mFocusRingStyle(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mFocusRingStyle(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(9usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDrawImageBackground(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mDrawImageBackground(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(10usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDrawColorBackground(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mDrawColorBackground(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(11usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mNeverAnimate(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mNeverAnimate(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(12usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsRenderingOnlySelection(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIsRenderingOnlySelection(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(13usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPaginated(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPaginated(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(14usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mCanPaginatedScroll(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mCanPaginatedScroll(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(15usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mDoScaledTwips(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mDoScaledTwips(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(16usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsRootPaginatedDocument(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIsRootPaginatedDocument(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(17usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPrefBidiDirection(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPrefBidiDirection(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(18usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPrefScrollbarSide(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 2u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPrefScrollbarSide(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(19usize, 2u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPendingSysColorChanged(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPendingSysColorChanged(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(21usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPendingThemeChanged(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPendingThemeChanged(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(22usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPendingUIResolutionChanged(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPendingUIResolutionChanged(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(23usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPrefChangePendingNeedsReflow(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPrefChangePendingNeedsReflow(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(24usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPostedPrefChangedRunnable(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPostedPrefChangedRunnable(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(25usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsEmulatingMedia(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIsEmulatingMedia(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(26usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsGlyph(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIsGlyph(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(27usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mUsesRootEMUnits(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mUsesRootEMUnits(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(28usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mUsesExChUnits(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mUsesExChUnits(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(29usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mCounterStylesDirty(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mCounterStylesDirty(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(30usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mFontFeatureValuesDirty(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mFontFeatureValuesDirty(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(31usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mSuppressResizeReflow(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(32usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsVisual(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(33usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsChrome(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(34usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mIsChromeOriginImage(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(35usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(36usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mPaintFlashingInitialized(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(37usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasWarnedAboutPositionedTableParts(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(38usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius(
+ &mut self,
+ val: ::std::os::raw::c_uint,
+ ) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(39usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(40usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(41usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint {
+ unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u32) }
+ }
+ #[inline]
+ pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) {
+ unsafe {
+ let val: u32 = ::std::mem::transmute(val);
+ self._bitfield_1.set(42usize, 1u8, val as u64)
+ }
+ }
+ #[inline]
+ pub fn new_bitfield_1(
+ mHasPendingInterrupt: ::std::os::raw::c_uint,
+ mPendingInterruptFromTest: ::std::os::raw::c_uint,
+ mInterruptsEnabled: ::std::os::raw::c_uint,
+ mUseDocumentFonts: ::std::os::raw::c_uint,
+ mUseDocumentColors: ::std::os::raw::c_uint,
+ mUnderlineLinks: ::std::os::raw::c_uint,
+ mSendAfterPaintToContent: ::std::os::raw::c_uint,
+ mUseFocusColors: ::std::os::raw::c_uint,
+ mFocusRingOnAnything: ::std::os::raw::c_uint,
+ mFocusRingStyle: ::std::os::raw::c_uint,
+ mDrawImageBackground: ::std::os::raw::c_uint,
+ mDrawColorBackground: ::std::os::raw::c_uint,
+ mNeverAnimate: ::std::os::raw::c_uint,
+ mIsRenderingOnlySelection: ::std::os::raw::c_uint,
+ mPaginated: ::std::os::raw::c_uint,
+ mCanPaginatedScroll: ::std::os::raw::c_uint,
+ mDoScaledTwips: ::std::os::raw::c_uint,
+ mIsRootPaginatedDocument: ::std::os::raw::c_uint,
+ mPrefBidiDirection: ::std::os::raw::c_uint,
+ mPrefScrollbarSide: ::std::os::raw::c_uint,
+ mPendingSysColorChanged: ::std::os::raw::c_uint,
+ mPendingThemeChanged: ::std::os::raw::c_uint,
+ mPendingUIResolutionChanged: ::std::os::raw::c_uint,
+ mPrefChangePendingNeedsReflow: ::std::os::raw::c_uint,
+ mPostedPrefChangedRunnable: ::std::os::raw::c_uint,
+ mIsEmulatingMedia: ::std::os::raw::c_uint,
+ mIsGlyph: ::std::os::raw::c_uint,
+ mUsesRootEMUnits: ::std::os::raw::c_uint,
+ mUsesExChUnits: ::std::os::raw::c_uint,
+ mCounterStylesDirty: ::std::os::raw::c_uint,
+ mFontFeatureValuesDirty: ::std::os::raw::c_uint,
+ mSuppressResizeReflow: ::std::os::raw::c_uint,
+ mIsVisual: ::std::os::raw::c_uint,
+ mIsChrome: ::std::os::raw::c_uint,
+ mIsChromeOriginImage: ::std::os::raw::c_uint,
+ mPaintFlashing: ::std::os::raw::c_uint,
+ mPaintFlashingInitialized: ::std::os::raw::c_uint,
+ mHasWarnedAboutPositionedTableParts: ::std::os::raw::c_uint,
+ mHasWarnedAboutTooLargeDashedOrDottedRadius: ::std::os::raw::c_uint,
+ mQuirkSheetAdded: ::std::os::raw::c_uint,
+ mNeedsPrefUpdate: ::std::os::raw::c_uint,
+ mHadNonBlankPaint: ::std::os::raw::c_uint,
+ ) -> root::__BindgenBitfieldUnit<[u8; 6usize], u8> {
+ let mut __bindgen_bitfield_unit: root::__BindgenBitfieldUnit<
+ [u8; 6usize],
+ u8,
+ > = Default::default();
+ __bindgen_bitfield_unit.set(0usize, 1u8, {
+ let mHasPendingInterrupt: u32 =
+ unsafe { ::std::mem::transmute(mHasPendingInterrupt) };
+ mHasPendingInterrupt as u64
+ });
+ __bindgen_bitfield_unit.set(1usize, 1u8, {
+ let mPendingInterruptFromTest: u32 =
+ unsafe { ::std::mem::transmute(mPendingInterruptFromTest) };
+ mPendingInterruptFromTest as u64
+ });
+ __bindgen_bitfield_unit.set(2usize, 1u8, {
+ let mInterruptsEnabled: u32 = unsafe { ::std::mem::transmute(mInterruptsEnabled) };
+ mInterruptsEnabled as u64
+ });
+ __bindgen_bitfield_unit.set(3usize, 1u8, {
+ let mUseDocumentFonts: u32 = unsafe { ::std::mem::transmute(mUseDocumentFonts) };
+ mUseDocumentFonts as u64
+ });
+ __bindgen_bitfield_unit.set(4usize, 1u8, {
+ let mUseDocumentColors: u32 = unsafe { ::std::mem::transmute(mUseDocumentColors) };
+ mUseDocumentColors as u64
+ });
+ __bindgen_bitfield_unit.set(5usize, 1u8, {
+ let mUnderlineLinks: u32 = unsafe { ::std::mem::transmute(mUnderlineLinks) };
+ mUnderlineLinks as u64
+ });
+ __bindgen_bitfield_unit.set(6usize, 1u8, {
+ let mSendAfterPaintToContent: u32 =
+ unsafe { ::std::mem::transmute(mSendAfterPaintToContent) };
+ mSendAfterPaintToContent as u64
+ });
+ __bindgen_bitfield_unit.set(7usize, 1u8, {
+ let mUseFocusColors: u32 = unsafe { ::std::mem::transmute(mUseFocusColors) };
+ mUseFocusColors as u64
+ });
+ __bindgen_bitfield_unit.set(8usize, 1u8, {
+ let mFocusRingOnAnything: u32 =
+ unsafe { ::std::mem::transmute(mFocusRingOnAnything) };
+ mFocusRingOnAnything as u64
+ });
+ __bindgen_bitfield_unit.set(9usize, 1u8, {
+ let mFocusRingStyle: u32 = unsafe { ::std::mem::transmute(mFocusRingStyle) };
+ mFocusRingStyle as u64
+ });
+ __bindgen_bitfield_unit.set(10usize, 1u8, {
+ let mDrawImageBackground: u32 =
+ unsafe { ::std::mem::transmute(mDrawImageBackground) };
+ mDrawImageBackground as u64
+ });
+ __bindgen_bitfield_unit.set(11usize, 1u8, {
+ let mDrawColorBackground: u32 =
+ unsafe { ::std::mem::transmute(mDrawColorBackground) };
+ mDrawColorBackground as u64
+ });
+ __bindgen_bitfield_unit.set(12usize, 1u8, {
+ let mNeverAnimate: u32 = unsafe { ::std::mem::transmute(mNeverAnimate) };
+ mNeverAnimate as u64
+ });
+ __bindgen_bitfield_unit.set(13usize, 1u8, {
+ let mIsRenderingOnlySelection: u32 =
+ unsafe { ::std::mem::transmute(mIsRenderingOnlySelection) };
+ mIsRenderingOnlySelection as u64
+ });
+ __bindgen_bitfield_unit.set(14usize, 1u8, {
+ let mPaginated: u32 = unsafe { ::std::mem::transmute(mPaginated) };
+ mPaginated as u64
+ });
+ __bindgen_bitfield_unit.set(15usize, 1u8, {
+ let mCanPaginatedScroll: u32 =
+ unsafe { ::std::mem::transmute(mCanPaginatedScroll) };
+ mCanPaginatedScroll as u64
+ });
+ __bindgen_bitfield_unit.set(16usize, 1u8, {
+ let mDoScaledTwips: u32 = unsafe { ::std::mem::transmute(mDoScaledTwips) };
+ mDoScaledTwips as u64
+ });
+ __bindgen_bitfield_unit.set(17usize, 1u8, {
+ let mIsRootPaginatedDocument: u32 =
+ unsafe { ::std::mem::transmute(mIsRootPaginatedDocument) };
+ mIsRootPaginatedDocument as u64
+ });
+ __bindgen_bitfield_unit.set(18usize, 1u8, {
+ let mPrefBidiDirection: u32 = unsafe { ::std::mem::transmute(mPrefBidiDirection) };
+ mPrefBidiDirection as u64
+ });
+ __bindgen_bitfield_unit.set(19usize, 2u8, {
+ let mPrefScrollbarSide: u32 = unsafe { ::std::mem::transmute(mPrefScrollbarSide) };
+ mPrefScrollbarSide as u64
+ });
+ __bindgen_bitfield_unit.set(21usize, 1u8, {
+ let mPendingSysColorChanged: u32 =
+ unsafe { ::std::mem::transmute(mPendingSysColorChanged) };
+ mPendingSysColorChanged as u64
+ });
+ __bindgen_bitfield_unit.set(22usize, 1u8, {
+ let mPendingThemeChanged: u32 =
+ unsafe { ::std::mem::transmute(mPendingThemeChanged) };
+ mPendingThemeChanged as u64
+ });
+ __bindgen_bitfield_unit.set(23usize, 1u8, {
+ let mPendingUIResolutionChanged: u32 =
+ unsafe { ::std::mem::transmute(mPendingUIResolutionChanged) };
+ mPendingUIResolutionChanged as u64
+ });
+ __bindgen_bitfield_unit.set(24usize, 1u8, {
+ let mPrefChangePendingNeedsReflow: u32 =
+ unsafe { ::std::mem::transmute(mPrefChangePendingNeedsReflow) };
+ mPrefChangePendingNeedsReflow as u64
+ });
+ __bindgen_bitfield_unit.set(25usize, 1u8, {
+ let mPostedPrefChangedRunnable: u32 =
+ unsafe { ::std::mem::transmute(mPostedPrefChangedRunnable) };
+ mPostedPrefChangedRunnable as u64
+ });
+ __bindgen_bitfield_unit.set(26usize, 1u8, {
+ let mIsEmulatingMedia: u32 = unsafe { ::std::mem::transmute(mIsEmulatingMedia) };
+ mIsEmulatingMedia as u64
+ });
+ __bindgen_bitfield_unit.set(27usize, 1u8, {
+ let mIsGlyph: u32 = unsafe { ::std::mem::transmute(mIsGlyph) };
+ mIsGlyph as u64
+ });
+ __bindgen_bitfield_unit.set(28usize, 1u8, {
+ let mUsesRootEMUnits: u32 = unsafe { ::std::mem::transmute(mUsesRootEMUnits) };
+ mUsesRootEMUnits as u64
+ });
+ __bindgen_bitfield_unit.set(29usize, 1u8, {
+ let mUsesExChUnits: u32 = unsafe { ::std::mem::transmute(mUsesExChUnits) };
+ mUsesExChUnits as u64
+ });
+ __bindgen_bitfield_unit.set(30usize, 1u8, {
+ let mCounterStylesDirty: u32 =
+ unsafe { ::std::mem::transmute(mCounterStylesDirty) };
+ mCounterStylesDirty as u64
+ });
+ __bindgen_bitfield_unit.set(31usize, 1u8, {
+ let mFontFeatureValuesDirty: u32 =
+ unsafe { ::std::mem::transmute(mFontFeatureValuesDirty) };
+ mFontFeatureValuesDirty as u64
+ });
+ __bindgen_bitfield_unit.set(32usize, 1u8, {
+ let mSuppressResizeReflow: u32 =
+ unsafe { ::std::mem::transmute(mSuppressResizeReflow) };
+ mSuppressResizeReflow as u64
+ });
+ __bindgen_bitfield_unit.set(33usize, 1u8, {
+ let mIsVisual: u32 = unsafe { ::std::mem::transmute(mIsVisual) };
+ mIsVisual as u64
+ });
+ __bindgen_bitfield_unit.set(34usize, 1u8, {
+ let mIsChrome: u32 = unsafe { ::std::mem::transmute(mIsChrome) };
+ mIsChrome as u64
+ });
+ __bindgen_bitfield_unit.set(35usize, 1u8, {
+ let mIsChromeOriginImage: u32 =
+ unsafe { ::std::mem::transmute(mIsChromeOriginImage) };
+ mIsChromeOriginImage as u64
+ });
+ __bindgen_bitfield_unit.set(36usize, 1u8, {
+ let mPaintFlashing: u32 = unsafe { ::std::mem::transmute(mPaintFlashing) };
+ mPaintFlashing as u64
+ });
+ __bindgen_bitfield_unit.set(37usize, 1u8, {
+ let mPaintFlashingInitialized: u32 =
+ unsafe { ::std::mem::transmute(mPaintFlashingInitialized) };
+ mPaintFlashingInitialized as u64
+ });
+ __bindgen_bitfield_unit.set(38usize, 1u8, {
+ let mHasWarnedAboutPositionedTableParts: u32 =
+ unsafe { ::std::mem::transmute(mHasWarnedAboutPositionedTableParts) };
+ mHasWarnedAboutPositionedTableParts as u64
+ });
+ __bindgen_bitfield_unit.set(39usize, 1u8, {
+ let mHasWarnedAboutTooLargeDashedOrDottedRadius: u32 =
+ unsafe { ::std::mem::transmute(mHasWarnedAboutTooLargeDashedOrDottedRadius) };
+ mHasWarnedAboutTooLargeDashedOrDottedRadius as u64
+ });
+ __bindgen_bitfield_unit.set(40usize, 1u8, {
+ let mQuirkSheetAdded: u32 = unsafe { ::std::mem::transmute(mQuirkSheetAdded) };
+ mQuirkSheetAdded as u64
+ });
+ __bindgen_bitfield_unit.set(41usize, 1u8, {
+ let mNeedsPrefUpdate: u32 = unsafe { ::std::mem::transmute(mNeedsPrefUpdate) };
+ mNeedsPrefUpdate as u64
+ });
+ __bindgen_bitfield_unit.set(42usize, 1u8, {
+ let mHadNonBlankPaint: u32 = unsafe { ::std::mem::transmute(mHadNonBlankPaint) };
+ mHadNonBlankPaint as u64
+ });
+ __bindgen_bitfield_unit
+ }
+ }
+ #[repr(C)]
pub struct nsISMILAttr__bindgen_vtable(::std::os::raw::c_void);
///
#[repr(C)]
@@ -38863,26 +38846,12 @@ pub mod root {
)
);
}
- pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_31 = 4194304;
- pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_31 = 8388608;
- pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_31 = 16777216;
- pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_31 = 33554432;
- pub const ELEMENT_SHARED_RESTYLE_BITS: root::_bindgen_ty_31 = 62914560;
pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_31 = 4194304;
pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_31 =
8388608;
pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_31 = 16777216;
pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_31 = 33554432;
- pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_31 = 4194304;
- pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_31 = 8388608;
- pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_31 = 16777216;
- pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: root::_bindgen_ty_31 = 33554432;
- pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_31 = 67108864;
- pub const ELEMENT_HAS_CHILD_WITH_LATER_SIBLINGS_HINT: root::_bindgen_ty_31 = 134217728;
- pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_31 = 20971520;
- pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_31 = 41943040;
- pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_31 = 130023424;
- pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_31 = 26;
+ pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_31 = 24;
pub type _bindgen_ty_31 = u32;
pub type nsStyledElementBase = root::mozilla::dom::Element;
#[repr(C)]
@@ -39415,16 +39384,6 @@ pub mod root {
*self
}
}
- #[repr(C)]
- #[derive(Debug, Copy)]
- pub struct nsCSSScanner {
- _unused: [u8; 0],
- }
- impl Clone for nsCSSScanner {
- fn clone(&self) -> Self {
- *self
- }
- }
pub const GECKO_IS_NIGHTLY: bool = true;
#[repr(C)]
pub struct ServoBundledURI {
@@ -39711,66 +39670,6 @@ pub mod root {
pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder: u32 = 8;
pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch: u32 = 12;
#[repr(C)]
- #[derive(Debug)]
- pub struct nsCSSCounterStyleRule {
- pub _base: root::mozilla::css::Rule,
- pub mName: root::RefPtr<root::nsAtom>,
- pub mValues: [root::nsCSSValue; 10usize],
- pub mGeneration: u32,
- }
- pub type nsCSSCounterStyleRule_Getter = [u64; 2usize];
- extern "C" {
- #[link_name = "\u{1}_ZN21nsCSSCounterStyleRule8kGettersE"]
- pub static mut nsCSSCounterStyleRule_kGetters: [root::nsCSSCounterStyleRule_Getter; 0usize];
- }
- #[test]
- fn bindgen_test_layout_nsCSSCounterStyleRule() {
- assert_eq!(
- ::std::mem::size_of::<nsCSSCounterStyleRule>(),
- 240usize,
- concat!("Size of: ", stringify!(nsCSSCounterStyleRule))
- );
- assert_eq!(
- ::std::mem::align_of::<nsCSSCounterStyleRule>(),
- 8usize,
- concat!("Alignment of ", stringify!(nsCSSCounterStyleRule))
- );
- assert_eq!(
- unsafe { &(*(::std::ptr::null::<nsCSSCounterStyleRule>())).mName as *const _ as usize },
- 64usize,
- concat!(
- "Offset of field: ",
- stringify!(nsCSSCounterStyleRule),
- "::",
- stringify!(mName)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsCSSCounterStyleRule>())).mValues as *const _ as usize
- },
- 72usize,
- concat!(
- "Offset of field: ",
- stringify!(nsCSSCounterStyleRule),
- "::",
- stringify!(mValues)
- )
- );
- assert_eq!(
- unsafe {
- &(*(::std::ptr::null::<nsCSSCounterStyleRule>())).mGeneration as *const _ as usize
- },
- 232usize,
- concat!(
- "Offset of field: ",
- stringify!(nsCSSCounterStyleRule),
- "::",
- stringify!(mGeneration)
- )
- );
- }
- #[repr(C)]
#[derive(Debug, Copy)]
pub struct nsHtml5StringParser {
_unused: [u8; 0],
@@ -40743,339 +40642,390 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsAtom_close1_close0_instantiation() {
+ fn __bindgen_test_layout_BaseTimeDuration_open0_TimeDurationValueCalculator_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
+ ::std::mem::size_of::<root::mozilla::BaseTimeDuration>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
+ stringify!(root::mozilla::BaseTimeDuration)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
+ ::std::mem::align_of::<root::mozilla::BaseTimeDuration>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
+ stringify!(root::mozilla::BaseTimeDuration)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_URLParams_Param_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsTArray<root::mozilla::dom::URLParams_Param>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsTArray<root::mozilla::dom::URLParams_Param>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsTArray<root::mozilla::dom::URLParams_Param>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsTArray<root::mozilla::dom::URLParams_Param>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_ProfilerBacktrace_ProfilerBacktraceDestructor_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_URLParams_DefaultDelete_open1_URLParams_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::ProfilerBacktrace>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::URLParams>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::ProfilerBacktrace>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::URLParams>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::ProfilerBacktrace>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::URLParams>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::ProfilerBacktrace>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::URLParams>)
)
);
}
#[test]
- fn __bindgen_test_layout_BaseTimeDuration_open0_TimeDurationValueCalculator_close0_instantiation(
-) {
+ fn __bindgen_test_layout_DefaultDelete_open0_URLParams_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::BaseTimeDuration>(),
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::BaseTimeDuration)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::BaseTimeDuration>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::BaseTimeDuration)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_DeletePolicy_open1_JSErrorNotes_close1_close0_instantiation(
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIWeakReference_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::nsCOMPtr)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::nsCOMPtr)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_UniquePtr_open0_const_char_FreePolicy_open1_const_char_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<::std::os::raw::c_char>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes>)
+ stringify!(root::mozilla::UniquePtr<::std::os::raw::c_char>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<::std::os::raw::c_char>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes>)
+ stringify!(root::mozilla::UniquePtr<::std::os::raw::c_char>)
)
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_close0_instantiation() {
+ fn __bindgen_test_layout_FreePolicy_open0_const_char_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::JS::DeletePolicy>(),
+ ::std::mem::size_of::<root::mozilla::detail::FreePolicy>(),
1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::mozilla::detail::FreePolicy)
)
);
assert_eq!(
- ::std::mem::align_of::<root::JS::DeletePolicy>(),
+ ::std::mem::align_of::<root::mozilla::detail::FreePolicy>(),
1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::mozilla::detail::FreePolicy)
)
);
}
#[test]
- fn __bindgen_test_layout_iterator_open0_input_iterator_tag_UniquePtr_open1_JSErrorNotes_Note_DeletePolicy_open2_JSErrorNotes_Note_close2_close1_long_ptr_UniquePtr_ref_UniquePtr_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIEventTarget_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::std::iterator>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::std::iterator)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::std::iterator>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::std::iterator)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_nsMainThreadPtrHandle_open0_nsIURI_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::size_of::<root::nsMainThreadPtrHandle<root::nsIURI>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsMainThreadPtrHandle<root::nsIURI>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::align_of::<root::nsMainThreadPtrHandle<root::nsIURI>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsMainThreadPtrHandle<root::nsIURI>)
)
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_URLExtraData_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::RefPtr<root::mozilla::URLExtraData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::RefPtr<root::mozilla::URLExtraData>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_2(
-) {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_nsIDocument_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::size_of::<root::nsPtrHashKey<root::nsIDocument>>(),
+ 16usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::nsPtrHashKey<root::nsIDocument>)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::nsPtrHashKey<root::nsIDocument>>(),
+ 8usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::nsPtrHashKey<root::nsIDocument>)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_nsTArray_open0_GridNamedArea_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::nsTArray<root::mozilla::css::GridNamedArea>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsTArray<root::mozilla::css::GridNamedArea>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::align_of::<root::nsTArray<root::mozilla::css::GridNamedArea>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsTArray<root::mozilla::css::GridNamedArea>)
)
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_3(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_nsCSSValueGradientStop_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsCSSValueGradientStop>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsTArray<root::nsCSSValueGradientStop>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsCSSValueGradientStop>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsTArray<root::nsCSSValueGradientStop>)
)
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_4(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::JS::DeletePolicy>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::JS::DeletePolicy)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_5(
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation(
) {
assert_eq!(
::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
@@ -41095,7 +41045,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_5() {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::JS::DeletePolicy>(),
1usize,
@@ -41114,7 +41064,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_DeletePolicy_open1_JSErrorNotes_close1_close0_instantiation_1(
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_DeletePolicy_open1_JSErrorNotes_close1_close0_instantiation(
) {
assert_eq!(
::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes>>(),
@@ -41134,7 +41084,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_close0_instantiation_1() {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::JS::DeletePolicy>(),
1usize,
@@ -41153,581 +41103,625 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation() {
+ fn __bindgen_test_layout_iterator_open0_input_iterator_tag_UniquePtr_open1_JSErrorNotes_Note_DeletePolicy_open2_JSErrorNotes_Note_close2_close1_long_ptr_UniquePtr_ref_UniquePtr_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
- 8usize,
+ ::std::mem::size_of::<root::std::iterator>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::std::iterator)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
- 8usize,
+ ::std::mem::align_of::<root::std::iterator>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::std::iterator)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_MediaList_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_1(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::MediaList>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::MediaList>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::MediaList>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::MediaList>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_1() {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
- 8usize,
+ ::std::mem::size_of::<root::JS::DeletePolicy>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::JS::DeletePolicy)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
- 8usize,
+ ::std::mem::align_of::<root::JS::DeletePolicy>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::JS::DeletePolicy)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_StyleSetHandle_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_2(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::mozilla::StyleSetHandle>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::StyleSetHandle>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::mozilla::StyleSetHandle>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::StyleSetHandle>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsNodeInfoManager_close0_instantiation() {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsNodeInfoManager>>(),
+ ::std::mem::size_of::<root::JS::DeletePolicy>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::JS::DeletePolicy)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::JS::DeletePolicy>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::JS::DeletePolicy)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_3(
+) {
+ assert_eq!(
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsNodeInfoManager>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsNodeInfoManager>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsNodeInfoManager>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_NodeInfo_NodeInfoInner_close0_instantiation() {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::NodeInfo_NodeInfoInner>>(),
- 16usize,
+ ::std::mem::size_of::<root::JS::DeletePolicy>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::mozilla::dom::NodeInfo_NodeInfoInner>)
+ stringify!(root::JS::DeletePolicy)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::JS::DeletePolicy>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::JS::DeletePolicy)
)
);
- assert_eq ! ( :: std :: mem :: align_of :: < root :: nsPtrHashKey < root :: mozilla :: dom :: NodeInfo_NodeInfoInner > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsPtrHashKey < root :: mozilla :: dom :: NodeInfo_NodeInfoInner > ) ) );
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_4(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_1() {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::JS::DeletePolicy>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::JS::DeletePolicy)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::align_of::<root::JS::DeletePolicy>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::JS::DeletePolicy)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsBindingManager_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_Note_DeletePolicy_open1_JSErrorNotes_Note_close1_close0_instantiation_5(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsBindingManager>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsBindingManager>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsBindingManager>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsBindingManager>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes_Note>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAttrChildContentList_close0_instantiation() {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_Note_close0_instantiation_5() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAttrChildContentList>>(),
- 8usize,
+ ::std::mem::size_of::<root::JS::DeletePolicy>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAttrChildContentList>)
+ stringify!(root::JS::DeletePolicy)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAttrChildContentList>>(),
- 8usize,
+ ::std::mem::align_of::<root::JS::DeletePolicy>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAttrChildContentList>)
+ stringify!(root::JS::DeletePolicy)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_LinkedList_open1_nsRange_close1_DefaultDelete_open1_LinkedList_open2_nsRange_close2_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_JSErrorNotes_DeletePolicy_open1_JSErrorNotes_close1_close0_instantiation_1(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::JSErrorNotes>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
+ stringify!(root::mozilla::UniquePtr<root::JSErrorNotes>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_LinkedList_open1_nsRange_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_DeletePolicy_open0_JSErrorNotes_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ ::std::mem::size_of::<root::JS::DeletePolicy>(),
1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::JS::DeletePolicy)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ ::std::mem::align_of::<root::JS::DeletePolicy>(),
1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::JS::DeletePolicy)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_LinkedList_open1_nsRange_close1_DefaultDelete_open1_LinkedList_open2_nsRange_close2_close1_close0_instantiation_1(
+ fn __bindgen_test_layout_UniquePtr_open0_ProfilerBacktrace_ProfilerBacktraceDestructor_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::ProfilerBacktrace>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
+ stringify!(root::mozilla::UniquePtr<root::ProfilerBacktrace>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::ProfilerBacktrace>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
+ stringify!(root::mozilla::UniquePtr<root::ProfilerBacktrace>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_LinkedList_open1_nsRange_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_imgRequestProxy_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::imgRequestProxy>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::imgRequestProxy>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::imgRequestProxy>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::imgRequestProxy>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_NodeInfo_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_ProxyBehaviour_DefaultDelete_open1_ProxyBehaviour_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::NodeInfo>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::ProxyBehaviour>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::NodeInfo>)
+ stringify!(root::mozilla::UniquePtr<root::ProxyBehaviour>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::NodeInfo>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::ProxyBehaviour>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::NodeInfo>)
+ stringify!(root::mozilla::UniquePtr<root::ProxyBehaviour>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIContent_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_ProxyBehaviour_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_RefPtr_open0_imgRequestProxy_ImageURL_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::RefPtr<root::imgRequestProxy_ImageURL>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::imgRequestProxy_ImageURL>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::imgRequestProxy_ImageURL>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::imgRequestProxy_ImageURL>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ShadowRoot_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsILoadGroup_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_HTMLSlotElement_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_TabGroup_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::HTMLSlotElement>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::HTMLSlotElement>)
+ stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::HTMLSlotElement>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::HTMLSlotElement>)
+ stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsIContent_nsExtendedContentSlots_DefaultDelete_open1_nsIContent_nsExtendedContentSlots_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIEventTarget_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<
- root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>,
- >(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<
- root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>,
- >(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsIContent_nsExtendedContentSlots_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIWeakReference_close0_instantiation() {
+ fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsRefPtrHashKey<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsRefPtrHashKey<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_ptr_void_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_ptr_CounterStyle_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<*mut ::std::os::raw::c_void>>(),
+ ::std::mem::size_of::<root::nsTArray<*mut root::mozilla::CounterStyle>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<*mut ::std::os::raw::c_void>)
+ stringify!(root::nsTArray<*mut root::mozilla::CounterStyle>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<*mut ::std::os::raw::c_void>>(),
+ ::std::mem::align_of::<root::nsTArray<*mut root::mozilla::CounterStyle>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<*mut ::std::os::raw::c_void>)
+ stringify!(root::nsTArray<*mut root::mozilla::CounterStyle>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_void_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<::std::os::raw::c_void>>(),
- 16usize,
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<::std::os::raw::c_void>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<::std::os::raw::c_void>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<::std::os::raw::c_void>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_StaticRefPtr_open0_nsIContent_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleGradientStop_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::StaticRefPtr<root::nsIContent>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleGradientStop>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::StaticRefPtr<root::nsIContent>)
+ stringify!(root::nsTArray<root::nsStyleGradientStop>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::StaticRefPtr<root::nsIContent>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleGradientStop>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::StaticRefPtr<root::nsIContent>)
+ stringify!(root::nsTArray<root::nsStyleGradientStop>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_imgRequestProxy_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::imgRequestProxy>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::imgRequestProxy>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::imgRequestProxy>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::imgRequestProxy>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsPresContext_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ImageValue_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsPresContext>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::ImageValue>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsPresContext>)
+ stringify!(root::RefPtr<root::mozilla::css::ImageValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsPresContext>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::ImageValue>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsPresContext>)
+ stringify!(root::RefPtr<root::mozilla::css::ImageValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsFrameSelection_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ImageTracker_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsFrameSelection>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsFrameSelection>)
+ stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsFrameSelection>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsFrameSelection>)
+ stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsITimer_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_DocGroup_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_WeakFrame_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMArray_open0_imgIContainer_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::WeakFrame>>(),
- 16usize,
+ ::std::mem::size_of::<root::nsCOMArray>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::WeakFrame>)
+ stringify!(root::nsCOMArray)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<root::WeakFrame>>(),
+ ::std::mem::align_of::<root::nsCOMArray>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<root::WeakFrame>)
+ stringify!(root::nsCOMArray)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_IPCClientInfo_DefaultDelete_open1_IPCClientInfo_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleSides_DefaultDelete_open1_nsStyleSides_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_IPCClientInfo_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleSides_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -41746,35 +41740,27 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_IPCServiceWorkerDescriptor_DefaultDelete_open1_IPCServiceWorkerDescriptor_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleSides_DefaultDelete_open1_nsStyleSides_close1_close0_instantiation_1(
) {
assert_eq!(
- ::std::mem::size_of::<
- root::mozilla::UniquePtr<root::mozilla::dom::IPCServiceWorkerDescriptor>,
- >(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<
- root::mozilla::dom::IPCServiceWorkerDescriptor,
- >)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
)
);
assert_eq!(
- ::std::mem::align_of::<
- root::mozilla::UniquePtr<root::mozilla::dom::IPCServiceWorkerDescriptor>,
- >(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<
- root::mozilla::dom::IPCServiceWorkerDescriptor,
- >)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_IPCServiceWorkerDescriptor_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleSides_close0_instantiation_1() {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -41793,1262 +41779,1278 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsCString_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_CachedBorderImageData_DefaultDelete_open1_CachedBorderImageData_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsCString>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::CachedBorderImageData>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsCString>)
+ stringify!(root::mozilla::UniquePtr<root::CachedBorderImageData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsCString>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::CachedBorderImageData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsCString>)
+ stringify!(root::mozilla::UniquePtr<root::CachedBorderImageData>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_DOMEventTargetHelper_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_CachedBorderImageData_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>>(),
- 16usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleSides_DefaultDelete_open1_nsStyleSides_close1_close0_instantiation_2(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_1() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleSides_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation() {
+ fn __bindgen_test_layout_nsStyleAutoArray_open0_nsStyleImageLayers_Layer_close0_instantiation()
+ {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>>(),
+ 104usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsTArray_open0_pair_open1_nsString_nsString_close1_close0_instantiation(
+) {
+ assert_eq ! ( :: std :: mem :: size_of :: < root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > > ( ) , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > ) ) );
+ assert_eq ! ( :: std :: mem :: align_of :: < root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > ) ) );
+ }
+ #[test]
+ fn __bindgen_test_layout_pair_open0_nsString_nsString_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>(),
+ 32usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify ! ( root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > )
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify ! ( root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > )
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_nsStyleImageRequest_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsStyleImageRequest>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsStyleImageRequest>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsStyleImageRequest>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsStyleImageRequest>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_Performance_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsStyleQuoteValues_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Performance>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsStyleQuoteValues>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Performance>)
+ stringify!(root::RefPtr<root::nsStyleQuoteValues>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Performance>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsStyleQuoteValues>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Performance>)
+ stringify!(root::RefPtr<root::nsStyleQuoteValues>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_TimeoutManager_DefaultDelete_open1_TimeoutManager_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_nsTArray_open1_nsString_close1_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>)
+ stringify!(root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>)
+ stringify!(root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_TimeoutManager_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_Navigator_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Navigator>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Navigator>)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Navigator>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Navigator>)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsPIDOMWindowOuter_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIContent_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_ptr_AudioContext_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<*mut root::mozilla::dom::AudioContext>>(),
+ ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<*mut root::mozilla::dom::AudioContext>)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<*mut root::mozilla::dom::AudioContext>>(),
+ ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<*mut root::mozilla::dom::AudioContext>)
+ stringify!(root::nsTArray<::nsstring::nsStringRepr>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_TabGroup_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleGridTemplate_DefaultDelete_open1_nsStyleGridTemplate_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsPIDOMWindowInner_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleGridTemplate_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation_2() {
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleGridTemplate_DefaultDelete_open1_nsStyleGridTemplate_close1_close0_instantiation_1(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_2() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleGridTemplate_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_GridTemplateAreasValue_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::GridTemplateAreasValue>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::GridTemplateAreasValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::GridTemplateAreasValue>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::GridTemplateAreasValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_3() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSShadowArray_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSShadowArray>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSShadowArray>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSShadowArray>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSShadowArray>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation_3() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_Element_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocShell_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_TabGroup_close0_instantiation_1() {
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleImage_DefaultDelete_open1_nsStyleImage_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsPIDOMWindowOuter_close0_instantiation_1() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleImage_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_4() {
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleImage_DefaultDelete_open1_nsStyleImage_close1_close0_instantiation_1(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_1() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleImage_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsBaseContentList_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_StyleBasicShape_DefaultDelete_open1_StyleBasicShape_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsBaseContentList>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsBaseContentList>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsBaseContentList>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsBaseContentList>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsAutoPtr_open0_nsTHashtable_open1_nsIdentifierMapEntry_ChangeCallbackEntry_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_DefaultDelete_open0_StyleBasicShape_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<u64>(),
- 8usize,
- concat!("Size of template specialization: ", stringify!(u64))
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
);
assert_eq!(
- ::std::mem::align_of::<u64>(),
- 8usize,
- concat!("Alignment of template specialization: ", stringify!(u64))
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::mozilla::DefaultDelete)
+ )
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsIdentifierMapEntry_Element_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_StyleBasicShape_DefaultDelete_open1_StyleBasicShape_close1_close0_instantiation_1(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsIdentifierMapEntry_Element>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsIdentifierMapEntry_Element>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsIdentifierMapEntry_Element>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsIdentifierMapEntry_Element>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_StyleBasicShape_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_2() {
+ fn __bindgen_test_layout_UniquePtr_open0_StyleBasicShape_DefaultDelete_open1_StyleBasicShape_close1_close0_instantiation_2(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheetList_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_StyleBasicShape_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::StyleSheetList>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::StyleSheetList>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::StyleSheetList>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::StyleSheetList>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_RawServoAnimationValue_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_nsStyleImage_DefaultDelete_open1_nsStyleImage_close1_close0_instantiation_2(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::RawServoAnimationValue>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::RawServoAnimationValue>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::RawServoAnimationValue>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::RawServoAnimationValue>)
+ stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_PropertyValuePair_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsStyleImage_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::mozilla::PropertyValuePair>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::PropertyValuePair>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::mozilla::PropertyValuePair>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::PropertyValuePair>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsStyleAutoArray_open0_StyleAnimation_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
- 56usize,
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsAtom_close1_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIObserver_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsTArray_open0_Position_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::mozilla::Position>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::mozilla::Position>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::mozilla::Position>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::mozilla::Position>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIContentViewer_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsILoadGroup_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_4() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIStreamListener_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_5() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation() {
+ fn __bindgen_test_layout_nsStyleAutoArray_open0_StyleTransition_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::nsStyleAutoArray<root::mozilla::StyleTransition>>(),
+ 48usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsStyleAutoArray<root::mozilla::StyleTransition>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsStyleAutoArray<root::mozilla::StyleTransition>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsStyleAutoArray<root::mozilla::StyleTransition>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsStyleAutoArray_open0_StyleAnimation_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
+ 56usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsILoadContext_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleContentData_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleContentData>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleContentData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleContentData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleContentData>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleCounterData_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleCounterData>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCounterData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleCounterData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCounterData>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIProgressEventSink_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleCounterData_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleCounterData>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCounterData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleCounterData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCounterData>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_3() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_5() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsCSSValueSharedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIChannelEventSink_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsStyleImageRequest_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsStyleImageRequest>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsStyleImageRequest>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsStyleImageRequest>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsStyleImageRequest>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsTArray_open0_nsCursorImage_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsCursorImage>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsCursorImage>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsCursorImage>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsCursorImage>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsISecurityEventSink_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_5() {
+ fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIApplicationCacheContainer_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::URLValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_5() {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsStyleCoord>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_RawServoSelectorList_DefaultDelete_open1_RawServoSelectorList_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsAtom_close1_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::RawServoSelectorList>>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::RawServoSelectorList>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::RawServoSelectorList>>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::RawServoSelectorList>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_RawServoSelectorList_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_RawServoSelectorList_DefaultDelete_open1_RawServoSelectorList_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_nsStyleFilter_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::RawServoSelectorList>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsStyleFilter>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::RawServoSelectorList>)
+ stringify!(root::nsTArray<root::nsStyleFilter>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::RawServoSelectorList>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsStyleFilter>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::RawServoSelectorList>)
+ stringify!(root::nsTArray<root::nsStyleFilter>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_RawServoSelectorList_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_nsCSSShadowArray_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::nsCSSShadowArray>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsCSSShadowArray>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::nsCSSShadowArray>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsCSSShadowArray>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsIDocument_SelectorCache_DefaultDelete_open1_nsIDocument_SelectorCache_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_ptr_nsISupports_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>>(),
+ ::std::mem::size_of::<root::nsTArray<*mut root::nsISupports>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>)
+ stringify!(root::nsTArray<*mut root::nsISupports>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>>(),
+ ::std::mem::align_of::<root::nsTArray<*mut root::nsISupports>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>)
+ stringify!(root::nsTArray<*mut root::nsISupports>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsIDocument_SelectorCache_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_RawServoAnimationValue_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::RawServoAnimationValue>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::RawServoAnimationValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::RawServoAnimationValue>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::RawServoAnimationValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsIDocument_SelectorCache_DefaultDelete_open1_nsIDocument_SelectorCache_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_PropertyValuePair_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>>(),
+ ::std::mem::size_of::<root::nsTArray<root::mozilla::PropertyValuePair>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>)
+ stringify!(root::nsTArray<root::mozilla::PropertyValuePair>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>>(),
+ ::std::mem::align_of::<root::nsTArray<root::mozilla::PropertyValuePair>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>)
+ stringify!(root::nsTArray<root::mozilla::PropertyValuePair>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsIDocument_SelectorCache_close0_instantiation_1()
- {
+ fn __bindgen_test_layout_nsStyleAutoArray_open0_StyleAnimation_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
+ 56usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_6() {
+ fn __bindgen_test_layout_RefPtr_open0_RawServoFontFaceRule_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::RawServoFontFaceRule>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::RawServoFontFaceRule>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::RawServoFontFaceRule>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::RawServoFontFaceRule>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_7() {
+ fn __bindgen_test_layout_RefPtr_open0_RawServoAnimationValue_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::RawServoAnimationValue>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::RawServoAnimationValue>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::RawServoAnimationValue>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::RawServoAnimationValue>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_8() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_4() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -43067,26 +43069,26 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_9() {
+ fn __bindgen_test_layout_nsTArray_open0_nsCString_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsCString>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsCString>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsCString>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsCString>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_10() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_5() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -43105,325 +43107,308 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_URLExtraData_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_6() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::URLExtraData>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::URLExtraData>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_NotNull_open0_ptr_const_nsIDocument__Encoding_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_7() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::NotNull<*const root::nsIDocument_Encoding>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::NotNull<*const root::nsIDocument_Encoding>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::NotNull<*const root::nsIDocument_Encoding>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::NotNull<*const root::nsIDocument_Encoding>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_Loader_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::Loader>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::Loader>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::Loader>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::Loader>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ImageLoader_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::ImageLoader>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::ImageLoader>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::ImageLoader>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::ImageLoader>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsHTMLStyleSheet_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsISerialEventTarget_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsHTMLStyleSheet>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsHTMLStyleSheet>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsHTMLStyleSheet>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsHTMLStyleSheet>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsHTMLCSSStyleSheet_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsHTMLCSSStyleSheet>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsHTMLCSSStyleSheet>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsHTMLCSSStyleSheet>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsHTMLCSSStyleSheet>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ImageTracker_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_MediaList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::MediaList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
+ stringify!(root::RefPtr<root::mozilla::dom::MediaList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::MediaList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
+ stringify!(root::RefPtr<root::mozilla::dom::MediaList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsAutoPtr_open0_nsTHashtable_open1_nsPtrHashKey_open2_nsISupports_close2_close1_close0_instantiation(
-) {
- assert_eq!(
- ::std::mem::size_of::<u64>(),
- 8usize,
- concat!("Size of template specialization: ", stringify!(u64))
- );
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_2() {
assert_eq!(
- ::std::mem::align_of::<u64>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
- concat!("Alignment of template specialization: ", stringify!(u64))
- );
- }
- #[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_Link_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::Link>>(),
- 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::mozilla::dom::Link>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<root::mozilla::dom::Link>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<root::mozilla::dom::Link>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_Link_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_ptr_ServoStyleSet_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<*mut root::mozilla::ServoStyleSet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<*mut root::mozilla::ServoStyleSet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<*mut root::mozilla::ServoStyleSet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<*mut root::mozilla::ServoStyleSet>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsSMILAnimationController_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_RawServoStyleSheetContents_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsSMILAnimationController>>(),
+ ::std::mem::size_of::<root::RefPtr<root::RawServoStyleSheetContents>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsSMILAnimationController>)
+ stringify!(root::RefPtr<root::RawServoStyleSheetContents>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsSMILAnimationController>>(),
+ ::std::mem::align_of::<root::RefPtr<root::RawServoStyleSheetContents>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsSMILAnimationController>)
+ stringify!(root::RefPtr<root::RawServoStyleSheetContents>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIHTMLCollection_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_URLExtraData_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::URLExtraData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::URLExtraData>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ServoCSSRuleList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::ServoCSSRuleList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::RefPtr<root::mozilla::ServoCSSRuleList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::ServoCSSRuleList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::RefPtr<root::mozilla::ServoCSSRuleList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_1() {
+ fn __bindgen_test_layout_MozPromiseHolder_open0_StyleSheetParsePromise_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
- 8usize,
+ ::std::mem::size_of::<
+ root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>,
+ >(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::align_of::<
+ root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>,
+ >(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_nsNodeInfoManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsNodeInfoManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::RefPtr<root::nsNodeInfoManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsNodeInfoManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::RefPtr<root::nsNodeInfoManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_NodeInfo_NodeInfoInner_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
- 8usize,
+ ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::NodeInfo_NodeInfoInner>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
- 8usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::nsPtrHashKey<root::mozilla::dom::NodeInfo_NodeInfoInner>)
)
);
+ assert_eq ! ( :: std :: mem :: align_of :: < root :: nsPtrHashKey < root :: mozilla :: dom :: NodeInfo_NodeInfoInner > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsPtrHashKey < root :: mozilla :: dom :: NodeInfo_NodeInfoInner > ) ) );
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIHTMLCollection_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_4() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -43442,140 +43427,144 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_5() {
+ fn __bindgen_test_layout_RefPtr_open0_nsBindingManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsBindingManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::RefPtr<root::nsBindingManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsBindingManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::RefPtr<root::nsBindingManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_FontFaceSet_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAttrChildContentList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::FontFaceSet>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAttrChildContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::FontFaceSet>)
+ stringify!(root::RefPtr<root::nsAttrChildContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::FontFaceSet>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAttrChildContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::FontFaceSet>)
+ stringify!(root::RefPtr<root::nsAttrChildContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_Promise_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_LinkedList_open1_nsRange_close1_DefaultDelete_open1_LinkedList_open2_nsRange_close2_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Promise>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Promise>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_AboutCapabilities_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_LinkedList_open1_nsRange_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::AboutCapabilities>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::AboutCapabilities>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::AboutCapabilities>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::AboutCapabilities>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIScriptGlobalObject_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_LinkedList_open1_nsRange_close1_DefaultDelete_open1_LinkedList_open2_nsRange_close2_close1_close0_instantiation_1(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::LinkedList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::LinkedList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_6() {
+ fn __bindgen_test_layout_DefaultDelete_open0_LinkedList_open1_nsRange_close1_close0_instantiation_1(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIChannel_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_NodeInfo_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::NodeInfo>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::NodeInfo>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::NodeInfo>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::NodeInfo>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_5() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -43594,140 +43583,146 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIChannel_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMArray_open0_nsINode_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMArray>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMArray)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMArray>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMArray)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_7() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_SheetLoadData_close1_close0_instantiation()
+ {
+ assert_eq ! ( :: std :: mem :: size_of :: < root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > > ( ) , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > ) ) );
+ assert_eq ! ( :: std :: mem :: align_of :: < root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > ) ) );
+ }
+ #[test]
+ fn __bindgen_test_layout_RefPtr_open0_SheetLoadData_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsWeakPtr_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsWeakPtr>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsWeakPtr>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsWeakPtr>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsWeakPtr>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocumentEncoder_close0_instantiation() {
+ fn __bindgen_test_layout_nsAutoPtr_open0_Loader_Sheets_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsAutoPtr<root::mozilla::css::Loader_Sheets>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsAutoPtr<root::mozilla::css::Loader_Sheets>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsAutoPtr<root::mozilla::css::Loader_Sheets>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsAutoPtr<root::mozilla::css::Loader_Sheets>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsIDocument_FrameRequest_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsICSSLoaderObserver_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsIDocument_FrameRequest>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsIDocument_FrameRequest>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsIDocument_FrameRequest>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsIDocument_FrameRequest>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIStructuredCloneContainer_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_DocGroup_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIVariant_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIConsoleReportCollector_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -43746,27 +43741,27 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_XPathEvaluator_DefaultDelete_open1_XPathEvaluator_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_Decoder_DefaultDelete_open1_Decoder_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_XPathEvaluator_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_Decoder_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -43785,413 +43780,400 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_AnonymousContent_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_Decoder_DefaultDelete_open1_Decoder_close1_close0_instantiation_1(
) {
assert_eq!(
- ::std::mem::size_of::<
- root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>,
- >(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
)
);
assert_eq!(
- ::std::mem::align_of::<
- root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>,
- >(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
)
);
}
#[test]
- fn __bindgen_test_layout_LinkedList_open0_MediaQueryList_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_Decoder_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::LinkedList>(),
- 24usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::LinkedList)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::LinkedList>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::LinkedList)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_DocGroup_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_Decoder_DefaultDelete_open1_Decoder_close1_close0_instantiation_2(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsCOMPtr_open1_nsIRunnable_close1_close0_instantiation()
- {
+ fn __bindgen_test_layout_DefaultDelete_open0_Decoder_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsCOMPtr>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsCOMPtr>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsCOMPtr>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_Encoder_DefaultDelete_open1_Encoder_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Encoder>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Encoder>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Encoder>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::Encoder>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsCOMPtr_open1_nsIPrincipal_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_DefaultDelete_open0_Encoder_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsCOMPtr>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsCOMPtr>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsCOMPtr>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_Loader_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::Loader>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::Loader>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::Loader>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::css::Loader>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_uint64_t_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_8() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<u64>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<u64>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<u64>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<u64>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIParser_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_5() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_PrincipalFlashClassifier_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_SheetLoadData_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::PrincipalFlashClassifier>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::PrincipalFlashClassifier>)
+ stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::PrincipalFlashClassifier>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::PrincipalFlashClassifier>)
+ stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsRevocableEventPtr_open0_nsRunnableMethod_open1_nsIDocument_void_close1_close0_instantiation(
-) {
- assert_eq!(
- ::std::mem::size_of::<u64>(),
- 8usize,
- concat!("Size of template specialization: ", stringify!(u64))
- );
- assert_eq!(
- ::std::mem::align_of::<u64>(),
- 8usize,
- concat!("Alignment of template specialization: ", stringify!(u64))
- );
- }
- #[test]
- fn __bindgen_test_layout_RefPtr_open0_nsDOMNavigationTiming_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIStyleSheetLinkingElement_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsDOMNavigationTiming>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMNavigationTiming>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsDOMNavigationTiming>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMNavigationTiming>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_DOMIntersectionObserver_close0_instantiation() {
- assert_eq ! ( :: std :: mem :: size_of :: < root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > > ( ) , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > ) ) );
- assert_eq ! ( :: std :: mem :: align_of :: < root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > ) ) );
- }
- #[test]
- fn __bindgen_test_layout_nsTArray_open0_nsWeakPtr_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsICSSLoaderObserver_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsWeakPtr>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsWeakPtr>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsWeakPtr>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsWeakPtr>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_DOMImplementation_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_6() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMImplementation>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DOMImplementation>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMImplementation>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DOMImplementation>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_6() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsINode_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_HTMLImageElement_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_IPCClientInfo_DefaultDelete_open1_IPCClientInfo_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>>(),
- 16usize,
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::IPCClientInfo>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_nsIObjectLoadingContent_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_IPCClientInfo_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::nsIObjectLoadingContent>>(),
- 16usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::nsIObjectLoadingContent>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<root::nsIObjectLoadingContent>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<root::nsIObjectLoadingContent>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_DocumentTimeline_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_IPCServiceWorkerDescriptor_DefaultDelete_open1_IPCServiceWorkerDescriptor_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocumentTimeline>>(),
+ ::std::mem::size_of::<
+ root::mozilla::UniquePtr<root::mozilla::dom::IPCServiceWorkerDescriptor>,
+ >(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocumentTimeline>)
+ stringify!(root::mozilla::UniquePtr<
+ root::mozilla::dom::IPCServiceWorkerDescriptor,
+ >)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocumentTimeline>>(),
+ ::std::mem::align_of::<
+ root::mozilla::UniquePtr<root::mozilla::dom::IPCServiceWorkerDescriptor>,
+ >(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocumentTimeline>)
+ stringify!(root::mozilla::UniquePtr<
+ root::mozilla::dom::IPCServiceWorkerDescriptor,
+ >)
)
);
}
#[test]
- fn __bindgen_test_layout_LinkedList_open0_DocumentTimeline_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_IPCServiceWorkerDescriptor_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::LinkedList>(),
- 24usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::LinkedList)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::LinkedList>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::LinkedList)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ScriptLoader_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsCString_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ScriptLoader>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsCString>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ScriptLoader>)
+ stringify!(root::nsTArray<root::nsCString>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ScriptLoader>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsCString>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ScriptLoader>)
+ stringify!(root::nsTArray<root::nsCString>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_PendingAnimationTracker_close0_instantiation() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_DOMEventTargetHelper_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::PendingAnimationTracker>>(),
- 8usize,
+ ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::PendingAnimationTracker>)
+ stringify!(root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::PendingAnimationTracker>>(),
+ ::std::mem::align_of::<root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::PendingAnimationTracker>)
+ stringify!(root::nsPtrHashKey<root::mozilla::DOMEventTargetHelper>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_8() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -44210,66 +44192,45 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_Promise_close0_instantiation_1() {
- assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
- 8usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Promise>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
- 8usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::Promise>)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsFrameLoader_close1_close0_instantiation()
- {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsFrameLoader>>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsFrameLoader>>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsFrameLoader>>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsFrameLoader>>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsCOMPtr_open1_nsIRunnable_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_9() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsCOMPtr>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsCOMPtr>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsCOMPtr>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_10() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -44288,21 +44249,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsRunnableMethod_open1_nsIDocument_void_close1_close0_instantiation(
-) {
- assert_eq!(
- ::std::mem::size_of::<u64>(),
- 8usize,
- concat!("Size of template specialization: ", stringify!(u64))
- );
- assert_eq!(
- ::std::mem::align_of::<u64>(),
- 8usize,
- concat!("Alignment of template specialization: ", stringify!(u64))
- );
- }
- #[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsILayoutHistoryState_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation_1() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -44321,180 +44268,179 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_EventListenerManager_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_Performance_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::EventListenerManager>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Performance>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::EventListenerManager>)
+ stringify!(root::RefPtr<root::mozilla::dom::Performance>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::EventListenerManager>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Performance>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::EventListenerManager>)
+ stringify!(root::RefPtr<root::mozilla::dom::Performance>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_2() {
+ fn __bindgen_test_layout_UniquePtr_open0_TimeoutManager_DefaultDelete_open1_TimeoutManager_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::TimeoutManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIRequest_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_TimeoutManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation_1()
- {
+ fn __bindgen_test_layout_RefPtr_open0_Navigator_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Navigator>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::RefPtr<root::mozilla::dom::Navigator>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Navigator>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::RefPtr<root::mozilla::dom::Navigator>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsPIDOMWindowOuter_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation_2()
- {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIContent_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsTArray_open0_ptr_AudioContext_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::size_of::<root::nsTArray<*mut root::mozilla::dom::AudioContext>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::nsTArray<*mut root::mozilla::dom::AudioContext>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::align_of::<root::nsTArray<*mut root::mozilla::dom::AudioContext>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::nsTArray<*mut root::mozilla::dom::AudioContext>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsDOMStyleSheetSetList_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_TabGroup_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsDOMStyleSheetSetList>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMStyleSheetSetList>)
+ stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsDOMStyleSheetSetList>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMStyleSheetSetList>)
+ stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_nsSVGElement_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsPIDOMWindowInner_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::nsSVGElement>>(),
- 16usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::nsSVGElement>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<root::nsSVGElement>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<root::nsSVGElement>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsINode_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation_2() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -44513,102 +44459,102 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
- 16usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsRefPtrHashKey<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsRefPtrHashKey<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_11() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_12() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsAutoPtr_open0_LangGroupFontPrefs_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_EventTarget_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsRect_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_Element_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsRect>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsRect>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsRect>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsRect>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_9() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocShell_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -44627,293 +44573,301 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsDeviceContext_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_TabGroup_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsDeviceContext>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsDeviceContext>)
+ stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsDeviceContext>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsDeviceContext>)
+ stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_EventStateManager_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsPIDOMWindowOuter_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::EventStateManager>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::EventStateManager>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::EventStateManager>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::EventStateManager>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsRefreshDriver_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsAtom_close1_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsRefreshDriver>>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsRefreshDriver>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsRefreshDriver>>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsRefreshDriver>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_AnimationEventDispatcher_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_5() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::AnimationEventDispatcher>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::AnimationEventDispatcher>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::AnimationEventDispatcher>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::AnimationEventDispatcher>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_EffectCompositor_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_RawServoStyleSet_DefaultDelete_open1_RawServoStyleSet_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::EffectCompositor>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::RawServoStyleSet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::EffectCompositor>)
+ stringify!(root::mozilla::UniquePtr<root::RawServoStyleSet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::EffectCompositor>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::RawServoStyleSet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::EffectCompositor>)
+ stringify!(root::mozilla::UniquePtr<root::RawServoStyleSet>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsTransitionManager_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_RawServoStyleSet_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsTransitionManager>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsTransitionManager>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsTransitionManager>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsTransitionManager>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAnimationManager_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_ServoStyleSheet_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAnimationManager>>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::ServoStyleSheet>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAnimationManager>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::ServoStyleSheet>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAnimationManager>>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::ServoStyleSheet>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAnimationManager>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::ServoStyleSheet>>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_RestyleManager_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ComputedStyle_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::RestyleManager>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::ComputedStyle>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::RestyleManager>)
+ stringify!(root::RefPtr<root::mozilla::ComputedStyle>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::RestyleManager>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::ComputedStyle>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::RestyleManager>)
+ stringify!(root::RefPtr<root::mozilla::ComputedStyle>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_CounterStyleManager_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_PostTraversalTask_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::CounterStyleManager>>(),
+ ::std::mem::size_of::<root::nsTArray<root::mozilla::PostTraversalTask>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::CounterStyleManager>)
+ stringify!(root::nsTArray<root::mozilla::PostTraversalTask>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::CounterStyleManager>>(),
+ ::std::mem::align_of::<root::nsTArray<root::mozilla::PostTraversalTask>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::CounterStyleManager>)
+ stringify!(root::nsTArray<root::mozilla::PostTraversalTask>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_5() {
+ fn __bindgen_test_layout_UniquePtr_open0_ServoStyleRuleMap_DefaultDelete_open1_ServoStyleRuleMap_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_gfxFontFeatureValueSet_close0_instantiation_1() {
+ fn __bindgen_test_layout_DefaultDelete_open0_ServoStyleRuleMap_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::gfxFontFeatureValueSet>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::gfxFontFeatureValueSet>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::gfxFontFeatureValueSet>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::gfxFontFeatureValueSet>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_6() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIContent_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsITheme_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ShadowRoot_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrintSettings_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_HTMLSlotElement_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::HTMLSlotElement>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::HTMLSlotElement>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::HTMLSlotElement>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::dom::HTMLSlotElement>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsBidi_DefaultDelete_open1_nsBidi_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_nsIContent_nsExtendedContentSlots_DefaultDelete_open1_nsIContent_nsExtendedContentSlots_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsBidi>>(),
+ ::std::mem::size_of::<
+ root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>,
+ >(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsBidi>)
+ stringify!(root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsBidi>>(),
+ ::std::mem::align_of::<
+ root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>,
+ >(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsBidi>)
+ stringify!(root::mozilla::UniquePtr<root::nsIContent_nsExtendedContentSlots>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsBidi_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsIContent_nsExtendedContentSlots_close0_instantiation(
+) {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -44932,103 +44886,122 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsAutoPtr_open0_gfxTextPerfMetrics_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_ptr_void_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsAutoPtr<root::gfxTextPerfMetrics>>(),
+ ::std::mem::size_of::<root::nsTArray<*mut ::std::os::raw::c_void>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsAutoPtr<root::gfxTextPerfMetrics>)
+ stringify!(root::nsTArray<*mut ::std::os::raw::c_void>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsAutoPtr<root::gfxTextPerfMetrics>>(),
+ ::std::mem::align_of::<root::nsTArray<*mut ::std::os::raw::c_void>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsAutoPtr<root::gfxTextPerfMetrics>)
+ stringify!(root::nsTArray<*mut ::std::os::raw::c_void>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsAutoPtr_open0_gfxMissingFontRecorder_close0_instantiation() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_void_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsAutoPtr<root::gfxMissingFontRecorder>>(),
+ ::std::mem::size_of::<root::nsPtrHashKey<::std::os::raw::c_void>>(),
+ 16usize,
+ concat!(
+ "Size of template specialization: ",
+ stringify!(root::nsPtrHashKey<::std::os::raw::c_void>)
+ )
+ );
+ assert_eq!(
+ ::std::mem::align_of::<root::nsPtrHashKey<::std::os::raw::c_void>>(),
+ 8usize,
+ concat!(
+ "Alignment of template specialization: ",
+ stringify!(root::nsPtrHashKey<::std::os::raw::c_void>)
+ )
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_StaticRefPtr_open0_nsIContent_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::mozilla::StaticRefPtr<root::nsIContent>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsAutoPtr<root::gfxMissingFontRecorder>)
+ stringify!(root::mozilla::StaticRefPtr<root::nsIContent>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsAutoPtr<root::gfxMissingFontRecorder>>(),
+ ::std::mem::align_of::<root::mozilla::StaticRefPtr<root::nsIContent>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsAutoPtr<root::gfxMissingFontRecorder>)
+ stringify!(root::mozilla::StaticRefPtr<root::nsIContent>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
- 16usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsRefPtrHashKey<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsRefPtrHashKey<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_URLParams_Param_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsPresContext_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::mozilla::dom::URLParams_Param>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsPresContext>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::dom::URLParams_Param>)
+ stringify!(root::RefPtr<root::nsPresContext>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::mozilla::dom::URLParams_Param>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsPresContext>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::dom::URLParams_Param>)
+ stringify!(root::RefPtr<root::nsPresContext>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_URLParams_DefaultDelete_open1_URLParams_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_ServoStyleSet_DefaultDelete_open1_ServoStyleSet_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::URLParams>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::URLParams>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::URLParams>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::dom::URLParams>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_URLParams_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_ServoStyleSet_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -45047,26 +45020,26 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_11() {
+ fn __bindgen_test_layout_RefPtr_open0_nsFrameSelection_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsFrameSelection>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsFrameSelection>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsFrameSelection>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsFrameSelection>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_12() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsITimer_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -45085,198 +45058,193 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_WeakFrame_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::nsPtrHashKey<root::WeakFrame>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsPtrHashKey<root::WeakFrame>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsPtrHashKey<root::WeakFrame>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsPtrHashKey<root::WeakFrame>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_const_char_FreePolicy_open1_const_char_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_6() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<::std::os::raw::c_char>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<::std::os::raw::c_char>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<::std::os::raw::c_char>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<::std::os::raw::c_char>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_FreePolicy_open0_const_char_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsBaseContentList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::detail::FreePolicy>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::nsBaseContentList>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::detail::FreePolicy)
+ stringify!(root::RefPtr<root::nsBaseContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::detail::FreePolicy>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::nsBaseContentList>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::detail::FreePolicy)
+ stringify!(root::RefPtr<root::nsBaseContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIEventTarget_close0_instantiation() {
+ fn __bindgen_test_layout_nsAutoPtr_open0_nsTHashtable_open1_nsIdentifierMapEntry_ChangeCallbackEntry_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<u64>(),
8usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::nsCOMPtr)
- )
+ concat!("Size of template specialization: ", stringify!(u64))
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<u64>(),
8usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
- )
+ concat!("Alignment of template specialization: ", stringify!(u64))
);
}
#[test]
- fn __bindgen_test_layout_nsMainThreadPtrHandle_open0_nsIURI_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsIdentifierMapEntry_Element_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsMainThreadPtrHandle<root::nsIURI>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsIdentifierMapEntry_Element>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsMainThreadPtrHandle<root::nsIURI>)
+ stringify!(root::RefPtr<root::nsIdentifierMapEntry_Element>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsMainThreadPtrHandle<root::nsIURI>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsIdentifierMapEntry_Element>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsMainThreadPtrHandle<root::nsIURI>)
+ stringify!(root::RefPtr<root::nsIdentifierMapEntry_Element>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_URLExtraData_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation_1()
+ {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::URLExtraData>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::URLExtraData>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsPtrHashKey_open0_nsIDocument_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_6() {
assert_eq!(
- ::std::mem::size_of::<root::nsPtrHashKey<root::nsIDocument>>(),
- 16usize,
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsPtrHashKey<root::nsIDocument>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsPtrHashKey<root::nsIDocument>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsPtrHashKey<root::nsIDocument>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_GridNamedArea_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheetList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::mozilla::css::GridNamedArea>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::StyleSheetList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::css::GridNamedArea>)
+ stringify!(root::RefPtr<root::mozilla::dom::StyleSheetList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::mozilla::css::GridNamedArea>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::StyleSheetList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::css::GridNamedArea>)
+ stringify!(root::RefPtr<root::mozilla::dom::StyleSheetList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_7() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsCSSValueGradientStop_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIObserver_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsCSSValueGradientStop>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsCSSValueGradientStop>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsCSSValueGradientStop>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsCSSValueGradientStop>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_13() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_3() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -45295,7 +45263,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_14() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIContentViewer_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -45314,7 +45282,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsILoadGroup_close0_instantiation_1() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -45333,84 +45301,83 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_imgRequestProxy_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::imgRequestProxy>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::imgRequestProxy>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::imgRequestProxy>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::imgRequestProxy>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_ProxyBehaviour_DefaultDelete_open1_ProxyBehaviour_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIStreamListener_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::ProxyBehaviour>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::ProxyBehaviour>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::ProxyBehaviour>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::ProxyBehaviour>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_ProxyBehaviour_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_13() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_imgRequestProxy_ImageURL_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::imgRequestProxy_ImageURL>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::imgRequestProxy_ImageURL>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::imgRequestProxy_ImageURL>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::imgRequestProxy_ImageURL>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsILoadGroup_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_1() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -45429,26 +45396,26 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_TabGroup_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsILoadContext_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::TabGroup>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::TabGroup>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIEventTarget_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_2() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -45467,217 +45434,218 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIProgressEventSink_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
- 16usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsRefPtrHashKey<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsRefPtrHashKey<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_ptr_CounterStyle_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIChannelEventSink_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<*mut root::mozilla::CounterStyle>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<*mut root::mozilla::CounterStyle>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<*mut root::mozilla::CounterStyle>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<*mut root::mozilla::CounterStyle>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_7() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleGradientStop_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsISecurityEventSink_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleGradientStop>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleGradientStop>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleGradientStop>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleGradientStop>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_imgRequestProxy_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIInterfaceRequestor_close0_instantiation_5() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::imgRequestProxy>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::imgRequestProxy>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::imgRequestProxy>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::imgRequestProxy>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ImageValue_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIApplicationCacheContainer_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::ImageValue>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::ImageValue>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::ImageValue>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::ImageValue>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ImageTracker_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_5() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_DocGroup_close0_instantiation_1() {
+ fn __bindgen_test_layout_UniquePtr_open0_ServoStyleSet_DefaultDelete_open1_ServoStyleSet_close1_close0_instantiation_1(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleSet>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMArray_open0_imgIContainer_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_ServoStyleSet_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMArray>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMArray)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMArray>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMArray)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleSides_DefaultDelete_open1_nsStyleSides_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_RawServoSelectorList_DefaultDelete_open1_RawServoSelectorList_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::RawServoSelectorList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
+ stringify!(root::mozilla::UniquePtr<root::RawServoSelectorList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::RawServoSelectorList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
+ stringify!(root::mozilla::UniquePtr<root::RawServoSelectorList>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleSides_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_RawServoSelectorList_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -45696,27 +45664,27 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleSides_DefaultDelete_open1_nsStyleSides_close1_close0_instantiation_1(
+ fn __bindgen_test_layout_UniquePtr_open0_nsIDocument_SelectorCache_DefaultDelete_open1_nsIDocument_SelectorCache_close1_close0_instantiation(
) {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
+ stringify!(root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
+ stringify!(root::mozilla::UniquePtr<root::nsIDocument_SelectorCache>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleSides_close0_instantiation_1() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsIDocument_SelectorCache_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -45735,1259 +45703,1298 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_CachedBorderImageData_DefaultDelete_open1_CachedBorderImageData_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_14() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::CachedBorderImageData>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::CachedBorderImageData>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::CachedBorderImageData>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::CachedBorderImageData>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_CachedBorderImageData_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_15() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleSides_DefaultDelete_open1_nsStyleSides_close1_close0_instantiation_2(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_16() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleSides>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleSides>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleSides_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_17() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsStyleAutoArray_open0_nsStyleImageLayers_Layer_close0_instantiation()
- {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_18() {
assert_eq!(
- ::std::mem::size_of::<root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>>(),
- 104usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::nsStyleImageLayers_Layer>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_pair_open1_nsString_nsString_close1_close0_instantiation(
-) {
- assert_eq ! ( :: std :: mem :: size_of :: < root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > > ( ) , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > ) ) );
- assert_eq ! ( :: std :: mem :: align_of :: < root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsTArray < root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > > ) ) );
- }
- #[test]
- fn __bindgen_test_layout_pair_open0_nsString_nsString_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_URLExtraData_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>(),
- 32usize,
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify ! ( root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > )
+ stringify!(root::RefPtr<root::mozilla::URLExtraData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify ! ( root :: std :: pair < ::nsstring::nsStringRepr , ::nsstring::nsStringRepr > )
+ stringify!(root::RefPtr<root::mozilla::URLExtraData>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsStyleImageRequest_close0_instantiation() {
+ fn __bindgen_test_layout_NotNull_open0_ptr_const_nsIDocument__Encoding_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsStyleImageRequest>>(),
+ ::std::mem::size_of::<root::mozilla::NotNull<*const root::nsIDocument_Encoding>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsStyleImageRequest>)
+ stringify!(root::mozilla::NotNull<*const root::nsIDocument_Encoding>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsStyleImageRequest>>(),
+ ::std::mem::align_of::<root::mozilla::NotNull<*const root::nsIDocument_Encoding>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsStyleImageRequest>)
+ stringify!(root::mozilla::NotNull<*const root::nsIDocument_Encoding>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsStyleQuoteValues_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_Loader_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsStyleQuoteValues>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::Loader>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsStyleQuoteValues>)
+ stringify!(root::RefPtr<root::mozilla::css::Loader>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsStyleQuoteValues>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::Loader>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsStyleQuoteValues>)
+ stringify!(root::RefPtr<root::mozilla::css::Loader>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsTArray_open1_nsString_close1_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ImageLoader_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::css::ImageLoader>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>)
+ stringify!(root::RefPtr<root::mozilla::css::ImageLoader>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::css::ImageLoader>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>)
+ stringify!(root::RefPtr<root::mozilla::css::ImageLoader>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_nsHTMLStyleSheet_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsHTMLStyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::RefPtr<root::nsHTMLStyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsHTMLStyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::RefPtr<root::nsHTMLStyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsHTMLCSSStyleSheet_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsHTMLCSSStyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::RefPtr<root::nsHTMLCSSStyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsHTMLCSSStyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::RefPtr<root::nsHTMLCSSStyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_ImageTracker_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ImageTracker>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::RefPtr<root::mozilla::dom::ImageTracker>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsAutoPtr_open0_nsTHashtable_open1_nsPtrHashKey_open2_nsISupports_close2_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::size_of::<u64>(),
8usize,
+ concat!("Size of template specialization: ", stringify!(u64))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<u64>(),
+ 8usize,
+ concat!("Alignment of template specialization: ", stringify!(u64))
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_nsPtrHashKey_open0_Link_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::Link>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::nsPtrHashKey<root::mozilla::dom::Link>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::align_of::<root::nsPtrHashKey<root::mozilla::dom::Link>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::nsPtrHashKey<root::mozilla::dom::Link>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_Link_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<::nsstring::nsStringRepr>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<::nsstring::nsStringRepr>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleGridTemplate_DefaultDelete_open1_nsStyleGridTemplate_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_nsSMILAnimationController_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsSMILAnimationController>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
+ stringify!(root::RefPtr<root::nsSMILAnimationController>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsSMILAnimationController>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
+ stringify!(root::RefPtr<root::nsSMILAnimationController>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleGridTemplate_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIHTMLCollection_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleGridTemplate_DefaultDelete_open1_nsStyleGridTemplate_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleGridTemplate>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleGridTemplate>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleGridTemplate_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_GridTemplateAreasValue_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::GridTemplateAreasValue>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::GridTemplateAreasValue>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::GridTemplateAreasValue>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::GridTemplateAreasValue>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSShadowArray_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_3() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSShadowArray>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSShadowArray>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSShadowArray>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSShadowArray>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_8() {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_4() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_9() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIHTMLCollection_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_5() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleImage_DefaultDelete_open1_nsStyleImage_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_FontFaceSet_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::FontFaceSet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
+ stringify!(root::RefPtr<root::mozilla::dom::FontFaceSet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::FontFaceSet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
+ stringify!(root::RefPtr<root::mozilla::dom::FontFaceSet>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleImage_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_Promise_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::mozilla::dom::Promise>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::mozilla::dom::Promise>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleImage_DefaultDelete_open1_nsStyleImage_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_AboutCapabilities_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::AboutCapabilities>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
+ stringify!(root::RefPtr<root::mozilla::dom::AboutCapabilities>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::AboutCapabilities>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
+ stringify!(root::RefPtr<root::mozilla::dom::AboutCapabilities>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleImage_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIScriptGlobalObject_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_StyleBasicShape_DefaultDelete_open1_StyleBasicShape_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_6() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_StyleBasicShape_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIChannel_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_StyleBasicShape_DefaultDelete_open1_StyleBasicShape_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_StyleBasicShape_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIChannel_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_StyleBasicShape_DefaultDelete_open1_StyleBasicShape_close1_close0_instantiation_2(
-) {
+ fn __bindgen_test_layout_nsCOMArray_open0_nsINode_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
+ ::std::mem::size_of::<root::nsCOMArray>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
+ stringify!(root::nsCOMArray)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>>(),
+ ::std::mem::align_of::<root::nsCOMArray>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::StyleBasicShape>)
+ stringify!(root::nsCOMArray)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_StyleBasicShape_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_7() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_nsStyleImage_DefaultDelete_open1_nsStyleImage_close1_close0_instantiation_2(
-) {
+ fn __bindgen_test_layout_nsTArray_open0_nsWeakPtr_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsWeakPtr>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
+ stringify!(root::nsTArray<root::nsWeakPtr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsStyleImage>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsWeakPtr>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::nsStyleImage>)
+ stringify!(root::nsTArray<root::nsWeakPtr>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_nsStyleImage_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocumentEncoder_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsIDocument_FrameRequest_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsIDocument_FrameRequest>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::nsTArray<root::nsIDocument_FrameRequest>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsIDocument_FrameRequest>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::nsTArray<root::nsIDocument_FrameRequest>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsAtom_close1_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIStructuredCloneContainer_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_10() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIVariant_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_Position_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_XPathEvaluator_DefaultDelete_open1_XPathEvaluator_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::mozilla::Position>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::Position>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::mozilla::Position>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::mozilla::Position>)
+ stringify!(root::mozilla::UniquePtr<root::mozilla::dom::XPathEvaluator>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_XPathEvaluator_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_AnonymousContent_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::size_of::<
+ root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>,
+ >(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::align_of::<
+ root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>,
+ >(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_2() {
+ fn __bindgen_test_layout_LinkedList_open0_MediaQueryList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::LinkedList>(),
+ 24usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::mozilla::LinkedList)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::align_of::<root::mozilla::LinkedList>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::mozilla::LinkedList)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_3() {
+ fn __bindgen_test_layout_RefPtr_open0_DocGroup_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_4() {
+ fn __bindgen_test_layout_nsTArray_open0_nsCOMPtr_open1_nsIPrincipal_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::nsTArray<root::nsCOMPtr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsCOMPtr>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::nsTArray<root::nsCOMPtr>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsStyleAutoArray_open0_StyleTransition_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_7() {
assert_eq!(
- ::std::mem::size_of::<root::nsStyleAutoArray<root::mozilla::StyleTransition>>(),
- 48usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::mozilla::StyleTransition>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsStyleAutoArray<root::mozilla::StyleTransition>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::mozilla::StyleTransition>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsStyleAutoArray_open0_StyleAnimation_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsTArray_open0_uint64_t_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
- 56usize,
+ ::std::mem::size_of::<root::nsTArray<u64>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
+ stringify!(root::nsTArray<u64>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsStyleAutoArray<root::mozilla::StyleAnimation>>(),
+ ::std::mem::align_of::<root::nsTArray<u64>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsStyleAutoArray<root::mozilla::StyleAnimation>)
+ stringify!(root::nsTArray<u64>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleContentData_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIParser_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleContentData>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleContentData>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleContentData>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleContentData>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleCounterData_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_PrincipalFlashClassifier_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleCounterData>>(),
+ ::std::mem::size_of::<root::RefPtr<root::PrincipalFlashClassifier>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCounterData>)
+ stringify!(root::RefPtr<root::PrincipalFlashClassifier>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleCounterData>>(),
+ ::std::mem::align_of::<root::RefPtr<root::PrincipalFlashClassifier>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCounterData>)
+ stringify!(root::RefPtr<root::PrincipalFlashClassifier>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleCounterData_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsRevocableEventPtr_open0_nsRunnableMethod_open1_nsIDocument_void_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleCounterData>>(),
+ ::std::mem::size_of::<u64>(),
+ 8usize,
+ concat!("Size of template specialization: ", stringify!(u64))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<u64>(),
+ 8usize,
+ concat!("Alignment of template specialization: ", stringify!(u64))
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_RefPtr_open0_nsDOMNavigationTiming_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::RefPtr<root::nsDOMNavigationTiming>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCounterData>)
+ stringify!(root::RefPtr<root::nsDOMNavigationTiming>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleCounterData>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsDOMNavigationTiming>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCounterData>)
+ stringify!(root::RefPtr<root::nsDOMNavigationTiming>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSValueSharedList_close0_instantiation_5() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_DOMIntersectionObserver_close0_instantiation() {
+ assert_eq ! ( :: std :: mem :: size_of :: < root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > > ( ) , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > ) ) );
+ assert_eq ! ( :: std :: mem :: align_of :: < root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsPtrHashKey < root :: mozilla :: dom :: DOMIntersectionObserver > ) ) );
+ }
+ #[test]
+ fn __bindgen_test_layout_nsTArray_open0_nsWeakPtr_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsWeakPtr>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::nsTArray<root::nsWeakPtr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSValueSharedList>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsWeakPtr>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSValueSharedList>)
+ stringify!(root::nsTArray<root::nsWeakPtr>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsStyleImageRequest_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_DOMImplementation_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsStyleImageRequest>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMImplementation>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsStyleImageRequest>)
+ stringify!(root::RefPtr<root::mozilla::dom::DOMImplementation>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsStyleImageRequest>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DOMImplementation>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsStyleImageRequest>)
+ stringify!(root::RefPtr<root::mozilla::dom::DOMImplementation>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsCursorImage_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_6() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsCursorImage>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsCursorImage>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsCursorImage>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsCursorImage>)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_HTMLImageElement_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
- 8usize,
+ ::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
+ ::std::mem::align_of::<root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::nsPtrHashKey<root::mozilla::dom::HTMLImageElement>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_nsIObjectLoadingContent_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
- 8usize,
+ ::std::mem::size_of::<root::nsPtrHashKey<root::nsIObjectLoadingContent>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::nsPtrHashKey<root::nsIObjectLoadingContent>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
+ ::std::mem::align_of::<root::nsPtrHashKey<root::nsIObjectLoadingContent>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::nsPtrHashKey<root::nsIObjectLoadingContent>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_URLValue_close0_instantiation_3() {
+ fn __bindgen_test_layout_RefPtr_open0_DocumentTimeline_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocumentTimeline>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::RefPtr<root::mozilla::dom::DocumentTimeline>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::URLValue>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocumentTimeline>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::URLValue>)
+ stringify!(root::RefPtr<root::mozilla::dom::DocumentTimeline>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation_3() {
+ fn __bindgen_test_layout_LinkedList_open0_DocumentTimeline_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::LinkedList>(),
+ 24usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::mozilla::LinkedList)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleCoord>>(),
+ ::std::mem::align_of::<root::mozilla::LinkedList>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleCoord>)
+ stringify!(root::mozilla::LinkedList)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsAtom_close1_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_ScriptLoader_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ScriptLoader>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
+ stringify!(root::RefPtr<root::mozilla::dom::ScriptLoader>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsAtom>>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ScriptLoader>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::nsAtom>>)
+ stringify!(root::RefPtr<root::mozilla::dom::ScriptLoader>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_11() {
+ fn __bindgen_test_layout_RefPtr_open0_PendingAnimationTracker_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::PendingAnimationTracker>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::RefPtr<root::mozilla::PendingAnimationTracker>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::PendingAnimationTracker>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
+ stringify!(root::RefPtr<root::mozilla::PendingAnimationTracker>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsStyleFilter_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_8() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsStyleFilter>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleFilter>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsStyleFilter>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsStyleFilter>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsCSSShadowArray_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_Promise_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsCSSShadowArray>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSShadowArray>)
+ stringify!(root::RefPtr<root::mozilla::dom::Promise>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsCSSShadowArray>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Promise>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsCSSShadowArray>)
+ stringify!(root::RefPtr<root::mozilla::dom::Promise>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_ptr_nsISupports_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_nsFrameLoader_close1_close0_instantiation()
+ {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<*mut root::nsISupports>>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::nsFrameLoader>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<*mut root::nsISupports>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsFrameLoader>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<*mut root::nsISupports>>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::nsFrameLoader>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<*mut root::nsISupports>)
+ stringify!(root::nsTArray<root::RefPtr<root::nsFrameLoader>>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_RawServoFontFaceRule_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_nsCOMPtr_open1_nsIRunnable_close1_close0_instantiation()
+ {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::RawServoFontFaceRule>>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::RawServoFontFaceRule>)
+ stringify!(root::nsTArray<root::nsCOMPtr>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::RawServoFontFaceRule>>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsCOMPtr>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::RawServoFontFaceRule>)
+ stringify!(root::nsTArray<root::nsCOMPtr>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_RawServoAnimationValue_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::RawServoAnimationValue>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::RawServoAnimationValue>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::RawServoAnimationValue>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::RawServoAnimationValue>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_nsCString_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_nsRunnableMethod_open1_nsIDocument_void_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::nsCString>>(),
+ ::std::mem::size_of::<u64>(),
+ 8usize,
+ concat!("Size of template specialization: ", stringify!(u64))
+ );
+ assert_eq!(
+ ::std::mem::align_of::<u64>(),
+ 8usize,
+ concat!("Alignment of template specialization: ", stringify!(u64))
+ );
+ }
+ #[test]
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsILayoutHistoryState_close0_instantiation() {
+ assert_eq!(
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::nsCString>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::nsCString>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::nsCString>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_15() {
+ fn __bindgen_test_layout_RefPtr_open0_EventListenerManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::EventListenerManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::EventListenerManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::EventListenerManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::EventListenerManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_16() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_1() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -47006,7 +47013,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_17() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIRequest_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -47025,26 +47032,27 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_5() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation_2()
+ {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_5() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_7() {
assert_eq!(
::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
@@ -47063,106 +47071,103 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsISerialEventTarget_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation_3()
+ {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_RawServoStyleSheetContents_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_8() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::RawServoStyleSheetContents>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::RawServoStyleSheetContents>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::RawServoStyleSheetContents>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::RawServoStyleSheetContents>)
+ stringify!(root::RefPtr<root::mozilla::StyleSheet>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_URLExtraData_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_nsDOMStyleSheetSetList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsDOMStyleSheetSetList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::URLExtraData>)
+ stringify!(root::RefPtr<root::nsDOMStyleSheetSetList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::URLExtraData>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsDOMStyleSheetSetList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::URLExtraData>)
+ stringify!(root::RefPtr<root::nsDOMStyleSheetSetList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ServoCSSRuleList_close0_instantiation() {
+ fn __bindgen_test_layout_nsPtrHashKey_open0_nsSVGElement_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::ServoCSSRuleList>>(),
- 8usize,
+ ::std::mem::size_of::<root::nsPtrHashKey<root::nsSVGElement>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::ServoCSSRuleList>)
+ stringify!(root::nsPtrHashKey<root::nsSVGElement>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::ServoCSSRuleList>>(),
+ ::std::mem::align_of::<root::nsPtrHashKey<root::nsSVGElement>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::ServoCSSRuleList>)
+ stringify!(root::nsPtrHashKey<root::nsSVGElement>)
)
);
}
#[test]
- fn __bindgen_test_layout_MozPromiseHolder_open0_StyleSheetParsePromise_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsINode_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<
- root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>,
- >(),
- 16usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<
- root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>,
- >(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::MozPromiseHolder<root::mozilla::StyleSheetParsePromise>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_6() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIContent_close0_instantiation_2() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -47181,147 +47186,145 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_StyleSheet_close1_close0_instantiation_3()
- {
+ fn __bindgen_test_layout_RefPtr_open0_nsXBLBinding_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsXBLBinding>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::RefPtr<root::nsXBLBinding>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsXBLBinding>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::StyleSheet>>)
+ stringify!(root::RefPtr<root::nsXBLBinding>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_6() {
+ fn __bindgen_test_layout_RefPtr_open0_XBLChildrenElement_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_SheetLoadData_close1_close0_instantiation()
- {
- assert_eq ! ( :: std :: mem :: size_of :: < root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > > ( ) , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > ) ) );
- assert_eq ! ( :: std :: mem :: align_of :: < root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > > ( ) , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( root :: nsTArray < root :: RefPtr < root :: mozilla :: css :: SheetLoadData > > ) ) );
- }
- #[test]
- fn __bindgen_test_layout_RefPtr_open0_SheetLoadData_close0_instantiation() {
+ fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_XBLChildrenElement_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
+ ::std::mem::size_of::<
+ root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>,
+ >(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
+ ::std::mem::align_of::<
+ root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>,
+ >(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
+ stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_7() {
+ fn __bindgen_test_layout_RefPtr_open0_XBLChildrenElement_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsAutoPtr_open0_Loader_Sheets_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAnonymousContentList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsAutoPtr<root::mozilla::css::Loader_Sheets>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAnonymousContentList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsAutoPtr<root::mozilla::css::Loader_Sheets>)
+ stringify!(root::RefPtr<root::nsAnonymousContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsAutoPtr<root::mozilla::css::Loader_Sheets>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAnonymousContentList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsAutoPtr<root::mozilla::css::Loader_Sheets>)
+ stringify!(root::RefPtr<root::nsAnonymousContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsICSSLoaderObserver_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsDOMCSSAttributeDeclaration_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsDOMCSSAttributeDeclaration>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsDOMCSSAttributeDeclaration>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsDOMCSSAttributeDeclaration>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsDOMCSSAttributeDeclaration>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_DocGroup_close0_instantiation_2() {
+ fn __bindgen_test_layout_RefPtr_open0_DeclarationBlock_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::DeclarationBlock>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
+ stringify!(root::RefPtr<root::mozilla::DeclarationBlock>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::DocGroup>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::DeclarationBlock>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::DocGroup>)
+ stringify!(root::RefPtr<root::mozilla::DeclarationBlock>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIConsoleReportCollector_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIControllers_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -47340,315 +47343,311 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_Decoder_DefaultDelete_open1_Decoder_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_nsLabelsNodeList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsLabelsNodeList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
+ stringify!(root::RefPtr<root::nsLabelsNodeList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsLabelsNodeList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
+ stringify!(root::RefPtr<root::nsLabelsNodeList>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_Decoder_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ShadowRoot_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_Decoder_DefaultDelete_open1_Decoder_close1_close0_instantiation_1(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_nsXBLBinding_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsXBLBinding>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
+ stringify!(root::RefPtr<root::nsXBLBinding>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsXBLBinding>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
+ stringify!(root::RefPtr<root::nsXBLBinding>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_Decoder_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_CustomElementData_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::CustomElementData>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::mozilla::dom::CustomElementData>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::CustomElementData>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::mozilla::dom::CustomElementData>)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_Decoder_DefaultDelete_open1_Decoder_close1_close0_instantiation_2(
-) {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Decoder>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Decoder>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_Decoder_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsICSSDeclaration_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::nsCOMPtr>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_Encoder_DefaultDelete_open1_Encoder_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_nsDOMAttributeMap_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::Encoder>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Encoder>)
+ stringify!(root::RefPtr<root::nsDOMAttributeMap>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::Encoder>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::Encoder>)
+ stringify!(root::RefPtr<root::nsDOMAttributeMap>)
)
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_Encoder_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_7() {
assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
+ 8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
+ ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
+ 8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
+ stringify!(root::RefPtr<root::nsContentList>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_Loader_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_nsDOMTokenList_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::Loader>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsDOMTokenList>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::Loader>)
+ stringify!(root::RefPtr<root::nsDOMTokenList>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::Loader>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsDOMTokenList>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::Loader>)
+ stringify!(root::RefPtr<root::nsDOMTokenList>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIURI_close0_instantiation_18() {
+ fn __bindgen_test_layout_RefPtr_open0_nsDOMAttributeMap_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsDOMAttributeMap>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsDOMAttributeMap>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_StyleSheet_close0_instantiation_8() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsDOMAttributeMap_Element_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::nsCOMPtr)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::StyleSheet>>(),
+ ::std::mem::align_of::<root::nsCOMPtr>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::StyleSheet>)
+ stringify!(root::nsCOMPtr)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_SheetLoadData_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
- 8usize,
+ ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
+ stringify!(root::nsRefPtrHashKey<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::css::SheetLoadData>>(),
+ ::std::mem::align_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::css::SheetLoadData>)
+ stringify!(root::nsRefPtrHashKey<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIStyleSheetLinkingElement_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_8() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsICSSLoaderObserver_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_9() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrincipal_close0_instantiation_7() {
+ fn __bindgen_test_layout_nsAutoPtr_open0_LangGroupFontPrefs_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsAutoPtr<root::mozilla::LangGroupFontPrefs>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsINode_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsTArray_open0_nsRect_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::nsTArray<root::nsRect>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsRect>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsTArray<root::nsRect>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsTArray<root::nsRect>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIContent_close0_instantiation_2() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIDocument_close0_instantiation_9() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -47667,240 +47666,235 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsXBLBinding_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsDeviceContext_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsXBLBinding>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsDeviceContext>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsXBLBinding>)
+ stringify!(root::RefPtr<root::nsDeviceContext>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsXBLBinding>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsDeviceContext>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsXBLBinding>)
+ stringify!(root::RefPtr<root::nsDeviceContext>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_XBLChildrenElement_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_EventStateManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::EventStateManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
+ stringify!(root::RefPtr<root::mozilla::EventStateManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::EventStateManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
+ stringify!(root::RefPtr<root::mozilla::EventStateManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsTArray_open0_RefPtr_open1_XBLChildrenElement_close1_close0_instantiation(
-) {
+ fn __bindgen_test_layout_RefPtr_open0_nsRefreshDriver_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<
- root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>,
- >(),
+ ::std::mem::size_of::<root::RefPtr<root::nsRefreshDriver>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>)
+ stringify!(root::RefPtr<root::nsRefreshDriver>)
)
);
assert_eq!(
- ::std::mem::align_of::<
- root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>,
- >(),
+ ::std::mem::align_of::<root::RefPtr<root::nsRefreshDriver>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsTArray<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>)
+ stringify!(root::RefPtr<root::nsRefreshDriver>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_XBLChildrenElement_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_AnimationEventDispatcher_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::AnimationEventDispatcher>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
+ stringify!(root::RefPtr<root::mozilla::AnimationEventDispatcher>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::XBLChildrenElement>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::AnimationEventDispatcher>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::XBLChildrenElement>)
+ stringify!(root::RefPtr<root::mozilla::AnimationEventDispatcher>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAnonymousContentList_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_EffectCompositor_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAnonymousContentList>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::EffectCompositor>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAnonymousContentList>)
+ stringify!(root::RefPtr<root::mozilla::EffectCompositor>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAnonymousContentList>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::EffectCompositor>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAnonymousContentList>)
+ stringify!(root::RefPtr<root::mozilla::EffectCompositor>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsDOMCSSAttributeDeclaration_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsTransitionManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsDOMCSSAttributeDeclaration>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsTransitionManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMCSSAttributeDeclaration>)
+ stringify!(root::RefPtr<root::nsTransitionManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsDOMCSSAttributeDeclaration>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsTransitionManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMCSSAttributeDeclaration>)
+ stringify!(root::RefPtr<root::nsTransitionManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_DeclarationBlock_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAnimationManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::DeclarationBlock>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAnimationManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::DeclarationBlock>)
+ stringify!(root::RefPtr<root::nsAnimationManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::DeclarationBlock>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAnimationManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::DeclarationBlock>)
+ stringify!(root::RefPtr<root::nsAnimationManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIControllers_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_RestyleManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::RestyleManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::RestyleManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::RestyleManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::RefPtr<root::mozilla::RestyleManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsLabelsNodeList_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_CounterStyleManager_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsLabelsNodeList>>(),
+ ::std::mem::size_of::<root::RefPtr<root::mozilla::CounterStyleManager>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsLabelsNodeList>)
+ stringify!(root::RefPtr<root::mozilla::CounterStyleManager>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsLabelsNodeList>>(),
+ ::std::mem::align_of::<root::RefPtr<root::mozilla::CounterStyleManager>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsLabelsNodeList>)
+ stringify!(root::RefPtr<root::mozilla::CounterStyleManager>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_ShadowRoot_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_10() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::ShadowRoot>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::ShadowRoot>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsXBLBinding_close0_instantiation_1() {
+ fn __bindgen_test_layout_RefPtr_open0_gfxFontFeatureValueSet_close0_instantiation_1() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsXBLBinding>>(),
+ ::std::mem::size_of::<root::RefPtr<root::gfxFontFeatureValueSet>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsXBLBinding>)
+ stringify!(root::RefPtr<root::gfxFontFeatureValueSet>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsXBLBinding>>(),
+ ::std::mem::align_of::<root::RefPtr<root::gfxFontFeatureValueSet>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsXBLBinding>)
+ stringify!(root::RefPtr<root::gfxFontFeatureValueSet>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_CustomElementData_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_11() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::CustomElementData>>(),
+ ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::CustomElementData>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::CustomElementData>>(),
+ ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::mozilla::dom::CustomElementData>)
+ stringify!(root::RefPtr<root::nsAtom>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsISupports_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsITheme_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -47919,7 +47913,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsICSSDeclaration_close0_instantiation() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIPrintSettings_close0_instantiation() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
@@ -47938,97 +47932,98 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsDOMAttributeMap_close0_instantiation() {
+ fn __bindgen_test_layout_UniquePtr_open0_nsBidi_DefaultDelete_open1_nsBidi_close1_close0_instantiation(
+) {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
+ ::std::mem::size_of::<root::mozilla::UniquePtr<root::nsBidi>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMAttributeMap>)
+ stringify!(root::mozilla::UniquePtr<root::nsBidi>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
+ ::std::mem::align_of::<root::mozilla::UniquePtr<root::nsBidi>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMAttributeMap>)
+ stringify!(root::mozilla::UniquePtr<root::nsBidi>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsContentList_close0_instantiation_7() {
+ fn __bindgen_test_layout_DefaultDelete_open0_nsBidi_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsContentList>>(),
- 8usize,
+ ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsContentList>>(),
- 8usize,
+ ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
+ 1usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsContentList>)
+ stringify!(root::mozilla::DefaultDelete)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsDOMTokenList_close0_instantiation() {
+ fn __bindgen_test_layout_nsAutoPtr_open0_gfxTextPerfMetrics_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsDOMTokenList>>(),
+ ::std::mem::size_of::<root::nsAutoPtr<root::gfxTextPerfMetrics>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMTokenList>)
+ stringify!(root::nsAutoPtr<root::gfxTextPerfMetrics>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsDOMTokenList>>(),
+ ::std::mem::align_of::<root::nsAutoPtr<root::gfxTextPerfMetrics>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMTokenList>)
+ stringify!(root::nsAutoPtr<root::gfxTextPerfMetrics>)
)
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsDOMAttributeMap_close0_instantiation_1() {
+ fn __bindgen_test_layout_nsAutoPtr_open0_gfxMissingFontRecorder_close0_instantiation() {
assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
+ ::std::mem::size_of::<root::nsAutoPtr<root::gfxMissingFontRecorder>>(),
8usize,
concat!(
"Size of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMAttributeMap>)
+ stringify!(root::nsAutoPtr<root::gfxMissingFontRecorder>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsDOMAttributeMap>>(),
+ ::std::mem::align_of::<root::nsAutoPtr<root::gfxMissingFontRecorder>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsDOMAttributeMap>)
+ stringify!(root::nsAutoPtr<root::gfxMissingFontRecorder>)
)
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsDOMAttributeMap_Element_close0_instantiation() {
+ fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation_2() {
assert_eq!(
- ::std::mem::size_of::<root::nsCOMPtr>(),
- 8usize,
+ ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
+ 16usize,
concat!(
"Size of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsRefPtrHashKey<root::nsAtom>)
)
);
assert_eq!(
- ::std::mem::align_of::<root::nsCOMPtr>(),
+ ::std::mem::align_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
8usize,
concat!(
"Alignment of template specialization: ",
- stringify!(root::nsCOMPtr)
+ stringify!(root::nsRefPtrHashKey<root::nsAtom>)
)
);
}
@@ -48665,7 +48660,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_ServoStyleRuleMap_DefaultDelete_open1_ServoStyleRuleMap_close1_close0_instantiation(
+ fn __bindgen_test_layout_UniquePtr_open0_ServoStyleRuleMap_DefaultDelete_open1_ServoStyleRuleMap_close1_close0_instantiation_1(
) {
assert_eq!(
::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>>(),
@@ -48685,7 +48680,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_DefaultDelete_open0_ServoStyleRuleMap_close0_instantiation() {
+ fn __bindgen_test_layout_DefaultDelete_open0_ServoStyleRuleMap_close0_instantiation_1() {
assert_eq!(
::std::mem::size_of::<root::mozilla::DefaultDelete>(),
1usize,
@@ -48935,85 +48930,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_UniquePtr_open0_RawServoStyleSet_DefaultDelete_open1_RawServoStyleSet_close1_close0_instantiation(
-) {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::RawServoStyleSet>>(),
- 8usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::RawServoStyleSet>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::RawServoStyleSet>>(),
- 8usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::RawServoStyleSet>)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_DefaultDelete_open0_RawServoStyleSet_close0_instantiation() {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_UniquePtr_open0_ServoStyleRuleMap_DefaultDelete_open1_ServoStyleRuleMap_close1_close0_instantiation_1(
-) {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>>(),
- 8usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>>(),
- 8usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::UniquePtr<root::mozilla::ServoStyleRuleMap>)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_DefaultDelete_open0_ServoStyleRuleMap_close0_instantiation_1() {
- assert_eq!(
- ::std::mem::size_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::mozilla::DefaultDelete>(),
- 1usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::mozilla::DefaultDelete)
- )
- );
- }
- #[test]
- fn __bindgen_test_layout_RefPtr_open0_ComputedStyle_close0_instantiation() {
+ fn __bindgen_test_layout_RefPtr_open0_ComputedStyle_close0_instantiation_1() {
assert_eq!(
::std::mem::size_of::<root::RefPtr<root::mozilla::ComputedStyle>>(),
8usize,
@@ -49070,25 +48987,6 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_14() {
- assert_eq!(
- ::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
- 8usize,
- concat!(
- "Size of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
- )
- );
- assert_eq!(
- ::std::mem::align_of::<root::RefPtr<root::nsAtom>>(),
- 8usize,
- concat!(
- "Alignment of template specialization: ",
- stringify!(root::RefPtr<root::nsAtom>)
- )
- );
- }
- #[test]
fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation_5() {
assert_eq!(
::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(),
@@ -49127,7 +49025,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_15() {
+ fn __bindgen_test_layout_RefPtr_open0_nsAtom_close0_instantiation_14() {
assert_eq!(
::std::mem::size_of::<root::RefPtr<root::nsAtom>>(),
8usize,
@@ -49146,7 +49044,7 @@ pub mod root {
);
}
#[test]
- fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_3() {
+ fn __bindgen_test_layout_nsCOMPtr_open0_nsIRunnable_close0_instantiation_2() {
assert_eq!(
::std::mem::size_of::<root::nsCOMPtr>(),
8usize,
diff --git a/components/style/gecko/rules.rs b/components/style/gecko/rules.rs
index 434e496e34b..20d438d213d 100644
--- a/components/style/gecko/rules.rs
+++ b/components/style/gecko/rules.rs
@@ -9,17 +9,10 @@ use computed_values::{font_stretch, font_style, font_weight};
use counter_style::{self, CounterBound};
use cssparser::UnicodeRange;
use font_face::{Source, FontDisplay, FontWeight};
-use gecko_bindings::bindings;
use gecko_bindings::structs::{self, nsCSSValue};
-use gecko_bindings::structs::{nsCSSCounterDesc, nsCSSCounterStyleRule};
use gecko_bindings::sugar::ns_css_value::ToNsCssValue;
-use gecko_bindings::sugar::refptr::{RefPtr, UniqueRefPtr};
-use nsstring::nsString;
use properties::longhands::font_language_override;
-use shared_lock::{ToCssWithGuard, SharedRwLockReadGuard};
-use std::fmt::{self, Write};
use std::str;
-use str::CssStringWriter;
use values::computed::font::FamilyName;
use values::generics::font::FontTag;
use values::specified::font::{SpecifiedFontVariationSettings, SpecifiedFontFeatureSettings};
@@ -192,101 +185,62 @@ impl<'a> ToNsCssValue for &'a FontDisplay {
}
}
-/// A @counter-style rule
-pub type CounterStyleRule = RefPtr<nsCSSCounterStyleRule>;
-
-impl CounterStyleRule {
- /// Ask Gecko to deep clone the nsCSSCounterStyleRule, and then construct
- /// a CounterStyleRule object from it.
- pub fn deep_clone_from_gecko(&self) -> CounterStyleRule {
- let result = unsafe {
- UniqueRefPtr::from_addrefed(
- bindings::Gecko_CSSCounterStyle_Clone(self.get()))
- };
- result.get()
- }
-}
-
-impl From<counter_style::CounterStyleRuleData> for CounterStyleRule {
- fn from(data: counter_style::CounterStyleRuleData) -> CounterStyleRule {
- let mut result = unsafe {
- UniqueRefPtr::from_addrefed(
- bindings::Gecko_CSSCounterStyle_Create(data.name().0.as_ptr()))
- };
- data.set_descriptors(&mut result.mValues);
- result.get()
- }
-}
-
-impl ToCssWithGuard for CounterStyleRule {
- fn to_css(&self, _guard: &SharedRwLockReadGuard, dest: &mut CssStringWriter) -> fmt::Result {
- let mut css_text = nsString::new();
- unsafe {
- bindings::Gecko_CSSCounterStyle_GetCssText(self.get(), &mut *css_text);
- }
- write!(dest, "{}", css_text)
- }
-}
-
-/// The type of nsCSSCounterStyleRule::mValues
-pub type CounterStyleDescriptors = [nsCSSValue; nsCSSCounterDesc::eCSSCounterDesc_COUNT as usize];
-
-impl ToNsCssValue for counter_style::System {
+impl<'a> ToNsCssValue for &'a counter_style::System {
fn convert(self, nscssvalue: &mut nsCSSValue) {
use counter_style::System::*;
- match self {
+ match *self {
Cyclic => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SYSTEM_CYCLIC as i32),
Numeric => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SYSTEM_NUMERIC as i32),
Alphabetic => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SYSTEM_ALPHABETIC as i32),
Symbolic => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SYSTEM_SYMBOLIC as i32),
Additive => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SYSTEM_ADDITIVE as i32),
- Fixed { first_symbol_value } => {
+ Fixed { ref first_symbol_value } => {
let mut a = nsCSSValue::null();
let mut b = nsCSSValue::null();
a.set_enum(structs::NS_STYLE_COUNTER_SYSTEM_FIXED as i32);
b.set_integer(first_symbol_value.map_or(1, |v| v.value()));
nscssvalue.set_pair(&a, &b);
}
- Extends(other) => {
+ Extends(ref other) => {
let mut a = nsCSSValue::null();
let mut b = nsCSSValue::null();
a.set_enum(structs::NS_STYLE_COUNTER_SYSTEM_EXTENDS as i32);
- b.set_atom_ident(other.0);
+ b.set_atom_ident(other.0.clone());
nscssvalue.set_pair(&a, &b);
}
}
}
}
-impl ToNsCssValue for counter_style::Negative {
+impl<'a> ToNsCssValue for &'a counter_style::Negative {
fn convert(self, nscssvalue: &mut nsCSSValue) {
- if let Some(second) = self.1 {
+ if let Some(ref second) = self.1 {
let mut a = nsCSSValue::null();
let mut b = nsCSSValue::null();
- a.set_from(self.0);
+ a.set_from(&self.0);
b.set_from(second);
nscssvalue.set_pair(&a, &b);
} else {
- nscssvalue.set_from(self.0)
+ nscssvalue.set_from(&self.0)
}
}
}
-impl ToNsCssValue for counter_style::Symbol {
+impl<'a> ToNsCssValue for &'a counter_style::Symbol {
fn convert(self, nscssvalue: &mut nsCSSValue) {
- match self {
- counter_style::Symbol::String(s) => nscssvalue.set_string(&s),
- counter_style::Symbol::Ident(s) => nscssvalue.set_ident_from_atom(&s.0),
+ match *self {
+ counter_style::Symbol::String(ref s) => nscssvalue.set_string(s),
+ counter_style::Symbol::Ident(ref s) => nscssvalue.set_ident_from_atom(&s.0),
}
}
}
-impl ToNsCssValue for counter_style::Ranges {
+impl<'a> ToNsCssValue for &'a counter_style::Ranges {
fn convert(self, nscssvalue: &mut nsCSSValue) {
if self.0.is_empty() {
nscssvalue.set_auto();
} else {
- nscssvalue.set_pair_list(self.0.into_iter().map(|range| {
+ nscssvalue.set_pair_list(self.0.iter().map(|range| {
fn set_bound(bound: CounterBound, nscssvalue: &mut nsCSSValue) {
if let CounterBound::Integer(finite) = bound {
nscssvalue.set_integer(finite.value())
@@ -304,25 +258,25 @@ impl ToNsCssValue for counter_style::Ranges {
}
}
-impl ToNsCssValue for counter_style::Pad {
+impl<'a> ToNsCssValue for &'a counter_style::Pad {
fn convert(self, nscssvalue: &mut nsCSSValue) {
let mut min_length = nsCSSValue::null();
let mut pad_with = nsCSSValue::null();
min_length.set_integer(self.0.value());
- pad_with.set_from(self.1);
+ pad_with.set_from(&self.1);
nscssvalue.set_pair(&min_length, &pad_with);
}
}
-impl ToNsCssValue for counter_style::Fallback {
+impl<'a> ToNsCssValue for &'a counter_style::Fallback {
fn convert(self, nscssvalue: &mut nsCSSValue) {
- nscssvalue.set_atom_ident(self.0 .0)
+ nscssvalue.set_atom_ident(self.0 .0.clone())
}
}
-impl ToNsCssValue for counter_style::Symbols {
+impl<'a> ToNsCssValue for &'a counter_style::Symbols {
fn convert(self, nscssvalue: &mut nsCSSValue) {
- nscssvalue.set_list(self.0.into_iter().map(|item| {
+ nscssvalue.set_list(self.0.iter().map(|item| {
let mut value = nsCSSValue::null();
value.set_from(item);
value
@@ -330,27 +284,27 @@ impl ToNsCssValue for counter_style::Symbols {
}
}
-impl ToNsCssValue for counter_style::AdditiveSymbols {
+impl<'a> ToNsCssValue for &'a counter_style::AdditiveSymbols {
fn convert(self, nscssvalue: &mut nsCSSValue) {
- nscssvalue.set_pair_list(self.0.into_iter().map(|tuple| {
+ nscssvalue.set_pair_list(self.0.iter().map(|tuple| {
let mut weight = nsCSSValue::null();
let mut symbol = nsCSSValue::null();
weight.set_integer(tuple.weight.value());
- symbol.set_from(tuple.symbol);
+ symbol.set_from(&tuple.symbol);
(weight, symbol)
}));
}
}
-impl ToNsCssValue for counter_style::SpeakAs {
+impl<'a> ToNsCssValue for &'a counter_style::SpeakAs {
fn convert(self, nscssvalue: &mut nsCSSValue) {
use counter_style::SpeakAs::*;
- match self {
+ match *self {
Auto => nscssvalue.set_auto(),
Bullets => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SPEAKAS_BULLETS as i32),
Numbers => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SPEAKAS_NUMBERS as i32),
Words => nscssvalue.set_enum(structs::NS_STYLE_COUNTER_SPEAKAS_WORDS as i32),
- Other(other) => nscssvalue.set_atom_ident(other.0),
+ Other(ref other) => nscssvalue.set_atom_ident(other.0.clone()),
}
}
}
diff --git a/components/style/gecko_bindings/sugar/refptr.rs b/components/style/gecko_bindings/sugar/refptr.rs
index 15a3f21a41d..efaee010251 100644
--- a/components/style/gecko_bindings/sugar/refptr.rs
+++ b/components/style/gecko_bindings/sugar/refptr.rs
@@ -260,9 +260,6 @@ macro_rules! impl_refcount {
);
}
-impl_refcount!(::gecko_bindings::structs::nsCSSCounterStyleRule,
- Gecko_CSSCounterStyleRule_AddRef, Gecko_CSSCounterStyleRule_Release);
-
// Companion of NS_DECL_THREADSAFE_FFI_REFCOUNTING.
//
// Gets you a free RefCounted impl implemented via FFI.
diff --git a/components/style/stylesheets/counter_style_rule.rs b/components/style/stylesheets/counter_style_rule.rs
index a27891bf5bb..64915b528c2 100644
--- a/components/style/stylesheets/counter_style_rule.rs
+++ b/components/style/stylesheets/counter_style_rule.rs
@@ -2,23 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-// TODO(emilio): unify this, components/style/counter_style.rs, and
-// components/style/gecko/rules.rs
#![allow(missing_docs)]
-#[cfg(feature = "servo")]
pub use counter_style::CounterStyleRuleData as CounterStyleRule;
-#[cfg(feature = "gecko")]
-pub use gecko::rules::CounterStyleRule;
-
-impl CounterStyleRule {
- #[cfg(feature = "servo")]
- pub fn clone_conditionally_gecko_or_servo(&self) -> CounterStyleRule {
- self.clone()
- }
-
- #[cfg(feature = "gecko")]
- pub fn clone_conditionally_gecko_or_servo(&self) -> CounterStyleRule {
- self.deep_clone_from_gecko()
- }
-}
diff --git a/components/style/stylesheets/mod.rs b/components/style/stylesheets/mod.rs
index f7b000c2ffd..da999548dfc 100644
--- a/components/style/stylesheets/mod.rs
+++ b/components/style/stylesheets/mod.rs
@@ -314,8 +314,7 @@ impl DeepCloneWithLock for CssRule {
},
CssRule::CounterStyle(ref arc) => {
let rule = arc.read_with(guard);
- CssRule::CounterStyle(Arc::new(lock.wrap(
- rule.clone_conditionally_gecko_or_servo())))
+ CssRule::CounterStyle(Arc::new(lock.wrap(rule.clone())))
},
CssRule::Viewport(ref arc) => {
let rule = arc.read_with(guard);
diff --git a/components/style/stylesheets/rule_parser.rs b/components/style/stylesheets/rule_parser.rs
index 714a0730882..ff4a609ed6d 100644
--- a/components/style/stylesheets/rule_parser.rs
+++ b/components/style/stylesheets/rule_parser.rs
@@ -114,7 +114,7 @@ pub enum AtRuleBlockPrelude {
/// A @font-feature-values rule prelude, with its FamilyName list.
FontFeatureValues(Vec<FamilyName>, SourceLocation),
/// A @counter-style rule prelude, with its counter style name.
- CounterStyle(CustomIdent),
+ CounterStyle(CustomIdent, SourceLocation),
/// A @media rule prelude, with its media queries.
Media(Arc<Locked<MediaList>>, SourceLocation),
/// An @supports rule, with its conditional
@@ -382,7 +382,7 @@ impl<'a, 'b, 'i, R: ParseErrorReporter> AtRuleParser<'i> for NestedRuleParser<'a
return Err(input.new_custom_error(StyleParseErrorKind::UnsupportedAtRule(name.clone())))
}
let name = parse_counter_style_name_definition(input)?;
- Ok(AtRuleType::WithBlock(AtRuleBlockPrelude::CounterStyle(name)))
+ Ok(AtRuleType::WithBlock(AtRuleBlockPrelude::CounterStyle(name, location)))
},
"viewport" => {
if viewport_rule::enabled() {
@@ -455,7 +455,7 @@ impl<'a, 'b, 'i, R: ParseErrorReporter> AtRuleParser<'i> for NestedRuleParser<'a
Ok(CssRule::FontFeatureValues(Arc::new(self.shared_lock.wrap(
FontFeatureValuesRule::parse(&context, self.error_context, input, family_names, location)))))
}
- AtRuleBlockPrelude::CounterStyle(name) => {
+ AtRuleBlockPrelude::CounterStyle(name, location) => {
let context = ParserContext::new_with_rule_type(
self.context,
CssRuleType::CounterStyle,
@@ -463,7 +463,14 @@ impl<'a, 'b, 'i, R: ParseErrorReporter> AtRuleParser<'i> for NestedRuleParser<'a
);
Ok(CssRule::CounterStyle(Arc::new(self.shared_lock.wrap(
- parse_counter_style_body(name, &context, self.error_context, input)?.into()))))
+ parse_counter_style_body(
+ name,
+ &context,
+ self.error_context,
+ input,
+ location
+ )?.into()
+ ))))
}
AtRuleBlockPrelude::Media(media_queries, location) => {
Ok(CssRule::Media(Arc::new(self.shared_lock.wrap(MediaRule {
diff --git a/components/style/stylist.rs b/components/style/stylist.rs
index 5ad5d8610a4..59461d152a2 100644
--- a/components/style/stylist.rs
+++ b/components/style/stylist.rs
@@ -1611,8 +1611,6 @@ pub struct ExtraStyleData {
pub pages: Vec<Arc<Locked<PageRule>>>,
}
-// FIXME(emilio): This is kind of a lie, and relies on us not cloning
-// nsCSSCounterStyleRules OMT (which we don't).
#[cfg(feature = "gecko")]
unsafe impl Sync for ExtraStyleData {}
#[cfg(feature = "gecko")]
@@ -1636,7 +1634,7 @@ impl ExtraStyleData {
guard: &SharedRwLockReadGuard,
rule: &Arc<Locked<CounterStyleRule>>,
) {
- let name = unsafe { Atom::from_raw(rule.read_with(guard).mName.mRawPtr) };
+ let name = rule.read_with(guard).name().0.clone();
self.counter_styles.insert(name, rule.clone());
}
diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs
index ffdb7685aaf..77023cc6bc0 100644
--- a/ports/geckolib/glue.rs
+++ b/ports/geckolib/glue.rs
@@ -39,6 +39,7 @@ use style::gecko_bindings::bindings::{RawGeckoElementBorrowed, RawGeckoElementBo
use style::gecko_bindings::bindings::{RawGeckoKeyframeListBorrowed, RawGeckoKeyframeListBorrowedMut};
use style::gecko_bindings::bindings::{RawServoAuthorStyles, RawServoAuthorStylesBorrowed};
use style::gecko_bindings::bindings::{RawServoAuthorStylesBorrowedMut, RawServoAuthorStylesOwned};
+use style::gecko_bindings::bindings::{RawServoCounterStyleRule, RawServoCounterStyleRuleBorrowed};
use style::gecko_bindings::bindings::{RawServoDeclarationBlockBorrowed, RawServoDeclarationBlockStrong};
use style::gecko_bindings::bindings::{RawServoDocumentRule, RawServoDocumentRuleBorrowed};
use style::gecko_bindings::bindings::{RawServoFontFaceRuleBorrowed, RawServoFontFaceRuleStrong};
@@ -92,7 +93,7 @@ use style::gecko_bindings::structs::{CallerType, CSSPseudoElementType, Composite
use style::gecko_bindings::structs::{Loader, LoaderReusableStyleSheets};
use style::gecko_bindings::structs::{RawServoStyleRule, ComputedStyleStrong, RustString};
use style::gecko_bindings::structs::{ServoStyleSheet, SheetLoadData, SheetParsingMode, nsAtom, nsCSSPropertyID};
-use style::gecko_bindings::structs::{nsCSSFontDesc, nsCSSCounterStyleRule};
+use style::gecko_bindings::structs::{nsCSSFontDesc, nsCSSCounterDesc};
use style::gecko_bindings::structs::{nsRestyleHint, nsChangeHint, PropertyValuePair};
use style::gecko_bindings::structs::AtomArray;
use style::gecko_bindings::structs::IterationCompositeOperation;
@@ -113,8 +114,6 @@ use style::gecko_bindings::structs::ServoTraversalFlags;
use style::gecko_bindings::structs::StyleRuleInclusion;
use style::gecko_bindings::structs::URLExtraData;
use style::gecko_bindings::structs::gfxFontFeatureValueSet;
-use style::gecko_bindings::structs::nsCSSCounterDesc;
-use style::gecko_bindings::structs::nsCSSValue;
use style::gecko_bindings::structs::nsCSSValueSharedList;
use style::gecko_bindings::structs::nsCompatibility;
use style::gecko_bindings::structs::nsIDocument;
@@ -141,10 +140,10 @@ use style::selector_parser::{PseudoElementCascadeType, SelectorImpl};
use style::shared_lock::{SharedRwLockReadGuard, StylesheetGuards, ToCssWithGuard, Locked};
use style::string_cache::{Atom, WeakAtom};
use style::style_adjuster::StyleAdjuster;
-use style::stylesheets::{CssRule, CssRules, CssRuleType, CssRulesHelpers, DocumentRule};
-use style::stylesheets::{FontFaceRule, FontFeatureValuesRule, ImportRule, KeyframesRule};
-use style::stylesheets::{MediaRule, NamespaceRule, Origin, OriginSet, PageRule, StyleRule};
-use style::stylesheets::{StylesheetContents, SupportsRule};
+use style::stylesheets::{CssRule, CssRules, CssRuleType, CssRulesHelpers, CounterStyleRule};
+use style::stylesheets::{DocumentRule, FontFaceRule, FontFeatureValuesRule, ImportRule};
+use style::stylesheets::{KeyframesRule, MediaRule, NamespaceRule, Origin, OriginSet, PageRule};
+use style::stylesheets::{StyleRule, StylesheetContents, SupportsRule};
use style::stylesheets::StylesheetLoader as StyleStylesheetLoader;
use style::stylesheets::keyframes_rule::{Keyframe, KeyframeSelector, KeyframesStepValue};
use style::stylesheets::supports_rule::parse_condition_or_declaration;
@@ -1754,26 +1753,12 @@ impl_basic_rule_funcs! { (FontFace, FontFaceRule, RawServoFontFaceRule),
to_css: Servo_FontFaceRule_GetCssText,
}
-macro_rules! impl_getter_for_embedded_rule {
- ($getter:ident: $name:ident -> $ty:ty) => {
- #[no_mangle]
- pub extern "C" fn $getter(rules: ServoCssRulesBorrowed, index: u32) -> *mut $ty
- {
- let global_style_data = &*GLOBAL_STYLE_DATA;
- let guard = global_style_data.shared_lock.read();
- let rules = Locked::<CssRules>::as_arc(&rules).read_with(&guard);
- match rules.0[index as usize] {
- CssRule::$name(ref rule) => rule.read_with(&guard).get(),
- _ => unreachable!(concat!(stringify!($getter), " should only be called on a ",
- stringify!($name), " rule")),
- }
- }
- }
+impl_basic_rule_funcs! { (CounterStyle, CounterStyleRule, RawServoCounterStyleRule),
+ getter: Servo_CssRules_GetCounterStyleRuleAt,
+ debug: Servo_CounterStyleRule_Debug,
+ to_css: Servo_CounterStyleRule_GetCssText,
}
-impl_getter_for_embedded_rule!(Servo_CssRules_GetCounterStyleRuleAt:
- CounterStyle -> nsCSSCounterStyleRule);
-
#[no_mangle]
pub extern "C" fn Servo_StyleRule_GetStyle(rule: RawServoStyleRuleBorrowed) -> RawServoDeclarationBlockStrong {
read_locked_arc(rule, |rule: &StyleRule| {
@@ -2439,6 +2424,198 @@ pub unsafe extern "C" fn Servo_FontFaceRule_ResetDescriptor(
}
#[no_mangle]
+pub unsafe extern "C" fn Servo_CounterStyleRule_GetName(
+ rule: RawServoCounterStyleRuleBorrowed,
+) -> *mut nsAtom {
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ rule.name().0.as_ptr()
+ })
+}
+
+#[no_mangle]
+pub unsafe extern "C" fn Servo_CounterStyleRule_SetName(
+ rule: RawServoCounterStyleRuleBorrowed,
+ value: *const nsACString,
+) -> bool {
+ let value = value.as_ref().unwrap().as_str_unchecked();
+ let mut input = ParserInput::new(&value);
+ let mut parser = Parser::new(&mut input);
+ match parser.parse_entirely(counter_style::parse_counter_style_name_definition) {
+ Ok(name) => {
+ write_locked_arc(rule, |rule: &mut CounterStyleRule| rule.set_name(name));
+ true
+ }
+ Err(_) => false,
+ }
+}
+
+#[no_mangle]
+pub unsafe extern "C" fn Servo_CounterStyleRule_GetGeneration(
+ rule: RawServoCounterStyleRuleBorrowed,
+) -> u32 {
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ rule.generation()
+ })
+}
+
+#[no_mangle]
+pub unsafe extern "C" fn Servo_CounterStyleRule_GetSystem(
+ rule: RawServoCounterStyleRuleBorrowed,
+) -> u8 {
+ use style::counter_style::System;
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ match *rule.resolved_system() {
+ System::Cyclic => structs::NS_STYLE_COUNTER_SYSTEM_CYCLIC,
+ System::Numeric => structs::NS_STYLE_COUNTER_SYSTEM_NUMERIC,
+ System::Alphabetic => structs::NS_STYLE_COUNTER_SYSTEM_ALPHABETIC,
+ System::Symbolic => structs::NS_STYLE_COUNTER_SYSTEM_SYMBOLIC,
+ System::Additive => structs::NS_STYLE_COUNTER_SYSTEM_ADDITIVE,
+ System::Fixed { .. } => structs::NS_STYLE_COUNTER_SYSTEM_FIXED,
+ System::Extends(_) => structs::NS_STYLE_COUNTER_SYSTEM_EXTENDS,
+ }
+ }) as u8
+}
+
+#[no_mangle]
+pub unsafe extern "C" fn Servo_CounterStyleRule_GetExtended(
+ rule: RawServoCounterStyleRuleBorrowed,
+) -> *mut nsAtom {
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ match *rule.resolved_system() {
+ counter_style::System::Extends(ref name) => name.0.as_ptr(),
+ _ => {
+ debug_assert!(false, "Not extends system");
+ ptr::null_mut()
+ }
+ }
+ })
+}
+
+#[no_mangle]
+pub unsafe extern "C" fn Servo_CounterStyleRule_GetFixedFirstValue(
+ rule: RawServoCounterStyleRuleBorrowed,
+) -> i32 {
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ match *rule.resolved_system() {
+ counter_style::System::Fixed { first_symbol_value } => {
+ first_symbol_value.map_or(1, |v| v.value())
+ }
+ _ => {
+ debug_assert!(false, "Not fixed system");
+ 0
+ }
+ }
+ })
+}
+
+#[no_mangle]
+pub unsafe extern "C" fn Servo_CounterStyleRule_GetFallback(
+ rule: RawServoCounterStyleRuleBorrowed,
+) -> *mut nsAtom {
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ rule.fallback().map_or(ptr::null_mut(), |i| i.0 .0.as_ptr())
+ })
+}
+
+macro_rules! counter_style_descriptors {
+ {
+ valid: [
+ $($desc:ident => $getter:ident / $setter:ident,)+
+ ]
+ invalid: [
+ $($i_desc:ident,)+
+ ]
+ } => {
+ #[no_mangle]
+ pub unsafe extern "C" fn Servo_CounterStyleRule_GetDescriptor(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ result: nsCSSValueBorrowedMut,
+ ) {
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ match desc {
+ $(nsCSSCounterDesc::$desc => {
+ if let Some(value) = rule.$getter() {
+ result.set_from(value);
+ }
+ })+
+ $(nsCSSCounterDesc::$i_desc => unreachable!(),)+
+ }
+ });
+ }
+
+ #[no_mangle]
+ pub unsafe extern "C" fn Servo_CounterStyleRule_GetDescriptorCssText(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ result: *mut nsAString,
+ ) {
+ let mut writer = CssWriter::new(result.as_mut().unwrap());
+ read_locked_arc(rule, |rule: &CounterStyleRule| {
+ match desc {
+ $(nsCSSCounterDesc::$desc => {
+ if let Some(value) = rule.$getter() {
+ value.to_css(&mut writer).unwrap();
+ }
+ })+
+ $(nsCSSCounterDesc::$i_desc => unreachable!(),)+
+ }
+ });
+ }
+
+ #[no_mangle]
+ pub unsafe extern "C" fn Servo_CounterStyleRule_SetDescriptor(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ value: *const nsACString,
+ ) -> bool {
+ let value = value.as_ref().unwrap().as_str_unchecked();
+ let mut input = ParserInput::new(&value);
+ let mut parser = Parser::new(&mut input);
+ let url_data = dummy_url_data();
+ let context = ParserContext::new(
+ Origin::Author,
+ url_data,
+ Some(CssRuleType::CounterStyle),
+ ParsingMode::DEFAULT,
+ QuirksMode::NoQuirks,
+ );
+
+ write_locked_arc(rule, |rule: &mut CounterStyleRule| {
+ match desc {
+ $(nsCSSCounterDesc::$desc => {
+ match parser.parse_entirely(|i| Parse::parse(&context, i)) {
+ Ok(value) => rule.$setter(value),
+ Err(_) => false,
+ }
+ })+
+ $(nsCSSCounterDesc::$i_desc => unreachable!(),)+
+ }
+ })
+ }
+ }
+}
+
+counter_style_descriptors! {
+ valid: [
+ eCSSCounterDesc_System => system / set_system,
+ eCSSCounterDesc_Symbols => symbols / set_symbols,
+ eCSSCounterDesc_AdditiveSymbols => additive_symbols / set_additive_symbols,
+ eCSSCounterDesc_Negative => negative / set_negative,
+ eCSSCounterDesc_Prefix => prefix / set_prefix,
+ eCSSCounterDesc_Suffix => suffix / set_suffix,
+ eCSSCounterDesc_Range => range / set_range,
+ eCSSCounterDesc_Pad => pad / set_pad,
+ eCSSCounterDesc_Fallback => fallback / set_fallback,
+ eCSSCounterDesc_SpeakAs => speak_as / set_speak_as,
+ ]
+ invalid: [
+ eCSSCounterDesc_UNKNOWN,
+ eCSSCounterDesc_COUNT,
+ ]
+}
+
+#[no_mangle]
pub unsafe extern "C" fn Servo_ComputedValues_GetForAnonymousBox(
parent_style_or_null: ComputedStyleBorrowedOrNull,
pseudo_tag: *mut nsAtom,
@@ -4605,25 +4782,23 @@ pub extern "C" fn Servo_StyleSet_GetFontFaceRules(
}
}
+// XXX Ideally this should return a RawServoCounterStyleRuleBorrowedOrNull,
+// but we cannot, because the value from AtomicRefCell::borrow() can only
+// live in this function, and thus anything derived from it cannot get the
+// same lifetime as raw_data in parameter. See bug 1451543.
#[no_mangle]
-pub extern "C" fn Servo_StyleSet_GetCounterStyleRule(
+pub unsafe extern "C" fn Servo_StyleSet_GetCounterStyleRule(
raw_data: RawServoStyleSetBorrowed,
name: *mut nsAtom,
-) -> *mut nsCSSCounterStyleRule {
+) -> *const RawServoCounterStyleRule {
let data = PerDocumentStyleData::from_ffi(raw_data).borrow();
-
- unsafe {
- Atom::with(name, |name| {
- data.stylist
- .iter_extra_data_origins()
- .filter_map(|(d, _)| d.counter_styles.get(name))
- .next()
- })
- }.map(|rule| {
- let global_style_data = &*GLOBAL_STYLE_DATA;
- let guard = global_style_data.shared_lock.read();
- rule.read_with(&guard).get()
- }).unwrap_or(ptr::null_mut())
+ Atom::with(name, |name| {
+ data.stylist
+ .iter_extra_data_origins()
+ .filter_map(|(d, _)| d.counter_styles.get(name))
+ .next()
+ .map_or(ptr::null(), |rule| rule.as_borrowed())
+ })
}
#[no_mangle]
@@ -5206,19 +5381,6 @@ pub unsafe extern "C" fn Servo_SourceSizeList_Drop(list: RawServoSourceSizeListO
}
#[no_mangle]
-pub extern "C" fn Servo_ParseCounterStyleName(
- value: *const nsACString,
-) -> *mut nsAtom {
- let value = unsafe { value.as_ref().unwrap().as_str_unchecked() };
- let mut input = ParserInput::new(&value);
- let mut parser = Parser::new(&mut input);
- match parser.parse_entirely(counter_style::parse_counter_style_name_definition) {
- Ok(name) => name.0.into_addrefed(),
- Err(_) => ptr::null_mut(),
- }
-}
-
-#[no_mangle]
pub unsafe extern "C" fn Servo_InvalidateStyleForDocStateChanges(
root: RawGeckoElementBorrowed,
document_style: RawServoStyleSetBorrowed,
@@ -5259,39 +5421,6 @@ pub unsafe extern "C" fn Servo_InvalidateStyleForDocStateChanges(
}
#[no_mangle]
-pub extern "C" fn Servo_ParseCounterStyleDescriptor(
- descriptor: nsCSSCounterDesc,
- value: *const nsACString,
- raw_extra_data: *mut URLExtraData,
- result: *mut nsCSSValue,
-) -> bool {
- let value = unsafe { value.as_ref().unwrap().as_str_unchecked() };
- let url_data = unsafe {
- if raw_extra_data.is_null() {
- dummy_url_data()
- } else {
- RefPtr::from_ptr_ref(&raw_extra_data)
- }
- };
- let result = unsafe { result.as_mut().unwrap() };
- let mut input = ParserInput::new(&value);
- let mut parser = Parser::new(&mut input);
- let context = ParserContext::new(
- Origin::Author,
- url_data,
- Some(CssRuleType::CounterStyle),
- ParsingMode::DEFAULT,
- QuirksMode::NoQuirks,
- );
- counter_style::parse_counter_style_descriptor(
- &context,
- &mut parser,
- descriptor,
- result,
- ).is_ok()
-}
-
-#[no_mangle]
pub unsafe extern "C" fn Servo_PseudoClass_GetStates(name: *const nsACString) -> u64 {
let name = name.as_ref().unwrap().as_str_unchecked();
match NonTSPseudoClass::parse_non_functional(name) {