diff options
-rw-r--r-- | components/style/gecko/generated/pseudo_element_definition.rs | 529 | ||||
-rw-r--r-- | components/style/gecko/generated/structs.rs | 730 |
2 files changed, 447 insertions, 812 deletions
diff --git a/components/style/gecko/generated/pseudo_element_definition.rs b/components/style/gecko/generated/pseudo_element_definition.rs index c312161dde6..e8e7c1674a5 100644 --- a/components/style/gecko/generated/pseudo_element_definition.rs +++ b/components/style/gecko/generated/pseudo_element_definition.rs @@ -614,89 +614,89 @@ impl PseudoElement { PseudoElement::MozColorSwatch => structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch, PseudoElement::MozText => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::OofPlaceholder => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::FirstLetterContinuation => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozBlockInsideInlineWrapper => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozMathMLAnonymousBlock => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozXULAnonymousBlock => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::HorizontalFramesetBorder => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::VerticalFramesetBorder => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozLineFrame => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::ButtonContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::CellContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::DropDownList => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::FieldsetContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::FramesetBlank => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozDisplayComboboxControlFrame => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::HtmlCanvasContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::InlineTable => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::Table => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::TableCell => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::TableColGroup => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::TableCol => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::TableWrapper => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::TableRowGroup => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::TableRow => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::Canvas => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::PageBreak => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::Page => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::PageContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::PageSequence => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::ScrolledContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::ScrolledCanvas => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::ScrolledPageSequence => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::ColumnContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::Viewport => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::ViewportScroll => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::AnonymousFlexItem => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::AnonymousGridItem => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::Ruby => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::RubyBase => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::RubyBaseContainer => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::RubyText => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::RubyTextContainer => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozTreeColumn(..) => 0, PseudoElement::MozTreeRow(..) => @@ -720,13 +720,13 @@ impl PseudoElement { PseudoElement::MozTreeDropFeedback(..) => 0, PseudoElement::MozSVGMarkerAnonChild => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozSVGOuterSVGAnonChild => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozSVGForeignContent => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, PseudoElement::MozSVGText => - structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY, + structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS, } } @@ -1360,367 +1360,232 @@ impl PseudoElement { /// /// Returns `None` if the pseudo-element is not recognised. #[inline] - pub fn from_slice(s: &str, in_ua_stylesheet: bool) -> Option<Self> { - #[allow(unused_imports)] use std::ascii::AsciiExt; - + pub fn from_slice(name: &str) -> Option<Self> { // We don't need to support tree pseudos because functional // pseudo-elements needs arguments, and thus should be created // via other methods. - if in_ua_stylesheet || PseudoElement::After.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("after") { - return Some(PseudoElement::After); - } + match_ignore_ascii_case! { name, + "after" => { + return Some(PseudoElement::After) } - if in_ua_stylesheet || PseudoElement::Before.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("before") { - return Some(PseudoElement::Before); - } + "before" => { + return Some(PseudoElement::Before) } - if in_ua_stylesheet || PseudoElement::Backdrop.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("backdrop") { - return Some(PseudoElement::Backdrop); - } + "backdrop" => { + return Some(PseudoElement::Backdrop) } - if in_ua_stylesheet || PseudoElement::Cue.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("cue") { - return Some(PseudoElement::Cue); - } + "cue" => { + return Some(PseudoElement::Cue) } - if in_ua_stylesheet || PseudoElement::FirstLetter.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("first-letter") { - return Some(PseudoElement::FirstLetter); - } + "first-letter" => { + return Some(PseudoElement::FirstLetter) } - if in_ua_stylesheet || PseudoElement::FirstLine.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("first-line") { - return Some(PseudoElement::FirstLine); - } + "first-line" => { + return Some(PseudoElement::FirstLine) } - if in_ua_stylesheet || PseudoElement::MozSelection.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-selection") { - return Some(PseudoElement::MozSelection); - } + "-moz-selection" => { + return Some(PseudoElement::MozSelection) } - if in_ua_stylesheet || PseudoElement::MozFocusInner.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-focus-inner") { - return Some(PseudoElement::MozFocusInner); - } + "-moz-focus-inner" => { + return Some(PseudoElement::MozFocusInner) } - if in_ua_stylesheet || PseudoElement::MozFocusOuter.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-focus-outer") { - return Some(PseudoElement::MozFocusOuter); - } + "-moz-focus-outer" => { + return Some(PseudoElement::MozFocusOuter) } - if in_ua_stylesheet || PseudoElement::MozListBullet.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-list-bullet") { - return Some(PseudoElement::MozListBullet); - } + "-moz-list-bullet" => { + return Some(PseudoElement::MozListBullet) } - if in_ua_stylesheet || PseudoElement::MozListNumber.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-list-number") { - return Some(PseudoElement::MozListNumber); - } + "-moz-list-number" => { + return Some(PseudoElement::MozListNumber) } - if in_ua_stylesheet || PseudoElement::MozMathAnonymous.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-math-anonymous") { - return Some(PseudoElement::MozMathAnonymous); - } + "-moz-math-anonymous" => { + return Some(PseudoElement::MozMathAnonymous) } - if in_ua_stylesheet || PseudoElement::MozNumberWrapper.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-number-wrapper") { - return Some(PseudoElement::MozNumberWrapper); - } + "-moz-number-wrapper" => { + return Some(PseudoElement::MozNumberWrapper) } - if in_ua_stylesheet || PseudoElement::MozNumberText.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-number-text") { - return Some(PseudoElement::MozNumberText); - } + "-moz-number-text" => { + return Some(PseudoElement::MozNumberText) } - if in_ua_stylesheet || PseudoElement::MozNumberSpinBox.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-number-spin-box") { - return Some(PseudoElement::MozNumberSpinBox); - } + "-moz-number-spin-box" => { + return Some(PseudoElement::MozNumberSpinBox) } - if in_ua_stylesheet || PseudoElement::MozNumberSpinUp.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-number-spin-up") { - return Some(PseudoElement::MozNumberSpinUp); - } + "-moz-number-spin-up" => { + return Some(PseudoElement::MozNumberSpinUp) } - if in_ua_stylesheet || PseudoElement::MozNumberSpinDown.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-number-spin-down") { - return Some(PseudoElement::MozNumberSpinDown); - } + "-moz-number-spin-down" => { + return Some(PseudoElement::MozNumberSpinDown) } - if in_ua_stylesheet || PseudoElement::MozProgressBar.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-progress-bar") { - return Some(PseudoElement::MozProgressBar); - } + "-moz-progress-bar" => { + return Some(PseudoElement::MozProgressBar) } - if in_ua_stylesheet || PseudoElement::MozRangeTrack.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-range-track") { - return Some(PseudoElement::MozRangeTrack); - } + "-moz-range-track" => { + return Some(PseudoElement::MozRangeTrack) } - if in_ua_stylesheet || PseudoElement::MozRangeProgress.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-range-progress") { - return Some(PseudoElement::MozRangeProgress); - } + "-moz-range-progress" => { + return Some(PseudoElement::MozRangeProgress) } - if in_ua_stylesheet || PseudoElement::MozRangeThumb.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-range-thumb") { - return Some(PseudoElement::MozRangeThumb); - } + "-moz-range-thumb" => { + return Some(PseudoElement::MozRangeThumb) } - if in_ua_stylesheet || PseudoElement::MozMeterBar.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-meter-bar") { - return Some(PseudoElement::MozMeterBar); - } + "-moz-meter-bar" => { + return Some(PseudoElement::MozMeterBar) } - if in_ua_stylesheet || PseudoElement::MozPlaceholder.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-placeholder") { - return Some(PseudoElement::MozPlaceholder); - } + "-moz-placeholder" => { + return Some(PseudoElement::MozPlaceholder) } - if in_ua_stylesheet || PseudoElement::Placeholder.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("placeholder") { - return Some(PseudoElement::Placeholder); - } + "placeholder" => { + return Some(PseudoElement::Placeholder) } - if in_ua_stylesheet || PseudoElement::MozColorSwatch.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-color-swatch") { - return Some(PseudoElement::MozColorSwatch); - } + "-moz-color-swatch" => { + return Some(PseudoElement::MozColorSwatch) } - if in_ua_stylesheet || PseudoElement::MozText.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-text") { - return Some(PseudoElement::MozText); - } + "-moz-text" => { + return Some(PseudoElement::MozText) } - if in_ua_stylesheet || PseudoElement::OofPlaceholder.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-oof-placeholder") { - return Some(PseudoElement::OofPlaceholder); - } + "-moz-oof-placeholder" => { + return Some(PseudoElement::OofPlaceholder) } - if in_ua_stylesheet || PseudoElement::FirstLetterContinuation.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-first-letter-continuation") { - return Some(PseudoElement::FirstLetterContinuation); - } + "-moz-first-letter-continuation" => { + return Some(PseudoElement::FirstLetterContinuation) } - if in_ua_stylesheet || PseudoElement::MozBlockInsideInlineWrapper.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-block-inside-inline-wrapper") { - return Some(PseudoElement::MozBlockInsideInlineWrapper); - } + "-moz-block-inside-inline-wrapper" => { + return Some(PseudoElement::MozBlockInsideInlineWrapper) } - if in_ua_stylesheet || PseudoElement::MozMathMLAnonymousBlock.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-mathml-anonymous-block") { - return Some(PseudoElement::MozMathMLAnonymousBlock); - } + "-moz-mathml-anonymous-block" => { + return Some(PseudoElement::MozMathMLAnonymousBlock) } - if in_ua_stylesheet || PseudoElement::MozXULAnonymousBlock.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-xul-anonymous-block") { - return Some(PseudoElement::MozXULAnonymousBlock); - } + "-moz-xul-anonymous-block" => { + return Some(PseudoElement::MozXULAnonymousBlock) } - if in_ua_stylesheet || PseudoElement::HorizontalFramesetBorder.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-hframeset-border") { - return Some(PseudoElement::HorizontalFramesetBorder); - } + "-moz-hframeset-border" => { + return Some(PseudoElement::HorizontalFramesetBorder) } - if in_ua_stylesheet || PseudoElement::VerticalFramesetBorder.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-vframeset-border") { - return Some(PseudoElement::VerticalFramesetBorder); - } + "-moz-vframeset-border" => { + return Some(PseudoElement::VerticalFramesetBorder) } - if in_ua_stylesheet || PseudoElement::MozLineFrame.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-line-frame") { - return Some(PseudoElement::MozLineFrame); - } + "-moz-line-frame" => { + return Some(PseudoElement::MozLineFrame) } - if in_ua_stylesheet || PseudoElement::ButtonContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-button-content") { - return Some(PseudoElement::ButtonContent); - } + "-moz-button-content" => { + return Some(PseudoElement::ButtonContent) } - if in_ua_stylesheet || PseudoElement::CellContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-cell-content") { - return Some(PseudoElement::CellContent); - } + "-moz-cell-content" => { + return Some(PseudoElement::CellContent) } - if in_ua_stylesheet || PseudoElement::DropDownList.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-dropdown-list") { - return Some(PseudoElement::DropDownList); - } + "-moz-dropdown-list" => { + return Some(PseudoElement::DropDownList) } - if in_ua_stylesheet || PseudoElement::FieldsetContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-fieldset-content") { - return Some(PseudoElement::FieldsetContent); - } + "-moz-fieldset-content" => { + return Some(PseudoElement::FieldsetContent) } - if in_ua_stylesheet || PseudoElement::FramesetBlank.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-frameset-blank") { - return Some(PseudoElement::FramesetBlank); - } + "-moz-frameset-blank" => { + return Some(PseudoElement::FramesetBlank) } - if in_ua_stylesheet || PseudoElement::MozDisplayComboboxControlFrame.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-display-comboboxcontrol-frame") { - return Some(PseudoElement::MozDisplayComboboxControlFrame); - } + "-moz-display-comboboxcontrol-frame" => { + return Some(PseudoElement::MozDisplayComboboxControlFrame) } - if in_ua_stylesheet || PseudoElement::HtmlCanvasContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-html-canvas-content") { - return Some(PseudoElement::HtmlCanvasContent); - } + "-moz-html-canvas-content" => { + return Some(PseudoElement::HtmlCanvasContent) } - if in_ua_stylesheet || PseudoElement::InlineTable.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-inline-table") { - return Some(PseudoElement::InlineTable); - } + "-moz-inline-table" => { + return Some(PseudoElement::InlineTable) } - if in_ua_stylesheet || PseudoElement::Table.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-table") { - return Some(PseudoElement::Table); - } + "-moz-table" => { + return Some(PseudoElement::Table) } - if in_ua_stylesheet || PseudoElement::TableCell.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-table-cell") { - return Some(PseudoElement::TableCell); - } + "-moz-table-cell" => { + return Some(PseudoElement::TableCell) } - if in_ua_stylesheet || PseudoElement::TableColGroup.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-table-column-group") { - return Some(PseudoElement::TableColGroup); - } + "-moz-table-column-group" => { + return Some(PseudoElement::TableColGroup) } - if in_ua_stylesheet || PseudoElement::TableCol.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-table-column") { - return Some(PseudoElement::TableCol); - } + "-moz-table-column" => { + return Some(PseudoElement::TableCol) } - if in_ua_stylesheet || PseudoElement::TableWrapper.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-table-wrapper") { - return Some(PseudoElement::TableWrapper); - } + "-moz-table-wrapper" => { + return Some(PseudoElement::TableWrapper) } - if in_ua_stylesheet || PseudoElement::TableRowGroup.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-table-row-group") { - return Some(PseudoElement::TableRowGroup); - } + "-moz-table-row-group" => { + return Some(PseudoElement::TableRowGroup) } - if in_ua_stylesheet || PseudoElement::TableRow.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-table-row") { - return Some(PseudoElement::TableRow); - } + "-moz-table-row" => { + return Some(PseudoElement::TableRow) } - if in_ua_stylesheet || PseudoElement::Canvas.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-canvas") { - return Some(PseudoElement::Canvas); - } + "-moz-canvas" => { + return Some(PseudoElement::Canvas) } - if in_ua_stylesheet || PseudoElement::PageBreak.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-pagebreak") { - return Some(PseudoElement::PageBreak); - } + "-moz-pagebreak" => { + return Some(PseudoElement::PageBreak) } - if in_ua_stylesheet || PseudoElement::Page.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-page") { - return Some(PseudoElement::Page); - } + "-moz-page" => { + return Some(PseudoElement::Page) } - if in_ua_stylesheet || PseudoElement::PageContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-pagecontent") { - return Some(PseudoElement::PageContent); - } + "-moz-pagecontent" => { + return Some(PseudoElement::PageContent) } - if in_ua_stylesheet || PseudoElement::PageSequence.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-page-sequence") { - return Some(PseudoElement::PageSequence); - } + "-moz-page-sequence" => { + return Some(PseudoElement::PageSequence) } - if in_ua_stylesheet || PseudoElement::ScrolledContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-scrolled-content") { - return Some(PseudoElement::ScrolledContent); - } + "-moz-scrolled-content" => { + return Some(PseudoElement::ScrolledContent) } - if in_ua_stylesheet || PseudoElement::ScrolledCanvas.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-scrolled-canvas") { - return Some(PseudoElement::ScrolledCanvas); - } + "-moz-scrolled-canvas" => { + return Some(PseudoElement::ScrolledCanvas) } - if in_ua_stylesheet || PseudoElement::ScrolledPageSequence.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-scrolled-page-sequence") { - return Some(PseudoElement::ScrolledPageSequence); - } + "-moz-scrolled-page-sequence" => { + return Some(PseudoElement::ScrolledPageSequence) } - if in_ua_stylesheet || PseudoElement::ColumnContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-column-content") { - return Some(PseudoElement::ColumnContent); - } + "-moz-column-content" => { + return Some(PseudoElement::ColumnContent) } - if in_ua_stylesheet || PseudoElement::Viewport.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-viewport") { - return Some(PseudoElement::Viewport); - } + "-moz-viewport" => { + return Some(PseudoElement::Viewport) } - if in_ua_stylesheet || PseudoElement::ViewportScroll.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-viewport-scroll") { - return Some(PseudoElement::ViewportScroll); - } + "-moz-viewport-scroll" => { + return Some(PseudoElement::ViewportScroll) } - if in_ua_stylesheet || PseudoElement::AnonymousFlexItem.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-anonymous-flex-item") { - return Some(PseudoElement::AnonymousFlexItem); - } + "-moz-anonymous-flex-item" => { + return Some(PseudoElement::AnonymousFlexItem) } - if in_ua_stylesheet || PseudoElement::AnonymousGridItem.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-anonymous-grid-item") { - return Some(PseudoElement::AnonymousGridItem); - } + "-moz-anonymous-grid-item" => { + return Some(PseudoElement::AnonymousGridItem) } - if in_ua_stylesheet || PseudoElement::Ruby.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-ruby") { - return Some(PseudoElement::Ruby); - } + "-moz-ruby" => { + return Some(PseudoElement::Ruby) } - if in_ua_stylesheet || PseudoElement::RubyBase.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-ruby-base") { - return Some(PseudoElement::RubyBase); - } + "-moz-ruby-base" => { + return Some(PseudoElement::RubyBase) } - if in_ua_stylesheet || PseudoElement::RubyBaseContainer.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-ruby-base-container") { - return Some(PseudoElement::RubyBaseContainer); - } + "-moz-ruby-base-container" => { + return Some(PseudoElement::RubyBaseContainer) } - if in_ua_stylesheet || PseudoElement::RubyText.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-ruby-text") { - return Some(PseudoElement::RubyText); - } + "-moz-ruby-text" => { + return Some(PseudoElement::RubyText) } - if in_ua_stylesheet || PseudoElement::RubyTextContainer.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-ruby-text-container") { - return Some(PseudoElement::RubyTextContainer); - } + "-moz-ruby-text-container" => { + return Some(PseudoElement::RubyTextContainer) } - if in_ua_stylesheet || PseudoElement::MozSVGMarkerAnonChild.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-svg-marker-anon-child") { - return Some(PseudoElement::MozSVGMarkerAnonChild); - } + "-moz-svg-marker-anon-child" => { + return Some(PseudoElement::MozSVGMarkerAnonChild) } - if in_ua_stylesheet || PseudoElement::MozSVGOuterSVGAnonChild.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-svg-outer-svg-anon-child") { - return Some(PseudoElement::MozSVGOuterSVGAnonChild); - } + "-moz-svg-outer-svg-anon-child" => { + return Some(PseudoElement::MozSVGOuterSVGAnonChild) } - if in_ua_stylesheet || PseudoElement::MozSVGForeignContent.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-svg-foreign-content") { - return Some(PseudoElement::MozSVGForeignContent); - } + "-moz-svg-foreign-content" => { + return Some(PseudoElement::MozSVGForeignContent) } - if in_ua_stylesheet || PseudoElement::MozSVGText.exposed_in_non_ua_sheets() { - if s.eq_ignore_ascii_case("-moz-svg-text") { - return Some(PseudoElement::MozSVGText); + "-moz-svg-text" => { + return Some(PseudoElement::MozSVGText) + } + _ => { + // FIXME: -moz-tree check should probably be + // ascii-case-insensitive. + if name.starts_with("-moz-tree-") { + return PseudoElement::tree_pseudo_element(name, Box::new([])) } } + } None } diff --git a/components/style/gecko/generated/structs.rs b/components/style/gecko/generated/structs.rs index 35b794700a1..19657eb34d6 100644 --- a/components/style/gecko/generated/structs.rs +++ b/components/style/gecko/generated/structs.rs @@ -837,9 +837,11 @@ pub mod root { pub const CSS_PSEUDO_ELEMENT_CONTAINS_ELEMENTS: ::std::os::raw::c_uint = 2; pub const CSS_PSEUDO_ELEMENT_SUPPORTS_STYLE_ATTRIBUTE: ::std::os::raw::c_uint = 4; pub const CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE: ::std::os::raw::c_uint = 8; - pub const CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY: ::std::os::raw::c_uint = 16; - pub const CSS_PSEUDO_ELEMENT_IS_JS_CREATED_NAC: ::std::os::raw::c_uint = 32; - pub const CSS_PSEUDO_ELEMENT_IS_FLEX_OR_GRID_ITEM: ::std::os::raw::c_uint = 64; + pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS: ::std::os::raw::c_uint = 16; + pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_CHROME: ::std::os::raw::c_uint = 32; + pub const CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS_AND_CHROME: ::std::os::raw::c_uint = 48; + pub const CSS_PSEUDO_ELEMENT_IS_JS_CREATED_NAC: ::std::os::raw::c_uint = 64; + pub const CSS_PSEUDO_ELEMENT_IS_FLEX_OR_GRID_ITEM: ::std::os::raw::c_uint = 128; pub const kNameSpaceID_Unknown: ::std::os::raw::c_int = -1; pub const kNameSpaceID_XMLNS: ::std::os::raw::c_uint = 1; pub const kNameSpaceID_XML: ::std::os::raw::c_uint = 2; @@ -909,6 +911,8 @@ pub mod root { } pub type pair_first_type<_T1> = _T1; pub type pair_second_type<_T2> = _T2; + pub type pair__PCCP = u8; + pub type pair__PCCFP = u8; #[repr(C)] #[derive(Debug, Copy)] pub struct input_iterator_tag { @@ -966,6 +970,14 @@ pub mod root { #[allow(unused_imports)] use self::super::super::root; } + pub type __int8_t = ::std::os::raw::c_schar; + pub type __uint8_t = ::std::os::raw::c_uchar; + pub type __int16_t = ::std::os::raw::c_short; + pub type __uint16_t = ::std::os::raw::c_ushort; + pub type __int32_t = ::std::os::raw::c_int; + pub type __uint32_t = ::std::os::raw::c_uint; + pub type __int64_t = ::std::os::raw::c_long; + pub type __uint64_t = ::std::os::raw::c_ulong; pub mod mozilla { #[allow(unused_imports)] use self::super::super::root; @@ -3220,7 +3232,7 @@ pub mod root { } #[repr(C)] pub struct SRIMetadata { - pub mHashes: root::nsTArray<root::nsTString<::std::os::raw::c_char>>, + pub mHashes: root::nsTArray<root::nsCString>, pub mIntegrityString: ::nsstring::nsStringRepr, pub mAlgorithm: root::nsCString, pub mAlgorithmType: i8, @@ -6365,18 +6377,19 @@ pub mod root { pub const UseCounter_eUseCounter_RTCPeerConnectionGetStreams: root::mozilla::UseCounter = 75; pub const UseCounter_eUseCounter_AppCache: root::mozilla::UseCounter = 76; + pub const UseCounter_eUseCounter_AppCacheInsecure: root::mozilla::UseCounter = 77; pub const UseCounter_eUseCounter_PrefixedImageSmoothingEnabled: root::mozilla::UseCounter = - 77; - pub const UseCounter_eUseCounter_PrefixedFullscreenAPI: root::mozilla::UseCounter = 78; - pub const UseCounter_eUseCounter_LenientSetter: root::mozilla::UseCounter = 79; - pub const UseCounter_eUseCounter_FileLastModifiedDate: root::mozilla::UseCounter = 80; + 78; + pub const UseCounter_eUseCounter_PrefixedFullscreenAPI: root::mozilla::UseCounter = 79; + pub const UseCounter_eUseCounter_LenientSetter: root::mozilla::UseCounter = 80; + pub const UseCounter_eUseCounter_FileLastModifiedDate: root::mozilla::UseCounter = 81; pub const UseCounter_eUseCounter_ImageBitmapRenderingContext_TransferImageBitmap: - root::mozilla::UseCounter = 81; + root::mozilla::UseCounter = 82; pub const UseCounter_eUseCounter_URLCreateObjectURL_MediaStream: root::mozilla::UseCounter = - 82; - pub const UseCounter_eUseCounter_XMLBaseAttribute: root::mozilla::UseCounter = 83; - pub const UseCounter_eUseCounter_WindowContentUntrusted: root::mozilla::UseCounter = 84; - pub const UseCounter_eUseCounter_Count: root::mozilla::UseCounter = 85; + 83; + pub const UseCounter_eUseCounter_XMLBaseAttribute: root::mozilla::UseCounter = 84; + pub const UseCounter_eUseCounter_WindowContentUntrusted: root::mozilla::UseCounter = 85; + pub const UseCounter_eUseCounter_Count: root::mozilla::UseCounter = 86; pub type UseCounter = i16; pub const LogLevel_Disabled: root::mozilla::LogLevel = 0; pub const LogLevel_Error: root::mozilla::LogLevel = 1; @@ -6478,6 +6491,8 @@ pub mod root { *self } } + pub type ComputedKeyframeValues = + root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>; #[test] fn __bindgen_test_layout_DefaultDelete_open0_RawServoStyleSet_close0_instantiation() { assert_eq!( @@ -7117,7 +7132,6 @@ pub mod root { } } #[repr(C)] - #[derive(Debug)] pub struct AnonymousCounterStyle { pub _base: root::mozilla::CounterStyle, pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, @@ -10605,7 +10619,6 @@ pub mod root { ); } #[repr(C)] - #[derive(Debug)] pub struct GeckoList { pub gecko: root::nsStyleList, } @@ -14585,7 +14598,7 @@ pub mod root { #[repr(C)] pub struct gfxFontFeatureValueSet_ValueList { pub name: ::nsstring::nsStringRepr, - pub featureSelectors: root::nsTArray<::std::os::raw::c_uint>, + pub featureSelectors: root::nsTArray<u32>, } #[test] fn bindgen_test_layout_gfxFontFeatureValueSet_ValueList() { @@ -14747,7 +14760,7 @@ pub mod root { pub struct gfxFontFeatureValueSet_FeatureValueHashEntry { pub _base: root::PLDHashEntryHdr, pub mKey: root::gfxFontFeatureValueSet_FeatureValueHashKey, - pub mValues: root::nsTArray<::std::os::raw::c_uint>, + pub mValues: root::nsTArray<u32>, } pub type gfxFontFeatureValueSet_FeatureValueHashEntry_KeyType = *const root::gfxFontFeatureValueSet_FeatureValueHashKey; @@ -14871,7 +14884,7 @@ pub mod root { pub alternateValues: root::nsTArray<root::gfxAlternateValue>, pub featureValueLookup: root::RefPtr<root::gfxFontFeatureValueSet>, pub fontFeatureSettings: root::nsTArray<root::gfxFontFeature>, - pub fontVariationSettings: root::nsTArray<root::mozilla::gfx::FontVariation>, + pub fontVariationSettings: root::nsTArray<root::gfxFontVariation>, pub languageOverride: u32, } pub const nsFont_MaxDifference_eNone: root::nsFont_MaxDifference = 0; @@ -17655,31 +17668,31 @@ pub mod root { pub struct RawServoSelectorList { _unused: [u8; 0], } - pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_83 = 4; - pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_83 = 8; - pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_83 = 16; - pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_83 = 32; - pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_83 = 64; - pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_83 = 128; - pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_83 = 256; - pub const NODE_IS_EDITABLE: root::_bindgen_ty_83 = 512; - pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_83 = 1024; - pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_83 = 2048; - pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_83 = 4096; - pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_83 = 8192; - pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_83 = 16384; - pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_83 = 32768; - pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_83 = 61440; - pub const NODE_NEEDS_FRAME: root::_bindgen_ty_83 = 65536; - pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_83 = 131072; - pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_83 = 262144; - pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_83 = 524288; - pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_83 = 1048576; - pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_83 = 1572864; - pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = 2097152; - pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_83 = 4194304; - pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_83 = 21; - pub type _bindgen_ty_83 = u32; + pub const NODE_HAS_LISTENERMANAGER: root::_bindgen_ty_77 = 4; + pub const NODE_HAS_PROPERTIES: root::_bindgen_ty_77 = 8; + pub const NODE_IS_ANONYMOUS_ROOT: root::_bindgen_ty_77 = 16; + pub const NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE: root::_bindgen_ty_77 = 32; + pub const NODE_IS_NATIVE_ANONYMOUS_ROOT: root::_bindgen_ty_77 = 64; + pub const NODE_FORCE_XBL_BINDINGS: root::_bindgen_ty_77 = 128; + pub const NODE_MAY_BE_IN_BINDING_MNGR: root::_bindgen_ty_77 = 256; + pub const NODE_IS_EDITABLE: root::_bindgen_ty_77 = 512; + pub const NODE_IS_NATIVE_ANONYMOUS: root::_bindgen_ty_77 = 1024; + pub const NODE_IS_IN_SHADOW_TREE: root::_bindgen_ty_77 = 2048; + pub const NODE_HAS_EMPTY_SELECTOR: root::_bindgen_ty_77 = 4096; + pub const NODE_HAS_SLOW_SELECTOR: root::_bindgen_ty_77 = 8192; + pub const NODE_HAS_EDGE_CHILD_SELECTOR: root::_bindgen_ty_77 = 16384; + pub const NODE_HAS_SLOW_SELECTOR_LATER_SIBLINGS: root::_bindgen_ty_77 = 32768; + pub const NODE_ALL_SELECTOR_FLAGS: root::_bindgen_ty_77 = 61440; + pub const NODE_NEEDS_FRAME: root::_bindgen_ty_77 = 65536; + pub const NODE_DESCENDANTS_NEED_FRAMES: root::_bindgen_ty_77 = 131072; + pub const NODE_HAS_ACCESSKEY: root::_bindgen_ty_77 = 262144; + pub const NODE_HAS_DIRECTION_RTL: root::_bindgen_ty_77 = 524288; + pub const NODE_HAS_DIRECTION_LTR: root::_bindgen_ty_77 = 1048576; + pub const NODE_ALL_DIRECTION_FLAGS: root::_bindgen_ty_77 = 1572864; + pub const NODE_CHROME_ONLY_ACCESS: root::_bindgen_ty_77 = 2097152; + pub const NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS: root::_bindgen_ty_77 = 4194304; + pub const NODE_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_77 = 21; + pub type _bindgen_ty_77 = u32; /// An internal interface that abstracts some DOMNode-related parts that both /// nsIContent and nsIDocument share. An instance of this interface has a list /// of nsIContent children and provides access to them. @@ -19718,7 +19731,7 @@ pub mod root { pub struct nsIGlobalObject { pub _base: root::nsISupports, pub _base_1: root::mozilla::dom::DispatcherTrait, - pub mHostObjectURIs: root::nsTArray<root::nsTString<::std::os::raw::c_char>>, + pub mHostObjectURIs: root::nsTArray<root::nsCString>, pub mIsDying: bool, } #[repr(C)] @@ -21032,7 +21045,7 @@ pub mod root { pub mIdContentList: [u64; 3usize], pub mNameContentList: root::RefPtr<root::nsBaseContentList>, pub mChangeCallbacks: u64, - pub mImageElement: root::RefPtr<root::mozilla::dom::Element>, + pub mImageElement: root::RefPtr<root::nsIdentifierMapEntry_Element>, } pub type nsIdentifierMapEntry_Element = root::mozilla::dom::Element; pub use self::super::root::mozilla::net::ReferrerPolicy as nsIdentifierMapEntry_ReferrerPolicy; @@ -21896,7 +21909,7 @@ pub mod root { pub type RawGeckoKeyframeList = root::nsTArray<root::mozilla::Keyframe>; pub type RawGeckoPropertyValuePairList = root::nsTArray<root::mozilla::PropertyValuePair>; pub type RawGeckoComputedKeyframeValuesList = - root::nsTArray<root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>>; + root::nsTArray<root::mozilla::ComputedKeyframeValues>; pub type RawGeckoStyleAnimationList = root::nsStyleAutoArray<root::mozilla::StyleAnimation>; pub type RawGeckoFontFaceRuleList = root::nsTArray<root::nsFontFaceRuleContainer>; pub type RawGeckoAnimationPropertySegment = root::mozilla::AnimationPropertySegment; @@ -21992,7 +22005,7 @@ pub mod root { pub mUpgradeInsecureRequests: bool, pub mUpgradeInsecurePreloads: bool, pub mDocumentContainer: u64, - pub mCharacterSet: root::mozilla::NotNull<*const root::mozilla::Encoding>, + pub mCharacterSet: root::mozilla::NotNull<*const root::nsIDocument_Encoding>, pub mCharacterSetSource: i32, pub mParentDocument: *mut root::nsIDocument, pub mCachedRootElement: *mut root::mozilla::dom::Element, @@ -22043,7 +22056,7 @@ pub mod root { /// The current frame request callback handle pub mFrameRequestCallbackCounter: i32, pub mStaticCloneCount: u32, - pub mBlockedTrackingNodes: root::nsTArray<root::nsCOMPtr>, + pub mBlockedTrackingNodes: root::nsTArray<root::nsWeakPtr>, pub mWindow: *mut root::nsPIDOMWindowInner, pub mCachedEncoder: root::nsCOMPtr, pub mFrameRequestCallbacks: root::nsTArray<root::nsIDocument_FrameRequest>, @@ -22067,7 +22080,7 @@ pub mod root { pub mTrackingScripts: [u64; 4usize], pub mBufferedCSPViolations: root::nsTArray<root::nsCOMPtr>, pub mAncestorPrincipals: root::nsTArray<root::nsCOMPtr>, - pub mAncestorOuterWindowIDs: root::nsTArray<::std::os::raw::c_ulong>, + pub mAncestorOuterWindowIDs: root::nsTArray<u64>, pub mServoRestyleRoot: root::nsCOMPtr, pub mServoRestyleRootDirtyBits: u32, pub mThrowOnDynamicMarkupInsertionCounter: u32, @@ -22444,24 +22457,26 @@ pub mod root { root::nsIDocument_DeprecatedOperations = 20; pub const nsIDocument_DeprecatedOperations_eAppCache: root::nsIDocument_DeprecatedOperations = 21; - pub const nsIDocument_DeprecatedOperations_ePrefixedImageSmoothingEnabled: + pub const nsIDocument_DeprecatedOperations_eAppCacheInsecure: root::nsIDocument_DeprecatedOperations = 22; - pub const nsIDocument_DeprecatedOperations_ePrefixedFullscreenAPI: + pub const nsIDocument_DeprecatedOperations_ePrefixedImageSmoothingEnabled: root::nsIDocument_DeprecatedOperations = 23; - pub const nsIDocument_DeprecatedOperations_eLenientSetter: + pub const nsIDocument_DeprecatedOperations_ePrefixedFullscreenAPI: root::nsIDocument_DeprecatedOperations = 24; - pub const nsIDocument_DeprecatedOperations_eFileLastModifiedDate: + pub const nsIDocument_DeprecatedOperations_eLenientSetter: root::nsIDocument_DeprecatedOperations = 25; - pub const nsIDocument_DeprecatedOperations_eImageBitmapRenderingContext_TransferImageBitmap: + pub const nsIDocument_DeprecatedOperations_eFileLastModifiedDate: root::nsIDocument_DeprecatedOperations = 26; - pub const nsIDocument_DeprecatedOperations_eURLCreateObjectURL_MediaStream: + pub const nsIDocument_DeprecatedOperations_eImageBitmapRenderingContext_TransferImageBitmap: root::nsIDocument_DeprecatedOperations = 27; - pub const nsIDocument_DeprecatedOperations_eXMLBaseAttribute: + pub const nsIDocument_DeprecatedOperations_eURLCreateObjectURL_MediaStream: root::nsIDocument_DeprecatedOperations = 28; - pub const nsIDocument_DeprecatedOperations_eWindowContentUntrusted: + pub const nsIDocument_DeprecatedOperations_eXMLBaseAttribute: root::nsIDocument_DeprecatedOperations = 29; - pub const nsIDocument_DeprecatedOperations_eDeprecatedOperationCount: + pub const nsIDocument_DeprecatedOperations_eWindowContentUntrusted: root::nsIDocument_DeprecatedOperations = 30; + pub const nsIDocument_DeprecatedOperations_eDeprecatedOperationCount: + root::nsIDocument_DeprecatedOperations = 31; pub type nsIDocument_DeprecatedOperations = u32; pub const nsIDocument_DocumentWarnings_eIgnoringWillChangeOverBudget: root::nsIDocument_DocumentWarnings = 0; @@ -22970,157 +22985,146 @@ pub mod root { } } #[inline] - pub fn mPostedFlushUserFontSet(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u8) } - } - #[inline] - pub fn set_mPostedFlushUserFontSet(&mut self, val: bool) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(41usize, 1u8, val as u64) - } - } - #[inline] pub fn mDidFireDOMContentLoaded(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u8) } } #[inline] pub fn set_mDidFireDOMContentLoaded(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(42usize, 1u8, val as u64) + self._bitfield_1.set(41usize, 1u8, val as u64) } } #[inline] pub fn mHasScrollLinkedEffect(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u8) } } #[inline] pub fn set_mHasScrollLinkedEffect(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(43usize, 1u8, val as u64) + self._bitfield_1.set(42usize, 1u8, val as u64) } } #[inline] pub fn mFrameRequestCallbacksScheduled(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u8) } } #[inline] pub fn set_mFrameRequestCallbacksScheduled(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(44usize, 1u8, val as u64) + self._bitfield_1.set(43usize, 1u8, val as u64) } } #[inline] pub fn mIsTopLevelContentDocument(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(45usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 1u8) as u8) } } #[inline] pub fn set_mIsTopLevelContentDocument(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(45usize, 1u8, val as u64) + self._bitfield_1.set(44usize, 1u8, val as u64) } } #[inline] pub fn mIsContentDocument(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(45usize, 1u8) as u8) } } #[inline] pub fn set_mIsContentDocument(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(46usize, 1u8, val as u64) + self._bitfield_1.set(45usize, 1u8, val as u64) } } #[inline] pub fn mDidCallBeginLoad(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(47usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 1u8) as u8) } } #[inline] pub fn set_mDidCallBeginLoad(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(47usize, 1u8, val as u64) + self._bitfield_1.set(46usize, 1u8, val as u64) } } #[inline] pub fn mBufferingCSPViolations(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(47usize, 1u8) as u8) } } #[inline] pub fn set_mBufferingCSPViolations(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(48usize, 1u8, val as u64) + self._bitfield_1.set(47usize, 1u8, val as u64) } } #[inline] pub fn mAllowPaymentRequest(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(49usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 1u8) as u8) } } #[inline] pub fn set_mAllowPaymentRequest(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(49usize, 1u8, val as u64) + self._bitfield_1.set(48usize, 1u8, val as u64) } } #[inline] pub fn mEncodingMenuDisabled(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(50usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(49usize, 1u8) as u8) } } #[inline] pub fn set_mEncodingMenuDisabled(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(50usize, 1u8, val as u64) + self._bitfield_1.set(49usize, 1u8, val as u64) } } #[inline] pub fn mIsShadowDOMEnabled(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(51usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(50usize, 1u8) as u8) } } #[inline] pub fn set_mIsShadowDOMEnabled(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(51usize, 1u8, val as u64) + self._bitfield_1.set(50usize, 1u8, val as u64) } } #[inline] pub fn mIsSVGGlyphsDocument(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(52usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(51usize, 1u8) as u8) } } #[inline] pub fn set_mIsSVGGlyphsDocument(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(52usize, 1u8, val as u64) + self._bitfield_1.set(51usize, 1u8, val as u64) } } #[inline] pub fn mAllowUnsafeHTML(&self) -> bool { - unsafe { ::std::mem::transmute(self._bitfield_1.get(53usize, 1u8) as u8) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(52usize, 1u8) as u8) } } #[inline] pub fn set_mAllowUnsafeHTML(&mut self, val: bool) { unsafe { let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(53usize, 1u8, val as u64) + self._bitfield_1.set(52usize, 1u8, val as u64) } } #[inline] pub fn mIsScopedStyleEnabled(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(54usize, 2u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(53usize, 2u8) as u32) } } #[inline] pub fn set_mIsScopedStyleEnabled(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(54usize, 2u8, val as u64) + self._bitfield_1.set(53usize, 2u8, val as u64) } } #[inline] @@ -23166,7 +23170,6 @@ pub mod root { mHasDisplayDocument: bool, mFontFaceSetDirty: bool, mGetUserFontSetCalled: bool, - mPostedFlushUserFontSet: bool, mDidFireDOMContentLoaded: bool, mHasScrollLinkedEffect: bool, mFrameRequestCallbacksScheduled: bool, @@ -23371,67 +23374,62 @@ pub mod root { mGetUserFontSetCalled as u64 }); __bindgen_bitfield_unit.set(41usize, 1u8, { - let mPostedFlushUserFontSet: u8 = - unsafe { ::std::mem::transmute(mPostedFlushUserFontSet) }; - mPostedFlushUserFontSet as u64 - }); - __bindgen_bitfield_unit.set(42usize, 1u8, { let mDidFireDOMContentLoaded: u8 = unsafe { ::std::mem::transmute(mDidFireDOMContentLoaded) }; mDidFireDOMContentLoaded as u64 }); - __bindgen_bitfield_unit.set(43usize, 1u8, { + __bindgen_bitfield_unit.set(42usize, 1u8, { let mHasScrollLinkedEffect: u8 = unsafe { ::std::mem::transmute(mHasScrollLinkedEffect) }; mHasScrollLinkedEffect as u64 }); - __bindgen_bitfield_unit.set(44usize, 1u8, { + __bindgen_bitfield_unit.set(43usize, 1u8, { let mFrameRequestCallbacksScheduled: u8 = unsafe { ::std::mem::transmute(mFrameRequestCallbacksScheduled) }; mFrameRequestCallbacksScheduled as u64 }); - __bindgen_bitfield_unit.set(45usize, 1u8, { + __bindgen_bitfield_unit.set(44usize, 1u8, { let mIsTopLevelContentDocument: u8 = unsafe { ::std::mem::transmute(mIsTopLevelContentDocument) }; mIsTopLevelContentDocument as u64 }); - __bindgen_bitfield_unit.set(46usize, 1u8, { + __bindgen_bitfield_unit.set(45usize, 1u8, { let mIsContentDocument: u8 = unsafe { ::std::mem::transmute(mIsContentDocument) }; mIsContentDocument as u64 }); - __bindgen_bitfield_unit.set(47usize, 1u8, { + __bindgen_bitfield_unit.set(46usize, 1u8, { let mDidCallBeginLoad: u8 = unsafe { ::std::mem::transmute(mDidCallBeginLoad) }; mDidCallBeginLoad as u64 }); - __bindgen_bitfield_unit.set(48usize, 1u8, { + __bindgen_bitfield_unit.set(47usize, 1u8, { let mBufferingCSPViolations: u8 = unsafe { ::std::mem::transmute(mBufferingCSPViolations) }; mBufferingCSPViolations as u64 }); - __bindgen_bitfield_unit.set(49usize, 1u8, { + __bindgen_bitfield_unit.set(48usize, 1u8, { let mAllowPaymentRequest: u8 = unsafe { ::std::mem::transmute(mAllowPaymentRequest) }; mAllowPaymentRequest as u64 }); - __bindgen_bitfield_unit.set(50usize, 1u8, { + __bindgen_bitfield_unit.set(49usize, 1u8, { let mEncodingMenuDisabled: u8 = unsafe { ::std::mem::transmute(mEncodingMenuDisabled) }; mEncodingMenuDisabled as u64 }); - __bindgen_bitfield_unit.set(51usize, 1u8, { + __bindgen_bitfield_unit.set(50usize, 1u8, { let mIsShadowDOMEnabled: u8 = unsafe { ::std::mem::transmute(mIsShadowDOMEnabled) }; mIsShadowDOMEnabled as u64 }); - __bindgen_bitfield_unit.set(52usize, 1u8, { + __bindgen_bitfield_unit.set(51usize, 1u8, { let mIsSVGGlyphsDocument: u8 = unsafe { ::std::mem::transmute(mIsSVGGlyphsDocument) }; mIsSVGGlyphsDocument as u64 }); - __bindgen_bitfield_unit.set(53usize, 1u8, { + __bindgen_bitfield_unit.set(52usize, 1u8, { let mAllowUnsafeHTML: u8 = unsafe { ::std::mem::transmute(mAllowUnsafeHTML) }; mAllowUnsafeHTML as u64 }); - __bindgen_bitfield_unit.set(54usize, 2u8, { + __bindgen_bitfield_unit.set(53usize, 2u8, { let mIsScopedStyleEnabled: u32 = unsafe { ::std::mem::transmute(mIsScopedStyleEnabled) }; mIsScopedStyleEnabled as u64 @@ -24945,129 +24943,107 @@ pub mod root { } } #[inline] - pub fn mPostedFlushCounterStyles(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) } - } - #[inline] - pub fn set_mPostedFlushCounterStyles(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(32usize, 1u8, val as u64) - } - } - #[inline] pub fn mFontFeatureValuesDirty(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) } } #[inline] pub fn set_mFontFeatureValuesDirty(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(33usize, 1u8, val as u64) - } - } - #[inline] - pub fn mPostedFlushFontFeatureValues(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u32) } - } - #[inline] - pub fn set_mPostedFlushFontFeatureValues(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(34usize, 1u8, val as u64) + self._bitfield_1.set(32usize, 1u8, val as u64) } } #[inline] pub fn mSuppressResizeReflow(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) } } #[inline] pub fn set_mSuppressResizeReflow(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(35usize, 1u8, val as u64) + self._bitfield_1.set(33usize, 1u8, val as u64) } } #[inline] pub fn mIsVisual(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u32) } } #[inline] pub fn set_mIsVisual(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(36usize, 1u8, val as u64) + self._bitfield_1.set(34usize, 1u8, val as u64) } } #[inline] pub fn mFireAfterPaintEvents(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u32) } } #[inline] pub fn set_mFireAfterPaintEvents(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(37usize, 1u8, val as u64) + self._bitfield_1.set(35usize, 1u8, val as u64) } } #[inline] pub fn mIsChrome(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u32) } } #[inline] pub fn set_mIsChrome(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(38usize, 1u8, val as u64) + self._bitfield_1.set(36usize, 1u8, val as u64) } } #[inline] pub fn mIsChromeOriginImage(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u32) } } #[inline] pub fn set_mIsChromeOriginImage(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(39usize, 1u8, val as u64) + self._bitfield_1.set(37usize, 1u8, val as u64) } } #[inline] pub fn mPaintFlashing(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u32) } } #[inline] pub fn set_mPaintFlashing(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(40usize, 1u8, val as u64) + self._bitfield_1.set(38usize, 1u8, val as u64) } } #[inline] pub fn mPaintFlashingInitialized(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u32) } } #[inline] pub fn set_mPaintFlashingInitialized(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(41usize, 1u8, val as u64) + self._bitfield_1.set(39usize, 1u8, val as u64) } } #[inline] pub fn mHasWarnedAboutPositionedTableParts(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) } } #[inline] pub fn set_mHasWarnedAboutPositionedTableParts(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(42usize, 1u8, val as u64) + self._bitfield_1.set(40usize, 1u8, val as u64) } } #[inline] pub fn mHasWarnedAboutTooLargeDashedOrDottedRadius(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u32) } } #[inline] pub fn set_mHasWarnedAboutTooLargeDashedOrDottedRadius( @@ -25076,40 +25052,40 @@ pub mod root { ) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(43usize, 1u8, val as u64) + self._bitfield_1.set(41usize, 1u8, val as u64) } } #[inline] pub fn mQuirkSheetAdded(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u32) } } #[inline] pub fn set_mQuirkSheetAdded(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(44usize, 1u8, val as u64) + self._bitfield_1.set(42usize, 1u8, val as u64) } } #[inline] pub fn mNeedsPrefUpdate(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(45usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u32) } } #[inline] pub fn set_mNeedsPrefUpdate(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(45usize, 1u8, val as u64) + self._bitfield_1.set(43usize, 1u8, val as u64) } } #[inline] pub fn mHadNonBlankPaint(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 1u8) as u32) } + unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 1u8) as u32) } } #[inline] pub fn set_mHadNonBlankPaint(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(46usize, 1u8, val as u64) + self._bitfield_1.set(44usize, 1u8, val as u64) } } #[inline] @@ -25145,9 +25121,7 @@ pub mod root { mUsesExChUnits: ::std::os::raw::c_uint, mPendingViewportChange: ::std::os::raw::c_uint, mCounterStylesDirty: ::std::os::raw::c_uint, - mPostedFlushCounterStyles: ::std::os::raw::c_uint, mFontFeatureValuesDirty: ::std::os::raw::c_uint, - mPostedFlushFontFeatureValues: ::std::os::raw::c_uint, mSuppressResizeReflow: ::std::os::raw::c_uint, mIsVisual: ::std::os::raw::c_uint, mFireAfterPaintEvents: ::std::os::raw::c_uint, @@ -25306,71 +25280,61 @@ pub mod root { mCounterStylesDirty as u64 }); __bindgen_bitfield_unit.set(32usize, 1u8, { - let mPostedFlushCounterStyles: u32 = - unsafe { ::std::mem::transmute(mPostedFlushCounterStyles) }; - mPostedFlushCounterStyles as u64 - }); - __bindgen_bitfield_unit.set(33usize, 1u8, { let mFontFeatureValuesDirty: u32 = unsafe { ::std::mem::transmute(mFontFeatureValuesDirty) }; mFontFeatureValuesDirty as u64 }); - __bindgen_bitfield_unit.set(34usize, 1u8, { - let mPostedFlushFontFeatureValues: u32 = - unsafe { ::std::mem::transmute(mPostedFlushFontFeatureValues) }; - mPostedFlushFontFeatureValues as u64 - }); - __bindgen_bitfield_unit.set(35usize, 1u8, { + __bindgen_bitfield_unit.set(33usize, 1u8, { let mSuppressResizeReflow: u32 = unsafe { ::std::mem::transmute(mSuppressResizeReflow) }; mSuppressResizeReflow as u64 }); - __bindgen_bitfield_unit.set(36usize, 1u8, { + __bindgen_bitfield_unit.set(34usize, 1u8, { let mIsVisual: u32 = unsafe { ::std::mem::transmute(mIsVisual) }; mIsVisual as u64 }); - __bindgen_bitfield_unit.set(37usize, 1u8, { + __bindgen_bitfield_unit.set(35usize, 1u8, { let mFireAfterPaintEvents: u32 = unsafe { ::std::mem::transmute(mFireAfterPaintEvents) }; mFireAfterPaintEvents as u64 }); - __bindgen_bitfield_unit.set(38usize, 1u8, { + __bindgen_bitfield_unit.set(36usize, 1u8, { let mIsChrome: u32 = unsafe { ::std::mem::transmute(mIsChrome) }; mIsChrome as u64 }); - __bindgen_bitfield_unit.set(39usize, 1u8, { + __bindgen_bitfield_unit.set(37usize, 1u8, { let mIsChromeOriginImage: u32 = unsafe { ::std::mem::transmute(mIsChromeOriginImage) }; mIsChromeOriginImage as u64 }); - __bindgen_bitfield_unit.set(40usize, 1u8, { + __bindgen_bitfield_unit.set(38usize, 1u8, { let mPaintFlashing: u32 = unsafe { ::std::mem::transmute(mPaintFlashing) }; mPaintFlashing as u64 }); - __bindgen_bitfield_unit.set(41usize, 1u8, { + __bindgen_bitfield_unit.set(39usize, 1u8, { let mPaintFlashingInitialized: u32 = unsafe { ::std::mem::transmute(mPaintFlashingInitialized) }; mPaintFlashingInitialized as u64 }); - __bindgen_bitfield_unit.set(42usize, 1u8, { + __bindgen_bitfield_unit.set(40usize, 1u8, { let mHasWarnedAboutPositionedTableParts: u32 = unsafe { ::std::mem::transmute(mHasWarnedAboutPositionedTableParts) }; mHasWarnedAboutPositionedTableParts as u64 }); - __bindgen_bitfield_unit.set(43usize, 1u8, { + __bindgen_bitfield_unit.set(41usize, 1u8, { let mHasWarnedAboutTooLargeDashedOrDottedRadius: u32 = unsafe { ::std::mem::transmute(mHasWarnedAboutTooLargeDashedOrDottedRadius) }; mHasWarnedAboutTooLargeDashedOrDottedRadius as u64 }); - __bindgen_bitfield_unit.set(44usize, 1u8, { + __bindgen_bitfield_unit.set(42usize, 1u8, { let mQuirkSheetAdded: u32 = unsafe { ::std::mem::transmute(mQuirkSheetAdded) }; mQuirkSheetAdded as u64 }); - __bindgen_bitfield_unit.set(45usize, 1u8, { + __bindgen_bitfield_unit.set(43usize, 1u8, { let mNeedsPrefUpdate: u32 = unsafe { ::std::mem::transmute(mNeedsPrefUpdate) }; mNeedsPrefUpdate as u64 }); - __bindgen_bitfield_unit.set(46usize, 1u8, { + __bindgen_bitfield_unit.set(44usize, 1u8, { let mHadNonBlankPaint: u32 = unsafe { ::std::mem::transmute(mHadNonBlankPaint) }; mHadNonBlankPaint as u64 }); @@ -28661,7 +28625,7 @@ pub mod root { pub _base_4: root::nsITimedChannel, pub mRefCnt: root::nsAutoRefCnt, pub mBehaviour: root::mozilla::UniquePtr<root::ProxyBehaviour>, - pub mURI: root::RefPtr<root::mozilla::image::ImageURL>, + pub mURI: root::RefPtr<root::imgRequestProxy_ImageURL>, pub mListener: *mut root::imgINotificationObserver, pub mLoadGroup: root::nsCOMPtr, pub mTabGroup: root::RefPtr<root::mozilla::dom::TabGroup>, @@ -30829,7 +30793,6 @@ pub mod root { /// values. This is particularly important for inheritance, where we want /// to share the same 'quotes' value with a parent style context. #[repr(C)] - #[derive(Debug)] pub struct nsStyleQuoteValues { pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt, pub mQuotePairs: root::nsStyleQuoteValues_QuotePairArray, @@ -30873,7 +30836,6 @@ pub mod root { ); } #[repr(C)] - #[derive(Debug)] pub struct nsStyleList { pub mListStylePosition: u8, pub mListStyleImage: root::RefPtr<root::nsStyleImageRequest>, @@ -31047,7 +31009,6 @@ pub mod root { ); } #[repr(C)] - #[derive(Debug)] pub struct nsStyleGridTemplate { pub mLineNameLists: root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>, pub mMinTrackSizingFunctions: root::nsTArray<root::nsStyleCoord>, @@ -36528,27 +36489,27 @@ pub mod root { ) ); } - pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_85 = 8388608; - pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_85 = 16777216; - pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_85 = 33554432; - pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_85 = 67108864; - pub const ELEMENT_SHARED_RESTYLE_BITS: root::_bindgen_ty_85 = 125829120; - pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_85 = 8388608; - pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_85 = + pub const ELEMENT_SHARED_RESTYLE_BIT_1: root::_bindgen_ty_79 = 8388608; + pub const ELEMENT_SHARED_RESTYLE_BIT_2: root::_bindgen_ty_79 = 16777216; + pub const ELEMENT_SHARED_RESTYLE_BIT_3: root::_bindgen_ty_79 = 33554432; + pub const ELEMENT_SHARED_RESTYLE_BIT_4: root::_bindgen_ty_79 = 67108864; + pub const ELEMENT_SHARED_RESTYLE_BITS: root::_bindgen_ty_79 = 125829120; + pub const ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_79 = 8388608; + pub const ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO: root::_bindgen_ty_79 = 16777216; - pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_85 = 33554432; - pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_85 = 67108864; - pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_85 = 8388608; - pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_85 = 16777216; - pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_85 = 33554432; - pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: root::_bindgen_ty_85 = 67108864; - pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_85 = 134217728; - pub const ELEMENT_HAS_CHILD_WITH_LATER_SIBLINGS_HINT: root::_bindgen_ty_85 = 268435456; - pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_85 = 41943040; - pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_85 = 83886080; - pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_85 = 260046848; - pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_85 = 27; - pub type _bindgen_ty_85 = u32; + pub const ELEMENT_HAS_SNAPSHOT: root::_bindgen_ty_79 = 33554432; + pub const ELEMENT_HANDLED_SNAPSHOT: root::_bindgen_ty_79 = 67108864; + pub const ELEMENT_HAS_PENDING_RESTYLE: root::_bindgen_ty_79 = 8388608; + pub const ELEMENT_IS_POTENTIAL_RESTYLE_ROOT: root::_bindgen_ty_79 = 16777216; + pub const ELEMENT_HAS_PENDING_ANIMATION_ONLY_RESTYLE: root::_bindgen_ty_79 = 33554432; + pub const ELEMENT_IS_POTENTIAL_ANIMATION_ONLY_RESTYLE_ROOT: root::_bindgen_ty_79 = 67108864; + pub const ELEMENT_IS_CONDITIONAL_RESTYLE_ANCESTOR: root::_bindgen_ty_79 = 134217728; + pub const ELEMENT_HAS_CHILD_WITH_LATER_SIBLINGS_HINT: root::_bindgen_ty_79 = 268435456; + pub const ELEMENT_PENDING_RESTYLE_FLAGS: root::_bindgen_ty_79 = 41943040; + pub const ELEMENT_POTENTIAL_RESTYLE_ROOT_FLAGS: root::_bindgen_ty_79 = 83886080; + pub const ELEMENT_ALL_RESTYLE_FLAGS: root::_bindgen_ty_79 = 260046848; + pub const ELEMENT_TYPE_SPECIFIC_BITS_OFFSET: root::_bindgen_ty_79 = 27; + pub type _bindgen_ty_79 = u32; pub type nsStyledElementBase = root::mozilla::dom::Element; #[repr(C)] pub struct nsStyledElement { @@ -37070,10 +37031,10 @@ pub mod root { *self } } - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_after: u32 = 65; - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_before: u32 = 65; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_after: u32 = 129; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_before: u32 = 129; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_backdrop: u32 = 0; - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_cue: u32 = 36; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_cue: u32 = 68; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_firstLetter: u32 = 3; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_firstLine: u32 = 3; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozSelection: u32 = 2; @@ -37082,11 +37043,11 @@ pub mod root { pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozListBullet: u32 = 0; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozListNumber: u32 = 0; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozMathAnonymous: u32 = 0; - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberWrapper: u32 = 24; - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberText: u32 = 24; - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinBox: u32 = 24; - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinUp: u32 = 24; - pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinDown: u32 = 24; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberWrapper: u32 = 56; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberText: u32 = 56; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinBox: u32 = 56; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinUp: u32 = 56; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinDown: u32 = 56; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozProgressBar: u32 = 8; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeTrack: u32 = 8; pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeProgress: u32 = 8; @@ -37127,7 +37088,7 @@ pub mod root { pub _base: root::nsStubMutationObserver, pub mRefCnt: root::nsCycleCollectingAutoRefCnt, pub mBoundContentSet: u64, - pub mWrapperTable: u64, + pub mWrapperTable: root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>, pub mDocumentTable: u64, pub mLoadingDocTable: u64, pub mAttachedStack: root::nsBindingList, @@ -38443,21 +38404,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_unsigned_int_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0_uint32_t_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::nsTArray<::std::os::raw::c_uint>>(), + ::std::mem::size_of::<root::nsTArray<u32>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::nsTArray<::std::os::raw::c_uint>) + stringify!(root::nsTArray<u32>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsTArray<::std::os::raw::c_uint>>(), + ::std::mem::align_of::<root::nsTArray<u32>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsTArray<::std::os::raw::c_uint>) + stringify!(root::nsTArray<u32>) ) ); } @@ -38482,21 +38443,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_unsigned_int_close0_instantiation_1() { + fn __bindgen_test_layout_nsTArray_open0_uint32_t_close0_instantiation_1() { assert_eq!( - ::std::mem::size_of::<root::nsTArray<::std::os::raw::c_uint>>(), + ::std::mem::size_of::<root::nsTArray<u32>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::nsTArray<::std::os::raw::c_uint>) + stringify!(root::nsTArray<u32>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsTArray<::std::os::raw::c_uint>>(), + ::std::mem::align_of::<root::nsTArray<u32>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsTArray<::std::os::raw::c_uint>) + stringify!(root::nsTArray<u32>) ) ); } @@ -38558,21 +38519,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_FontVariation_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0_gfxFontVariation_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::nsTArray<root::mozilla::gfx::FontVariation>>(), + ::std::mem::size_of::<root::nsTArray<root::gfxFontVariation>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::nsTArray<root::mozilla::gfx::FontVariation>) + stringify!(root::nsTArray<root::gfxFontVariation>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsTArray<root::mozilla::gfx::FontVariation>>(), + ::std::mem::align_of::<root::nsTArray<root::gfxFontVariation>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsTArray<root::mozilla::gfx::FontVariation>) + stringify!(root::nsTArray<root::gfxFontVariation>) ) ); } @@ -39653,40 +39614,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTString_open1_char_close1_close0_instantiation() { - assert_eq!( - ::std::mem::size_of::<root::nsTArray<root::nsTString<::std::os::raw::c_char>>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsTArray<root::nsTString<::std::os::raw::c_char>>) - ) - ); + fn __bindgen_test_layout_nsTArray_open0_nsCString_close0_instantiation() { assert_eq!( - ::std::mem::align_of::<root::nsTArray<root::nsTString<::std::os::raw::c_char>>>(), + ::std::mem::size_of::<root::nsTArray<root::nsCString>>(), 8usize, concat!( - "Alignment of template specialization: ", - stringify!(root::nsTArray<root::nsTString<::std::os::raw::c_char>>) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsTString_open0_char_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<root::nsTString<::std::os::raw::c_char>>(), - 16usize, - concat!( "Size of template specialization: ", - stringify!(root::nsTString<::std::os::raw::c_char>) + stringify!(root::nsTArray<root::nsCString>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsTString<::std::os::raw::c_char>>(), + ::std::mem::align_of::<root::nsTArray<root::nsCString>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsTString<::std::os::raw::c_char>) + stringify!(root::nsTArray<root::nsCString>) ) ); } @@ -40181,21 +40123,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_RefPtr_open0_Element_close0_instantiation() { + fn __bindgen_test_layout_RefPtr_open0_nsIdentifierMapEntry_Element_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Element>>(), + ::std::mem::size_of::<root::RefPtr<root::nsIdentifierMapEntry_Element>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::RefPtr<root::mozilla::dom::Element>) + stringify!(root::RefPtr<root::nsIdentifierMapEntry_Element>) ) ); assert_eq!( - ::std::mem::align_of::<root::RefPtr<root::mozilla::dom::Element>>(), + ::std::mem::align_of::<root::RefPtr<root::nsIdentifierMapEntry_Element>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::RefPtr<root::mozilla::dom::Element>) + stringify!(root::RefPtr<root::nsIdentifierMapEntry_Element>) ) ); } @@ -40701,21 +40643,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_NotNull_open0_ptr_const_mozilla__Encoding_close0_instantiation() { + fn __bindgen_test_layout_NotNull_open0_ptr_const_nsIDocument__Encoding_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::mozilla::NotNull<*const root::mozilla::Encoding>>(), + ::std::mem::size_of::<root::mozilla::NotNull<*const root::nsIDocument_Encoding>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::mozilla::NotNull<*const root::mozilla::Encoding>) + stringify!(root::mozilla::NotNull<*const root::nsIDocument_Encoding>) ) ); assert_eq!( - ::std::mem::align_of::<root::mozilla::NotNull<*const root::mozilla::Encoding>>(), + ::std::mem::align_of::<root::mozilla::NotNull<*const root::nsIDocument_Encoding>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::mozilla::NotNull<*const root::mozilla::Encoding>) + stringify!(root::mozilla::NotNull<*const root::nsIDocument_Encoding>) ) ); } @@ -41058,41 +41000,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsCOMPtr_open1_nsIWeakReference_close1_close0_instantiation( -) { + fn __bindgen_test_layout_nsTArray_open0_nsWeakPtr_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>(), + ::std::mem::size_of::<root::nsTArray<root::nsWeakPtr>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::nsTArray<root::nsCOMPtr>) + stringify!(root::nsTArray<root::nsWeakPtr>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsTArray<root::nsCOMPtr>>(), + ::std::mem::align_of::<root::nsTArray<root::nsWeakPtr>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsTArray<root::nsCOMPtr>) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_nsIWeakReference_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<root::nsCOMPtr>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsCOMPtr) - ) - ); - assert_eq!( - ::std::mem::align_of::<root::nsCOMPtr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(root::nsCOMPtr) + stringify!(root::nsTArray<root::nsWeakPtr>) ) ); } @@ -41332,21 +41254,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_unsigned_long_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0_uint64_t_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::nsTArray<::std::os::raw::c_ulong>>(), + ::std::mem::size_of::<root::nsTArray<u64>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::nsTArray<::std::os::raw::c_ulong>) + stringify!(root::nsTArray<u64>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsTArray<::std::os::raw::c_ulong>>(), + ::std::mem::align_of::<root::nsTArray<u64>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsTArray<::std::os::raw::c_ulong>) + stringify!(root::nsTArray<u64>) ) ); } @@ -42076,7 +41998,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTString_open1_char16_t_close1_close0_instantiation() { + fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(), 8usize, @@ -42095,25 +42017,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTString_open0_char16_t_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<::nsstring::nsStringRepr>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - assert_eq!( - ::std::mem::align_of::<::nsstring::nsStringRepr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - } - #[test] fn __bindgen_test_layout_UniquePtr_open0_nsCSSValueList_DefaultDelete_open1_nsCSSValueList_close1_close0_instantiation( ) { assert_eq!( @@ -42326,21 +42229,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_RefPtr_open0_ImageURL_close0_instantiation() { + fn __bindgen_test_layout_RefPtr_open0_imgRequestProxy_ImageURL_close0_instantiation() { assert_eq!( - ::std::mem::size_of::<root::RefPtr<root::mozilla::image::ImageURL>>(), + ::std::mem::size_of::<root::RefPtr<root::imgRequestProxy_ImageURL>>(), 8usize, concat!( "Size of template specialization: ", - stringify!(root::RefPtr<root::mozilla::image::ImageURL>) + stringify!(root::RefPtr<root::imgRequestProxy_ImageURL>) ) ); assert_eq!( - ::std::mem::align_of::<root::RefPtr<root::mozilla::image::ImageURL>>(), + ::std::mem::align_of::<root::RefPtr<root::imgRequestProxy_ImageURL>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::RefPtr<root::mozilla::image::ImageURL>) + stringify!(root::RefPtr<root::imgRequestProxy_ImageURL>) ) ); } @@ -42402,8 +42305,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTString_open1_char16_t_close1_close0_instantiation_1() - { + fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_1() { assert_eq!( ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(), 8usize, @@ -42422,25 +42324,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTString_open0_char16_t_close0_instantiation_2() { - assert_eq!( - ::std::mem::size_of::<::nsstring::nsStringRepr>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - assert_eq!( - ::std::mem::align_of::<::nsstring::nsStringRepr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - } - #[test] fn __bindgen_test_layout_nsRefPtrHashKey_open0_nsAtom_close0_instantiation_2() { assert_eq!( ::std::mem::size_of::<root::nsRefPtrHashKey<root::nsAtom>>(), @@ -42788,7 +42671,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_pair_open1_nsTString_open2_char16_t_close2_nsTString_open2_char16_t_close2_close1_close0_instantiation( + fn __bindgen_test_layout_nsTArray_open0_pair_open1_nsString_nsString_close1_close0_instantiation( ) { assert_eq!( ::std::mem::size_of::< @@ -42816,8 +42699,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_pair_open0_nsTString_open1_char16_t_close1_nsTString_open1_char16_t_close1_close0_instantiation( -) { + fn __bindgen_test_layout_pair_open0_nsString_nsString_close0_instantiation() { assert_eq!( ::std::mem::size_of::< root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>, @@ -42840,44 +42722,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTString_open0_char16_t_close0_instantiation_3() { - assert_eq!( - ::std::mem::size_of::<::nsstring::nsStringRepr>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - assert_eq!( - ::std::mem::align_of::<::nsstring::nsStringRepr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsTString_open0_char16_t_close0_instantiation_4() { - assert_eq!( - ::std::mem::size_of::<::nsstring::nsStringRepr>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - assert_eq!( - ::std::mem::align_of::<::nsstring::nsStringRepr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - } - #[test] fn __bindgen_test_layout_RefPtr_open0_nsStyleImageRequest_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::RefPtr<root::nsStyleImageRequest>>(), @@ -42916,8 +42760,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTArray_open1_nsTString_open2_char16_t_close2_close1_close0_instantiation( -) { + fn __bindgen_test_layout_nsTArray_open0_nsTArray_open1_nsString_close1_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsTArray<root::nsTArray<::nsstring::nsStringRepr>>>(), 8usize, @@ -42936,8 +42779,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTString_open1_char16_t_close1_close0_instantiation_2() - { + fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_2() { assert_eq!( ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(), 8usize, @@ -42956,25 +42798,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTString_open0_char16_t_close0_instantiation_5() { - assert_eq!( - ::std::mem::size_of::<::nsstring::nsStringRepr>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - assert_eq!( - ::std::mem::align_of::<::nsstring::nsStringRepr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - } - #[test] fn __bindgen_test_layout_nsTArray_open0_nsStyleCoord_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsTArray<root::nsStyleCoord>>(), @@ -43013,8 +42836,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTString_open1_char16_t_close1_close0_instantiation_3() - { + fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_3() { assert_eq!( ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(), 8usize, @@ -43033,27 +42855,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTString_open0_char16_t_close0_instantiation_6() { - assert_eq!( - ::std::mem::size_of::<::nsstring::nsStringRepr>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - assert_eq!( - ::std::mem::align_of::<::nsstring::nsStringRepr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTString_open1_char16_t_close1_close0_instantiation_4() - { + fn __bindgen_test_layout_nsTArray_open0_nsString_close0_instantiation_4() { assert_eq!( ::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>(), 8usize, @@ -43072,25 +42874,6 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTString_open0_char16_t_close0_instantiation_7() { - assert_eq!( - ::std::mem::size_of::<::nsstring::nsStringRepr>(), - 16usize, - concat!( - "Size of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - assert_eq!( - ::std::mem::align_of::<::nsstring::nsStringRepr>(), - 8usize, - concat!( - "Alignment of template specialization: ", - stringify!(::nsstring::nsStringRepr) - ) - ); - } - #[test] fn __bindgen_test_layout_UniquePtr_open0_nsStyleGridTemplate_DefaultDelete_open1_nsStyleGridTemplate_close1_close0_instantiation( ) { assert_eq!( @@ -44108,40 +43891,21 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsTArray_open0_nsTString_open1_char_close1_close0_instantiation_1() { - assert_eq!( - ::std::mem::size_of::<root::nsTArray<root::nsTString<::std::os::raw::c_char>>>(), - 8usize, - concat!( - "Size of template specialization: ", - stringify!(root::nsTArray<root::nsTString<::std::os::raw::c_char>>) - ) - ); + fn __bindgen_test_layout_nsTArray_open0_nsCString_close0_instantiation_1() { assert_eq!( - ::std::mem::align_of::<root::nsTArray<root::nsTString<::std::os::raw::c_char>>>(), + ::std::mem::size_of::<root::nsTArray<root::nsCString>>(), 8usize, concat!( - "Alignment of template specialization: ", - stringify!(root::nsTArray<root::nsTString<::std::os::raw::c_char>>) - ) - ); - } - #[test] - fn __bindgen_test_layout_nsTString_open0_char_close0_instantiation_2() { - assert_eq!( - ::std::mem::size_of::<root::nsTString<::std::os::raw::c_char>>(), - 16usize, - concat!( "Size of template specialization: ", - stringify!(root::nsTString<::std::os::raw::c_char>) + stringify!(root::nsTArray<root::nsCString>) ) ); assert_eq!( - ::std::mem::align_of::<root::nsTString<::std::os::raw::c_char>>(), + ::std::mem::align_of::<root::nsTArray<root::nsCString>>(), 8usize, concat!( "Alignment of template specialization: ", - stringify!(root::nsTString<::std::os::raw::c_char>) + stringify!(root::nsTArray<root::nsCString>) ) ); } @@ -44804,7 +44568,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsCOMPtr_open0_Element_close0_instantiation_1() { + fn __bindgen_test_layout_nsCOMPtr_open0_nsDOMAttributeMap_Element_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::nsCOMPtr>(), 8usize, @@ -45168,7 +44932,7 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_RefPtr_open0_Element_close0_instantiation_1() { + fn __bindgen_test_layout_RefPtr_open0_Element_close0_instantiation() { assert_eq!( ::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Element>>(), 8usize, @@ -45524,17 +45288,23 @@ pub mod root { ); } #[test] - fn __bindgen_test_layout_nsAutoPtr_open0_nsInterfaceHashtable_open1_nsISupportsHashKey_nsIXPConnectWrappedJS_close1_close0_instantiation( + fn __bindgen_test_layout_nsAutoPtr_open0_nsBindingManager_WrapperHashtable_close0_instantiation( ) { assert_eq!( - ::std::mem::size_of::<u64>(), + ::std::mem::size_of::<root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>>(), 8usize, - concat!("Size of template specialization: ", stringify!(u64)) + concat!( + "Size of template specialization: ", + stringify!(root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>) + ) ); assert_eq!( - ::std::mem::align_of::<u64>(), + ::std::mem::align_of::<root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>>(), 8usize, - concat!("Alignment of template specialization: ", stringify!(u64)) + concat!( + "Alignment of template specialization: ", + stringify!(root::nsAutoPtr<root::nsBindingManager_WrapperHashtable>) + ) ); } #[test] |