From 32269fa7cc4c412b9f3de2572838ea2562713997 Mon Sep 17 00:00:00 2001 From: Gecko Backout Date: Thu, 6 Jul 2017 21:58:15 +0000 Subject: [PATCH] Backed out changeset fec394734f83 (bug 17624) for build bustage a=backout CLOSED TREE Backs out https://github.com/servo/servo/pull/17624 --- Cargo.lock | 26 +- components/canvas/Cargo.toml | 2 +- components/canvas_traits/Cargo.toml | 2 +- components/script/Cargo.toml | 2 +- components/script_layout_interface/Cargo.toml | 2 +- .../script_layout_interface/wrapper_traits.rs | 6 +- components/selectors/Cargo.toml | 2 +- components/selectors/parser.rs | 7 +- components/style/Cargo.toml | 2 +- components/style/custom_properties.rs | 8 +- components/style/error_reporting.rs | 22 +- components/style/gecko/error_reporter.rs | 306 --- components/style/gecko/generated/bindings.rs | 52 +- .../style/gecko/generated/structs_debug.rs | 2062 ++++++----------- .../style/gecko/generated/structs_release.rs | 1679 +++++--------- components/style/gecko/mod.rs | 1 - components/style/gecko/wrapper.rs | 7 +- .../style/properties/declaration_block.rs | 24 +- .../helpers/animated_properties.mako.rs | 14 +- .../style/properties/properties.mako.rs | 11 +- components/style/stylesheets/rule_parser.rs | 12 +- components/style/stylist.rs | 34 +- components/style_traits/Cargo.toml | 2 +- components/style_traits/lib.rs | 14 +- ports/geckolib/Cargo.toml | 2 +- ports/geckolib/glue.rs | 120 +- tests/unit/gfx/Cargo.toml | 2 +- tests/unit/style/Cargo.toml | 2 +- tests/unit/style/stylesheets.rs | 23 +- tests/unit/stylo/Cargo.toml | 2 +- 30 files changed, 1431 insertions(+), 3019 deletions(-) delete mode 100644 components/style/gecko/error_reporter.rs diff --git a/Cargo.lock b/Cargo.lock index a4b537885f5f..9b96d083cd46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -317,7 +317,7 @@ version = "0.0.1" dependencies = [ "azure 0.19.0 (git+https://github.com/servo/rust-azure)", "canvas_traits 0.0.1", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "ipc-channel 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -332,7 +332,7 @@ dependencies = [ name = "canvas_traits" version = "0.0.1" dependencies = [ - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_derive 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -577,7 +577,7 @@ dependencies = [ [[package]] name = "cssparser" -version = "0.17.0" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "cssparser-macros 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1004,7 +1004,7 @@ name = "geckoservo" version = "0.0.1" dependencies = [ "atomic_refcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1070,7 +1070,7 @@ dependencies = [ name = "gfx_tests" version = "0.0.1" dependencies = [ - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "gfx 0.0.1", "ipc-channel 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "style 0.0.1", @@ -2381,7 +2381,7 @@ dependencies = [ "caseless 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "cmake 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", "cookie 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "deny_public_fields 0.0.1", "devtools_traits 0.0.1", "dom_struct 0.0.1", @@ -2454,7 +2454,7 @@ dependencies = [ "app_units 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "atomic_refcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "canvas_traits 0.0.1", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "gfx_traits 0.0.1", "heapsize 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2525,7 +2525,7 @@ name = "selectors" version = "0.19.0" dependencies = [ "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "matches 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2917,7 +2917,7 @@ dependencies = [ "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2970,7 +2970,7 @@ version = "0.0.1" dependencies = [ "app_units 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "html5ever 0.18.0 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2991,7 +2991,7 @@ version = "0.0.1" dependencies = [ "app_units 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_derive 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3004,7 +3004,7 @@ name = "stylo_tests" version = "0.0.1" dependencies = [ "atomic_refcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "geckoservo 0.0.1", @@ -3586,7 +3586,7 @@ dependencies = [ "checksum core-foundation-sys 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "41115a6aa5d3e1e5ef98148373f25971d1fad53818553f216495f9e67e90a624" "checksum core-graphics 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a9f841e9637adec70838c537cae52cb4c751cc6514ad05669b51d107c2021c79" "checksum core-text 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "74ba2a7abdccb94fb6c00822addef48504182b285aa45a30e78286487888fcb4" -"checksum cssparser 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e7063452c60432cb306ed54d538178c20792d47fa960c240ce6c083239ee55ec" +"checksum cssparser 0.16.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2842253baded8e712e9d8d80ebfe5ea8e95c5b27071e6a6db6080ca1e81c07d1" "checksum cssparser-macros 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "079adec4af52bb5275eadd004292028c79eb3c5f5b4ee8086a36d4197032f6df" "checksum dbghelp-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "97590ba53bcb8ac28279161ca943a924d1fd4a8fb3fa63302591647c4fc5b850" "checksum dbus 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "4aee01fb76ada3e5e7ca642ea6664ebf7308a810739ca2aca44909a1191ac254" diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml index cb9b9801937a..42e8b853e533 100644 --- a/components/canvas/Cargo.toml +++ b/components/canvas/Cargo.toml @@ -12,7 +12,7 @@ path = "lib.rs" [dependencies] azure = {git = "https://github.com/servo/rust-azure"} canvas_traits = {path = "../canvas_traits"} -cssparser = "0.17.0" +cssparser = "0.16.1" euclid = "0.15" gleam = "0.4" ipc-channel = "0.8" diff --git a/components/canvas_traits/Cargo.toml b/components/canvas_traits/Cargo.toml index d9cbf34cb75e..1c6ca6bb1a42 100644 --- a/components/canvas_traits/Cargo.toml +++ b/components/canvas_traits/Cargo.toml @@ -10,7 +10,7 @@ name = "canvas_traits" path = "lib.rs" [dependencies] -cssparser = "0.17.0" +cssparser = "0.16.1" euclid = "0.15" heapsize = "0.4" heapsize_derive = "0.1" diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index c9ce38c1f352..12f84eeaf122 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -35,7 +35,7 @@ byteorder = "1.0" canvas_traits = {path = "../canvas_traits"} caseless = "0.1.0" cookie = "0.6" -cssparser = "0.17.0" +cssparser = "0.16.1" deny_public_fields = {path = "../deny_public_fields"} devtools_traits = {path = "../devtools_traits"} dom_struct = {path = "../dom_struct"} diff --git a/components/script_layout_interface/Cargo.toml b/components/script_layout_interface/Cargo.toml index 6a74eeda086d..73d1f5066360 100644 --- a/components/script_layout_interface/Cargo.toml +++ b/components/script_layout_interface/Cargo.toml @@ -13,7 +13,7 @@ path = "lib.rs" app_units = "0.5" atomic_refcell = "0.1" canvas_traits = {path = "../canvas_traits"} -cssparser = "0.17.0" +cssparser = "0.16.1" euclid = "0.15" gfx_traits = {path = "../gfx_traits"} heapsize = "0.4" diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 9f2229d26851..579ac767d13c 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -415,8 +415,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + &style_pseudo, Some(data.styles.primary()), CascadeFlags::empty(), - &ServoMetricsProvider, - context.error_reporter) + &ServoMetricsProvider) .clone() } PseudoElementCascadeType::Lazy => { @@ -428,8 +427,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + RuleInclusion::All, data.styles.primary(), /* is_probe = */ false, - &ServoMetricsProvider, - context.error_reporter) + &ServoMetricsProvider) .unwrap() .clone() } diff --git a/components/selectors/Cargo.toml b/components/selectors/Cargo.toml index 8a8ddfda9464..4a1ad7dd8948 100644 --- a/components/selectors/Cargo.toml +++ b/components/selectors/Cargo.toml @@ -25,7 +25,7 @@ unstable = [] [dependencies] bitflags = "0.7" matches = "0.1" -cssparser = "0.17.0" +cssparser = "0.16.1" log = "0.3" fnv = "1.0" phf = "0.7.18" diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs index 676c19468225..f341911a33cb 100644 --- a/components/selectors/parser.rs +++ b/components/selectors/parser.rs @@ -59,7 +59,7 @@ pub enum SelectorParseError<'i, T> { PseudoElementExpectedIdent, UnsupportedPseudoClass, UnexpectedIdent(CompactCowStr<'i>), - ExpectedNamespace(CompactCowStr<'i>), + ExpectedNamespace, Custom(T), } @@ -1105,10 +1105,9 @@ fn parse_qualified_name<'i, 't, P, E, Impl> let position = input.position(); match input.next_including_whitespace() { Ok(Token::Delim('|')) => { - let prefix = from_cow_str(value.clone().into()); + let prefix = from_cow_str(value.into()); let result = parser.namespace_for_prefix(&prefix); - let url = result.ok_or(ParseError::Custom( - SelectorParseError::ExpectedNamespace(value.into())))?; + let url = result.ok_or(ParseError::Custom(SelectorParseError::ExpectedNamespace))?; explicit_namespace(input, QNamePrefix::ExplicitNamespace(prefix, url)) }, _ => { diff --git a/components/style/Cargo.toml b/components/style/Cargo.toml index c6d23ab2b8c7..29a774558339 100644 --- a/components/style/Cargo.toml +++ b/components/style/Cargo.toml @@ -38,7 +38,7 @@ bitflags = "0.7" bit-vec = "0.4.3" byteorder = "1.0" cfg-if = "0.1.0" -cssparser = "0.17.0" +cssparser = "0.16.1" encoding = {version = "0.2", optional = true} euclid = "0.15" fnv = "1.0" diff --git a/components/style/custom_properties.rs b/components/style/custom_properties.rs index 0f22a0b075c3..5b7c125739a0 100644 --- a/components/style/custom_properties.rs +++ b/components/style/custom_properties.rs @@ -280,10 +280,10 @@ fn parse_declaration_value_block<'i, 't> } token.serialization_type() } - Token::BadUrl(u) => - return Err(StyleParseError::BadUrlInDeclarationValueBlock(u).into()), - Token::BadString(s) => - return Err(StyleParseError::BadStringInDeclarationValueBlock(s).into()), + Token::BadUrl => + return Err(StyleParseError::BadUrlInDeclarationValueBlock.into()), + Token::BadString => + return Err(StyleParseError::BadStringInDeclarationValueBlock.into()), Token::CloseParenthesis => return Err(StyleParseError::UnbalancedCloseParenthesisInDeclarationValueBlock.into()), Token::CloseSquareBracket => diff --git a/components/style/error_reporting.rs b/components/style/error_reporting.rs index 19bc2b8881f8..e2a28ea0f914 100644 --- a/components/style/error_reporting.rs +++ b/components/style/error_reporting.rs @@ -8,9 +8,6 @@ use cssparser::{Parser, SourcePosition, BasicParseError, Token}; use cssparser::ParseError as CssParseError; -#[cfg(feature = "gecko")] use gecko::error_reporter::ErrorReporter; -#[cfg(feature = "gecko")] use gecko_bindings::structs::Loader; -#[cfg(feature = "gecko")] use gecko_bindings::structs::ServoStyleSheet; use log; use style_traits::ParseError; use stylesheets::UrlExtraData; @@ -79,8 +76,8 @@ impl<'a> ContextualParseError<'a> { Token::ParenthesisBlock => format!("parenthesis ("), Token::SquareBracketBlock => format!("square bracket ["), Token::CurlyBracketBlock => format!("curly bracket {{"), - Token::BadUrl(ref _u) => format!("bad url parse error"), - Token::BadString(ref _s) => format!("bad string parse error"), + Token::BadUrl => format!("bad url parse error"), + Token::BadString => format!("bad string parse error"), Token::CloseParenthesis => format!("unmatched close parenthesis"), Token::CloseSquareBracket => format!("unmatched close square bracket"), Token::CloseCurlyBracket => format!("unmatched close curly bracket"), @@ -91,11 +88,11 @@ impl<'a> ContextualParseError<'a> { match *err { CssParseError::Basic(BasicParseError::UnexpectedToken(ref t)) => format!("found unexpected {}", token_to_str(t)), + CssParseError::Basic(BasicParseError::ExpectedToken(ref t)) => + format!("expected {}", token_to_str(t)), CssParseError::Basic(BasicParseError::EndOfInput) => format!("unexpected end of input"), - CssParseError::Basic(BasicParseError::AtRuleInvalid(ref i)) => - format!("@ rule invalid: {}", i), - CssParseError::Basic(BasicParseError::AtRuleBodyInvalid) => + CssParseError::Basic(BasicParseError::AtRuleInvalid) => format!("@ rule invalid"), CssParseError::Basic(BasicParseError::QualifiedRuleInvalid) => format!("qualified rule invalid"), @@ -193,15 +190,6 @@ impl ParseErrorReporter for NullReporter { } /// Create an instance of the default error reporter. -#[cfg(feature = "servo")] pub fn create_error_reporter() -> RustLogReporter { RustLogReporter } - - /// Create an instance of the default error reporter for Stylo. - #[cfg(feature = "gecko")] -pub fn create_error_reporter(sheet: *mut ServoStyleSheet, - loader: *mut Loader) - -> ErrorReporter { - ErrorReporter::new(loader, sheet) -} diff --git a/components/style/gecko/error_reporter.rs b/components/style/gecko/error_reporter.rs deleted file mode 100644 index a62a96c1129f..000000000000 --- a/components/style/gecko/error_reporter.rs +++ /dev/null @@ -1,306 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ - -//! Wrapper around Gecko's CSS error reporting mechanism. - -#![allow(unsafe_code)] - -use cssparser::{Parser, SourcePosition, ParseError as CssParseError, Token, BasicParseError}; -use cssparser::CompactCowStr; -use error_reporting::{ParseErrorReporter, ContextualParseError}; -use gecko_bindings::bindings::{Gecko_CreateCSSErrorReporter, Gecko_DestroyCSSErrorReporter}; -use gecko_bindings::bindings::Gecko_ReportUnexpectedCSSError; -use gecko_bindings::structs::{Loader, ServoStyleSheet, nsIURI}; -use gecko_bindings::structs::ErrorReporter as GeckoErrorReporter; -use selectors::parser::SelectorParseError; -use style_traits::{ParseError, StyleParseError, PropertyDeclarationParseError}; -use stylesheets::UrlExtraData; - -/// Wrapper around an instance of Gecko's CSS error reporter. -pub struct ErrorReporter(*mut GeckoErrorReporter); -unsafe impl Sync for ErrorReporter {} - -impl ErrorReporter { - /// Create a new instance of the Gecko error reporter. - pub fn new(loader: *mut Loader, - sheet: *mut ServoStyleSheet) -> ErrorReporter { - unsafe { - ErrorReporter(Gecko_CreateCSSErrorReporter(sheet, loader)) - } - } -} - -impl Drop for ErrorReporter { - fn drop(&mut self) { - unsafe { - Gecko_DestroyCSSErrorReporter(self.0); - } - } -} - -enum ErrorString<'a> { - Snippet(CompactCowStr<'a>), - Ident(CompactCowStr<'a>), - UnexpectedToken(Token<'a>), -} - -impl<'a> ErrorString<'a> { - fn into_str(self) -> String { - match self { - ErrorString::Snippet(s) => s.into_owned(), - ErrorString::Ident(i) => escape_css_ident(&i), - ErrorString::UnexpectedToken(t) => token_to_str(t), - } - } -} - -// This is identical to the behaviour of cssparser::serialize_identifier, except that -// it uses numerical escapes for a larger set of characters. -fn escape_css_ident(ident: &str) -> String { - // The relevant parts of the CSS grammar are: - // ident ([-]?{nmstart}|[-][-]){nmchar}* - // nmstart [_a-z]|{nonascii}|{escape} - // nmchar [_a-z0-9-]|{nonascii}|{escape} - // nonascii [^\0-\177] - // escape {unicode}|\\[^\n\r\f0-9a-f] - // unicode \\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])? - // from http://www.w3.org/TR/CSS21/syndata.html#tokenization but - // modified for idents by - // http://dev.w3.org/csswg/cssom/#serialize-an-identifier and - // http://dev.w3.org/csswg/css-syntax/#would-start-an-identifier - if ident.is_empty() { - return ident.into() - } - - let mut escaped = String::new(); - - // A leading dash does not need to be escaped as long as it is not the - // *only* character in the identifier. - let mut iter = ident.chars().peekable(); - if iter.peek() == Some(&'-') { - if ident.len() == 1 { - return "\\-".into(); - } - - escaped.push('-'); - // Skip the first character. - let _ = iter.next(); - } - - // Escape a digit at the start (including after a dash), - // numerically. If we didn't escape it numerically, it would get - // interpreted as a numeric escape for the wrong character. - if iter.peek().map_or(false, |&c| '0' <= c && c <= '9') { - let ch = iter.next().unwrap(); - escaped.push_str(&format!("\\{:x} ", ch as u32)); - } - - while let Some(ch) = iter.next() { - if ch == '\0' { - escaped.push_str("\u{FFFD}"); - } else if ch < (0x20 as char) || (0x7f as char <= ch && ch < (0xA0 as char)) { - // Escape U+0000 through U+001F and U+007F through U+009F numerically. - escaped.push_str(&format!("\\{:x} ", ch as u32)); - } else { - // Escape ASCII non-identifier printables as a backslash plus - // the character. - if (ch < (0x7F as char)) && - ch != '_' && ch != '-' && - (ch < '0' || '9' < ch) && - (ch < 'A' || 'Z' < ch) && - (ch < 'a' || 'z' < ch) - { - escaped.push('\\'); - } - escaped.push(ch); - } - } - - escaped -} - -// This is identical to the behaviour of cssparser::CssStringWriter, except that -// the characters between 0x7F and 0xA0 as numerically escaped as well. -fn escape_css_string(s: &str) -> String { - let mut escaped = String::new(); - for ch in s.chars() { - if ch < ' ' || (ch >= (0x7F as char) && ch < (0xA0 as char)) { - escaped.push_str(&format!("\\{:x} ", ch as u32)); - } else { - if ch == '"' || ch == '\'' || ch == '\\' { - // Escape backslash and quote characters symbolically. - // It's not technically necessary to escape the quote - // character that isn't being used to delimit the string, - // but we do it anyway because that makes testing simpler. - escaped.push('\\'); - } - escaped.push(ch); - } - } - escaped -} - -fn token_to_str<'a>(t: Token<'a>) -> String { - match t { - Token::Ident(i) => escape_css_ident(&i), - Token::AtKeyword(kw) => format!("@{}", escape_css_ident(&kw)), - Token::Hash(h) | Token::IDHash(h) => format!("#{}", escape_css_ident(&h)), - Token::QuotedString(s) => format!("'{}'", escape_css_string(&s)), - Token::UnquotedUrl(u) => format!("'{}'", escape_css_string(&u)), - Token::Delim(d) => d.to_string(), - Token::Number { int_value: Some(i), .. } => i.to_string(), - Token::Number { value, .. } => value.to_string(), - Token::Percentage { int_value: Some(i), .. } => i.to_string(), - Token::Percentage { unit_value, .. } => unit_value.to_string(), - Token::Dimension { int_value: Some(i), ref unit, .. } => - format!("{}{}", i.to_string(), escape_css_ident(&unit.to_string())), - Token::Dimension { value, ref unit, .. } => - format!("{}{}", value.to_string(), escape_css_ident(&unit.to_string())), - Token::WhiteSpace(_) => "whitespace".into(), - Token::Comment(_) => "comment".into(), - Token::Colon => ":".into(), - Token::Semicolon => ";".into(), - Token::Comma => ",".into(), - Token::IncludeMatch => "~=".into(), - Token::DashMatch => "|=".into(), - Token::PrefixMatch => "^=".into(), - Token::SuffixMatch => "$=".into(), - Token::SubstringMatch => "*=".into(), - Token::Column => "||".into(), - Token::CDO => "".into(), - Token::Function(f) => format!("{}(", escape_css_ident(&f)), - Token::ParenthesisBlock => "(".into(), - Token::SquareBracketBlock => "[".into(), - Token::CurlyBracketBlock => "{".into(), - Token::BadUrl(url) => format!("url('{}", escape_css_string(&url)).into(), - Token::BadString(s) => format!("'{}", escape_css_string(&s)).into(), - Token::CloseParenthesis => "unmatched close parenthesis".into(), - Token::CloseSquareBracket => "unmatched close square bracket".into(), - Token::CloseCurlyBracket => "unmatched close curly bracket".into(), - } -} - -impl<'a> ContextualParseError<'a> { - fn error_data(self) -> (CompactCowStr<'a>, ParseError<'a>) { - match self { - ContextualParseError::UnsupportedPropertyDeclaration(s, err) | - ContextualParseError::UnsupportedFontFaceDescriptor(s, err) | - ContextualParseError::InvalidKeyframeRule(s, err) | - ContextualParseError::UnsupportedKeyframePropertyDeclaration(s, err) | - ContextualParseError::InvalidRule(s, err) | - ContextualParseError::UnsupportedRule(s, err) | - ContextualParseError::UnsupportedViewportDescriptorDeclaration(s, err) | - ContextualParseError::UnsupportedCounterStyleDescriptorDeclaration(s, err) => - (s.into(), err), - ContextualParseError::InvalidCounterStyleWithoutSymbols(s) | - ContextualParseError::InvalidCounterStyleNotEnoughSymbols(s) => - (s.into(), StyleParseError::UnspecifiedError.into()), - ContextualParseError::InvalidCounterStyleWithoutAdditiveSymbols | - ContextualParseError::InvalidCounterStyleExtendsWithSymbols | - ContextualParseError::InvalidCounterStyleExtendsWithAdditiveSymbols => - ("".into(), StyleParseError::UnspecifiedError.into()) - } - } - - fn error_param(self) -> ErrorString<'a> { - match self.error_data() { - (_, CssParseError::Basic(BasicParseError::UnexpectedToken(t))) => - ErrorString::UnexpectedToken(t), - - (_, CssParseError::Basic(BasicParseError::AtRuleInvalid(i))) => - ErrorString::Snippet(format!("@{}", escape_css_ident(&i)).into()), - - (_, CssParseError::Custom(SelectorParseError::Custom( - StyleParseError::PropertyDeclaration( - PropertyDeclarationParseError::InvalidValue(property))))) => - ErrorString::Snippet(property.into()), - - (_, CssParseError::Custom(SelectorParseError::UnexpectedIdent(ident))) => - ErrorString::Ident(ident), - - (_, CssParseError::Custom(SelectorParseError::ExpectedNamespace(namespace))) => - ErrorString::Ident(namespace), - - (_, CssParseError::Custom(SelectorParseError::Custom( - StyleParseError::UnknownProperty(property)))) => - ErrorString::Ident(property), - - (_, CssParseError::Custom(SelectorParseError::Custom( - StyleParseError::UnexpectedTokenWithinNamespace(token)))) => - ErrorString::UnexpectedToken(token), - - (s, _) => ErrorString::Snippet(s) - } - } - - fn to_gecko_message(&self) -> &'static [u8] { - match *self { - ContextualParseError::UnsupportedPropertyDeclaration( - _, CssParseError::Basic(BasicParseError::UnexpectedToken(_))) | - ContextualParseError::UnsupportedPropertyDeclaration( - _, CssParseError::Basic(BasicParseError::AtRuleInvalid(_))) => - b"PEParseDeclarationDeclExpected\0", - ContextualParseError::UnsupportedPropertyDeclaration( - _, CssParseError::Custom(SelectorParseError::Custom( - StyleParseError::PropertyDeclaration( - PropertyDeclarationParseError::InvalidValue(_))))) => - b"PEValueParsingError\0", - ContextualParseError::UnsupportedPropertyDeclaration(..) => - b"PEUnknownProperty\0", - ContextualParseError::UnsupportedFontFaceDescriptor(..) => - b"PEUnknwnFontDesc\0", - ContextualParseError::InvalidKeyframeRule(..) => - b"PEKeyframeBadName\0", - ContextualParseError::UnsupportedKeyframePropertyDeclaration(..) => - b"PEBadSelectorKeyframeRuleIgnored\0", - ContextualParseError::InvalidRule( - _, CssParseError::Custom(SelectorParseError::ExpectedNamespace(_))) => - b"PEUnknownNamespacePrefix\0", - ContextualParseError::InvalidRule( - _, CssParseError::Custom(SelectorParseError::Custom( - StyleParseError::UnexpectedTokenWithinNamespace(_)))) => - b"PEAtNSUnexpected\0", - ContextualParseError::InvalidRule(..) => - b"PEBadSelectorRSIgnored\0", - ContextualParseError::UnsupportedRule(..) => - b"PEDeclDropped\0", - ContextualParseError::UnsupportedViewportDescriptorDeclaration(..) | - ContextualParseError::UnsupportedCounterStyleDescriptorDeclaration(..) | - ContextualParseError::InvalidCounterStyleWithoutSymbols(..) | - ContextualParseError::InvalidCounterStyleNotEnoughSymbols(..) | - ContextualParseError::InvalidCounterStyleWithoutAdditiveSymbols | - ContextualParseError::InvalidCounterStyleExtendsWithSymbols | - ContextualParseError::InvalidCounterStyleExtendsWithAdditiveSymbols => - b"PEUnknownAtRule\0", - } - } -} - -impl ParseErrorReporter for ErrorReporter { - fn report_error<'a>(&self, - input: &mut Parser, - position: SourcePosition, - error: ContextualParseError<'a>, - url: &UrlExtraData, - line_number_offset: u64) { - let location = input.source_location(position); - let line_number = location.line + line_number_offset as u32; - - let name = error.to_gecko_message(); - let param = error.error_param().into_str(); - let source = input.current_line(); - unsafe { - Gecko_ReportUnexpectedCSSError(self.0, - name.as_ptr() as *const _, - param.as_ptr() as *const _, - param.len() as u32, - source.as_ptr() as *const _, - source.len() as u32, - line_number as u32, - location.column as u32, - url.mBaseURI.raw::()); - } - } -} diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 74d88be513f0..9098a8cace87 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -6,7 +6,6 @@ use gecko_bindings::structs::nsTArray; type nsACString_internal = nsACString; type nsAString_internal = nsAString; use gecko_bindings::structs::mozilla::css::GridTemplateAreasValue; -use gecko_bindings::structs::mozilla::css::ErrorReporter; use gecko_bindings::structs::mozilla::css::ImageValue; use gecko_bindings::structs::mozilla::css::URLValue; use gecko_bindings::structs::mozilla::css::URLValueData; @@ -72,7 +71,6 @@ use gecko_bindings::structs::nsChangeHint; use gecko_bindings::structs::nsCursorImage; use gecko_bindings::structs::nsFont; use gecko_bindings::structs::nsIAtom; -use gecko_bindings::structs::nsIURI; use gecko_bindings::structs::nsCompatibility; use gecko_bindings::structs::nsMediaFeature; use gecko_bindings::structs::nsRestyleHint; @@ -593,10 +591,6 @@ extern "C" { pub fn Gecko_GetDocumentLWTheme(aDocument: *const nsIDocument) -> nsIDocument_DocumentTheme; } -extern "C" { - pub fn Gecko_GetDocumentLoader(aPresCtx: RawGeckoPresContextBorrowed) - -> *mut Loader; -} extern "C" { pub fn Gecko_AtomAttrValue(element: RawGeckoElementBorrowed, attribute: *mut nsIAtom) -> *mut nsIAtom; @@ -1962,8 +1956,7 @@ extern "C" { parent_style: ServoComputedValuesBorrowedOrNull, declarations: - RawServoDeclarationBlockBorrowed, - loader: *mut Loader) + RawServoDeclarationBlockBorrowed) -> ServoComputedValuesStrong; } extern "C" { @@ -2168,16 +2161,6 @@ extern "C" { pub fn Servo_StyleRule_GetSelectorCount(rule: RawServoStyleRuleBorrowed, count: *mut u32); } -extern "C" { - pub fn Servo_StyleRule_SelectorMatchesElement(arg1: - RawServoStyleRuleBorrowed, - arg2: - RawGeckoElementBorrowed, - index: u32, - pseudo_type: - CSSPseudoElementType) - -> bool; -} extern "C" { pub fn Servo_ImportRule_GetHref(rule: RawServoImportRuleBorrowed, result: *mut nsAString); @@ -2271,8 +2254,7 @@ extern "C" { value: *const nsACString, data: *mut RawGeckoURLExtraData, parsing_mode: ParsingMode, - quirks_mode: nsCompatibility, - loader: *mut Loader) + quirks_mode: nsCompatibility) -> RawServoDeclarationBlockStrong; } extern "C" { @@ -2421,8 +2403,7 @@ extern "C" { extern "C" { pub fn Servo_ParseStyleAttribute(data: *const nsACString, extra_data: *mut RawGeckoURLExtraData, - quirks_mode: nsCompatibility, - loader: *mut Loader) + quirks_mode: nsCompatibility) -> RawServoDeclarationBlockStrong; } extern "C" { @@ -2491,8 +2472,8 @@ extern "C" { is_important: bool, data: *mut RawGeckoURLExtraData, parsing_mode: ParsingMode, - quirks_mode: nsCompatibility, - loader: *mut Loader) -> bool; + quirks_mode: nsCompatibility) + -> bool; } extern "C" { pub fn Servo_DeclarationBlock_SetPropertyById(declarations: @@ -2504,8 +2485,7 @@ extern "C" { *mut RawGeckoURLExtraData, parsing_mode: ParsingMode, quirks_mode: - nsCompatibility, - loader: *mut Loader) + nsCompatibility) -> bool; } extern "C" { @@ -2902,23 +2882,3 @@ extern "C" { ServoComputedValuesBorrowedOrNull) -> *const nsStyleEffects; } -extern "C" { - pub fn Gecko_CreateCSSErrorReporter(sheet: *mut ServoStyleSheet, - loader: *mut Loader) - -> *mut ErrorReporter; -} -extern "C" { - pub fn Gecko_DestroyCSSErrorReporter(reporter: *mut ErrorReporter); -} -extern "C" { - pub fn Gecko_ReportUnexpectedCSSError(reporter: *mut ErrorReporter, - message: - *const ::std::os::raw::c_char, - param: - *const ::std::os::raw::c_char, - paramLen: u32, - source: - *const ::std::os::raw::c_char, - sourceLen: u32, lineNumber: u32, - colNumber: u32, aURI: *mut nsIURI); -} diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index cfb845df5d09..0976ccd33d6e 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -1041,19 +1041,6 @@ pub mod root { } pub type pair_first_type<_T1> = _T1; pub type pair_second_type<_T2> = _T2; - pub type pair__EnableB = u8; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct pair__CheckArgs { - pub _address: u8, - } - pub type pair__CheckArgsDep = u8; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct pair__CheckTupleLikeConstructor { - pub _address: u8, - } - pub type pair__CheckTLC = u8; #[repr(C)] #[derive(Debug, Copy)] pub struct input_iterator_tag { @@ -1073,101 +1060,47 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug, Copy)] - pub struct forward_iterator_tag { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_forward_iterator_tag() { - assert_eq!(::std::mem::size_of::() , 1usize - , concat ! ( - "Size of: " , stringify ! ( forward_iterator_tag ) )); - assert_eq! (::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of " , stringify ! ( forward_iterator_tag ) - )); - } - impl Clone for forward_iterator_tag { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct bidirectional_iterator_tag { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_bidirectional_iterator_tag() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of: " , stringify ! ( bidirectional_iterator_tag - ) )); - assert_eq! (::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of " , stringify ! ( - bidirectional_iterator_tag ) )); - } - impl Clone for bidirectional_iterator_tag { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct random_access_iterator_tag { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_random_access_iterator_tag() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of: " , stringify ! ( random_access_iterator_tag - ) )); - assert_eq! (::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of " , stringify ! ( - random_access_iterator_tag ) )); - } - impl Clone for random_access_iterator_tag { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - pub struct iterator_traits { - pub _address: u8, - } - #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iterator { pub _address: u8, } + pub type iterator_iterator_category<_Category> = _Category; pub type iterator_value_type<_Tp> = _Tp; pub type iterator_difference_type<_Distance> = _Distance; pub type iterator_pointer<_Pointer> = _Pointer; pub type iterator_reference<_Reference> = _Reference; - pub type iterator_iterator_category<_Category> = _Category; #[repr(C)] - pub struct reverse_iterator<_Iter> { - pub __t: _Iter, - pub current: _Iter, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iter>>, + pub struct iterator_traits { + pub _address: u8, } - pub type reverse_iterator_iterator_type<_Iter> = _Iter; + #[repr(C)] + pub struct reverse_iterator<_Iterator> { + pub current: _Iterator, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iterator>>, + } + pub type reverse_iterator___traits_type = root::std::iterator_traits; + pub type reverse_iterator_iterator_type<_Iterator> = _Iterator; pub type reverse_iterator_difference_type = - root::std::iterator_traits; - pub type reverse_iterator_reference = root::std::iterator_traits; - pub type reverse_iterator_pointer = root::std::iterator_traits; + root::std::reverse_iterator___traits_type; + pub type reverse_iterator_pointer = + root::std::reverse_iterator___traits_type; + pub type reverse_iterator_reference = + root::std::reverse_iterator___traits_type; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct atomic { } - pub type atomic___base = u8; - #[repr(C)] - pub struct __bit_const_reference { - pub __seg_: root::std::__bit_const_reference___storage_pointer, - pub __mask_: root::std::__bit_const_reference___storage_type, + pub mod chrono { + #[allow(unused_imports)] + use self::super::super::super::root; } - pub type __bit_const_reference___storage_type = [u8; 0usize]; - pub type __bit_const_reference___storage_pointer = [u8; 0usize]; } - pub type __int64_t = ::std::os::raw::c_longlong; - pub type __darwin_off_t = root::__int64_t; + pub mod __gnu_cxx { + #[allow(unused_imports)] + use self::super::super::root; + } + pub type __off_t = ::std::os::raw::c_long; + pub type __off64_t = ::std::os::raw::c_long; pub mod mozilla { #[allow(unused_imports)] use self::super::super::root; @@ -1210,9 +1143,8 @@ pub mod root { root::nsSubstringTuple; pub type nsStringRepr_string_type = ::nsstring::nsStringRepr; pub type nsStringRepr_const_iterator = - root::nsReadingIterator; - pub type nsStringRepr_iterator = - root::nsWritingIterator; + root::nsReadingIterator; + pub type nsStringRepr_iterator = root::nsWritingIterator; pub type nsStringRepr_comparator_type = root::nsStringComparator; pub type nsStringRepr_char_iterator = *mut root::mozilla::detail::nsStringRepr_char_type; @@ -1302,9 +1234,9 @@ pub mod root { root::nsCSubstringTuple; pub type nsCStringRepr_string_type = root::nsCString; pub type nsCStringRepr_const_iterator = - root::nsReadingIterator; + root::nsReadingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_iterator = - root::nsWritingIterator; + root::nsWritingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_comparator_type = root::nsCStringComparator; pub type nsCStringRepr_char_iterator = @@ -1452,7 +1384,7 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct MutexImpl { - pub platformData_: [*mut ::std::os::raw::c_void; 8usize], + pub platformData_: [*mut ::std::os::raw::c_void; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1461,7 +1393,7 @@ pub mod root { } #[test] fn bindgen_test_layout_MutexImpl() { - assert_eq!(::std::mem::size_of::() , 64usize , + assert_eq!(::std::mem::size_of::() , 40usize , concat ! ( "Size of: " , stringify ! ( MutexImpl ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -1568,101 +1500,7 @@ pub mod root { pub mod css { #[allow(unused_imports)] use self::super::super::super::root; - #[repr(C)] - pub struct ErrorReporter { - 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, - pub mInnerWindowID: u64, - pub mErrorLineNumber: u32, - pub mPrevErrorLineNumber: u32, - pub mErrorColNumber: u32, - } - #[test] - fn bindgen_test_layout_ErrorReporter() { - assert_eq!(::std::mem::size_of::() , 248usize , - concat ! ( - "Size of: " , stringify ! ( ErrorReporter ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( ErrorReporter ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mError as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mError ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mErrorLine as * const _ as usize } , 160usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mErrorLine - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mFileName - as * const _ as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mFileName ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mScanner - as * const _ as usize } , 192usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mScanner ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mSheet as - * const _ as usize } , 200usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mSheet ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mLoader - as * const _ as usize } , 208usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mLoader ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mURI as * - const _ as usize } , 216usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mURI ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mInnerWindowID as * const _ as usize } , 224usize - , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mInnerWindowID ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mErrorLineNumber as * const _ as usize } , - 232usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mErrorLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mPrevErrorLineNumber as * const _ as usize } , - 236usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mPrevErrorLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mErrorColNumber as * const _ as usize } , 240usize - , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mErrorColNumber ) )); - } - #[repr(u8)] + #[repr(u32)] /** * 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 @@ -2385,7 +2223,7 @@ pub mod root { } } #[repr(C)] - #[derive(Debug, Copy)] + #[derive(Debug)] pub struct ThreadSafeAutoRefCnt { pub mValue: u64, } @@ -2406,9 +2244,6 @@ pub mod root { ThreadSafeAutoRefCnt ) , "::" , stringify ! ( mValue ) )); } - impl Clone for ThreadSafeAutoRefCnt { - fn clone(&self) -> Self { *self } - } #[repr(C)] #[derive(Debug)] pub struct OwningNonNull { @@ -2573,6 +2408,7 @@ pub mod root { impl Clone for FontVariation { fn clone(&self) -> Self { *self } } + pub type Matrix4x4 = [u32; 16usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ScaleFactor { @@ -2581,7 +2417,6 @@ pub mod root { #[derive(Debug, Copy, Clone)] pub struct ScaleFactors2D { } - pub type Matrix4x4 = [u32; 16usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct SourceSurface { @@ -2641,6 +2476,7 @@ pub mod root { ePending = 2, eUserAction = 3, eRestore = 4, + eSentinel = 5, } extern "C" { #[link_name = @@ -2651,13 +2487,6 @@ pub mod root { pub const FrameMetrics_START_SCROLL_ID: root::mozilla::layers::FrameMetrics_ViewID = 2; - pub const FrameMetrics_sScrollOffsetUpdateTypeCount: usize = 5; - extern "C" { - #[link_name = - "_ZN7mozilla6layers12FrameMetrics30sHighestScrollOffsetUpdateTypeE"] - pub static FrameMetrics_sHighestScrollOffsetUpdateType: - root::mozilla::layers::FrameMetrics_ScrollOffsetUpdateType; - } #[test] fn bindgen_test_layout_FrameMetrics() { assert_eq!(::std::mem::size_of::() , 184usize , @@ -3488,6 +3317,7 @@ pub mod root { eNone = 0, eRefLayer = 1, eScrollLayer = 2, + eSentinel = 3, } #[repr(C)] #[derive(Debug, Copy)] @@ -3524,13 +3354,6 @@ pub mod root { impl Clone for FocusTarget_FocusTargetData { fn clone(&self) -> Self { *self } } - pub const FocusTarget_sFocusTargetTypeCount: usize = 3; - extern "C" { - #[link_name = - "_ZN7mozilla6layers11FocusTarget23sHighestFocusTargetTypeE"] - pub static FocusTarget_sHighestFocusTargetType: - root::mozilla::layers::FocusTarget_FocusTargetType; - } #[test] fn bindgen_test_layout_FocusTarget() { assert_eq!(::std::mem::size_of::() , 32usize , @@ -7307,11 +7130,10 @@ pub mod root { Content = 1, ContentAndNotify = 2, Style = 3, - EnsurePresShellInitAndFrames = 4, - InterruptibleLayout = 5, - Layout = 6, - Display = 7, - Count = 8, + InterruptibleLayout = 4, + Layout = 5, + Display = 6, + Count = 7, } #[repr(C)] #[derive(Debug, Copy)] @@ -7788,9 +7610,9 @@ pub mod root { pub mParsingMode: root::mozilla::css::SheetParsingMode, pub mType: root::mozilla::StyleBackendType, pub mDisabled: bool, - pub mDirty: bool, pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode, pub mInner: *mut root::mozilla::StyleSheetInfo, + pub mDirty: bool, pub mStyleSets: root::nsTArray, } pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType; @@ -7829,7 +7651,7 @@ pub mod root { RuleRemoved = 4, RuleChanged = 5, } - #[repr(u8)] + #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum StyleSheet_DocumentAssociationMode { OwnedByDocument = 0, @@ -7877,7 +7699,7 @@ pub mod root { } #[test] fn bindgen_test_layout_StyleSheet() { - assert_eq!(::std::mem::size_of::() , 144usize , concat + assert_eq!(::std::mem::size_of::() , 160usize , concat ! ( "Size of: " , stringify ! ( StyleSheet ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( StyleSheet ) )); @@ -7980,7 +7802,7 @@ pub mod root { } #[test] fn bindgen_test_layout_ServoStyleSheet() { - assert_eq!(::std::mem::size_of::() , 152usize , + assert_eq!(::std::mem::size_of::() , 168usize , concat ! ( "Size of: " , stringify ! ( ServoStyleSheet ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -7988,7 +7810,7 @@ pub mod root { "Alignment of " , stringify ! ( ServoStyleSheet ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleSheet ) ) . mRuleList - as * const _ as usize } , 144usize , concat ! ( + as * const _ as usize } , 160usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleSheet ) , "::" , stringify ! ( mRuleList ) )); } @@ -9002,7 +8824,7 @@ pub mod root { } #[test] fn bindgen_test_layout_OffTheBooksMutex() { - assert_eq!(::std::mem::size_of::() , 96usize , + assert_eq!(::std::mem::size_of::() , 72usize , concat ! ( "Size of: " , stringify ! ( OffTheBooksMutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -9010,7 +8832,7 @@ pub mod root { "Alignment of " , stringify ! ( OffTheBooksMutex ) )); assert_eq! (unsafe { & ( * ( 0 as * const OffTheBooksMutex ) ) . - mOwningThread as * const _ as usize } , 88usize , + mOwningThread as * const _ as usize } , 64usize , concat ! ( "Alignment of field: " , stringify ! ( OffTheBooksMutex ) , "::" , stringify ! ( @@ -9028,7 +8850,7 @@ pub mod root { } #[test] fn bindgen_test_layout_Mutex() { - assert_eq!(::std::mem::size_of::() , 96usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 72usize , concat ! ( "Size of: " , stringify ! ( Mutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( Mutex ) )); @@ -9056,12 +8878,12 @@ pub mod root { pub mBlobSerial: [u64; 2usize], pub mOriginAttributes: root::mozilla::OriginAttributes, pub mControlledDocument: *mut ::std::os::raw::c_void, - pub mHash: root::PLDHashNumber, + pub mHash: u32, pub mIsChrome: bool, } #[test] fn bindgen_test_layout_ImageCacheKey() { - assert_eq!(::std::mem::size_of::() , 88usize , + assert_eq!(::std::mem::size_of::() , 80usize , concat ! ( "Size of: " , stringify ! ( ImageCacheKey ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -9101,7 +8923,7 @@ pub mod root { ImageCacheKey ) , "::" , stringify ! ( mHash ) )); assert_eq! (unsafe { & ( * ( 0 as * const ImageCacheKey ) ) . mIsChrome - as * const _ as usize } , 80usize , concat ! ( + as * const _ as usize } , 76usize , concat ! ( "Alignment of field: " , stringify ! ( ImageCacheKey ) , "::" , stringify ! ( mIsChrome ) )); @@ -10499,8 +10321,6 @@ pub mod root { PropertyStyleAnimationValuePair ) , "::" , stringify ! ( mValue ) )); } - pub type ComputedKeyframeValues = - root::nsTArray; #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_3() { assert_eq!(::std::mem::size_of::() , @@ -11762,194 +11582,196 @@ pub mod root { pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell>, } } - pub type va_list = root::__builtin_va_list; - pub type fpos_t = root::__darwin_off_t; #[repr(C)] #[derive(Debug, Copy)] - pub struct __sbuf { - pub _base: *mut ::std::os::raw::c_uchar, - pub _size: ::std::os::raw::c_int, - } - #[test] - fn bindgen_test_layout___sbuf() { - assert_eq!(::std::mem::size_of::<__sbuf>() , 16usize , concat ! ( - "Size of: " , stringify ! ( __sbuf ) )); - assert_eq! (::std::mem::align_of::<__sbuf>() , 8usize , concat ! ( - "Alignment of " , stringify ! ( __sbuf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sbuf ) ) . _base as * const _ as + pub struct _IO_FILE { + pub _flags: ::std::os::raw::c_int, + pub _IO_read_ptr: *mut ::std::os::raw::c_char, + pub _IO_read_end: *mut ::std::os::raw::c_char, + pub _IO_read_base: *mut ::std::os::raw::c_char, + pub _IO_write_base: *mut ::std::os::raw::c_char, + pub _IO_write_ptr: *mut ::std::os::raw::c_char, + pub _IO_write_end: *mut ::std::os::raw::c_char, + pub _IO_buf_base: *mut ::std::os::raw::c_char, + pub _IO_buf_end: *mut ::std::os::raw::c_char, + pub _IO_save_base: *mut ::std::os::raw::c_char, + pub _IO_backup_base: *mut ::std::os::raw::c_char, + pub _IO_save_end: *mut ::std::os::raw::c_char, + pub _markers: *mut root::_IO_marker, + pub _chain: *mut root::_IO_FILE, + pub _fileno: ::std::os::raw::c_int, + pub _flags2: ::std::os::raw::c_int, + pub _old_offset: root::__off_t, + pub _cur_column: ::std::os::raw::c_ushort, + pub _vtable_offset: ::std::os::raw::c_schar, + pub _shortbuf: [::std::os::raw::c_char; 1usize], + pub _lock: *mut root::_IO_lock_t, + pub _offset: root::__off64_t, + pub __pad1: *mut ::std::os::raw::c_void, + pub __pad2: *mut ::std::os::raw::c_void, + pub __pad3: *mut ::std::os::raw::c_void, + pub __pad4: *mut ::std::os::raw::c_void, + pub __pad5: usize, + pub _mode: ::std::os::raw::c_int, + pub _unused2: [::std::os::raw::c_char; 20usize], + } + #[test] + fn bindgen_test_layout__IO_FILE() { + assert_eq!(::std::mem::size_of::<_IO_FILE>() , 216usize , concat ! ( + "Size of: " , stringify ! ( _IO_FILE ) )); + assert_eq! (::std::mem::align_of::<_IO_FILE>() , 8usize , concat ! ( + "Alignment of " , stringify ! ( _IO_FILE ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _flags as * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( __sbuf ) , "::" , - stringify ! ( _base ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sbuf ) ) . _size as * const _ as - usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( __sbuf ) , "::" , - stringify ! ( _size ) )); - } - impl Clone for __sbuf { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __sFILEX { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct __sFILE { - pub _p: *mut ::std::os::raw::c_uchar, - pub _r: ::std::os::raw::c_int, - pub _w: ::std::os::raw::c_int, - pub _flags: ::std::os::raw::c_short, - pub _file: ::std::os::raw::c_short, - pub _bf: root::__sbuf, - pub _lbfsize: ::std::os::raw::c_int, - pub _cookie: *mut ::std::os::raw::c_void, - pub _close: ::std::option::Option ::std::os::raw::c_int>, - pub _read: ::std::option::Option ::std::os::raw::c_int>, - pub _seek: ::std::option::Option root::fpos_t>, - pub _write: ::std::option::Option ::std::os::raw::c_int>, - pub _ub: root::__sbuf, - pub _extra: *mut root::__sFILEX, - pub _ur: ::std::os::raw::c_int, - pub _ubuf: [::std::os::raw::c_uchar; 3usize], - pub _nbuf: [::std::os::raw::c_uchar; 1usize], - pub _lb: root::__sbuf, - pub _blksize: ::std::os::raw::c_int, - pub _offset: root::fpos_t, - } - #[test] - fn bindgen_test_layout___sFILE() { - assert_eq!(::std::mem::size_of::<__sFILE>() , 152usize , concat ! ( - "Size of: " , stringify ! ( __sFILE ) )); - assert_eq! (::std::mem::align_of::<__sFILE>() , 8usize , concat ! ( - "Alignment of " , stringify ! ( __sFILE ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _p as * const _ as - usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _p ) )); + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _flags ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _r as * const _ as - usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _r ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_ptr as * + const _ as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_read_ptr ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _w as * const _ as - usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _w ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_end as * + const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_read_end ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _flags as * const _ as - usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _flags ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_read_base as * + const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_read_base ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _file as * const _ as - usize } , 18usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _file ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_base as * + const _ as usize } , 32usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_write_base ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _bf as * const _ as - usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _bf ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_ptr as * + const _ as usize } , 40usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_write_ptr ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _lbfsize as * const _ - as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _lbfsize ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_write_end as * + const _ as usize } , 48usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_write_end ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _cookie as * const _ as - usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _cookie ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_base as * + const _ as usize } , 56usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_buf_base ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _close as * const _ as - usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _close ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_end as * const + _ as usize } , 64usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_buf_end ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _read as * const _ as - usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _read ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_save_base as * + const _ as usize } , 72usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_save_base ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _seek as * const _ as - usize } , 72usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _seek ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_backup_base as * + const _ as usize } , 80usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_backup_base ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _write as * const _ as - usize } , 80usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _write ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _IO_save_end as * + const _ as usize } , 88usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _IO_save_end ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _ub as * const _ as - usize } , 88usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _ub ) )); + & ( * ( 0 as * const _IO_FILE ) ) . _markers as * const _ + as usize } , 96usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _markers ) )); assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _extra as * const _ as + & ( * ( 0 as * const _IO_FILE ) ) . _chain as * const _ as usize } , 104usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _extra ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _ur as * const _ as - usize } , 112usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _ur ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _ubuf as * const _ as - usize } , 116usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _ubuf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _nbuf as * const _ as - usize } , 119usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _nbuf ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _lb as * const _ as - usize } , 120usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _lb ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _blksize as * const _ - as usize } , 136usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , - stringify ! ( _blksize ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const __sFILE ) ) . _offset as * const _ as - usize } , 144usize , concat ! ( - "Alignment of field: " , stringify ! ( __sFILE ) , "::" , + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _chain ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _fileno as * const _ + as usize } , 112usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _fileno ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _flags2 as * const _ + as usize } , 116usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _flags2 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _old_offset as * const + _ as usize } , 120usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _old_offset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _cur_column as * const + _ as usize } , 128usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _cur_column ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _vtable_offset as * + const _ as usize } , 130usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _vtable_offset ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _shortbuf as * const _ + as usize } , 131usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _shortbuf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _lock as * const _ as + usize } , 136usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _lock ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _offset as * const _ + as usize } , 144usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _offset ) )); - } - impl Clone for __sFILE { + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . __pad1 as * const _ as + usize } , 152usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( __pad1 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . __pad2 as * const _ as + usize } , 160usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( __pad2 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . __pad3 as * const _ as + usize } , 168usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( __pad3 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . __pad4 as * const _ as + usize } , 176usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( __pad4 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . __pad5 as * const _ as + usize } , 184usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( __pad5 ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _mode as * const _ as + usize } , 192usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _mode ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_FILE ) ) . _unused2 as * const _ + as usize } , 196usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , + stringify ! ( _unused2 ) )); + } + impl Clone for _IO_FILE { fn clone(&self) -> Self { *self } } - pub type FILE = root::__sFILE; + pub type FILE = root::_IO_FILE; + pub type va_list = root::__builtin_va_list; #[repr(C)] #[derive(Debug, Copy)] pub struct InfallibleAllocPolicy { @@ -12136,6 +11958,7 @@ pub mod root { NS_ERROR_PLUGIN_BLOCKLISTED = 2152465386, NS_ERROR_PLUGIN_TIME_RANGE_NOT_SUPPORTED = 2152465387, NS_ERROR_PLUGIN_CLICKTOPLAY = 2152465388, + NS_PLUGIN_INIT_PENDING = 4981741, NS_TABLELAYOUT_CELL_NOT_FOUND = 5046272, NS_POSITION_BEFORE_TABLE = 5046275, NS_STATE_PROPERTY_NOT_THERE = 5046277, @@ -12506,6 +12329,39 @@ pub mod root { NS_OK_NO_NAME_CLAUSE_HANDLED = 7864354, } pub type nsrefcnt = root::MozRefCountType; + pub type _IO_lock_t = ::std::os::raw::c_void; + #[repr(C)] + #[derive(Debug, Copy)] + pub struct _IO_marker { + pub _next: *mut root::_IO_marker, + pub _sbuf: *mut root::_IO_FILE, + pub _pos: ::std::os::raw::c_int, + } + #[test] + fn bindgen_test_layout__IO_marker() { + assert_eq!(::std::mem::size_of::<_IO_marker>() , 24usize , concat ! ( + "Size of: " , stringify ! ( _IO_marker ) )); + assert_eq! (::std::mem::align_of::<_IO_marker>() , 8usize , concat ! ( + "Alignment of " , stringify ! ( _IO_marker ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_marker ) ) . _next as * const _ + as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_marker ) , "::" + , stringify ! ( _next ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_marker ) ) . _sbuf as * const _ + as usize } , 8usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_marker ) , "::" + , stringify ! ( _sbuf ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const _IO_marker ) ) . _pos as * const _ as + usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( _IO_marker ) , "::" + , stringify ! ( _pos ) )); + } + impl Clone for _IO_marker { + fn clone(&self) -> Self { *self } + } #[repr(C)] pub struct nsQueryFrame__bindgen_vtable(::std::os::raw::c_void); #[repr(C)] @@ -13593,32 +13449,6 @@ pub mod root { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCSSTokenType { - eCSSToken_Whitespace = 0, - eCSSToken_Comment = 1, - eCSSToken_Ident = 2, - eCSSToken_Function = 3, - eCSSToken_AtKeyword = 4, - eCSSToken_ID = 5, - eCSSToken_Hash = 6, - eCSSToken_Number = 7, - eCSSToken_Dimension = 8, - eCSSToken_Percentage = 9, - eCSSToken_String = 10, - eCSSToken_Bad_String = 11, - eCSSToken_URL = 12, - eCSSToken_Bad_URL = 13, - eCSSToken_Symbol = 14, - eCSSToken_Includes = 15, - eCSSToken_Dashmatch = 16, - eCSSToken_Beginsmatch = 17, - eCSSToken_Endsmatch = 18, - eCSSToken_Containsmatch = 19, - eCSSToken_URange = 20, - eCSSToken_HTMLComment = 21, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSTokenSerializationType { eCSSTokenSerialization_Nothing = 0, eCSSTokenSerialization_Whitespace = 1, @@ -13646,248 +13476,6 @@ pub mod root { eCSSTokenSerialization_Symbol_Asterisk = 23, eCSSTokenSerialization_Other = 24, } - #[repr(C)] - pub struct nsCSSToken { - pub mIdent: root::nsAutoString, - pub mNumber: f32, - pub mInteger: i32, - pub mInteger2: i32, - pub mType: root::nsCSSTokenType, - pub mSymbol: u16, - pub mIntegerValid: bool, - pub mHasSign: bool, - } - #[test] - fn bindgen_test_layout_nsCSSToken() { - assert_eq!(::std::mem::size_of::() , 184usize , concat ! ( - "Size of: " , stringify ! ( nsCSSToken ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( nsCSSToken ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mIdent as * const _ - as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mIdent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mNumber as * const _ - as usize } , 160usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mInteger as * const - _ as usize } , 164usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mInteger ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mInteger2 as * const - _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mInteger2 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mType as * const _ - as usize } , 172usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mSymbol as * const _ - as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mSymbol ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mIntegerValid as * - const _ as usize } , 178usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mIntegerValid ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mHasSign as * const - _ as usize } , 179usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mHasSign ) )); - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsCSSScannerPosition { - pub mOffset: u32, - pub mLineNumber: u32, - pub mLineOffset: u32, - pub mTokenLineNumber: u32, - pub mTokenLineOffset: u32, - pub mTokenOffset: u32, - pub mInitialized: bool, - } - #[test] - fn bindgen_test_layout_nsCSSScannerPosition() { - assert_eq!(::std::mem::size_of::() , 28usize , - concat ! ( - "Size of: " , stringify ! ( nsCSSScannerPosition ) )); - assert_eq! (::std::mem::align_of::() , 4usize , - concat ! ( - "Alignment of " , stringify ! ( nsCSSScannerPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . mOffset as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mOffset ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mLineNumber as * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mLineNumber - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mLineOffset as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mLineOffset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mTokenLineNumber as * const _ as usize } , 12usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( - mTokenLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mTokenLineOffset as * const _ as usize } , 16usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( - mTokenLineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mTokenOffset as * const _ as usize } , 20usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mTokenOffset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mInitialized as * const _ as usize } , 24usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mInitialized - ) )); - } - impl Clone for nsCSSScannerPosition { - fn clone(&self) -> Self { *self } - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCSSScannerExclude { - eCSSScannerExclude_None = 0, - eCSSScannerExclude_Comments = 1, - eCSSScannerExclude_WhitespaceAndComments = 2, - } - #[repr(C)] - #[derive(Debug)] - pub struct nsCSSScanner { - pub mBuffer: *const u16, - pub mOffset: u32, - pub mCount: u32, - pub mLineNumber: u32, - pub mLineOffset: u32, - pub mTokenLineNumber: u32, - pub mTokenLineOffset: u32, - pub mTokenOffset: u32, - pub mRecordStartOffset: u32, - pub mEOFCharacters: root::nsCSSScanner_EOFCharacters, - pub mReporter: *mut root::mozilla::css::ErrorReporter, - pub mRecording: bool, - pub mSeenBadToken: bool, - pub mSeenVariableReference: bool, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCSSScanner_EOFCharacters { - eEOFCharacters_None = 0, - eEOFCharacters_DropBackslash = 1, - eEOFCharacters_ReplacementChar = 2, - eEOFCharacters_Asterisk = 4, - eEOFCharacters_Slash = 8, - eEOFCharacters_DoubleQuote = 16, - eEOFCharacters_SingleQuote = 32, - eEOFCharacters_CloseParen = 64, - } - #[test] - fn bindgen_test_layout_nsCSSScanner() { - assert_eq!(::std::mem::size_of::() , 64usize , concat ! - ( "Size of: " , stringify ! ( nsCSSScanner ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsCSSScanner ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mBuffer as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mBuffer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mOffset as * const - _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mCount as * const - _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mLineNumber as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mLineOffset as * - const _ as usize } , 20usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mLineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mTokenLineNumber - as * const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mTokenLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mTokenLineOffset - as * const _ as usize } , 28usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mTokenLineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mTokenOffset as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mTokenOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mRecordStartOffset - as * const _ as usize } , 36usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mRecordStartOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mEOFCharacters as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mEOFCharacters ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mReporter as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mReporter ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mRecording as * - const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mRecording ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mSeenBadToken as * - const _ as usize } , 57usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mSeenBadToken ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . - mSeenVariableReference as * const _ as usize } , 58usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mSeenVariableReference ) )); - } /** * A "unique identifier". This is modeled after OSF DCE UUIDs. */ @@ -14871,11 +14459,6 @@ pub mod root { AutoSetAsyncStackForNewCalls ) , "::" , stringify ! ( oldAsyncCallIsExplicit ) )); } - pub type WarningReporter = - ::std::option::Option; #[repr(C)] #[derive(Debug)] pub struct AutoHideScriptedCaller { @@ -15037,141 +14620,6 @@ pub mod root { pub struct JSCompartment { _unused: [u8; 0], } - /** - * Describes a single error or warning that occurs in the execution of script. - */ - #[repr(C)] - pub struct JSErrorReport { - pub _base: root::JSErrorBase, - pub linebuf_: *const u16, - pub linebufLength_: usize, - pub tokenOffset_: usize, - pub notes: root::mozilla::UniquePtr, - pub flags: ::std::os::raw::c_uint, - pub exnType: i16, - pub _bitfield_1: u8, - pub __bindgen_padding_0: u8, - } - #[test] - fn bindgen_test_layout_JSErrorReport() { - assert_eq!(::std::mem::size_of::() , 72usize , concat ! - ( "Size of: " , stringify ! ( JSErrorReport ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( JSErrorReport ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebuf_ as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebuf_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebufLength_ as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebufLength_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . tokenOffset_ as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( tokenOffset_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . notes as * const - _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( notes ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . flags as * const - _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( flags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . exnType as * - const _ as usize } , 68usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( exnType ) )); - } - impl JSErrorReport { - #[inline] - pub fn isMuted(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u8; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_isMuted(&mut self, val: bool) { - let mask = 1u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn ownsLinebuf_(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u8; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_ownsLinebuf_(&mut self, val: bool) { - let mask = 2u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(isMuted: bool, ownsLinebuf_: bool) -> u8 { - ({ ({ 0 } | ((isMuted as u8 as u8) << 0usize) & (1u64 as u8)) } | - ((ownsLinebuf_ as u8 as u8) << 1usize) & (2u64 as u8)) - } - } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct JSRuntime { @@ -15254,7 +14702,7 @@ pub mod root { pub struct nsAutoPtr_Proxy { } pub type nsAutoPtr_Proxy_member_function = u8; - pub type PLDHashNumber = usize; + pub type PLDHashNumber = u32; #[repr(C)] pub struct PLDHashTable { pub mOps: *const root::PLDHashTableOps, @@ -15364,8 +14812,8 @@ pub mod root { pub const PLDHashTable_kMinCapacity: u32 = 8; pub const PLDHashTable_kMaxInitialLength: u32 = 33554432; pub const PLDHashTable_kDefaultInitialLength: u32 = 4; - pub const PLDHashTable_kHashBits: u32 = 64; - pub const PLDHashTable_kGoldenRatio: u64 = 2135587859; + pub const PLDHashTable_kHashBits: u32 = 32; + pub const PLDHashTable_kGoldenRatio: u32 = 2654435769; pub const PLDHashTable_kCollisionFlag: root::PLDHashNumber = 1; #[test] fn bindgen_test_layout_PLDHashTable() { @@ -15461,9 +14909,9 @@ pub mod root { } #[test] fn bindgen_test_layout_PLDHashEntryHdr() { - assert_eq!(::std::mem::size_of::() , 8usize , concat + assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( "Size of: " , stringify ! ( PLDHashEntryHdr ) )); - assert_eq! (::std::mem::align_of::() , 8usize , + assert_eq! (::std::mem::align_of::() , 4usize , concat ! ( "Alignment of " , stringify ! ( PLDHashEntryHdr ) )); assert_eq! (unsafe { @@ -16076,7 +15524,7 @@ pub mod root { #[derive(Debug)] pub struct gfxFontFeatureValueSet_ValueList { pub name: ::nsstring::nsStringRepr, - pub featureSelectors: root::nsTArray, + pub featureSelectors: root::nsTArray<::std::os::raw::c_uint>, } #[test] fn bindgen_test_layout_gfxFontFeatureValueSet_ValueList() { @@ -16181,7 +15629,7 @@ pub mod root { pub struct gfxFontFeatureValueSet_FeatureValueHashEntry { pub _base: root::PLDHashEntryHdr, pub mKey: root::gfxFontFeatureValueSet_FeatureValueHashKey, - pub mValues: root::nsTArray, + pub mValues: root::nsTArray<::std::os::raw::c_uint>, } pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyType = *const root::gfxFontFeatureValueSet_FeatureValueHashKey; @@ -16291,7 +15739,7 @@ pub mod root { pub alternateValues: root::nsTArray, pub featureValueLookup: root::RefPtr, pub fontFeatureSettings: root::nsTArray, - pub fontVariationSettings: root::nsTArray, + pub fontVariationSettings: root::nsTArray, pub languageOverride: u32, } #[test] @@ -16427,6 +15875,13 @@ pub mod root { pub enum nsStyleAutoArray_WithSingleInitialElement { WITH_SINGLE_INITIAL_ELEMENT = 0, } + /** + * Currently needs to be 'double' for Cairo compatibility. Could + * become 'float', perhaps, in some configurations. + */ + pub type gfxFloat = f64; + pub type gfxSize = [u64; 2usize]; + pub type nsIntRect = root::mozilla::gfx::IntRect; pub const nsStyleUnit_eStyleUnit_MAX: root::nsStyleUnit = nsStyleUnit::eStyleUnit_Calc; #[repr(u8)] @@ -16898,8 +16353,6 @@ pub mod root { nsEventStatus_eConsumeDoDefault = 2, nsEventStatus_eSentinel = 3, } - pub type gfxSize = [u64; 2usize]; - pub type nsIntRect = root::mozilla::gfx::IntRect; #[repr(C)] #[derive(Debug, Copy)] pub struct pixman_region32_data { @@ -18324,7 +17777,7 @@ pub mod root { * count is 1. */ #[repr(C)] - #[derive(Debug, Copy)] + #[derive(Debug)] pub struct nsStringBuffer { pub mRefCount: u32, pub mStorageSize: u32, @@ -18346,9 +17799,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStringBuffer ) , "::" , stringify ! ( mStorageSize ) )); } - impl Clone for nsStringBuffer { - fn clone(&self) -> Self { *self } - } #[repr(C)] #[derive(Debug, Copy)] pub struct nsIAtom { @@ -20116,7 +19566,7 @@ pub mod root { pub mUpgradeInsecurePreloads: bool, pub mHSTSPrimingURIList: [u64; 6usize], pub mDocumentContainer: u64, - pub mCharacterSet: root::mozilla::NotNull<*const root::nsIDocument_Encoding>, + pub mCharacterSet: root::mozilla::NotNull<*const root::mozilla::Encoding>, pub mCharacterSetSource: i32, pub mParentDocument: *mut root::nsIDocument, pub mCachedRootElement: *mut root::mozilla::dom::Element, @@ -20174,7 +19624,7 @@ pub mod root { */ pub mFrameRequestCallbackCounter: i32, pub mStaticCloneCount: u32, - pub mBlockedTrackingNodes: root::nsTArray, + pub mBlockedTrackingNodes: root::nsTArray>, pub mWindow: *mut root::nsPIDOMWindowInner, pub mCachedEncoder: root::nsCOMPtr, pub mFrameRequestCallbacks: root::nsTArray, @@ -26752,7 +26202,7 @@ pub mod root { pub _base_1: root::nsWrapperCache, pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, - pub mContent: root::nsCOMPtr, + pub mContent: root::nsCOMPtr, /** * Cache of Attrs. */ @@ -26901,57 +26351,57 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_TYPE_SPECIFIC_BITS_OFFSET; + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_IS_EDITABLE; + pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_IS_NATIVE_ANONYMOUS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_85 = + _bindgen_ty_85::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_18 { + pub enum _bindgen_ty_85 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -28374,11 +27824,6 @@ pub mod root { nsLanguageAtomService ) , "::" , stringify ! ( mLocaleLanguage ) )); } - /** - * Currently needs to be 'double' for Cairo compatibility. Could - * become 'float', perhaps, in some configurations. - */ - pub type gfxFloat = f64; #[repr(C)] #[derive(Debug, Copy)] pub struct nsINamed { @@ -32237,7 +31682,7 @@ pub mod root { pub mRefCnt: root::nsAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, pub mBehaviour: root::mozilla::UniquePtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mListener: *mut root::imgINotificationObserver, pub mLoadGroup: root::nsCOMPtr, pub mLoadFlags: root::nsLoadFlags, @@ -33469,7 +32914,7 @@ pub mod root { pub _mOwningThread: root::nsAutoOwningThread, pub mLoader: *mut root::imgLoader, pub mRequest: root::nsCOMPtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mCurrentURI: root::nsCOMPtr, pub mLoadingPrincipal: root::nsCOMPtr, pub mPrincipal: root::nsCOMPtr, @@ -33496,8 +32941,8 @@ pub mod root { pub mImageErrorCode: root::nsresult, pub mBoostCategoriesRequested: u32, pub mMutex: root::mozilla::Mutex, - pub mProgressTracker: root::RefPtr, - pub mImage: root::RefPtr, + pub mProgressTracker: root::RefPtr, + pub mImage: root::RefPtr, pub _bitfield_1: u8, pub __bindgen_padding_0: [u8; 7usize], } @@ -33511,7 +32956,7 @@ pub mod root { pub type imgRequest_HasThreadSafeRefCnt = root::mozilla::TrueType; #[test] fn bindgen_test_layout_imgRequest() { - assert_eq!(::std::mem::size_of::() , 448usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 416usize , concat ! ( "Size of: " , stringify ! ( imgRequest ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( imgRequest ) )); @@ -35084,7 +34529,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_88() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -35095,7 +34540,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_89() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -37397,7 +36842,7 @@ pub mod root { root::nsTArray>; pub type RawGeckoKeyframeList = root::nsTArray; pub type RawGeckoComputedKeyframeValuesList = - root::nsTArray; + root::nsTArray>; pub type RawGeckoStyleAnimationList = root::nsStyleAutoArray; pub type RawGeckoFontFaceRuleList = @@ -38244,48 +37689,48 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_1; pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_20 + root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_87 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_HAS_SCROLLGRAB: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_HAS_SCROLLGRAB; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; + pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_PENDING_RESTYLE_FLAGS; + pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; + pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_ALL_RESTYLE_FLAGS; + pub const ELEMENT_HAS_SCROLLGRAB: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_HAS_SCROLLGRAB; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_87 = + _bindgen_ty_87::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_20 { + pub enum _bindgen_ty_87 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -38874,7 +38319,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_23() { + fn __bindgen_test_layout_IntegralConstant_instantiation_90() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38883,7 +38328,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_24() { + fn __bindgen_test_layout_IntegralConstant_instantiation_91() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38892,7 +38337,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_25() { + fn __bindgen_test_layout_nsCharTraits_instantiation_92() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38903,33 +38348,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_26() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsReadingIterator_instantiation_93() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsReadingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_27() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsWritingIterator_instantiation_94() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsWritingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_28() { + fn __bindgen_test_layout_nsCharTraits_instantiation_95() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38940,33 +38381,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_29() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsReadingIterator_instantiation_96() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsReadingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_30() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsWritingIterator_instantiation_97() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsWritingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_31() { + fn __bindgen_test_layout_nsCharTraits_instantiation_98() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38977,7 +38414,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_32() { + fn __bindgen_test_layout_nsCharTraits_instantiation_99() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38988,7 +38425,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_190104_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_214925_instantiation_100() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38997,7 +38434,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_190140_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_214961_instantiation_101() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39006,7 +38443,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_35() { + fn __bindgen_test_layout_nsTArray_instantiation_102() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39017,7 +38454,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_36() { + fn __bindgen_test_layout_Handle_instantiation_103() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39028,7 +38465,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_37() { + fn __bindgen_test_layout_Handle_instantiation_104() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39039,7 +38476,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_38() { + fn __bindgen_test_layout_Handle_instantiation_105() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39050,7 +38487,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_39() { + fn __bindgen_test_layout_MutableHandle_instantiation_106() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39061,7 +38498,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_40() { + fn __bindgen_test_layout_Rooted_instantiation_107() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39072,7 +38509,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_41() { + fn __bindgen_test_layout_DeletePolicy_instantiation_108() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39083,7 +38520,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_42() { + fn __bindgen_test_layout_nsTArray_instantiation_109() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39094,7 +38531,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_43() { + fn __bindgen_test_layout_nsTArray_instantiation_110() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39105,29 +38542,29 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_44() { - assert_eq!(::std::mem::size_of::>() , 8usize , - concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_111() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , - concat ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_45() { - assert_eq!(::std::mem::size_of::>() , 8usize , - concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_112() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , - concat ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_46() { + fn __bindgen_test_layout_PointTyped_instantiation_113() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39138,7 +38575,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_47() { + fn __bindgen_test_layout_IntPointTyped_instantiation_114() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39149,7 +38586,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_SizeTyped_instantiation_48() { + fn __bindgen_test_layout_SizeTyped_instantiation_115() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39160,7 +38597,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_49() { + fn __bindgen_test_layout_RectTyped_instantiation_116() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39171,7 +38608,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_50() { + fn __bindgen_test_layout_IntPointTyped_instantiation_117() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39182,7 +38619,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntSizeTyped_instantiation_51() { + fn __bindgen_test_layout_IntSizeTyped_instantiation_118() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39193,7 +38630,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_52() { + fn __bindgen_test_layout_IntRectTyped_instantiation_119() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39204,7 +38641,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_MarginTyped_instantiation_53() { + fn __bindgen_test_layout_MarginTyped_instantiation_120() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39215,7 +38652,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_54() { + fn __bindgen_test_layout_RectTyped_instantiation_121() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39226,7 +38663,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_55() { + fn __bindgen_test_layout_IntRectTyped_instantiation_122() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39237,7 +38674,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactor_instantiation_56() { + fn __bindgen_test_layout_ScaleFactor_instantiation_123() { assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( u32 ) )); @@ -39246,7 +38683,7 @@ pub mod root { u32 ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_57() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_124() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39257,7 +38694,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_58() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_125() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39268,7 +38705,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_59() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_126() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39279,7 +38716,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_60() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_127() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39290,7 +38727,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_61() { + fn __bindgen_test_layout_already_AddRefed_instantiation_128() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39301,7 +38738,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_62() { + fn __bindgen_test_layout_already_AddRefed_instantiation_129() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39312,7 +38749,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_63() { + fn __bindgen_test_layout_RefPtr_instantiation_130() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39323,7 +38760,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_64() { + fn __bindgen_test_layout_nsTArray_instantiation_131() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39336,7 +38773,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_65() { + fn __bindgen_test_layout_RefPtr_instantiation_132() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39347,7 +38784,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_66() { + fn __bindgen_test_layout_nsTArray_instantiation_133() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39360,7 +38797,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_WeakPtr_instantiation_67() { + fn __bindgen_test_layout_WeakPtr_instantiation_134() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -39369,7 +38806,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_68() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_135() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39380,7 +38817,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_69() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_136() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39391,7 +38828,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_70() { + fn __bindgen_test_layout_nsTArray_instantiation_137() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39402,7 +38839,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_71() { + fn __bindgen_test_layout_TErrorResult_instantiation_138() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39413,7 +38850,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_72() { + fn __bindgen_test_layout_TErrorResult_instantiation_139() { assert_eq!(::std::mem::size_of::() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39424,7 +38861,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_73() { + fn __bindgen_test_layout_already_AddRefed_instantiation_140() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39435,7 +38872,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_74() { + fn __bindgen_test_layout_Handle_instantiation_141() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39446,7 +38883,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_75() { + fn __bindgen_test_layout_MutableHandle_instantiation_142() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39457,7 +38894,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_76() { + fn __bindgen_test_layout_Handle_instantiation_143() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39468,7 +38905,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_77() { + fn __bindgen_test_layout_nsTArray_instantiation_144() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39479,7 +38916,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_78() { + fn __bindgen_test_layout_Handle_instantiation_145() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39490,7 +38927,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_79() { + fn __bindgen_test_layout_RefPtr_instantiation_146() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39501,7 +38938,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_80() { + fn __bindgen_test_layout_Handle_instantiation_147() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39512,7 +38949,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_81() { + fn __bindgen_test_layout_Handle_instantiation_148() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39523,7 +38960,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_82() { + fn __bindgen_test_layout_already_AddRefed_instantiation_149() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39534,7 +38971,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_83() { + fn __bindgen_test_layout_already_AddRefed_instantiation_150() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39545,7 +38982,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_84() { + fn __bindgen_test_layout_already_AddRefed_instantiation_151() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39556,7 +38993,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_85() { + fn __bindgen_test_layout_Handle_instantiation_152() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39567,7 +39004,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_86() { + fn __bindgen_test_layout_MutableHandle_instantiation_153() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39578,7 +39015,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_87() { + fn __bindgen_test_layout_MutableHandle_instantiation_154() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39589,7 +39026,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_88() { + fn __bindgen_test_layout_DeletePolicy_instantiation_155() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39600,7 +39037,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_89() { + fn __bindgen_test_layout_UniquePtr_instantiation_156() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39611,7 +39048,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_90() { + fn __bindgen_test_layout_DeletePolicy_instantiation_157() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39622,7 +39059,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_91() { + fn __bindgen_test_layout_UniquePtr_instantiation_158() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39633,7 +39070,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_92() { + fn __bindgen_test_layout_DeletePolicy_instantiation_159() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39644,7 +39081,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_93() { + fn __bindgen_test_layout_UniquePtr_instantiation_160() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39655,7 +39092,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_94() { + fn __bindgen_test_layout_DeletePolicy_instantiation_161() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39666,7 +39103,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_95() { + fn __bindgen_test_layout_UniquePtr_instantiation_162() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39677,7 +39114,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_96() { + fn __bindgen_test_layout_DeletePolicy_instantiation_163() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39688,7 +39125,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_97() { + fn __bindgen_test_layout_UniquePtr_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39699,7 +39136,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_iterator_instantiation_98() { + fn __bindgen_test_layout_iterator_instantiation_165() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39710,7 +39147,7 @@ pub mod root { root::std::iterator ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_99() { + fn __bindgen_test_layout_DeletePolicy_instantiation_166() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39721,7 +39158,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_100() { + fn __bindgen_test_layout_UniquePtr_instantiation_167() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39732,7 +39169,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_101() { + fn __bindgen_test_layout_DeletePolicy_instantiation_168() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39743,7 +39180,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_102() { + fn __bindgen_test_layout_UniquePtr_instantiation_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39754,7 +39191,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_103() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_170() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39765,7 +39202,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_104() { + fn __bindgen_test_layout_Handle_instantiation_171() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39776,7 +39213,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_105() { + fn __bindgen_test_layout_MutableHandle_instantiation_172() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39787,7 +39224,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_106() { + fn __bindgen_test_layout_nsTArray_instantiation_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39798,7 +39235,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_107() { + fn __bindgen_test_layout_nsTArray_instantiation_174() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39809,7 +39246,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_108() { + fn __bindgen_test_layout_Heap_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39820,7 +39257,7 @@ pub mod root { root::JS::Heap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_109() { + fn __bindgen_test_layout_Heap_instantiation_176() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39831,7 +39268,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_110() { + fn __bindgen_test_layout_TenuredHeap_instantiation_177() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39842,7 +39279,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_111() { + fn __bindgen_test_layout_already_AddRefed_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39853,20 +39290,20 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_112() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_179() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); - assert_eq!(::std::mem::align_of::>() + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_113() { + fn __bindgen_test_layout_nsTArray_instantiation_180() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39879,7 +39316,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_114() { + fn __bindgen_test_layout_RefPtr_instantiation_181() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39890,7 +39327,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_115() { + fn __bindgen_test_layout_nsTArray_instantiation_182() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39903,7 +39340,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_116() { + fn __bindgen_test_layout_RefPtr_instantiation_183() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39914,7 +39351,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_117() { + fn __bindgen_test_layout_nsTArray_instantiation_184() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39927,18 +39364,18 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_118() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_185() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); + root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_119() { + fn __bindgen_test_layout_RefPtr_instantiation_186() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39949,7 +39386,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_120() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39960,7 +39397,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_121() { + fn __bindgen_test_layout_nsTArray_instantiation_188() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39971,7 +39408,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_122() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39982,7 +39419,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_123() { + fn __bindgen_test_layout_already_AddRefed_instantiation_190() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39993,7 +39430,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_124() { + fn __bindgen_test_layout_already_AddRefed_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40004,7 +39441,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_125() { + fn __bindgen_test_layout_RefPtr_instantiation_192() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40015,18 +39452,18 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_126() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_193() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); + root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_127() { + fn __bindgen_test_layout_already_AddRefed_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40037,7 +39474,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_128() { + fn __bindgen_test_layout_MutableHandle_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40048,7 +39485,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_129() { + fn __bindgen_test_layout_already_AddRefed_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40059,7 +39496,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + fn __bindgen_test_layout_already_AddRefed_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40070,7 +39507,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_131() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40081,7 +39518,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_132() { + fn __bindgen_test_layout_RefPtr_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40092,7 +39529,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_133() { + fn __bindgen_test_layout_Handle_instantiation_200() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40103,7 +39540,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_134() { + fn __bindgen_test_layout_already_AddRefed_instantiation_201() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40114,7 +39551,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_135() { + fn __bindgen_test_layout_already_AddRefed_instantiation_202() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40125,7 +39562,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_136() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_203() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40136,7 +39573,18 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_137() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_204() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_205() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40147,7 +39595,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_138() { + fn __bindgen_test_layout_nsTArray_instantiation_206() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40160,7 +39608,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_139() { + fn __bindgen_test_layout_nsTArray_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40171,7 +39619,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_140() { + fn __bindgen_test_layout_Handle_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40182,7 +39630,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_141() { + fn __bindgen_test_layout_DefaultDelete_instantiation_209() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40193,7 +39641,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_142() { + fn __bindgen_test_layout_UniquePtr_instantiation_210() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40204,7 +39652,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_143() { + fn __bindgen_test_layout_already_AddRefed_instantiation_211() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40215,7 +39663,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_144() { + fn __bindgen_test_layout_nsTArray_instantiation_212() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40226,7 +39674,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_145() { + fn __bindgen_test_layout_Handle_instantiation_213() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40237,7 +39685,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_146() { + fn __bindgen_test_layout_Handle_instantiation_214() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40248,7 +39696,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_147() { + fn __bindgen_test_layout_Handle_instantiation_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40259,7 +39707,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_148() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_216() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40272,7 +39720,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_149() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_217() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40283,7 +39731,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_150() { + fn __bindgen_test_layout_Handle_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40294,7 +39742,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_151() { + fn __bindgen_test_layout_nsTArray_instantiation_219() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40305,7 +39753,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_152() { + fn __bindgen_test_layout_nsTArray_instantiation_220() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40316,7 +39764,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_153() { + fn __bindgen_test_layout_already_AddRefed_instantiation_221() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40327,7 +39775,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_154() { + fn __bindgen_test_layout_already_AddRefed_instantiation_222() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40338,7 +39786,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_155() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_223() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40347,7 +39795,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_156() { + fn __bindgen_test_layout_already_AddRefed_instantiation_224() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40358,7 +39806,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_157() { + fn __bindgen_test_layout_nsTArray_instantiation_225() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40369,33 +39817,33 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_158() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_226() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_159() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_227() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_160() { + fn __bindgen_test_layout_already_AddRefed_instantiation_228() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40406,7 +39854,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_161() { + fn __bindgen_test_layout_DefaultDelete_instantiation_229() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40417,7 +39865,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_162() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_230() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40428,7 +39876,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_163() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_231() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40439,7 +39887,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_164() { + fn __bindgen_test_layout_nsTArray_instantiation_232() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40450,7 +39898,7 @@ pub mod root { root::nsTArray> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_165() { + fn __bindgen_test_layout_already_AddRefed_instantiation_233() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40461,7 +39909,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_166() { + fn __bindgen_test_layout_already_AddRefed_instantiation_234() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40472,7 +39920,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_167() { + fn __bindgen_test_layout_already_AddRefed_instantiation_235() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40483,7 +39931,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_168() { + fn __bindgen_test_layout_already_AddRefed_instantiation_236() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40494,7 +39942,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_169() { + fn __bindgen_test_layout_already_AddRefed_instantiation_237() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40505,7 +39953,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_170() { + fn __bindgen_test_layout_Handle_instantiation_238() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40516,7 +39964,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_171() { + fn __bindgen_test_layout_Handle_instantiation_239() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40527,7 +39975,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_172() { + fn __bindgen_test_layout_Handle_instantiation_240() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40538,7 +39986,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_173() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_241() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40549,7 +39997,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_174() { + fn __bindgen_test_layout_already_AddRefed_instantiation_242() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40560,7 +40008,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_175() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_243() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40571,7 +40019,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_176() { + fn __bindgen_test_layout_Handle_instantiation_244() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40582,7 +40030,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_177() { + fn __bindgen_test_layout_nsTArray_instantiation_245() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40593,7 +40041,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_178() { + fn __bindgen_test_layout_Handle_instantiation_246() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40604,7 +40052,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_179() { + fn __bindgen_test_layout_OwningNonNull_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40615,7 +40063,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_180() { + fn __bindgen_test_layout_OwningNonNull_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40626,7 +40074,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_181() { + fn __bindgen_test_layout_OwningNonNull_instantiation_249() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40637,7 +40085,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_182() { + fn __bindgen_test_layout_Handle_instantiation_250() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40648,7 +40096,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_183() { + fn __bindgen_test_layout_Handle_instantiation_251() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40659,7 +40107,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_184() { + fn __bindgen_test_layout_Handle_instantiation_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40670,7 +40118,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_185() { + fn __bindgen_test_layout_MutableHandle_instantiation_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40681,7 +40129,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_186() { + fn __bindgen_test_layout_Handle_instantiation_254() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40692,7 +40140,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_187() { + fn __bindgen_test_layout_MutableHandle_instantiation_255() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40703,7 +40151,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_188() { + fn __bindgen_test_layout_Handle_instantiation_256() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40714,7 +40162,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_189() { + fn __bindgen_test_layout_MutableHandle_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40725,7 +40173,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_190() { + fn __bindgen_test_layout_Handle_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40736,7 +40184,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_191() { + fn __bindgen_test_layout_Handle_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40747,7 +40195,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_192() { + fn __bindgen_test_layout_Handle_instantiation_260() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40758,7 +40206,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_193() { + fn __bindgen_test_layout_MutableHandle_instantiation_261() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40769,7 +40217,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_194() { + fn __bindgen_test_layout_RefPtr_instantiation_262() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40780,7 +40228,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_195() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_263() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40791,7 +40239,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_196() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_264() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40802,7 +40250,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_197() { + fn __bindgen_test_layout_already_AddRefed_instantiation_265() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40813,7 +40261,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_198() { + fn __bindgen_test_layout_already_AddRefed_instantiation_266() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40824,20 +40272,20 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_199() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_267() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_200() { + fn __bindgen_test_layout_already_AddRefed_instantiation_268() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40848,7 +40296,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_201() { + fn __bindgen_test_layout_already_AddRefed_instantiation_269() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40859,7 +40307,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_202() { + fn __bindgen_test_layout_already_AddRefed_instantiation_270() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40870,7 +40318,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_203() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_271() { assert_eq!(::std::mem::size_of::<[u64; 31usize]>() , 248usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40881,7 +40329,7 @@ pub mod root { [u64; 31usize] ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_204() { + fn __bindgen_test_layout_MutableHandle_instantiation_272() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40892,7 +40340,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_205() { + fn __bindgen_test_layout_MutableHandle_instantiation_273() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40903,7 +40351,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_206() { + fn __bindgen_test_layout_already_AddRefed_instantiation_274() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40914,7 +40362,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_207() { + fn __bindgen_test_layout_DefaultDelete_instantiation_275() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40925,7 +40373,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_208() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_276() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40936,7 +40384,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_209() { + fn __bindgen_test_layout_Rooted_instantiation_277() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40947,7 +40395,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_210() { + fn __bindgen_test_layout_Rooted_instantiation_278() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40958,7 +40406,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_211() { + fn __bindgen_test_layout_already_AddRefed_instantiation_279() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40969,7 +40417,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_212() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_280() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40980,7 +40428,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_213() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_281() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40991,20 +40439,20 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_214() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_282() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); - assert_eq!(::std::mem::align_of::>() + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_215() { + fn __bindgen_test_layout_nsTArray_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41015,7 +40463,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_216() { + fn __bindgen_test_layout_Handle_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41026,7 +40474,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_217() { + fn __bindgen_test_layout_MutableHandle_instantiation_285() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41037,7 +40485,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_218() { + fn __bindgen_test_layout_Handle_instantiation_286() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41048,7 +40496,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_219() { + fn __bindgen_test_layout_MutableHandle_instantiation_287() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41059,7 +40507,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_220() { + fn __bindgen_test_layout_nsTArray_instantiation_288() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41070,7 +40518,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_221() { + fn __bindgen_test_layout_Handle_instantiation_289() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41081,7 +40529,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_222() { + fn __bindgen_test_layout_RefPtr_instantiation_290() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41092,7 +40540,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_223() { + fn __bindgen_test_layout_RefPtr_instantiation_291() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41103,7 +40551,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_224() { + fn __bindgen_test_layout_RefPtr_instantiation_292() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41114,7 +40562,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_225() { + fn __bindgen_test_layout_nsTArray_instantiation_293() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41127,7 +40575,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_226() { + fn __bindgen_test_layout_RefPtr_instantiation_294() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41138,7 +40586,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_227() { + fn __bindgen_test_layout_already_AddRefed_instantiation_295() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41149,7 +40597,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_228() { + fn __bindgen_test_layout_already_AddRefed_instantiation_296() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41160,7 +40608,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_229() { + fn __bindgen_test_layout_Handle_instantiation_297() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41171,7 +40619,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_230() { + fn __bindgen_test_layout_nsTArray_instantiation_298() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41182,7 +40630,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_231() { + fn __bindgen_test_layout_RefPtr_instantiation_299() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41195,7 +40643,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_232() { + fn __bindgen_test_layout_nsTArray_instantiation_300() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41208,7 +40656,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_233() { + fn __bindgen_test_layout_RefPtr_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41221,7 +40669,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_234() { + fn __bindgen_test_layout_UniquePtr_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41232,7 +40680,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_235() { + fn __bindgen_test_layout_nsTArray_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41243,7 +40691,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_236() { + fn __bindgen_test_layout_Handle_instantiation_304() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41254,7 +40702,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_237() { + fn __bindgen_test_layout_MutableHandle_instantiation_305() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41265,7 +40713,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_238() { + fn __bindgen_test_layout_Handle_instantiation_306() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41276,7 +40724,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_239() { + fn __bindgen_test_layout_MutableHandle_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41287,7 +40735,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_240() { + fn __bindgen_test_layout_already_AddRefed_instantiation_308() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41298,7 +40746,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_241() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_309() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41309,7 +40757,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_242() { + fn __bindgen_test_layout_OwningNonNull_instantiation_310() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41322,7 +40770,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_243() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_311() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41333,7 +40781,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_244() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41344,7 +40792,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_245() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41355,7 +40803,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_246() { + fn __bindgen_test_layout_DefaultDelete_instantiation_314() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41366,7 +40814,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_247() { + fn __bindgen_test_layout_already_AddRefed_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41377,7 +40825,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_248() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_316() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41388,7 +40836,7 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_249() { + fn __bindgen_test_layout_already_AddRefed_instantiation_317() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41399,7 +40847,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_250() { + fn __bindgen_test_layout_already_AddRefed_instantiation_318() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41410,7 +40858,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_251() { + fn __bindgen_test_layout_already_AddRefed_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41421,7 +40869,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_252() { + fn __bindgen_test_layout_already_AddRefed_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41432,7 +40880,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_253() { + fn __bindgen_test_layout_already_AddRefed_instantiation_321() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41443,7 +40891,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_254() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41454,7 +40902,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_255() { + fn __bindgen_test_layout_already_AddRefed_instantiation_323() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41465,7 +40913,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_256() { + fn __bindgen_test_layout_DefaultDelete_instantiation_324() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41476,7 +40924,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_257() { + fn __bindgen_test_layout_UniquePtr_instantiation_325() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41487,7 +40935,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_258() { + fn __bindgen_test_layout_DefaultDelete_instantiation_326() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41498,7 +40946,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_259() { + fn __bindgen_test_layout_UniquePtr_instantiation_327() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41509,7 +40957,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_260() { + fn __bindgen_test_layout_already_AddRefed_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41520,7 +40968,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_261() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_329() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41529,7 +40977,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_262() { + fn __bindgen_test_layout_nsTArray_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41540,7 +40988,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_263() { + fn __bindgen_test_layout_nsTArray_instantiation_331() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41551,7 +40999,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_264() { + fn __bindgen_test_layout_already_AddRefed_instantiation_332() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41562,7 +41010,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_265() { + fn __bindgen_test_layout_already_AddRefed_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41573,7 +41021,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_266() { + fn __bindgen_test_layout_Maybe_instantiation_334() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41584,7 +41032,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_267() { + fn __bindgen_test_layout_Maybe_instantiation_335() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41595,7 +41043,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_268() { + fn __bindgen_test_layout_already_AddRefed_instantiation_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41606,7 +41054,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_269() { + fn __bindgen_test_layout_already_AddRefed_instantiation_337() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41617,7 +41065,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_270() { + fn __bindgen_test_layout_DefaultDelete_instantiation_338() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41628,7 +41076,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_271() { + fn __bindgen_test_layout_UniquePtr_instantiation_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41639,7 +41087,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_272() { + fn __bindgen_test_layout_DefaultDelete_instantiation_340() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41650,7 +41098,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_273() { + fn __bindgen_test_layout_UniquePtr_instantiation_341() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41661,7 +41109,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_274() { + fn __bindgen_test_layout_already_AddRefed_instantiation_342() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41672,7 +41120,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_275() { + fn __bindgen_test_layout_Maybe_instantiation_343() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41683,7 +41131,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_276() { + fn __bindgen_test_layout_DefaultDelete_instantiation_344() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41694,7 +41142,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_277() { + fn __bindgen_test_layout_DefaultDelete_instantiation_345() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41705,7 +41153,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_278() { + fn __bindgen_test_layout_pair_instantiation_346() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41716,7 +41164,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_279() { + fn __bindgen_test_layout_nsTArray_instantiation_347() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -41731,7 +41179,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_280() { + fn __bindgen_test_layout_already_AddRefed_instantiation_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41742,7 +41190,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_281() { + fn __bindgen_test_layout_nsTArray_instantiation_349() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41753,7 +41201,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_282() { + fn __bindgen_test_layout_nsTArray_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41764,7 +41212,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_283() { + fn __bindgen_test_layout_nsTArray_instantiation_351() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41775,7 +41223,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_284() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_352() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41786,7 +41234,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_285() { + fn __bindgen_test_layout_RefPtr_instantiation_353() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41797,7 +41245,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_286() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_354() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41808,7 +41256,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_287() { + fn __bindgen_test_layout_DefaultDelete_instantiation_355() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41819,7 +41267,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_288() { + fn __bindgen_test_layout_UniquePtr_instantiation_356() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41830,7 +41278,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_289() { + fn __bindgen_test_layout_DefaultDelete_instantiation_357() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41841,7 +41289,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_290() { + fn __bindgen_test_layout_UniquePtr_instantiation_358() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41852,7 +41300,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_291() { + fn __bindgen_test_layout_RefPtr_instantiation_359() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41863,7 +41311,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_292() { + fn __bindgen_test_layout_RefPtr_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41874,7 +41322,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_293() { + fn __bindgen_test_layout_NonNull_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41887,7 +41335,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_294() { + fn __bindgen_test_layout_NonNull_instantiation_362() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41900,7 +41348,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_295() { + fn __bindgen_test_layout_Handle_instantiation_363() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41911,7 +41359,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_296() { + fn __bindgen_test_layout_MutableHandle_instantiation_364() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41922,7 +41370,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_297() { + fn __bindgen_test_layout_Maybe_instantiation_365() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41933,7 +41381,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_298() { + fn __bindgen_test_layout_Maybe_instantiation_366() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41944,7 +41392,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_299() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_367() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41955,7 +41403,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_300() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_368() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41966,7 +41414,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_301() { + fn __bindgen_test_layout_already_AddRefed_instantiation_369() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41977,7 +41425,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_302() { + fn __bindgen_test_layout_already_AddRefed_instantiation_370() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41988,7 +41436,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_303() { + fn __bindgen_test_layout_nsTArray_instantiation_371() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41999,7 +41447,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_304() { + fn __bindgen_test_layout_nsTArray_instantiation_372() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42010,7 +41458,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_305() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_373() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42021,7 +41469,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_306() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_374() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42034,7 +41482,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_307() { + fn __bindgen_test_layout_already_AddRefed_instantiation_375() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42045,7 +41493,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_308() { + fn __bindgen_test_layout_nsTArray_instantiation_376() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42058,7 +41506,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_309() { + fn __bindgen_test_layout_Handle_instantiation_377() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42069,7 +41517,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_310() { + fn __bindgen_test_layout_Handle_instantiation_378() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42080,7 +41528,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_311() { + fn __bindgen_test_layout_RefPtr_instantiation_379() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42091,7 +41539,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_312() { + fn __bindgen_test_layout_Handle_instantiation_380() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42102,7 +41550,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_313() { + fn __bindgen_test_layout_MutableHandle_instantiation_381() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42113,7 +41561,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_314() { + fn __bindgen_test_layout_Sequence_instantiation_382() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42122,7 +41570,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_315() { + fn __bindgen_test_layout_Handle_instantiation_383() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42133,7 +41581,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_316() { + fn __bindgen_test_layout_Sequence_instantiation_384() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42142,7 +41590,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_317() { + fn __bindgen_test_layout_Sequence_instantiation_385() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -42151,7 +41599,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_318() { + fn __bindgen_test_layout_Handle_instantiation_386() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42162,7 +41610,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_319() { + fn __bindgen_test_layout_Handle_instantiation_387() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42173,7 +41621,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_320() { + fn __bindgen_test_layout_MutableHandle_instantiation_388() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42184,7 +41632,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_321() { + fn __bindgen_test_layout_Handle_instantiation_389() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42195,7 +41643,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_322() { + fn __bindgen_test_layout_MutableHandle_instantiation_390() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42206,7 +41654,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_323() { + fn __bindgen_test_layout_Handle_instantiation_391() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42217,7 +41665,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_324() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_392() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42228,7 +41676,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_325() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_393() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42239,7 +41687,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_326() { + fn __bindgen_test_layout_Handle_instantiation_394() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42250,7 +41698,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_327() { + fn __bindgen_test_layout_nsTArray_instantiation_395() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42261,7 +41709,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_328() { + fn __bindgen_test_layout_nsTArray_instantiation_396() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42272,7 +41720,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_329() { + fn __bindgen_test_layout_nsTArray_instantiation_397() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42283,7 +41731,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_330() { + fn __bindgen_test_layout_already_AddRefed_instantiation_398() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42294,7 +41742,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_331() { + fn __bindgen_test_layout_Handle_instantiation_399() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42305,7 +41753,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_332() { + fn __bindgen_test_layout_nsTArray_instantiation_400() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -42316,7 +41764,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_333() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_401() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 37057dae8f82..3d39ad6a1c8e 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -1041,19 +1041,6 @@ pub mod root { } pub type pair_first_type<_T1> = _T1; pub type pair_second_type<_T2> = _T2; - pub type pair__EnableB = u8; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct pair__CheckArgs { - pub _address: u8, - } - pub type pair__CheckArgsDep = u8; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct pair__CheckTupleLikeConstructor { - pub _address: u8, - } - pub type pair__CheckTLC = u8; #[repr(C)] #[derive(Debug, Copy)] pub struct input_iterator_tag { @@ -1073,98 +1060,40 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] - #[derive(Debug, Copy)] - pub struct forward_iterator_tag { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_forward_iterator_tag() { - assert_eq!(::std::mem::size_of::() , 1usize - , concat ! ( - "Size of: " , stringify ! ( forward_iterator_tag ) )); - assert_eq! (::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of " , stringify ! ( forward_iterator_tag ) - )); - } - impl Clone for forward_iterator_tag { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct bidirectional_iterator_tag { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_bidirectional_iterator_tag() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of: " , stringify ! ( bidirectional_iterator_tag - ) )); - assert_eq! (::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of " , stringify ! ( - bidirectional_iterator_tag ) )); - } - impl Clone for bidirectional_iterator_tag { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct random_access_iterator_tag { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_random_access_iterator_tag() { - assert_eq!(::std::mem::size_of::() , - 1usize , concat ! ( - "Size of: " , stringify ! ( random_access_iterator_tag - ) )); - assert_eq! (::std::mem::align_of::() , - 1usize , concat ! ( - "Alignment of " , stringify ! ( - random_access_iterator_tag ) )); - } - impl Clone for random_access_iterator_tag { - fn clone(&self) -> Self { *self } - } - #[repr(C)] - pub struct iterator_traits { - pub _address: u8, - } - #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iterator { pub _address: u8, } + pub type iterator_iterator_category<_Category> = _Category; pub type iterator_value_type<_Tp> = _Tp; pub type iterator_difference_type<_Distance> = _Distance; pub type iterator_pointer<_Pointer> = _Pointer; pub type iterator_reference<_Reference> = _Reference; - pub type iterator_iterator_category<_Category> = _Category; #[repr(C)] - pub struct reverse_iterator<_Iter> { - pub __t: _Iter, - pub current: _Iter, - pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iter>>, + pub struct iterator_traits { + pub _address: u8, + } + #[repr(C)] + pub struct reverse_iterator<_Iterator> { + pub current: _Iterator, + pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<_Iterator>>, } - pub type reverse_iterator_iterator_type<_Iter> = _Iter; + pub type reverse_iterator___traits_type = root::std::iterator_traits; + pub type reverse_iterator_iterator_type<_Iterator> = _Iterator; pub type reverse_iterator_difference_type = - root::std::iterator_traits; - pub type reverse_iterator_reference = root::std::iterator_traits; - pub type reverse_iterator_pointer = root::std::iterator_traits; + root::std::reverse_iterator___traits_type; + pub type reverse_iterator_pointer = + root::std::reverse_iterator___traits_type; + pub type reverse_iterator_reference = + root::std::reverse_iterator___traits_type; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct atomic { } - pub type atomic___base = u8; - #[repr(C)] - pub struct __bit_const_reference { - pub __seg_: root::std::__bit_const_reference___storage_pointer, - pub __mask_: root::std::__bit_const_reference___storage_type, - } - pub type __bit_const_reference___storage_type = [u8; 0usize]; - pub type __bit_const_reference___storage_pointer = [u8; 0usize]; + } + pub mod __gnu_cxx { + #[allow(unused_imports)] + use self::super::super::root; } pub mod mozilla { #[allow(unused_imports)] @@ -1208,9 +1137,8 @@ pub mod root { root::nsSubstringTuple; pub type nsStringRepr_string_type = ::nsstring::nsStringRepr; pub type nsStringRepr_const_iterator = - root::nsReadingIterator; - pub type nsStringRepr_iterator = - root::nsWritingIterator; + root::nsReadingIterator; + pub type nsStringRepr_iterator = root::nsWritingIterator; pub type nsStringRepr_comparator_type = root::nsStringComparator; pub type nsStringRepr_char_iterator = *mut root::mozilla::detail::nsStringRepr_char_type; @@ -1300,9 +1228,9 @@ pub mod root { root::nsCSubstringTuple; pub type nsCStringRepr_string_type = root::nsCString; pub type nsCStringRepr_const_iterator = - root::nsReadingIterator; + root::nsReadingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_iterator = - root::nsWritingIterator; + root::nsWritingIterator<::std::os::raw::c_char>; pub type nsCStringRepr_comparator_type = root::nsCStringComparator; pub type nsCStringRepr_char_iterator = @@ -1398,7 +1326,7 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct MutexImpl { - pub platformData_: [*mut ::std::os::raw::c_void; 8usize], + pub platformData_: [*mut ::std::os::raw::c_void; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1407,7 +1335,7 @@ pub mod root { } #[test] fn bindgen_test_layout_MutexImpl() { - assert_eq!(::std::mem::size_of::() , 64usize , + assert_eq!(::std::mem::size_of::() , 40usize , concat ! ( "Size of: " , stringify ! ( MutexImpl ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -1496,101 +1424,7 @@ pub mod root { pub mod css { #[allow(unused_imports)] use self::super::super::super::root; - #[repr(C)] - pub struct ErrorReporter { - 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, - pub mInnerWindowID: u64, - pub mErrorLineNumber: u32, - pub mPrevErrorLineNumber: u32, - pub mErrorColNumber: u32, - } - #[test] - fn bindgen_test_layout_ErrorReporter() { - assert_eq!(::std::mem::size_of::() , 248usize , - concat ! ( - "Size of: " , stringify ! ( ErrorReporter ) )); - assert_eq! (::std::mem::align_of::() , 8usize , - concat ! ( - "Alignment of " , stringify ! ( ErrorReporter ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mError as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mError ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mErrorLine as * const _ as usize } , 160usize , - concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mErrorLine - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mFileName - as * const _ as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mFileName ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mScanner - as * const _ as usize } , 192usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mScanner ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mSheet as - * const _ as usize } , 200usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mSheet ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mLoader - as * const _ as usize } , 208usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mLoader ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . mURI as * - const _ as usize } , 216usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( mURI ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mInnerWindowID as * const _ as usize } , 224usize - , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mInnerWindowID ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mErrorLineNumber as * const _ as usize } , - 232usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mErrorLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mPrevErrorLineNumber as * const _ as usize } , - 236usize , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mPrevErrorLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const ErrorReporter ) ) . - mErrorColNumber as * const _ as usize } , 240usize - , concat ! ( - "Alignment of field: " , stringify ! ( - ErrorReporter ) , "::" , stringify ! ( - mErrorColNumber ) )); - } - #[repr(u8)] + #[repr(u32)] /** * 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 @@ -2284,7 +2118,7 @@ pub mod root { } } #[repr(C)] - #[derive(Debug, Copy)] + #[derive(Debug)] pub struct ThreadSafeAutoRefCnt { pub mValue: u64, } @@ -2305,9 +2139,6 @@ pub mod root { ThreadSafeAutoRefCnt ) , "::" , stringify ! ( mValue ) )); } - impl Clone for ThreadSafeAutoRefCnt { - fn clone(&self) -> Self { *self } - } #[repr(C)] #[derive(Debug)] pub struct OwningNonNull { @@ -2471,6 +2302,7 @@ pub mod root { impl Clone for FontVariation { fn clone(&self) -> Self { *self } } + pub type Matrix4x4 = [u32; 16usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ScaleFactor { @@ -2479,7 +2311,6 @@ pub mod root { #[derive(Debug, Copy, Clone)] pub struct ScaleFactors2D { } - pub type Matrix4x4 = [u32; 16usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct SourceSurface { @@ -2539,6 +2370,7 @@ pub mod root { ePending = 2, eUserAction = 3, eRestore = 4, + eSentinel = 5, } extern "C" { #[link_name = @@ -2549,13 +2381,6 @@ pub mod root { pub const FrameMetrics_START_SCROLL_ID: root::mozilla::layers::FrameMetrics_ViewID = 2; - pub const FrameMetrics_sScrollOffsetUpdateTypeCount: usize = 5; - extern "C" { - #[link_name = - "_ZN7mozilla6layers12FrameMetrics30sHighestScrollOffsetUpdateTypeE"] - pub static FrameMetrics_sHighestScrollOffsetUpdateType: - root::mozilla::layers::FrameMetrics_ScrollOffsetUpdateType; - } #[test] fn bindgen_test_layout_FrameMetrics() { assert_eq!(::std::mem::size_of::() , 184usize , @@ -3386,6 +3211,7 @@ pub mod root { eNone = 0, eRefLayer = 1, eScrollLayer = 2, + eSentinel = 3, } #[repr(C)] #[derive(Debug, Copy)] @@ -3422,13 +3248,6 @@ pub mod root { impl Clone for FocusTarget_FocusTargetData { fn clone(&self) -> Self { *self } } - pub const FocusTarget_sFocusTargetTypeCount: usize = 3; - extern "C" { - #[link_name = - "_ZN7mozilla6layers11FocusTarget23sHighestFocusTargetTypeE"] - pub static FocusTarget_sHighestFocusTargetType: - root::mozilla::layers::FocusTarget_FocusTargetType; - } #[test] fn bindgen_test_layout_FocusTarget() { assert_eq!(::std::mem::size_of::() , 32usize , @@ -7159,11 +6978,10 @@ pub mod root { Content = 1, ContentAndNotify = 2, Style = 3, - EnsurePresShellInitAndFrames = 4, - InterruptibleLayout = 5, - Layout = 6, - Display = 7, - Count = 8, + InterruptibleLayout = 4, + Layout = 5, + Display = 6, + Count = 7, } #[repr(C)] #[derive(Debug, Copy)] @@ -7642,9 +7460,9 @@ pub mod root { pub mParsingMode: root::mozilla::css::SheetParsingMode, pub mType: root::mozilla::StyleBackendType, pub mDisabled: bool, - pub mDirty: bool, pub mDocumentAssociationMode: root::mozilla::StyleSheet_DocumentAssociationMode, pub mInner: *mut root::mozilla::StyleSheetInfo, + pub mDirty: bool, pub mStyleSets: root::nsTArray, } pub type StyleSheet_HasThreadSafeRefCnt = root::mozilla::FalseType; @@ -7683,7 +7501,7 @@ pub mod root { RuleRemoved = 4, RuleChanged = 5, } - #[repr(u8)] + #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum StyleSheet_DocumentAssociationMode { OwnedByDocument = 0, @@ -7731,7 +7549,7 @@ pub mod root { } #[test] fn bindgen_test_layout_StyleSheet() { - assert_eq!(::std::mem::size_of::() , 136usize , concat + assert_eq!(::std::mem::size_of::() , 152usize , concat ! ( "Size of: " , stringify ! ( StyleSheet ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( StyleSheet ) )); @@ -7834,7 +7652,7 @@ pub mod root { } #[test] fn bindgen_test_layout_ServoStyleSheet() { - assert_eq!(::std::mem::size_of::() , 144usize , + assert_eq!(::std::mem::size_of::() , 160usize , concat ! ( "Size of: " , stringify ! ( ServoStyleSheet ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -7842,7 +7660,7 @@ pub mod root { "Alignment of " , stringify ! ( ServoStyleSheet ) )); assert_eq! (unsafe { & ( * ( 0 as * const ServoStyleSheet ) ) . mRuleList - as * const _ as usize } , 136usize , concat ! ( + as * const _ as usize } , 152usize , concat ! ( "Alignment of field: " , stringify ! ( ServoStyleSheet ) , "::" , stringify ! ( mRuleList ) )); } @@ -8746,7 +8564,7 @@ pub mod root { } #[test] fn bindgen_test_layout_OffTheBooksMutex() { - assert_eq!(::std::mem::size_of::() , 64usize , + assert_eq!(::std::mem::size_of::() , 40usize , concat ! ( "Size of: " , stringify ! ( OffTheBooksMutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -8765,7 +8583,7 @@ pub mod root { } #[test] fn bindgen_test_layout_Mutex() { - assert_eq!(::std::mem::size_of::() , 64usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 40usize , concat ! ( "Size of: " , stringify ! ( Mutex ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( Mutex ) )); @@ -8793,12 +8611,12 @@ pub mod root { pub mBlobSerial: [u64; 2usize], pub mOriginAttributes: root::mozilla::OriginAttributes, pub mControlledDocument: *mut ::std::os::raw::c_void, - pub mHash: root::PLDHashNumber, + pub mHash: u32, pub mIsChrome: bool, } #[test] fn bindgen_test_layout_ImageCacheKey() { - assert_eq!(::std::mem::size_of::() , 88usize , + assert_eq!(::std::mem::size_of::() , 80usize , concat ! ( "Size of: " , stringify ! ( ImageCacheKey ) )); assert_eq! (::std::mem::align_of::() , 8usize , @@ -8838,7 +8656,7 @@ pub mod root { ImageCacheKey ) , "::" , stringify ! ( mHash ) )); assert_eq! (unsafe { & ( * ( 0 as * const ImageCacheKey ) ) . mIsChrome - as * const _ as usize } , 80usize , concat ! ( + as * const _ as usize } , 76usize , concat ! ( "Alignment of field: " , stringify ! ( ImageCacheKey ) , "::" , stringify ! ( mIsChrome ) )); @@ -10236,8 +10054,6 @@ pub mod root { PropertyStyleAnimationValuePair ) , "::" , stringify ! ( mValue ) )); } - pub type ComputedKeyframeValues = - root::nsTArray; #[test] fn __bindgen_test_layout_DefaultDelete_instantiation_3() { assert_eq!(::std::mem::size_of::() , @@ -11678,6 +11494,7 @@ pub mod root { NS_ERROR_PLUGIN_BLOCKLISTED = 2152465386, NS_ERROR_PLUGIN_TIME_RANGE_NOT_SUPPORTED = 2152465387, NS_ERROR_PLUGIN_CLICKTOPLAY = 2152465388, + NS_PLUGIN_INIT_PENDING = 4981741, NS_TABLELAYOUT_CELL_NOT_FOUND = 5046272, NS_POSITION_BEFORE_TABLE = 5046275, NS_STATE_PROPERTY_NOT_THERE = 5046277, @@ -13131,32 +12948,6 @@ pub mod root { } #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCSSTokenType { - eCSSToken_Whitespace = 0, - eCSSToken_Comment = 1, - eCSSToken_Ident = 2, - eCSSToken_Function = 3, - eCSSToken_AtKeyword = 4, - eCSSToken_ID = 5, - eCSSToken_Hash = 6, - eCSSToken_Number = 7, - eCSSToken_Dimension = 8, - eCSSToken_Percentage = 9, - eCSSToken_String = 10, - eCSSToken_Bad_String = 11, - eCSSToken_URL = 12, - eCSSToken_Bad_URL = 13, - eCSSToken_Symbol = 14, - eCSSToken_Includes = 15, - eCSSToken_Dashmatch = 16, - eCSSToken_Beginsmatch = 17, - eCSSToken_Endsmatch = 18, - eCSSToken_Containsmatch = 19, - eCSSToken_URange = 20, - eCSSToken_HTMLComment = 21, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSTokenSerializationType { eCSSTokenSerialization_Nothing = 0, eCSSTokenSerialization_Whitespace = 1, @@ -13184,248 +12975,6 @@ pub mod root { eCSSTokenSerialization_Symbol_Asterisk = 23, eCSSTokenSerialization_Other = 24, } - #[repr(C)] - pub struct nsCSSToken { - pub mIdent: root::nsAutoString, - pub mNumber: f32, - pub mInteger: i32, - pub mInteger2: i32, - pub mType: root::nsCSSTokenType, - pub mSymbol: u16, - pub mIntegerValid: bool, - pub mHasSign: bool, - } - #[test] - fn bindgen_test_layout_nsCSSToken() { - assert_eq!(::std::mem::size_of::() , 184usize , concat ! ( - "Size of: " , stringify ! ( nsCSSToken ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( - "Alignment of " , stringify ! ( nsCSSToken ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mIdent as * const _ - as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mIdent ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mNumber as * const _ - as usize } , 160usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mInteger as * const - _ as usize } , 164usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mInteger ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mInteger2 as * const - _ as usize } , 168usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mInteger2 ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mType as * const _ - as usize } , 172usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mType ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mSymbol as * const _ - as usize } , 176usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mSymbol ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mIntegerValid as * - const _ as usize } , 178usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mIntegerValid ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSToken ) ) . mHasSign as * const - _ as usize } , 179usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSToken ) , "::" - , stringify ! ( mHasSign ) )); - } - #[repr(C)] - #[derive(Debug, Copy)] - pub struct nsCSSScannerPosition { - pub mOffset: u32, - pub mLineNumber: u32, - pub mLineOffset: u32, - pub mTokenLineNumber: u32, - pub mTokenLineOffset: u32, - pub mTokenOffset: u32, - pub mInitialized: bool, - } - #[test] - fn bindgen_test_layout_nsCSSScannerPosition() { - assert_eq!(::std::mem::size_of::() , 28usize , - concat ! ( - "Size of: " , stringify ! ( nsCSSScannerPosition ) )); - assert_eq! (::std::mem::align_of::() , 4usize , - concat ! ( - "Alignment of " , stringify ! ( nsCSSScannerPosition ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . mOffset as - * const _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mOffset ) - )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mLineNumber as * const _ as usize } , 4usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mLineNumber - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mLineOffset as * const _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mLineOffset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mTokenLineNumber as * const _ as usize } , 12usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( - mTokenLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mTokenLineOffset as * const _ as usize } , 16usize , - concat ! ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( - mTokenLineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mTokenOffset as * const _ as usize } , 20usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mTokenOffset - ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScannerPosition ) ) . - mInitialized as * const _ as usize } , 24usize , concat ! - ( - "Alignment of field: " , stringify ! ( - nsCSSScannerPosition ) , "::" , stringify ! ( mInitialized - ) )); - } - impl Clone for nsCSSScannerPosition { - fn clone(&self) -> Self { *self } - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCSSScannerExclude { - eCSSScannerExclude_None = 0, - eCSSScannerExclude_Comments = 1, - eCSSScannerExclude_WhitespaceAndComments = 2, - } - #[repr(C)] - #[derive(Debug)] - pub struct nsCSSScanner { - pub mBuffer: *const u16, - pub mOffset: u32, - pub mCount: u32, - pub mLineNumber: u32, - pub mLineOffset: u32, - pub mTokenLineNumber: u32, - pub mTokenLineOffset: u32, - pub mTokenOffset: u32, - pub mRecordStartOffset: u32, - pub mEOFCharacters: root::nsCSSScanner_EOFCharacters, - pub mReporter: *mut root::mozilla::css::ErrorReporter, - pub mRecording: bool, - pub mSeenBadToken: bool, - pub mSeenVariableReference: bool, - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsCSSScanner_EOFCharacters { - eEOFCharacters_None = 0, - eEOFCharacters_DropBackslash = 1, - eEOFCharacters_ReplacementChar = 2, - eEOFCharacters_Asterisk = 4, - eEOFCharacters_Slash = 8, - eEOFCharacters_DoubleQuote = 16, - eEOFCharacters_SingleQuote = 32, - eEOFCharacters_CloseParen = 64, - } - #[test] - fn bindgen_test_layout_nsCSSScanner() { - assert_eq!(::std::mem::size_of::() , 64usize , concat ! - ( "Size of: " , stringify ! ( nsCSSScanner ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat ! - ( "Alignment of " , stringify ! ( nsCSSScanner ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mBuffer as * const - _ as usize } , 0usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mBuffer ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mOffset as * const - _ as usize } , 8usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mCount as * const - _ as usize } , 12usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mCount ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mLineNumber as * - const _ as usize } , 16usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mLineOffset as * - const _ as usize } , 20usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mLineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mTokenLineNumber - as * const _ as usize } , 24usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mTokenLineNumber ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mTokenLineOffset - as * const _ as usize } , 28usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mTokenLineOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mTokenOffset as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mTokenOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mRecordStartOffset - as * const _ as usize } , 36usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mRecordStartOffset ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mEOFCharacters as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mEOFCharacters ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mReporter as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mReporter ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mRecording as * - const _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mRecording ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . mSeenBadToken as * - const _ as usize } , 57usize , concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mSeenBadToken ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const nsCSSScanner ) ) . - mSeenVariableReference as * const _ as usize } , 58usize , - concat ! ( - "Alignment of field: " , stringify ! ( nsCSSScanner ) , - "::" , stringify ! ( mSeenVariableReference ) )); - } /** * A "unique identifier". This is modeled after OSF DCE UUIDs. */ @@ -14406,11 +13955,6 @@ pub mod root { AutoSetAsyncStackForNewCalls ) , "::" , stringify ! ( oldAsyncCallIsExplicit ) )); } - pub type WarningReporter = - ::std::option::Option; #[repr(C)] #[derive(Debug)] pub struct AutoHideScriptedCaller { @@ -14564,141 +14108,6 @@ pub mod root { pub struct JSCompartment { _unused: [u8; 0], } - /** - * Describes a single error or warning that occurs in the execution of script. - */ - #[repr(C)] - pub struct JSErrorReport { - pub _base: root::JSErrorBase, - pub linebuf_: *const u16, - pub linebufLength_: usize, - pub tokenOffset_: usize, - pub notes: root::mozilla::UniquePtr, - pub flags: ::std::os::raw::c_uint, - pub exnType: i16, - pub _bitfield_1: u8, - pub __bindgen_padding_0: u8, - } - #[test] - fn bindgen_test_layout_JSErrorReport() { - assert_eq!(::std::mem::size_of::() , 72usize , concat ! - ( "Size of: " , stringify ! ( JSErrorReport ) )); - assert_eq! (::std::mem::align_of::() , 8usize , concat - ! ( "Alignment of " , stringify ! ( JSErrorReport ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebuf_ as * - const _ as usize } , 32usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebuf_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . linebufLength_ as - * const _ as usize } , 40usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( linebufLength_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . tokenOffset_ as * - const _ as usize } , 48usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( tokenOffset_ ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . notes as * const - _ as usize } , 56usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( notes ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . flags as * const - _ as usize } , 64usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( flags ) )); - assert_eq! (unsafe { - & ( * ( 0 as * const JSErrorReport ) ) . exnType as * - const _ as usize } , 68usize , concat ! ( - "Alignment of field: " , stringify ! ( JSErrorReport ) , - "::" , stringify ! ( exnType ) )); - } - impl JSErrorReport { - #[inline] - pub fn isMuted(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 1u64 as u8; - let val = (unit_field_val & mask) >> 0usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_isMuted(&mut self, val: bool) { - let mask = 1u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 0usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn ownsLinebuf_(&self) -> bool { - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - let mask = 2u64 as u8; - let val = (unit_field_val & mask) >> 1usize; - unsafe { ::std::mem::transmute(val as u8) } - } - #[inline] - pub fn set_ownsLinebuf_(&mut self, val: bool) { - let mask = 2u64 as u8; - let val = val as u8 as u8; - let mut unit_field_val: u8 = - unsafe { ::std::mem::uninitialized() }; - unsafe { - ::std::ptr::copy_nonoverlapping(&self._bitfield_1 as *const _ - as *const u8, - &mut unit_field_val as *mut u8 - as *mut u8, - ::std::mem::size_of::()) - }; - unit_field_val &= !mask; - unit_field_val |= (val << 1usize) & mask; - unsafe { - ::std::ptr::copy_nonoverlapping(&unit_field_val as *const _ as - *const u8, - &mut self._bitfield_1 as - *mut _ as *mut u8, - ::std::mem::size_of::()); - } - } - #[inline] - pub fn new_bitfield_1(isMuted: bool, ownsLinebuf_: bool) -> u8 { - ({ ({ 0 } | ((isMuted as u8 as u8) << 0usize) & (1u64 as u8)) } | - ((ownsLinebuf_ as u8 as u8) << 1usize) & (2u64 as u8)) - } - } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct JSRuntime { @@ -14965,7 +14374,7 @@ pub mod root { pub struct nsAutoPtr_Proxy { } pub type nsAutoPtr_Proxy_member_function = u8; - pub type PLDHashNumber = usize; + pub type PLDHashNumber = u32; #[repr(C)] #[derive(Debug)] pub struct PLDHashTable { @@ -15075,8 +14484,8 @@ pub mod root { pub const PLDHashTable_kMinCapacity: u32 = 8; pub const PLDHashTable_kMaxInitialLength: u32 = 33554432; pub const PLDHashTable_kDefaultInitialLength: u32 = 4; - pub const PLDHashTable_kHashBits: u32 = 64; - pub const PLDHashTable_kGoldenRatio: u64 = 2135587859; + pub const PLDHashTable_kHashBits: u32 = 32; + pub const PLDHashTable_kGoldenRatio: u32 = 2654435769; pub const PLDHashTable_kCollisionFlag: root::PLDHashNumber = 1; #[test] fn bindgen_test_layout_PLDHashTable() { @@ -15167,9 +14576,9 @@ pub mod root { } #[test] fn bindgen_test_layout_PLDHashEntryHdr() { - assert_eq!(::std::mem::size_of::() , 8usize , concat + assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( "Size of: " , stringify ! ( PLDHashEntryHdr ) )); - assert_eq! (::std::mem::align_of::() , 8usize , + assert_eq! (::std::mem::align_of::() , 4usize , concat ! ( "Alignment of " , stringify ! ( PLDHashEntryHdr ) )); assert_eq! (unsafe { @@ -15751,7 +15160,7 @@ pub mod root { #[derive(Debug)] pub struct gfxFontFeatureValueSet_ValueList { pub name: ::nsstring::nsStringRepr, - pub featureSelectors: root::nsTArray, + pub featureSelectors: root::nsTArray<::std::os::raw::c_uint>, } #[test] fn bindgen_test_layout_gfxFontFeatureValueSet_ValueList() { @@ -15856,7 +15265,7 @@ pub mod root { pub struct gfxFontFeatureValueSet_FeatureValueHashEntry { pub _base: root::PLDHashEntryHdr, pub mKey: root::gfxFontFeatureValueSet_FeatureValueHashKey, - pub mValues: root::nsTArray, + pub mValues: root::nsTArray<::std::os::raw::c_uint>, } pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyType = *const root::gfxFontFeatureValueSet_FeatureValueHashKey; @@ -15959,7 +15368,7 @@ pub mod root { pub alternateValues: root::nsTArray, pub featureValueLookup: root::RefPtr, pub fontFeatureSettings: root::nsTArray, - pub fontVariationSettings: root::nsTArray, + pub fontVariationSettings: root::nsTArray, pub languageOverride: u32, } #[test] @@ -16095,6 +15504,13 @@ pub mod root { pub enum nsStyleAutoArray_WithSingleInitialElement { WITH_SINGLE_INITIAL_ELEMENT = 0, } + /** + * Currently needs to be 'double' for Cairo compatibility. Could + * become 'float', perhaps, in some configurations. + */ + pub type gfxFloat = f64; + pub type gfxSize = [u64; 2usize]; + pub type nsIntRect = root::mozilla::gfx::IntRect; pub const nsStyleUnit_eStyleUnit_MAX: root::nsStyleUnit = nsStyleUnit::eStyleUnit_Calc; #[repr(u8)] @@ -16566,8 +15982,6 @@ pub mod root { nsEventStatus_eConsumeDoDefault = 2, nsEventStatus_eSentinel = 3, } - pub type gfxSize = [u64; 2usize]; - pub type nsIntRect = root::mozilla::gfx::IntRect; #[repr(C)] #[derive(Debug, Copy)] pub struct pixman_region32_data { @@ -17979,7 +17393,7 @@ pub mod root { * count is 1. */ #[repr(C)] - #[derive(Debug, Copy)] + #[derive(Debug)] pub struct nsStringBuffer { pub mRefCount: u32, pub mStorageSize: u32, @@ -18001,9 +17415,6 @@ pub mod root { "Alignment of field: " , stringify ! ( nsStringBuffer ) , "::" , stringify ! ( mStorageSize ) )); } - impl Clone for nsStringBuffer { - fn clone(&self) -> Self { *self } - } #[repr(C)] #[derive(Debug, Copy)] pub struct nsIAtom { @@ -19749,7 +19160,7 @@ pub mod root { pub mUpgradeInsecurePreloads: bool, pub mHSTSPrimingURIList: [u64; 5usize], pub mDocumentContainer: u64, - pub mCharacterSet: root::mozilla::NotNull<*const root::nsIDocument_Encoding>, + pub mCharacterSet: root::mozilla::NotNull<*const root::mozilla::Encoding>, pub mCharacterSetSource: i32, pub mParentDocument: *mut root::nsIDocument, pub mCachedRootElement: *mut root::mozilla::dom::Element, @@ -19802,7 +19213,7 @@ pub mod root { */ pub mFrameRequestCallbackCounter: i32, pub mStaticCloneCount: u32, - pub mBlockedTrackingNodes: root::nsTArray, + pub mBlockedTrackingNodes: root::nsTArray, pub mWindow: *mut root::nsPIDOMWindowInner, pub mCachedEncoder: root::nsCOMPtr, pub mFrameRequestCallbacks: root::nsTArray, @@ -26396,57 +25807,57 @@ pub mod root { pub struct nsDOMMutationObserver { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_LISTENERMANAGER; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_PROPERTIES; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_ANONYMOUS_ROOT; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS_ROOT; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_FORCE_XBL_BINDINGS; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_MAY_BE_IN_BINDING_MNGR; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_EDITABLE; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_NATIVE_ANONYMOUS; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_IN_SHADOW_TREE; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_EMPTY_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_EDGE_CHILD_SELECTOR; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_ALL_SELECTOR_FLAGS; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_NEEDS_FRAME; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_DESCENDANTS_NEED_FRAMES; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_ACCESSKEY; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_DIRECTION_RTL; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_HAS_DIRECTION_LTR; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_ALL_DIRECTION_FLAGS; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_CHROME_ONLY_ACCESS; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_18 = - _bindgen_ty_18::NODE_TYPE_SPECIFIC_BITS_OFFSET; + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_LISTENERMANAGER; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_PROPERTIES; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_IS_ANONYMOUS_ROOT; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_IS_NATIVE_ANONYMOUS_ROOT; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_FORCE_XBL_BINDINGS; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_MAY_BE_IN_BINDING_MNGR; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_IS_EDITABLE; + pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_IS_NATIVE_ANONYMOUS; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_IS_IN_SHADOW_TREE; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_EMPTY_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_SLOW_SELECTOR; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_EDGE_CHILD_SELECTOR; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_ALL_SELECTOR_FLAGS; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_NEEDS_FRAME; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_DESCENDANTS_NEED_FRAMES; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_ACCESSKEY; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_DIRECTION_RTL; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_HAS_DIRECTION_LTR; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_ALL_DIRECTION_FLAGS; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_CHROME_ONLY_ACCESS; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_83 = + _bindgen_ty_83::NODE_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_18 { + pub enum _bindgen_ty_83 { NODE_HAS_LISTENERMANAGER = 4, NODE_HAS_PROPERTIES = 8, NODE_IS_ANONYMOUS_ROOT = 16, @@ -27831,11 +27242,6 @@ pub mod root { nsLanguageAtomService ) , "::" , stringify ! ( mLocaleLanguage ) )); } - /** - * Currently needs to be 'double' for Cairo compatibility. Could - * become 'float', perhaps, in some configurations. - */ - pub type gfxFloat = f64; #[repr(C)] #[derive(Debug, Copy)] pub struct nsINamed { @@ -31693,7 +31099,7 @@ pub mod root { pub _base_4: root::nsITimedChannel, pub mRefCnt: root::nsAutoRefCnt, pub mBehaviour: root::mozilla::UniquePtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mListener: *mut root::imgINotificationObserver, pub mLoadGroup: root::nsCOMPtr, pub mLoadFlags: root::nsLoadFlags, @@ -32833,7 +32239,7 @@ pub mod root { pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, pub mLoader: *mut root::imgLoader, pub mRequest: root::nsCOMPtr, - pub mURI: root::RefPtr, + pub mURI: root::RefPtr, pub mCurrentURI: root::nsCOMPtr, pub mLoadingPrincipal: root::nsCOMPtr, pub mPrincipal: root::nsCOMPtr, @@ -32860,8 +32266,8 @@ pub mod root { pub mImageErrorCode: root::nsresult, pub mBoostCategoriesRequested: u32, pub mMutex: root::mozilla::Mutex, - pub mProgressTracker: root::RefPtr, - pub mImage: root::RefPtr, + pub mProgressTracker: root::RefPtr, + pub mImage: root::RefPtr, pub _bitfield_1: u8, pub __bindgen_padding_0: [u8; 7usize], } @@ -32875,7 +32281,7 @@ pub mod root { pub type imgRequest_HasThreadSafeRefCnt = root::mozilla::TrueType; #[test] fn bindgen_test_layout_imgRequest() { - assert_eq!(::std::mem::size_of::() , 408usize , concat ! ( + assert_eq!(::std::mem::size_of::() , 376usize , concat ! ( "Size of: " , stringify ! ( imgRequest ) )); assert_eq! (::std::mem::align_of::() , 8usize , concat ! ( "Alignment of " , stringify ! ( imgRequest ) )); @@ -34448,7 +33854,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_21() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_86() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -34459,7 +33865,7 @@ pub mod root { root::mozilla::StaticRefPtr ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_22() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_87() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -36761,7 +36167,7 @@ pub mod root { root::nsTArray>; pub type RawGeckoKeyframeList = root::nsTArray; pub type RawGeckoComputedKeyframeValuesList = - root::nsTArray; + root::nsTArray>; pub type RawGeckoStyleAnimationList = root::nsStyleAutoArray; pub type RawGeckoFontFaceRuleList = @@ -37608,48 +37014,48 @@ pub mod root { pub struct nsAttrValueOrString { _unused: [u8; 0], } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: - root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_1; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_2; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_20 + root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; + pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_1; + pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_2; + pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_85 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_3; + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_3; pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: - root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_SHARED_RESTYLE_BIT_4; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_PENDING_RESTYLE_FLAGS; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_ALL_RESTYLE_FLAGS; - pub const ELEMENT_HAS_SCROLLGRAB: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_HAS_SCROLLGRAB; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_20 = - _bindgen_ty_20::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; + root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_SHARED_RESTYLE_BIT_4; + pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR; + pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_PENDING_RESTYLE_FLAGS; + pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS; + pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_ALL_RESTYLE_FLAGS; + pub const ELEMENT_HAS_SCROLLGRAB: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_HAS_SCROLLGRAB; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_85 = + _bindgen_ty_85::ELEMENT_TYPE_SPECIFIC_BITS_OFFSET; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum _bindgen_ty_20 { + pub enum _bindgen_ty_85 { ELEMENT_SHARED_RESTYLE_BIT_1 = 8388608, ELEMENT_SHARED_RESTYLE_BIT_2 = 16777216, ELEMENT_SHARED_RESTYLE_BIT_3 = 33554432, @@ -38238,7 +37644,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_23() { + fn __bindgen_test_layout_IntegralConstant_instantiation_88() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38247,7 +37653,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_24() { + fn __bindgen_test_layout_IntegralConstant_instantiation_89() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38256,7 +37662,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_25() { + fn __bindgen_test_layout_nsCharTraits_instantiation_90() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38267,33 +37673,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_26() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsReadingIterator_instantiation_91() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsReadingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_27() { - assert_eq!(::std::mem::size_of::>() - , 24usize , concat ! ( + fn __bindgen_test_layout_nsWritingIterator_instantiation_92() { + assert_eq!(::std::mem::size_of::>() , + 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() - , 8usize , concat ! ( + root::nsWritingIterator ) )); + assert_eq!(::std::mem::align_of::>() , + 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_28() { + fn __bindgen_test_layout_nsCharTraits_instantiation_93() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38304,33 +37706,29 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_29() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsReadingIterator_instantiation_94() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsReadingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsReadingIterator - ) )); + root::nsReadingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_30() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsWritingIterator_instantiation_95() { + assert_eq!(::std::mem::size_of::>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); - assert_eq!(::std::mem::align_of::>() + root::nsWritingIterator<::std::os::raw::c_char> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsWritingIterator - ) )); + root::nsWritingIterator<::std::os::raw::c_char> ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_31() { + fn __bindgen_test_layout_nsCharTraits_instantiation_96() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38341,7 +37739,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_32() { + fn __bindgen_test_layout_nsCharTraits_instantiation_97() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38352,7 +37750,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187761_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_211187_instantiation_98() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38361,7 +37759,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187797_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_211223_instantiation_99() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38370,7 +37768,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_35() { + fn __bindgen_test_layout_nsTArray_instantiation_100() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38381,7 +37779,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_36() { + fn __bindgen_test_layout_Handle_instantiation_101() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38392,7 +37790,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_37() { + fn __bindgen_test_layout_Handle_instantiation_102() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38403,7 +37801,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_38() { + fn __bindgen_test_layout_Handle_instantiation_103() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38414,7 +37812,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_39() { + fn __bindgen_test_layout_MutableHandle_instantiation_104() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38425,7 +37823,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_40() { + fn __bindgen_test_layout_Rooted_instantiation_105() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38436,7 +37834,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_41() { + fn __bindgen_test_layout_DeletePolicy_instantiation_106() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38447,7 +37845,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_42() { + fn __bindgen_test_layout_nsTArray_instantiation_107() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38458,7 +37856,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_43() { + fn __bindgen_test_layout_nsTArray_instantiation_108() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38469,29 +37867,29 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_44() { - assert_eq!(::std::mem::size_of::>() , 8usize , - concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_109() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , - concat ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_45() { - assert_eq!(::std::mem::size_of::>() , 8usize , - concat ! ( + fn __bindgen_test_layout_nsTArray_instantiation_110() { + assert_eq!(::std::mem::size_of::>() + , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray ) )); - assert_eq!(::std::mem::align_of::>() , 8usize , - concat ! ( + root::nsTArray<::std::os::raw::c_uint> ) )); + assert_eq!(::std::mem::align_of::>() + , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray ) )); + root::nsTArray<::std::os::raw::c_uint> ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_46() { + fn __bindgen_test_layout_PointTyped_instantiation_111() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38502,7 +37900,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_47() { + fn __bindgen_test_layout_IntPointTyped_instantiation_112() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38513,7 +37911,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_SizeTyped_instantiation_48() { + fn __bindgen_test_layout_SizeTyped_instantiation_113() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38524,7 +37922,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_49() { + fn __bindgen_test_layout_RectTyped_instantiation_114() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38535,7 +37933,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_50() { + fn __bindgen_test_layout_IntPointTyped_instantiation_115() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38546,7 +37944,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntSizeTyped_instantiation_51() { + fn __bindgen_test_layout_IntSizeTyped_instantiation_116() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38557,7 +37955,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_52() { + fn __bindgen_test_layout_IntRectTyped_instantiation_117() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38568,7 +37966,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_MarginTyped_instantiation_53() { + fn __bindgen_test_layout_MarginTyped_instantiation_118() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38579,7 +37977,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_54() { + fn __bindgen_test_layout_RectTyped_instantiation_119() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38590,7 +37988,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_55() { + fn __bindgen_test_layout_IntRectTyped_instantiation_120() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38601,7 +37999,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactor_instantiation_56() { + fn __bindgen_test_layout_ScaleFactor_instantiation_121() { assert_eq!(::std::mem::size_of::() , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( u32 ) )); @@ -38610,7 +38008,7 @@ pub mod root { u32 ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_57() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_122() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38621,7 +38019,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_58() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_123() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38632,7 +38030,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_59() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_124() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38643,7 +38041,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_60() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_125() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38654,7 +38052,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_61() { + fn __bindgen_test_layout_already_AddRefed_instantiation_126() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38665,7 +38063,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_62() { + fn __bindgen_test_layout_already_AddRefed_instantiation_127() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38676,7 +38074,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_63() { + fn __bindgen_test_layout_RefPtr_instantiation_128() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38687,7 +38085,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_64() { + fn __bindgen_test_layout_nsTArray_instantiation_129() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38700,7 +38098,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_65() { + fn __bindgen_test_layout_RefPtr_instantiation_130() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38711,7 +38109,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_66() { + fn __bindgen_test_layout_nsTArray_instantiation_131() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38724,7 +38122,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_WeakPtr_instantiation_67() { + fn __bindgen_test_layout_WeakPtr_instantiation_132() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -38733,7 +38131,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_68() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_133() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38744,7 +38142,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_69() { + fn __bindgen_test_layout_nsTArray_instantiation_134() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38755,7 +38153,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_70() { + fn __bindgen_test_layout_TErrorResult_instantiation_135() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38766,7 +38164,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_71() { + fn __bindgen_test_layout_TErrorResult_instantiation_136() { assert_eq!(::std::mem::size_of::() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38777,7 +38175,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_72() { + fn __bindgen_test_layout_already_AddRefed_instantiation_137() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38788,7 +38186,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_73() { + fn __bindgen_test_layout_Handle_instantiation_138() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38799,7 +38197,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_74() { + fn __bindgen_test_layout_MutableHandle_instantiation_139() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38810,7 +38208,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_75() { + fn __bindgen_test_layout_Handle_instantiation_140() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38821,7 +38219,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_76() { + fn __bindgen_test_layout_nsTArray_instantiation_141() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38832,7 +38230,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_77() { + fn __bindgen_test_layout_Handle_instantiation_142() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38843,7 +38241,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_78() { + fn __bindgen_test_layout_RefPtr_instantiation_143() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38854,7 +38252,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_79() { + fn __bindgen_test_layout_Handle_instantiation_144() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38865,7 +38263,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_80() { + fn __bindgen_test_layout_Handle_instantiation_145() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38876,7 +38274,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_81() { + fn __bindgen_test_layout_already_AddRefed_instantiation_146() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38887,7 +38285,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_82() { + fn __bindgen_test_layout_already_AddRefed_instantiation_147() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38898,7 +38296,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_83() { + fn __bindgen_test_layout_already_AddRefed_instantiation_148() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38909,7 +38307,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_84() { + fn __bindgen_test_layout_Handle_instantiation_149() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38920,7 +38318,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_85() { + fn __bindgen_test_layout_MutableHandle_instantiation_150() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38931,7 +38329,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_86() { + fn __bindgen_test_layout_MutableHandle_instantiation_151() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38942,7 +38340,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_87() { + fn __bindgen_test_layout_DeletePolicy_instantiation_152() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38953,7 +38351,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_88() { + fn __bindgen_test_layout_UniquePtr_instantiation_153() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38964,7 +38362,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_89() { + fn __bindgen_test_layout_DeletePolicy_instantiation_154() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38975,7 +38373,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_90() { + fn __bindgen_test_layout_UniquePtr_instantiation_155() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38986,7 +38384,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_91() { + fn __bindgen_test_layout_DeletePolicy_instantiation_156() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -38997,7 +38395,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_92() { + fn __bindgen_test_layout_UniquePtr_instantiation_157() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39008,7 +38406,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_93() { + fn __bindgen_test_layout_DeletePolicy_instantiation_158() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39019,7 +38417,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_94() { + fn __bindgen_test_layout_UniquePtr_instantiation_159() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39030,7 +38428,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_95() { + fn __bindgen_test_layout_DeletePolicy_instantiation_160() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39041,7 +38439,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_96() { + fn __bindgen_test_layout_UniquePtr_instantiation_161() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39052,7 +38450,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_iterator_instantiation_97() { + fn __bindgen_test_layout_iterator_instantiation_162() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39063,7 +38461,7 @@ pub mod root { root::std::iterator ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_98() { + fn __bindgen_test_layout_DeletePolicy_instantiation_163() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39074,7 +38472,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_99() { + fn __bindgen_test_layout_UniquePtr_instantiation_164() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39085,7 +38483,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DeletePolicy_instantiation_100() { + fn __bindgen_test_layout_DeletePolicy_instantiation_165() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39096,7 +38494,7 @@ pub mod root { root::JS::DeletePolicy ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_101() { + fn __bindgen_test_layout_UniquePtr_instantiation_166() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39107,7 +38505,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_102() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_167() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39118,7 +38516,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_103() { + fn __bindgen_test_layout_Handle_instantiation_168() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39129,7 +38527,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_104() { + fn __bindgen_test_layout_MutableHandle_instantiation_169() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39140,7 +38538,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_105() { + fn __bindgen_test_layout_nsTArray_instantiation_170() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39151,7 +38549,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_106() { + fn __bindgen_test_layout_nsTArray_instantiation_171() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39162,7 +38560,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_107() { + fn __bindgen_test_layout_Heap_instantiation_172() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39173,7 +38571,7 @@ pub mod root { root::JS::Heap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_108() { + fn __bindgen_test_layout_Heap_instantiation_173() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39184,7 +38582,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_109() { + fn __bindgen_test_layout_TenuredHeap_instantiation_174() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39195,7 +38593,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_110() { + fn __bindgen_test_layout_already_AddRefed_instantiation_175() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39206,20 +38604,20 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_111() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_176() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); - assert_eq!(::std::mem::align_of::>() + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIDocument_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_112() { + fn __bindgen_test_layout_nsTArray_instantiation_177() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39232,7 +38630,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_113() { + fn __bindgen_test_layout_RefPtr_instantiation_178() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39243,7 +38641,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_114() { + fn __bindgen_test_layout_nsTArray_instantiation_179() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39256,7 +38654,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_115() { + fn __bindgen_test_layout_RefPtr_instantiation_180() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39267,7 +38665,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_116() { + fn __bindgen_test_layout_nsTArray_instantiation_181() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39280,18 +38678,18 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_117() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_182() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); + root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_118() { + fn __bindgen_test_layout_RefPtr_instantiation_183() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39302,7 +38700,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_119() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_184() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39313,7 +38711,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_120() { + fn __bindgen_test_layout_nsTArray_instantiation_185() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39324,7 +38722,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_121() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_186() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39335,7 +38733,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_122() { + fn __bindgen_test_layout_already_AddRefed_instantiation_187() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39346,7 +38744,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_123() { + fn __bindgen_test_layout_already_AddRefed_instantiation_188() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39357,7 +38755,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_124() { + fn __bindgen_test_layout_RefPtr_instantiation_189() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39368,18 +38766,18 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_125() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_nsTArray_instantiation_190() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); - assert_eq!(::std::mem::align_of::>() + root::nsTArray<*mut root::mozilla::dom::Element> ) )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::nsTArray<*mut root::nsIDocument_Element> ) )); + root::nsTArray<*mut root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_126() { + fn __bindgen_test_layout_already_AddRefed_instantiation_191() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39390,7 +38788,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_127() { + fn __bindgen_test_layout_MutableHandle_instantiation_192() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39401,7 +38799,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_128() { + fn __bindgen_test_layout_already_AddRefed_instantiation_193() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39412,7 +38810,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_129() { + fn __bindgen_test_layout_already_AddRefed_instantiation_194() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39423,7 +38821,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_130() { + fn __bindgen_test_layout_already_AddRefed_instantiation_195() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39434,7 +38832,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_131() { + fn __bindgen_test_layout_RefPtr_instantiation_196() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39445,7 +38843,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_132() { + fn __bindgen_test_layout_Handle_instantiation_197() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39456,7 +38854,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_133() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39467,7 +38865,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_134() { + fn __bindgen_test_layout_already_AddRefed_instantiation_199() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39478,7 +38876,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_135() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_200() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39489,7 +38887,18 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_136() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_201() { + assert_eq!(::std::mem::size_of::() , 8usize , concat ! + ( + "Size of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + assert_eq!(::std::mem::align_of::() , 8usize , concat + ! ( + "Alignment of template specialization: " , stringify ! ( + root::nsCOMPtr ) )); + } + #[test] + fn __bindgen_test_layout_RefPtr_instantiation_202() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39500,7 +38909,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_137() { + fn __bindgen_test_layout_nsTArray_instantiation_203() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39513,7 +38922,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_138() { + fn __bindgen_test_layout_nsTArray_instantiation_204() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39524,7 +38933,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_139() { + fn __bindgen_test_layout_Handle_instantiation_205() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39535,7 +38944,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_140() { + fn __bindgen_test_layout_DefaultDelete_instantiation_206() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39546,7 +38955,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_141() { + fn __bindgen_test_layout_UniquePtr_instantiation_207() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39557,7 +38966,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_142() { + fn __bindgen_test_layout_already_AddRefed_instantiation_208() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39568,7 +38977,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_143() { + fn __bindgen_test_layout_nsTArray_instantiation_209() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39579,7 +38988,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_144() { + fn __bindgen_test_layout_Handle_instantiation_210() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39590,7 +38999,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_145() { + fn __bindgen_test_layout_Handle_instantiation_211() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39601,7 +39010,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_146() { + fn __bindgen_test_layout_Handle_instantiation_212() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39612,7 +39021,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_147() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_213() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39625,7 +39034,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_148() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_214() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39636,7 +39045,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_149() { + fn __bindgen_test_layout_Handle_instantiation_215() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39647,7 +39056,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_150() { + fn __bindgen_test_layout_nsTArray_instantiation_216() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39658,7 +39067,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_151() { + fn __bindgen_test_layout_nsTArray_instantiation_217() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39669,7 +39078,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_152() { + fn __bindgen_test_layout_already_AddRefed_instantiation_218() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39680,7 +39089,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_153() { + fn __bindgen_test_layout_already_AddRefed_instantiation_219() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39691,7 +39100,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_154() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_220() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -39700,7 +39109,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_155() { + fn __bindgen_test_layout_already_AddRefed_instantiation_221() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39711,7 +39120,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_156() { + fn __bindgen_test_layout_nsTArray_instantiation_222() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39722,33 +39131,33 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_157() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_223() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_158() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_224() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsPresContext_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_159() { + fn __bindgen_test_layout_already_AddRefed_instantiation_225() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39759,7 +39168,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_160() { + fn __bindgen_test_layout_DefaultDelete_instantiation_226() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39770,7 +39179,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_161() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_227() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39781,7 +39190,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_162() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_228() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39792,7 +39201,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_163() { + fn __bindgen_test_layout_nsTArray_instantiation_229() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39803,7 +39212,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_164() { + fn __bindgen_test_layout_already_AddRefed_instantiation_230() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39814,7 +39223,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_165() { + fn __bindgen_test_layout_already_AddRefed_instantiation_231() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39825,7 +39234,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_166() { + fn __bindgen_test_layout_already_AddRefed_instantiation_232() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39836,7 +39245,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_167() { + fn __bindgen_test_layout_already_AddRefed_instantiation_233() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39847,7 +39256,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_168() { + fn __bindgen_test_layout_already_AddRefed_instantiation_234() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39858,7 +39267,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_169() { + fn __bindgen_test_layout_Handle_instantiation_235() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39869,7 +39278,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_170() { + fn __bindgen_test_layout_Handle_instantiation_236() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39880,7 +39289,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_171() { + fn __bindgen_test_layout_Handle_instantiation_237() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39891,7 +39300,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_172() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_238() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39902,7 +39311,7 @@ pub mod root { [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_173() { + fn __bindgen_test_layout_already_AddRefed_instantiation_239() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39913,7 +39322,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_174() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_240() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39924,7 +39333,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_175() { + fn __bindgen_test_layout_Handle_instantiation_241() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39935,7 +39344,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_176() { + fn __bindgen_test_layout_nsTArray_instantiation_242() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39946,7 +39355,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_177() { + fn __bindgen_test_layout_Handle_instantiation_243() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39957,7 +39366,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_178() { + fn __bindgen_test_layout_OwningNonNull_instantiation_244() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39968,7 +39377,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_179() { + fn __bindgen_test_layout_OwningNonNull_instantiation_245() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39979,7 +39388,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_180() { + fn __bindgen_test_layout_OwningNonNull_instantiation_246() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -39990,7 +39399,7 @@ pub mod root { root::mozilla::OwningNonNull ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_181() { + fn __bindgen_test_layout_Handle_instantiation_247() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40001,7 +39410,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_182() { + fn __bindgen_test_layout_Handle_instantiation_248() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40012,7 +39421,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_183() { + fn __bindgen_test_layout_Handle_instantiation_249() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40023,7 +39432,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_184() { + fn __bindgen_test_layout_MutableHandle_instantiation_250() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40034,7 +39443,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_185() { + fn __bindgen_test_layout_Handle_instantiation_251() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40045,7 +39454,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_186() { + fn __bindgen_test_layout_MutableHandle_instantiation_252() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40056,7 +39465,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_187() { + fn __bindgen_test_layout_Handle_instantiation_253() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40067,7 +39476,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_188() { + fn __bindgen_test_layout_MutableHandle_instantiation_254() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40078,7 +39487,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_189() { + fn __bindgen_test_layout_Handle_instantiation_255() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40089,7 +39498,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_190() { + fn __bindgen_test_layout_Handle_instantiation_256() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40100,7 +39509,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_191() { + fn __bindgen_test_layout_Handle_instantiation_257() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40111,7 +39520,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_192() { + fn __bindgen_test_layout_MutableHandle_instantiation_258() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40122,7 +39531,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_193() { + fn __bindgen_test_layout_RefPtr_instantiation_259() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40133,7 +39542,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_194() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_260() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40144,7 +39553,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_195() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_261() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40155,7 +39564,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_196() { + fn __bindgen_test_layout_already_AddRefed_instantiation_262() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40166,7 +39575,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_197() { + fn __bindgen_test_layout_already_AddRefed_instantiation_263() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40177,20 +39586,20 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_198() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_264() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> - ) )); - assert_eq!(::std::mem::align_of::>() + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsLanguageAtomService_Encoding> - ) )); + root::mozilla::NotNull<*const root::mozilla::Encoding> ) + )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_199() { + fn __bindgen_test_layout_already_AddRefed_instantiation_265() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40201,7 +39610,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_200() { + fn __bindgen_test_layout_already_AddRefed_instantiation_266() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40212,7 +39621,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_201() { + fn __bindgen_test_layout_already_AddRefed_instantiation_267() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40223,7 +39632,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_202() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_268() { assert_eq!(::std::mem::size_of::<[u64; 30usize]>() , 240usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40234,7 +39643,7 @@ pub mod root { [u64; 30usize] ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_203() { + fn __bindgen_test_layout_MutableHandle_instantiation_269() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40245,7 +39654,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_204() { + fn __bindgen_test_layout_MutableHandle_instantiation_270() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40256,7 +39665,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_205() { + fn __bindgen_test_layout_already_AddRefed_instantiation_271() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40267,7 +39676,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_206() { + fn __bindgen_test_layout_DefaultDelete_instantiation_272() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40278,7 +39687,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_207() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_273() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40289,7 +39698,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_208() { + fn __bindgen_test_layout_Rooted_instantiation_274() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40300,7 +39709,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_209() { + fn __bindgen_test_layout_Rooted_instantiation_275() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40311,7 +39720,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_210() { + fn __bindgen_test_layout_already_AddRefed_instantiation_276() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40322,7 +39731,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_211() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_277() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40333,7 +39742,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_212() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_278() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40344,20 +39753,20 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_NotNull_instantiation_213() { - assert_eq!(::std::mem::size_of::>() + fn __bindgen_test_layout_NotNull_instantiation_279() { + assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); - assert_eq!(::std::mem::align_of::>() + assert_eq!(::std::mem::align_of::>() , 8usize , concat ! ( "Alignment of template specialization: " , stringify ! ( - root::mozilla::NotNull<*const root::nsIParser_Encoding> ) + root::mozilla::NotNull<*const root::mozilla::Encoding> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_214() { + fn __bindgen_test_layout_nsTArray_instantiation_280() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40368,7 +39777,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_215() { + fn __bindgen_test_layout_Handle_instantiation_281() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40379,7 +39788,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_216() { + fn __bindgen_test_layout_MutableHandle_instantiation_282() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40390,7 +39799,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_217() { + fn __bindgen_test_layout_Handle_instantiation_283() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40401,7 +39810,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_218() { + fn __bindgen_test_layout_MutableHandle_instantiation_284() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40412,7 +39821,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_219() { + fn __bindgen_test_layout_nsTArray_instantiation_285() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40423,7 +39832,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_220() { + fn __bindgen_test_layout_Handle_instantiation_286() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40434,7 +39843,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_221() { + fn __bindgen_test_layout_RefPtr_instantiation_287() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40445,7 +39854,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_222() { + fn __bindgen_test_layout_RefPtr_instantiation_288() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40456,7 +39865,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_223() { + fn __bindgen_test_layout_RefPtr_instantiation_289() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40467,7 +39876,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_224() { + fn __bindgen_test_layout_nsTArray_instantiation_290() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40480,7 +39889,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_225() { + fn __bindgen_test_layout_RefPtr_instantiation_291() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40491,7 +39900,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_226() { + fn __bindgen_test_layout_already_AddRefed_instantiation_292() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40502,7 +39911,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_227() { + fn __bindgen_test_layout_already_AddRefed_instantiation_293() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40513,7 +39922,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_228() { + fn __bindgen_test_layout_Handle_instantiation_294() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40524,7 +39933,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_229() { + fn __bindgen_test_layout_nsTArray_instantiation_295() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40535,7 +39944,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_230() { + fn __bindgen_test_layout_RefPtr_instantiation_296() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40548,7 +39957,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_231() { + fn __bindgen_test_layout_nsTArray_instantiation_297() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40561,7 +39970,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_232() { + fn __bindgen_test_layout_RefPtr_instantiation_298() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40574,7 +39983,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_233() { + fn __bindgen_test_layout_UniquePtr_instantiation_299() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40585,7 +39994,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_234() { + fn __bindgen_test_layout_nsTArray_instantiation_300() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40596,7 +40005,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_235() { + fn __bindgen_test_layout_Handle_instantiation_301() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40607,7 +40016,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_236() { + fn __bindgen_test_layout_MutableHandle_instantiation_302() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40618,7 +40027,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_237() { + fn __bindgen_test_layout_Handle_instantiation_303() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40629,7 +40038,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_238() { + fn __bindgen_test_layout_MutableHandle_instantiation_304() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40640,7 +40049,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_239() { + fn __bindgen_test_layout_already_AddRefed_instantiation_305() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40651,7 +40060,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_240() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_306() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40662,7 +40071,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_241() { + fn __bindgen_test_layout_OwningNonNull_instantiation_307() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40675,7 +40084,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_242() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_308() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40686,7 +40095,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_243() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_309() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40697,7 +40106,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_244() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_310() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40708,7 +40117,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_245() { + fn __bindgen_test_layout_DefaultDelete_instantiation_311() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40719,7 +40128,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_246() { + fn __bindgen_test_layout_already_AddRefed_instantiation_312() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40730,7 +40139,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_247() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_313() { assert_eq!(::std::mem::size_of::>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40741,7 +40150,7 @@ pub mod root { root::nsMainThreadPtrHolder ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_248() { + fn __bindgen_test_layout_already_AddRefed_instantiation_314() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40752,7 +40161,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_249() { + fn __bindgen_test_layout_already_AddRefed_instantiation_315() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40763,7 +40172,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_250() { + fn __bindgen_test_layout_already_AddRefed_instantiation_316() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40774,7 +40183,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_251() { + fn __bindgen_test_layout_already_AddRefed_instantiation_317() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40785,7 +40194,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_252() { + fn __bindgen_test_layout_already_AddRefed_instantiation_318() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40796,7 +40205,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_253() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_319() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40807,7 +40216,7 @@ pub mod root { root::nsPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_254() { + fn __bindgen_test_layout_already_AddRefed_instantiation_320() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40818,7 +40227,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_255() { + fn __bindgen_test_layout_DefaultDelete_instantiation_321() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40829,7 +40238,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_256() { + fn __bindgen_test_layout_UniquePtr_instantiation_322() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40840,7 +40249,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_257() { + fn __bindgen_test_layout_DefaultDelete_instantiation_323() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40851,7 +40260,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_258() { + fn __bindgen_test_layout_UniquePtr_instantiation_324() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40862,7 +40271,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_259() { + fn __bindgen_test_layout_already_AddRefed_instantiation_325() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40873,7 +40282,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_260() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_326() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -40882,7 +40291,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_261() { + fn __bindgen_test_layout_nsTArray_instantiation_327() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40893,7 +40302,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_262() { + fn __bindgen_test_layout_nsTArray_instantiation_328() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40904,7 +40313,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_263() { + fn __bindgen_test_layout_already_AddRefed_instantiation_329() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40915,7 +40324,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_264() { + fn __bindgen_test_layout_already_AddRefed_instantiation_330() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40926,7 +40335,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_265() { + fn __bindgen_test_layout_Maybe_instantiation_331() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40937,7 +40346,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_266() { + fn __bindgen_test_layout_Maybe_instantiation_332() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40948,7 +40357,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_267() { + fn __bindgen_test_layout_already_AddRefed_instantiation_333() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40959,7 +40368,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_268() { + fn __bindgen_test_layout_already_AddRefed_instantiation_334() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40970,7 +40379,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_269() { + fn __bindgen_test_layout_DefaultDelete_instantiation_335() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40981,7 +40390,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_270() { + fn __bindgen_test_layout_UniquePtr_instantiation_336() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -40992,7 +40401,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_271() { + fn __bindgen_test_layout_DefaultDelete_instantiation_337() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41003,7 +40412,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_272() { + fn __bindgen_test_layout_UniquePtr_instantiation_338() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41014,7 +40423,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_273() { + fn __bindgen_test_layout_already_AddRefed_instantiation_339() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41025,7 +40434,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_274() { + fn __bindgen_test_layout_Maybe_instantiation_340() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41036,7 +40445,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_275() { + fn __bindgen_test_layout_DefaultDelete_instantiation_341() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41047,7 +40456,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_276() { + fn __bindgen_test_layout_DefaultDelete_instantiation_342() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41058,7 +40467,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_277() { + fn __bindgen_test_layout_pair_instantiation_343() { assert_eq!(::std::mem::size_of::>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41069,7 +40478,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_278() { + fn __bindgen_test_layout_nsTArray_instantiation_344() { assert_eq!(::std::mem::size_of::>>() , 8usize , concat ! ( @@ -41084,7 +40493,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_279() { + fn __bindgen_test_layout_already_AddRefed_instantiation_345() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41095,7 +40504,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_280() { + fn __bindgen_test_layout_nsTArray_instantiation_346() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41106,7 +40515,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_281() { + fn __bindgen_test_layout_nsTArray_instantiation_347() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41117,7 +40526,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_282() { + fn __bindgen_test_layout_nsTArray_instantiation_348() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41128,7 +40537,7 @@ pub mod root { root::nsTArray ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_283() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_349() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41139,7 +40548,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_284() { + fn __bindgen_test_layout_RefPtr_instantiation_350() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41150,7 +40559,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_nsStyleAutoArray_instantiation_285() { + fn __bindgen_test_layout_nsStyleAutoArray_instantiation_351() { assert_eq!(::std::mem::size_of::>() , 64usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41161,7 +40570,7 @@ pub mod root { root::nsStyleAutoArray ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_286() { + fn __bindgen_test_layout_DefaultDelete_instantiation_352() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41172,7 +40581,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_287() { + fn __bindgen_test_layout_UniquePtr_instantiation_353() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41183,7 +40592,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_288() { + fn __bindgen_test_layout_DefaultDelete_instantiation_354() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41194,7 +40603,7 @@ pub mod root { root::mozilla::DefaultDelete ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_289() { + fn __bindgen_test_layout_UniquePtr_instantiation_355() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41205,7 +40614,7 @@ pub mod root { root::mozilla::UniquePtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_290() { + fn __bindgen_test_layout_RefPtr_instantiation_356() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41216,7 +40625,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_291() { + fn __bindgen_test_layout_RefPtr_instantiation_357() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41227,7 +40636,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_292() { + fn __bindgen_test_layout_NonNull_instantiation_358() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41240,7 +40649,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_NonNull_instantiation_293() { + fn __bindgen_test_layout_NonNull_instantiation_359() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41253,7 +40662,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_294() { + fn __bindgen_test_layout_Handle_instantiation_360() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41264,7 +40673,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_295() { + fn __bindgen_test_layout_MutableHandle_instantiation_361() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41275,7 +40684,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_296() { + fn __bindgen_test_layout_Maybe_instantiation_362() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41286,7 +40695,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_297() { + fn __bindgen_test_layout_Maybe_instantiation_363() { assert_eq!(::std::mem::size_of::<[u64; 18usize]>() , 144usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41297,7 +40706,7 @@ pub mod root { [u64; 18usize] ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_298() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_364() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41308,7 +40717,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_299() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_365() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41319,7 +40728,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_300() { + fn __bindgen_test_layout_already_AddRefed_instantiation_366() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41330,7 +40739,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_301() { + fn __bindgen_test_layout_already_AddRefed_instantiation_367() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41341,7 +40750,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_302() { + fn __bindgen_test_layout_nsTArray_instantiation_368() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41352,7 +40761,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_303() { + fn __bindgen_test_layout_nsTArray_instantiation_369() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41363,7 +40772,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_304() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_370() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41374,7 +40783,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_305() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_371() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41387,7 +40796,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_306() { + fn __bindgen_test_layout_already_AddRefed_instantiation_372() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41398,7 +40807,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_307() { + fn __bindgen_test_layout_nsTArray_instantiation_373() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41411,7 +40820,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_308() { + fn __bindgen_test_layout_Handle_instantiation_374() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41422,7 +40831,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_309() { + fn __bindgen_test_layout_Handle_instantiation_375() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41433,7 +40842,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_310() { + fn __bindgen_test_layout_RefPtr_instantiation_376() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41444,7 +40853,7 @@ pub mod root { root::RefPtr ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_311() { + fn __bindgen_test_layout_Handle_instantiation_377() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41455,7 +40864,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_312() { + fn __bindgen_test_layout_MutableHandle_instantiation_378() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41466,7 +40875,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_313() { + fn __bindgen_test_layout_Sequence_instantiation_379() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41475,7 +40884,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_314() { + fn __bindgen_test_layout_Handle_instantiation_380() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41486,7 +40895,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_315() { + fn __bindgen_test_layout_Sequence_instantiation_381() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41495,7 +40904,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_316() { + fn __bindgen_test_layout_Sequence_instantiation_382() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -41504,7 +40913,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_317() { + fn __bindgen_test_layout_Handle_instantiation_383() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41515,7 +40924,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_318() { + fn __bindgen_test_layout_Handle_instantiation_384() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41526,7 +40935,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_319() { + fn __bindgen_test_layout_MutableHandle_instantiation_385() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41537,7 +40946,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_320() { + fn __bindgen_test_layout_Handle_instantiation_386() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41548,7 +40957,7 @@ pub mod root { root::JS::Handle ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_321() { + fn __bindgen_test_layout_MutableHandle_instantiation_387() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41559,7 +40968,7 @@ pub mod root { root::JS::MutableHandle ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_322() { + fn __bindgen_test_layout_Handle_instantiation_388() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41570,7 +40979,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_323() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_389() { assert_eq!(::std::mem::size_of::>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41581,7 +40990,7 @@ pub mod root { root::nsRefPtrHashKey ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_324() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_390() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41592,7 +41001,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_325() { + fn __bindgen_test_layout_Handle_instantiation_391() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41603,7 +41012,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_326() { + fn __bindgen_test_layout_nsTArray_instantiation_392() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41614,7 +41023,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_327() { + fn __bindgen_test_layout_nsTArray_instantiation_393() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41625,7 +41034,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_328() { + fn __bindgen_test_layout_nsTArray_instantiation_394() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41636,7 +41045,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_329() { + fn __bindgen_test_layout_already_AddRefed_instantiation_395() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41647,7 +41056,7 @@ pub mod root { root::already_AddRefed ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_330() { + fn __bindgen_test_layout_Handle_instantiation_396() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41658,7 +41067,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_331() { + fn __bindgen_test_layout_nsTArray_instantiation_397() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -41669,7 +41078,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_332() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_398() { assert_eq!(::std::mem::size_of::>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( diff --git a/components/style/gecko/mod.rs b/components/style/gecko/mod.rs index 0c584bd9f991..cfdf45d43b8c 100644 --- a/components/style/gecko/mod.rs +++ b/components/style/gecko/mod.rs @@ -10,7 +10,6 @@ mod non_ts_pseudo_class_list; pub mod arc_types; pub mod conversions; pub mod data; -pub mod error_reporter; pub mod global_style_data; pub mod media_queries; pub mod pseudo_element; diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index bfe64728f187..3af035cd2088 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -23,7 +23,7 @@ use data::ElementData; use dom::{self, DescendantsBit, LayoutIterator, NodeInfo, TElement, TNode, UnsafeNode}; use dom::{OpaqueNode, PresentationalHintsSynthesizer}; use element_state::{ElementState, DocumentState, NS_DOCUMENT_STATE_WINDOW_INACTIVE}; -use error_reporting::ParseErrorReporter; +use error_reporting::create_error_reporter; use font_metrics::{FontMetrics, FontMetricsProvider, FontMetricsQueryResult}; use gecko::data::PerDocumentStyleData; use gecko::global_style_data::GLOBAL_STYLE_DATA; @@ -478,9 +478,8 @@ impl<'le> GeckoElement<'le> { /// Parse the style attribute of an element. pub fn parse_style_attribute(value: &str, url_data: &UrlExtraData, - quirks_mode: QuirksMode, - reporter: &ParseErrorReporter) -> PropertyDeclarationBlock { - parse_style_attribute(value, url_data, reporter, quirks_mode) + quirks_mode: QuirksMode) -> PropertyDeclarationBlock { + parse_style_attribute(value, url_data, &create_error_reporter(), quirks_mode) } fn flags(&self) -> u32 { diff --git a/components/style/properties/declaration_block.rs b/components/style/properties/declaration_block.rs index c32c9ee7aba5..a6695b7b40d9 100644 --- a/components/style/properties/declaration_block.rs +++ b/components/style/properties/declaration_block.rs @@ -111,19 +111,16 @@ pub struct AnimationValueIterator<'a, 'cx, 'cx_a:'cx> { iter: Iter<'a, (PropertyDeclaration, Importance)>, context: &'cx mut Context<'cx_a>, default_values: &'a Arc, - reporter: &'a ParseErrorReporter, } impl<'a, 'cx, 'cx_a:'cx> AnimationValueIterator<'a, 'cx, 'cx_a> { fn new(declarations: &'a PropertyDeclarationBlock, context: &'cx mut Context<'cx_a>, - default_values: &'a Arc, - reporter: &'a ParseErrorReporter) -> AnimationValueIterator<'a, 'cx, 'cx_a> { + default_values: &'a Arc) -> AnimationValueIterator<'a, 'cx, 'cx_a> { AnimationValueIterator { iter: declarations.declarations().iter(), context: context, default_values: default_values, - reporter: reporter } } } @@ -141,8 +138,7 @@ impl<'a, 'cx, 'cx_a:'cx> Iterator for AnimationValueIterator<'a, 'cx, 'cx_a> { if importance == Importance::Normal { let property = AnimatableLonghand::from_declaration(decl); let animation = AnimationValue::from_declaration(decl, &mut self.context, - self.default_values, - self.reporter); + self.default_values); debug_assert!(property.is_none() == animation.is_none(), "The failure condition of AnimatableLonghand::from_declaration \ and AnimationValue::from_declaration should be the same"); @@ -208,10 +204,9 @@ impl PropertyDeclarationBlock { /// Return an iterator of (AnimatableLonghand, AnimationValue). pub fn to_animation_value_iter<'a, 'cx, 'cx_a:'cx>(&'a self, context: &'cx mut Context<'cx_a>, - default_values: &'a Arc, - reporter: &'a ParseErrorReporter) + default_values: &'a Arc) -> AnimationValueIterator<'a, 'cx, 'cx_a> { - AnimationValueIterator::new(self, context, default_values, reporter) + AnimationValueIterator::new(self, context, default_values) } /// Returns whether this block contains any declaration with `!important`. @@ -913,17 +908,10 @@ pub fn parse_one_declaration_into(declarations: &mut SourcePropertyDeclaration, parsing_mode, quirks_mode); let mut input = ParserInput::new(input); - let mut parser = Parser::new(&mut input); - let start = parser.position(); - parser.parse_entirely(|parser| { + Parser::new(&mut input).parse_entirely(|parser| { PropertyDeclaration::parse_into(declarations, id, &context, parser) .map_err(|e| e.into()) - }).map_err(|err| { - let end = parser.position(); - let error = ContextualParseError::UnsupportedPropertyDeclaration( - parser.slice(start..end), err); - log_css_error(&mut parser, start, error, &context); - }) + }).map_err(|_| ()) } /// A struct to parse property declarations. diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index deb0bc62144a..e68faeb8924b 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -8,7 +8,6 @@ use app_units::Au; use cssparser::{Parser, RGBA}; -use error_reporting::ParseErrorReporter; use euclid::{Point2D, Size2D}; #[cfg(feature = "gecko")] use gecko_bindings::bindings::RawServoAnimationValueMap; #[cfg(feature = "gecko")] use gecko_bindings::structs::RawGeckoGfxMatrix4x4; @@ -523,8 +522,8 @@ impl AnimationValue { /// Construct an AnimationValue from a property declaration pub fn from_declaration(decl: &PropertyDeclaration, context: &mut Context, - initial: &ComputedValues, - reporter: &ParseErrorReporter) -> Option { + initial: &ComputedValues) -> Option { + use error_reporting::create_error_reporter; use properties::LonghandId; use properties::DeclaredValue; @@ -588,6 +587,7 @@ impl AnimationValue { }, PropertyDeclaration::WithVariables(id, ref variables) => { let custom_props = context.style().custom_properties(); + let reporter = create_error_reporter(); match id { % for prop in data.longhands: % if prop.animatable: @@ -610,13 +610,9 @@ impl AnimationValue { }, DeclaredValue::WithVariables(_) => unreachable!(), }; - result = AnimationValue::from_declaration( - &declaration, - context, - initial, - reporter); + result = AnimationValue::from_declaration(&declaration, context, initial); }, - reporter, + &reporter, quirks_mode); result }, diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 26264dd33032..10c113ad790a 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -37,8 +37,7 @@ use properties::animated_properties::AnimatableLonghand; use selectors::parser::SelectorParseError; #[cfg(feature = "servo")] use servo_config::prefs::PREFS; use shared_lock::StylesheetGuards; -use style_traits::{PARSING_MODE_DEFAULT, HasViewportPercentage, ToCss, ParseError}; -use style_traits::{PropertyDeclarationParseError, StyleParseError}; +use style_traits::{PARSING_MODE_DEFAULT, HasViewportPercentage, ToCss, ParseError, PropertyDeclarationParseError}; use stylesheets::{CssRuleType, MallocSizeOf, MallocSizeOfFn, Origin, UrlExtraData}; #[cfg(feature = "servo")] use values::Either; use values::generics::text::LineHeight; @@ -1015,7 +1014,7 @@ impl PropertyId { match static_id(&property_name) { Some(&StaticId::Longhand(id)) => Ok(PropertyId::Longhand(id)), Some(&StaticId::Shorthand(id)) => Ok(PropertyId::Shorthand(id)), - None => Err(StyleParseError::UnknownProperty(property_name).into()), + None => Err(SelectorParseError::UnexpectedIdent(property_name).into()), } } @@ -1420,7 +1419,7 @@ impl PropertyDeclaration { Ok(keyword) => DeclaredValueOwned::CSSWideKeyword(keyword), Err(_) => match ::custom_properties::SpecifiedValue::parse(context, input) { Ok(value) => DeclaredValueOwned::Value(value), - Err(_) => return Err(PropertyDeclarationParseError::InvalidValue(name.to_string())), + Err(_) => return Err(PropertyDeclarationParseError::InvalidValue), } }; declarations.push(PropertyDeclaration::Custom(name, value)); @@ -1448,7 +1447,7 @@ impl PropertyDeclaration { declarations.push(value); Ok(()) }, - Err(_) => Err(PropertyDeclarationParseError::InvalidValue("${property.ident}".into())), + Err(_) => Err(PropertyDeclarationParseError::InvalidValue), } % else: Err(PropertyDeclarationParseError::UnknownProperty) @@ -1488,7 +1487,7 @@ impl PropertyDeclaration { }, Err(_) => { shorthands::${shorthand.ident}::parse_into(declarations, context, input) - .map_err(|_| PropertyDeclarationParseError::InvalidValue("${shorthand.ident}".into())) + .map_err(|_| PropertyDeclarationParseError::InvalidValue) } } } diff --git a/components/style/stylesheets/rule_parser.rs b/components/style/stylesheets/rule_parser.rs index 3e9872b5a1cd..b622ef1001ac 100644 --- a/components/style/stylesheets/rule_parser.rs +++ b/components/style/stylesheets/rule_parser.rs @@ -7,7 +7,7 @@ use {Namespace, Prefix}; use counter_style::{parse_counter_style_body, parse_counter_style_name}; use cssparser::{AtRuleParser, AtRuleType, Parser, QualifiedRuleParser, RuleListParser}; -use cssparser::{CompactCowStr, SourceLocation, BasicParseError}; +use cssparser::{CompactCowStr, SourceLocation}; use error_reporting::ContextualParseError; use font_face::parse_font_face_block; use media_queries::{parse_media_query_list, MediaList}; @@ -184,13 +184,7 @@ impl<'a, 'i> AtRuleParser<'i> for TopLevelRuleParser<'a> { self.state = State::Namespaces; let prefix_result = input.try(|input| input.expect_ident()); - let maybe_namespace = match input.expect_url_or_string() { - Ok(url_or_string) => url_or_string, - Err(BasicParseError::UnexpectedToken(t)) => - return Err(StyleParseError::UnexpectedTokenWithinNamespace(t).into()), - Err(e) => return Err(e.into()), - }; - let url = Namespace::from(Cow::from(maybe_namespace)); + let url = Namespace::from(Cow::from(input.expect_url_or_string()?)); let id = register_namespace(&url) .map_err(|()| StyleParseError::UnspecifiedError)?; @@ -515,7 +509,7 @@ fn get_location_with_offset( offset: u64 ) -> SourceLocation { SourceLocation { - line: location.line + offset as u32, + line: location.line + offset as u32 - 1, column: location.column, } } diff --git a/components/style/stylist.rs b/components/style/stylist.rs index c74b40784efd..367570aa4cec 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -10,8 +10,6 @@ use bit_vec::BitVec; use context::{CascadeInputs, QuirksMode}; use dom::TElement; use element_state::ElementState; -use error_reporting::ParseErrorReporter; -#[cfg(feature = "servo")] use error_reporting::create_error_reporter; use font_metrics::FontMetricsProvider; #[cfg(feature = "gecko")] @@ -599,15 +597,12 @@ impl Stylist { /// parent; otherwise, non-inherited properties are reset to their initial /// values. The flow constructor uses this flag when constructing anonymous /// flows. - /// - /// The error reporter is only needed when processing custom variables. pub fn precomputed_values_for_pseudo(&self, guards: &StylesheetGuards, pseudo: &PseudoElement, parent: Option<&Arc>, cascade_flags: CascadeFlags, - font_metrics: &FontMetricsProvider, - reporter: &ParseErrorReporter) + font_metrics: &FontMetricsProvider) -> Arc { debug_assert!(pseudo.is_precomputed()); @@ -644,7 +639,7 @@ impl Stylist { parent.map(|p| &**p), None, None, - reporter, + &create_error_reporter(), font_metrics, cascade_flags, self.quirks_mode); @@ -685,7 +680,7 @@ impl Stylist { cascade_flags.insert(INHERIT_ALL); } self.precomputed_values_for_pseudo(guards, &pseudo, Some(parent_style), cascade_flags, - &ServoMetricsProvider, &create_error_reporter()) + &ServoMetricsProvider) } /// Computes a pseudo-element style lazily during layout. @@ -695,8 +690,6 @@ impl Stylist { /// /// Check the documentation on lazy pseudo-elements in /// docs/components/style.md - /// - /// The error reporter is only required for processing custom variables. pub fn lazily_compute_pseudo_element_style(&self, guards: &StylesheetGuards, element: &E, @@ -704,8 +697,7 @@ impl Stylist { rule_inclusion: RuleInclusion, parent_style: &Arc, is_probe: bool, - font_metrics: &FontMetricsProvider, - reporter: &ParseErrorReporter) + font_metrics: &FontMetricsProvider) -> Option> where E: TElement, { @@ -714,22 +706,18 @@ impl Stylist { self.compute_pseudo_element_style_with_inputs(&cascade_inputs, guards, parent_style, - font_metrics, - reporter) + font_metrics) } /// Computes a pseudo-element style lazily using the given CascadeInputs. /// This can be used for truly lazy pseudo-elements or to avoid redoing /// selector matching for eager pseudo-elements when we need to recompute /// their style with a new parent style. - /// - /// The error reporter is only required for processing custom variables. pub fn compute_pseudo_element_style_with_inputs(&self, inputs: &CascadeInputs, guards: &StylesheetGuards, parent_style: &Arc, - font_metrics: &FontMetricsProvider, - reporter: &ParseErrorReporter) + font_metrics: &FontMetricsProvider) -> Option> { // We may have only visited rules in cases when we are actually @@ -760,7 +748,7 @@ impl Stylist { Some(inherited_style), None, None, - reporter, + &create_error_reporter(), font_metrics, CascadeFlags::empty(), self.quirks_mode); @@ -792,7 +780,7 @@ impl Stylist { Some(parent_style), visited_values, None, - reporter, + &create_error_reporter(), font_metrics, CascadeFlags::empty(), self.quirks_mode); @@ -1354,12 +1342,10 @@ impl Stylist { } /// Computes styles for a given declaration with parent_style. - /// The error reporter is only used for processing custom variables. pub fn compute_for_declarations(&self, guards: &StylesheetGuards, parent_style: &Arc, - declarations: Arc>, - reporter: &ParseErrorReporter) + declarations: Arc>) -> Arc { use font_metrics::get_metrics_provider_for_product; @@ -1381,7 +1367,7 @@ impl Stylist { Some(parent_style), None, None, - reporter, + &create_error_reporter(), &metrics, CascadeFlags::empty(), self.quirks_mode)) diff --git a/components/style_traits/Cargo.toml b/components/style_traits/Cargo.toml index 3473d710353b..feeeb7c786a4 100644 --- a/components/style_traits/Cargo.toml +++ b/components/style_traits/Cargo.toml @@ -16,7 +16,7 @@ gecko = [] [dependencies] app_units = "0.5" bitflags = "0.7" -cssparser = "0.17.0" +cssparser = "0.16.1" euclid = "0.15" heapsize = {version = "0.4", optional = true} heapsize_derive = {version = "0.1", optional = true} diff --git a/components/style_traits/lib.rs b/components/style_traits/lib.rs index d6336ca9e0c4..7cb28e7f7c7c 100644 --- a/components/style_traits/lib.rs +++ b/components/style_traits/lib.rs @@ -22,7 +22,7 @@ extern crate euclid; extern crate selectors; #[cfg(feature = "servo")] #[macro_use] extern crate serde; -use cssparser::{CompactCowStr, Token}; +use cssparser::CompactCowStr; use selectors::parser::SelectorParseError; /// Opaque type stored in type-unsafe work queues for parallel layout. @@ -81,9 +81,9 @@ pub type ParseError<'i> = cssparser::ParseError<'i, SelectorParseError<'i, Style /// Errors that can be encountered while parsing CSS values. pub enum StyleParseError<'i> { /// A bad URL token in a DVB. - BadUrlInDeclarationValueBlock(CompactCowStr<'i>), + BadUrlInDeclarationValueBlock, /// A bad string token in a DVB. - BadStringInDeclarationValueBlock(CompactCowStr<'i>), + BadStringInDeclarationValueBlock, /// Unexpected closing parenthesis in a DVB. UnbalancedCloseParenthesisInDeclarationValueBlock, /// Unexpected closing bracket in a DVB. @@ -110,21 +110,17 @@ pub enum StyleParseError<'i> { UnsupportedAtRule(CompactCowStr<'i>), /// A placeholder for many sources of errors that require more specific variants. UnspecifiedError, - /// An unexpected token was found within a namespace rule. - UnexpectedTokenWithinNamespace(Token<'i>), - /// An unknown CSS property was encountered. - UnknownProperty(CompactCowStr<'i>), } /// The result of parsing a property declaration. -#[derive(Eq, PartialEq, Clone, Debug)] +#[derive(Eq, PartialEq, Copy, Clone, Debug)] pub enum PropertyDeclarationParseError { /// The property declaration was for an unknown property. UnknownProperty, /// The property declaration was for a disabled experimental property. ExperimentalProperty, /// The property declaration contained an invalid value. - InvalidValue(String), + InvalidValue, /// The declaration contained an animation property, and we were parsing /// this as a keyframe block (so that property should be ignored). /// diff --git a/ports/geckolib/Cargo.toml b/ports/geckolib/Cargo.toml index 5c50eb6bf7a6..d63a2819fe13 100644 --- a/ports/geckolib/Cargo.toml +++ b/ports/geckolib/Cargo.toml @@ -16,7 +16,7 @@ gecko_debug = ["style/gecko_debug"] [dependencies] atomic_refcell = "0.1" -cssparser = "0.17.0" +cssparser = "0.16.1" env_logger = {version = "0.4", default-features = false} # disable `regex` to reduce code size libc = "0.2" log = {version = "0.3.5", features = ["release_max_level_info"]} diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 905a22d2c247..56b99babed7f 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -17,7 +17,7 @@ use style::data::{ElementData, ElementStyles, RestyleData}; use style::dom::{AnimationOnlyDirtyDescendants, DirtyDescendants}; use style::dom::{ShowSubtreeData, TElement, TNode}; use style::element_state::ElementState; -use style::error_reporting::{create_error_reporter, NullReporter, ParseErrorReporter}; +use style::error_reporting::RustLogReporter; use style::font_metrics::{FontMetricsProvider, get_metrics_provider_for_product}; use style::gecko::data::{GeckoStyleSheet, PerDocumentStyleData, PerDocumentStyleDataImpl}; use style::gecko::global_style_data::{GLOBAL_STYLE_DATA, GlobalStyleData, STYLE_THREAD_POOL}; @@ -44,7 +44,6 @@ use style::gecko_bindings::bindings::{RawServoSupportsRule, RawServoSupportsRule use style::gecko_bindings::bindings::{ServoCssRulesBorrowed, ServoCssRulesStrong}; use style::gecko_bindings::bindings::{nsACString, nsAString, nsCSSPropertyIDSetBorrowedMut}; use style::gecko_bindings::bindings::Gecko_AddPropertyToSet; -use style::gecko_bindings::bindings::Gecko_GetDocumentLoader; use style::gecko_bindings::bindings::Gecko_GetOrCreateFinalKeyframe; use style::gecko_bindings::bindings::Gecko_GetOrCreateInitialKeyframe; use style::gecko_bindings::bindings::Gecko_GetOrCreateKeyframeAtStart; @@ -173,18 +172,19 @@ unsafe fn dummy_url_data() -> &'static RefPtr { RefPtr::from_ptr_ref(&DUMMY_URL_DATA) } +static DEFAULT_ERROR_REPORTER: RustLogReporter = RustLogReporter; + fn create_shared_context<'a>(global_style_data: &GlobalStyleData, guard: &'a SharedRwLockReadGuard, per_doc_data: &'a PerDocumentStyleDataImpl, traversal_flags: TraversalFlags, - snapshot_map: &'a ServoElementSnapshotTable, - reporter: &'a ParseErrorReporter) + snapshot_map: &'a ServoElementSnapshotTable) -> SharedStyleContext<'a> { SharedStyleContext { stylist: &per_doc_data.stylist, options: global_style_data.options.clone(), guards: StylesheetGuards::same(guard), - error_reporter: reporter, + error_reporter: &DEFAULT_ERROR_REPORTER, timer: Timer::new(), quirks_mode: per_doc_data.stylist.quirks_mode(), traversal_flags: traversal_flags, @@ -192,12 +192,6 @@ fn create_shared_context<'a>(global_style_data: &GlobalStyleData, } } -fn loader_from_data(data: &PerDocumentStyleDataImpl) -> *mut Loader { - unsafe { - Gecko_GetDocumentLoader(data.stylist.device().pres_context()) - } -} - fn traverse_subtree(element: GeckoElement, raw_data: RawServoStyleSetBorrowed, traversal_flags: TraversalFlags, @@ -216,13 +210,11 @@ fn traverse_subtree(element: GeckoElement, let global_style_data = &*GLOBAL_STYLE_DATA; let guard = global_style_data.shared_lock.read(); - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&per_doc_data)); let shared_style_context = create_shared_context(&global_style_data, &guard, &per_doc_data, traversal_flags, - snapshots, - &reporter); + snapshots); let token = RecalcStyleOnly::pre_traverse(element, @@ -674,13 +666,11 @@ pub extern "C" fn Servo_StyleSet_GetBaseComputedValuesForElement(raw_data: RawSe let doc_data = PerDocumentStyleData::from_ffi(raw_data).borrow(); let global_style_data = &*GLOBAL_STYLE_DATA; let guard = global_style_data.shared_lock.read(); - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&doc_data)); let shared_context = create_shared_context(&global_style_data, &guard, &doc_data, TraversalFlags::empty(), - unsafe { &*snapshots }, - &reporter); + unsafe { &*snapshots }); let element = GeckoElement(element); let element_data = element.borrow_data().unwrap(); let styles = &element_data.styles; @@ -765,7 +755,7 @@ pub extern "C" fn Servo_StyleSheet_Empty(mode: SheetParsingMode) -> RawServoStyl origin, shared_lock, /* loader = */ None, - &NullReporter, + &RustLogReporter, QuirksMode::NoQuirks, 0 ) @@ -774,7 +764,7 @@ pub extern "C" fn Servo_StyleSheet_Empty(mode: SheetParsingMode) -> RawServoStyl #[no_mangle] pub extern "C" fn Servo_StyleSheet_FromUTF8Bytes( - css_loader: *mut Loader, + loader: *mut Loader, stylesheet: *mut ServoStyleSheet, data: *const nsACString, mode: SheetParsingMode, @@ -793,10 +783,10 @@ pub extern "C" fn Servo_StyleSheet_FromUTF8Bytes( }; let url_data = unsafe { RefPtr::from_ptr_ref(&extra_data) }; - let loader = if css_loader.is_null() { + let loader = if loader.is_null() { None } else { - Some(StylesheetLoader::new(css_loader, stylesheet, ptr::null_mut())) + Some(StylesheetLoader::new(loader, stylesheet, ptr::null_mut())) }; // FIXME(emilio): loader.as_ref() doesn't typecheck for some reason? @@ -808,7 +798,7 @@ pub extern "C" fn Servo_StyleSheet_FromUTF8Bytes( Arc::new(StylesheetContents::from_str( input, url_data.clone(), origin, - &global_style_data.shared_lock, loader, &create_error_reporter(stylesheet, css_loader), + &global_style_data.shared_lock, loader, &RustLogReporter, quirks_mode.into(), line_number_offset as u64) ).into_strong() } @@ -1496,9 +1486,8 @@ pub extern "C" fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null: cascade_flags.insert(SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP); } let metrics = get_metrics_provider_for_product(); - let reporter = NullReporter; data.stylist.precomputed_values_for_pseudo(&guards, &pseudo, maybe_parent, - cascade_flags, &metrics, &reporter) + cascade_flags, &metrics) .into_strong() } @@ -1613,14 +1602,12 @@ fn get_pseudo_style( Some(styles) => CascadeInputs::new_from_style(styles), None => return None, }; - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&doc_data)); doc_data.stylist .compute_pseudo_element_style_with_inputs( &inputs, &guards, inherited_styles, - &metrics, - &reporter) + &metrics) }, _ => { debug_assert!(inherited_styles.is_none() || @@ -1642,7 +1629,6 @@ fn get_pseudo_style( }; let guards = StylesheetGuards::same(guard); let metrics = get_metrics_provider_for_product(); - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&doc_data)); doc_data.stylist .lazily_compute_pseudo_element_style( &guards, @@ -1651,8 +1637,7 @@ fn get_pseudo_style( rule_inclusion, base, is_probe, - &metrics, - &reporter) + &metrics) }, }; @@ -1765,8 +1750,7 @@ fn parse_property_into(declarations: &mut SourcePropertyDeclaration, value: *const nsACString, data: *mut URLExtraData, parsing_mode: structs::ParsingMode, - quirks_mode: QuirksMode, - reporter: &ParseErrorReporter) -> Result<(), ()> { + quirks_mode: QuirksMode) -> Result<(), ()> { use style_traits::ParsingMode; let value = unsafe { value.as_ref().unwrap().as_str_unchecked() }; let url_data = unsafe { RefPtr::from_ptr_ref(&data) }; @@ -1777,7 +1761,7 @@ fn parse_property_into(declarations: &mut SourcePropertyDeclaration, property_id, value, url_data, - reporter, + &RustLogReporter, parsing_mode, quirks_mode) } @@ -1786,15 +1770,13 @@ fn parse_property_into(declarations: &mut SourcePropertyDeclaration, pub extern "C" fn Servo_ParseProperty(property: nsCSSPropertyID, value: *const nsACString, data: *mut URLExtraData, parsing_mode: structs::ParsingMode, - quirks_mode: nsCompatibility, - loader: *mut Loader) + quirks_mode: nsCompatibility) -> RawServoDeclarationBlockStrong { let id = get_property_id_from_nscsspropertyid!(property, RawServoDeclarationBlockStrong::null()); let mut declarations = SourcePropertyDeclaration::new(); - let reporter = create_error_reporter(ptr::null_mut(), loader); match parse_property_into(&mut declarations, id, value, data, - parsing_mode, quirks_mode.into(), &reporter) { + parsing_mode, quirks_mode.into()) { Ok(()) => { let global_style_data = &*GLOBAL_STYLE_DATA; let mut block = PropertyDeclarationBlock::new(); @@ -1813,7 +1795,7 @@ pub extern "C" fn Servo_ParseEasing(easing: *const nsAString, use style::properties::longhands::transition_timing_function; let url_data = unsafe { RefPtr::from_ptr_ref(&data) }; - let reporter = NullReporter; + let reporter = RustLogReporter; let context = ParserContext::new(Origin::Author, url_data, &reporter, @@ -1890,16 +1872,13 @@ pub extern "C" fn Servo_MatrixTransform_Operate(matrix_operator: MatrixTransform #[no_mangle] pub extern "C" fn Servo_ParseStyleAttribute(data: *const nsACString, raw_extra_data: *mut URLExtraData, - quirks_mode: nsCompatibility, - loader: *mut Loader) + quirks_mode: nsCompatibility) -> RawServoDeclarationBlockStrong { let global_style_data = &*GLOBAL_STYLE_DATA; let value = unsafe { data.as_ref().unwrap().as_str_unchecked() }; let url_data = unsafe { RefPtr::from_ptr_ref(&raw_extra_data) }; - let reporter = create_error_reporter(ptr::null_mut(), loader); Arc::new(global_style_data.shared_lock.wrap( - GeckoElement::parse_style_attribute(value, url_data, quirks_mode.into(), &reporter))) - .into_strong() + GeckoElement::parse_style_attribute(value, url_data, quirks_mode.into()))).into_strong() } #[no_mangle] @@ -2039,12 +2018,10 @@ pub extern "C" fn Servo_DeclarationBlock_GetPropertyIsImportant(declarations: Ra fn set_property(declarations: RawServoDeclarationBlockBorrowed, property_id: PropertyId, value: *const nsACString, is_important: bool, data: *mut URLExtraData, parsing_mode: structs::ParsingMode, - quirks_mode: QuirksMode, - loader: *mut Loader) -> bool { + quirks_mode: QuirksMode) -> bool { let mut source_declarations = SourcePropertyDeclaration::new(); - let reporter = create_error_reporter(ptr::null_mut(), loader); match parse_property_into(&mut source_declarations, property_id, value, data, - parsing_mode, quirks_mode, &reporter) { + parsing_mode, quirks_mode) { Ok(()) => { let importance = if is_important { Importance::Important } else { Importance::Normal }; write_locked_arc(declarations, |decls: &mut PropertyDeclarationBlock| { @@ -2060,10 +2037,9 @@ pub extern "C" fn Servo_DeclarationBlock_SetProperty(declarations: RawServoDecla property: *const nsACString, value: *const nsACString, is_important: bool, data: *mut URLExtraData, parsing_mode: structs::ParsingMode, - quirks_mode: nsCompatibility, - loader: *mut Loader) -> bool { + quirks_mode: nsCompatibility) -> bool { set_property(declarations, get_property_id_from_property!(property, false), - value, is_important, data, parsing_mode, quirks_mode.into(), loader) + value, is_important, data, parsing_mode, quirks_mode.into()) } #[no_mangle] @@ -2071,10 +2047,9 @@ pub extern "C" fn Servo_DeclarationBlock_SetPropertyById(declarations: RawServoD property: nsCSSPropertyID, value: *const nsACString, is_important: bool, data: *mut URLExtraData, parsing_mode: structs::ParsingMode, - quirks_mode: nsCompatibility, - loader: *mut Loader) -> bool { + quirks_mode: nsCompatibility) -> bool { set_property(declarations, get_property_id_from_nscsspropertyid!(property, false), - value, is_important, data, parsing_mode, quirks_mode.into(), loader) + value, is_important, data, parsing_mode, quirks_mode.into()) } fn remove_property(declarations: RawServoDeclarationBlockBorrowed, property_id: PropertyId) { @@ -2142,7 +2117,7 @@ pub extern "C" fn Servo_MediaList_SetText(list: RawServoMediaListBorrowed, text: let mut input = ParserInput::new(&text); let mut parser = Parser::new(&mut input); let url_data = unsafe { dummy_url_data() }; - let reporter = NullReporter; + let reporter = RustLogReporter; let context = ParserContext::new_for_cssom(url_data, &reporter, Some(CssRuleType::Media), PARSING_MODE_DEFAULT, QuirksMode::NoQuirks); @@ -2174,7 +2149,7 @@ pub extern "C" fn Servo_MediaList_AppendMedium(list: RawServoMediaListBorrowed, new_medium: *const nsACString) { let new_medium = unsafe { new_medium.as_ref().unwrap().as_str_unchecked() }; let url_data = unsafe { dummy_url_data() }; - let reporter = NullReporter; + let reporter = RustLogReporter; let context = ParserContext::new_for_cssom(url_data, &reporter, Some(CssRuleType::Media), PARSING_MODE_DEFAULT, QuirksMode::NoQuirks); @@ -2188,7 +2163,7 @@ pub extern "C" fn Servo_MediaList_DeleteMedium(list: RawServoMediaListBorrowed, old_medium: *const nsACString) -> bool { let old_medium = unsafe { old_medium.as_ref().unwrap().as_str_unchecked() }; let url_data = unsafe { dummy_url_data() }; - let reporter = NullReporter; + let reporter = RustLogReporter; let context = ParserContext::new_for_cssom(url_data, &reporter, Some(CssRuleType::Media), PARSING_MODE_DEFAULT, QuirksMode::NoQuirks); @@ -2554,7 +2529,7 @@ pub extern "C" fn Servo_DeclarationBlock_SetBackgroundImage(declarations: let url_data = unsafe { RefPtr::from_ptr_ref(&raw_extra_data) }; let string = unsafe { (*value).to_string() }; - let error_reporter = NullReporter; + let error_reporter = RustLogReporter; let context = ParserContext::new(Origin::Author, url_data, &error_reporter, Some(CssRuleType::Style), PARSING_MODE_DEFAULT, QuirksMode::NoQuirks); @@ -2595,8 +2570,7 @@ pub extern "C" fn Servo_CSSSupports2(property: *const nsACString, value, unsafe { DUMMY_URL_DATA }, structs::ParsingMode_Default, - QuirksMode::NoQuirks, - &NullReporter, + QuirksMode::NoQuirks ).is_ok() } @@ -2608,7 +2582,7 @@ pub extern "C" fn Servo_CSSSupports(cond: *const nsACString) -> bool { let cond = input.parse_entirely(|i| parse_condition_or_declaration(i)); if let Ok(cond) = cond { let url_data = unsafe { dummy_url_data() }; - let reporter = NullReporter; + let reporter = RustLogReporter; let context = ParserContext::new_for_cssom(url_data, &reporter, Some(CssRuleType::Style), PARSING_MODE_DEFAULT, QuirksMode::NoQuirks); @@ -2798,13 +2772,11 @@ pub extern "C" fn Servo_ResolveStyleLazily(element: RawGeckoElementBorrowed, // We don't have the style ready. Go ahead and compute it as necessary. let mut result = None; - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&data)); let shared = create_shared_context(&global_style_data, &guard, &data, traversal_flags, - unsafe { &*snapshots }, - &reporter); + unsafe { &*snapshots }); let mut tlc = ThreadLocalStyleContext::new(&shared); let mut context = StyleContext { shared: &shared, @@ -2885,8 +2857,6 @@ pub extern "C" fn Servo_GetComputedKeyframeValues(keyframes: RawGeckoKeyframeLis let guard = global_style_data.shared_lock.read(); let default_values = data.default_computed_values(); - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&data)); - for (index, keyframe) in keyframes.iter().enumerate() { let ref mut animation_values = computed_keyframes[index]; @@ -2905,7 +2875,7 @@ pub extern "C" fn Servo_GetComputedKeyframeValues(keyframes: RawGeckoKeyframeLis let declarations = Locked::::as_arc(&declarations); let guard = declarations.read_with(&guard); - for anim in guard.to_animation_value_iter(&mut context, &default_values, &reporter) { + for anim in guard.to_animation_value_iter(&mut context, &default_values) { if !seen.has_animatable_longhand_bit(&anim.0) { // This is safe since we immediately write to the uninitialized values. unsafe { animation_values.set_len((property_index + 1) as u32) }; @@ -2946,10 +2916,7 @@ pub extern "C" fn Servo_GetAnimationValues(declarations: RawServoDeclarationBloc let declarations = Locked::::as_arc(&declarations); let guard = declarations.read_with(&guard); - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&data)); - for (index, anim) in guard.to_animation_value_iter(&mut context, - &default_values, - &reporter).enumerate() { + for (index, anim) in guard.to_animation_value_iter(&mut context, &default_values).enumerate() { unsafe { animation_values.set_len((index + 1) as u32) }; animation_values[index].set_arc_leaky(Arc::new(anim.1)); } @@ -2976,14 +2943,10 @@ pub extern "C" fn Servo_AnimationValue_Compute(element: RawGeckoElementBorrowed, let global_style_data = &*GLOBAL_STYLE_DATA; let guard = global_style_data.shared_lock.read(); let declarations = Locked::::as_arc(&declarations); - let reporter = create_error_reporter(ptr::null_mut(), loader_from_data(&data)); // We only compute the first element in declarations. match declarations.read_with(&guard).declarations().first() { Some(&(ref decl, imp)) if imp == Importance::Normal => { - let animation = AnimationValue::from_declaration(decl, - &mut context, - default_values, - &reporter); + let animation = AnimationValue::from_declaration(decl, &mut context, default_values); animation.map_or(RawServoAnimationValueStrong::null(), |value| { Arc::new(value).into_strong() }) @@ -3237,8 +3200,7 @@ pub extern "C" fn Servo_StyleSet_GetCounterStyleRule(raw_data: RawServoStyleSetB pub extern "C" fn Servo_StyleSet_ResolveForDeclarations( raw_data: RawServoStyleSetBorrowed, parent_style_or_null: ServoComputedValuesBorrowedOrNull, - declarations: RawServoDeclarationBlockBorrowed, - loader: *mut Loader + declarations: RawServoDeclarationBlockBorrowed ) -> ServoComputedValuesStrong { let doc_data = PerDocumentStyleData::from_ffi(raw_data).borrow(); let global_style_data = &*GLOBAL_STYLE_DATA; @@ -3252,11 +3214,9 @@ pub extern "C" fn Servo_StyleSet_ResolveForDeclarations( let declarations = Locked::::as_arc(&declarations); - let reporter = create_error_reporter(ptr::null_mut(), loader); doc_data.stylist.compute_for_declarations(&guards, parent_style, - declarations.clone(), - &reporter).into_strong() + declarations.clone()).into_strong() } #[no_mangle] diff --git a/tests/unit/gfx/Cargo.toml b/tests/unit/gfx/Cargo.toml index ac840b7b2e80..078ebb41aa93 100644 --- a/tests/unit/gfx/Cargo.toml +++ b/tests/unit/gfx/Cargo.toml @@ -10,7 +10,7 @@ path = "lib.rs" doctest = false [dependencies] -cssparser = "0.17.0" +cssparser = "0.16.1" gfx = {path = "../../../components/gfx"} ipc-channel = "0.8" style = {path = "../../../components/style"} diff --git a/tests/unit/style/Cargo.toml b/tests/unit/style/Cargo.toml index f5121de85a36..ed9b3cff1b67 100644 --- a/tests/unit/style/Cargo.toml +++ b/tests/unit/style/Cargo.toml @@ -15,7 +15,7 @@ testing = ["style/testing"] [dependencies] byteorder = "1.0" app_units = "0.5" -cssparser = "0.17.0" +cssparser = "0.16.1" euclid = "0.15" html5ever = "0.18" parking_lot = "0.3" diff --git a/tests/unit/style/stylesheets.rs b/tests/unit/style/stylesheets.rs index 9f72573db323..6761be36ff28 100644 --- a/tests/unit/style/stylesheets.rs +++ b/tests/unit/style/stylesheets.rs @@ -84,7 +84,7 @@ fn test_parse_stylesheet() { url: NsAtom::from("http://www.w3.org/1999/xhtml"), source_location: SourceLocation { line: 1, - column: 18, + column: 19, }, }))), CssRule::Style(Arc::new(stylesheet.shared_lock.wrap(StyleRule { @@ -114,7 +114,7 @@ fn test_parse_stylesheet() { ]))), source_location: SourceLocation { line: 3, - column: 8, + column: 9, }, }))), CssRule::Style(Arc::new(stylesheet.shared_lock.wrap(StyleRule { @@ -141,7 +141,7 @@ fn test_parse_stylesheet() { ]))), source_location: SourceLocation { line: 11, - column: 8, + column: 9, }, }))), CssRule::Style(Arc::new(stylesheet.shared_lock.wrap(StyleRule { @@ -203,7 +203,7 @@ fn test_parse_stylesheet() { ]))), source_location: SourceLocation { line: 15, - column: 8, + column: 9, }, }))), CssRule::Keyframes(Arc::new(stylesheet.shared_lock.wrap(KeyframesRule { @@ -235,7 +235,7 @@ fn test_parse_stylesheet() { vendor_prefix: None, source_location: SourceLocation { line: 16, - column: 18, + column: 19, }, }))) @@ -314,16 +314,15 @@ fn test_report_error_stylesheet() { let mut errors = errors.lock().unwrap(); let error = errors.pop().unwrap(); - assert_eq!("Unsupported property declaration: 'invalid: true;', \ - Custom(UnknownProperty(\"invalid\"))", error.message); - assert_eq!(9, error.line); - assert_eq!(8, error.column); + assert_eq!("Unsupported property declaration: 'invalid: true;', found unexpected identifier true", error.message); + assert_eq!(10, error.line); + assert_eq!(9, error.column); let error = errors.pop().unwrap(); assert_eq!("Unsupported property declaration: 'display: invalid;', \ - Custom(PropertyDeclaration(InvalidValue(\"display\")))", error.message); - assert_eq!(8, error.line); - assert_eq!(8, error.column); + Custom(PropertyDeclaration(InvalidValue))", error.message); + assert_eq!(9, error.line); + assert_eq!(9, error.column); // testing for the url assert_eq!(url, error.url); diff --git a/tests/unit/stylo/Cargo.toml b/tests/unit/stylo/Cargo.toml index 7034f9cbbe1c..52dc50ea132e 100644 --- a/tests/unit/stylo/Cargo.toml +++ b/tests/unit/stylo/Cargo.toml @@ -16,7 +16,7 @@ testing = ["style/testing"] [dependencies] atomic_refcell = "0.1" -cssparser = "0.17.0" +cssparser = "0.16.1" env_logger = "0.4" euclid = "0.15" geckoservo = {path = "../../../ports/geckolib"}