diff options
-rw-r--r-- | components/style/build_gecko.rs | 2 | ||||
-rw-r--r-- | components/style/gecko/generated/bindings.rs | 2 | ||||
-rw-r--r-- | components/style/gecko/generated/pseudo_element_definition.rs | 424 | ||||
-rw-r--r-- | components/style/gecko/generated/structs_debug.rs | 302 | ||||
-rw-r--r-- | components/style/gecko/generated/structs_release.rs | 302 | ||||
-rw-r--r-- | components/style/gecko/pseudo_element.rs | 22 | ||||
-rw-r--r-- | components/style/gecko/pseudo_element_definition.mako.rs | 20 |
7 files changed, 742 insertions, 332 deletions
diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 462c1545739..b4c26cb4f6d 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -348,6 +348,8 @@ mod bindings { "BORDER_COLOR_.*", "BORDER_STYLE_.*", "mozilla::SERVO_PREF_.*", + "CSS_PSEUDO_ELEMENT_.*", + "SERVO_CSS_PSEUDO_ELEMENT_FLAGS_.*", "kNameSpaceID_.*", "kGenericFont_.*", "kPresContext_.*", diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index ed00d8cd94f..79987dba6f9 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -1642,7 +1642,7 @@ extern "C" { *mut ServoStyleSheet, data: *const nsACString, extra_data: - *mut RawGeckoURLExtraData, + *mut RawGeckoURLExtraData, line_number_offset: u32); } extern "C" { diff --git a/components/style/gecko/generated/pseudo_element_definition.rs b/components/style/gecko/generated/pseudo_element_definition.rs index c733aa08f8b..4f627fe9459 100644 --- a/components/style/gecko/generated/pseudo_element_definition.rs +++ b/components/style/gecko/generated/pseudo_element_definition.rs @@ -461,10 +461,260 @@ impl PseudoElement { PseudoElement::Before | PseudoElement::After) } - /// Whether this pseudo-element is precomputed. - #[inline] - pub fn is_precomputed(&self) -> bool { - self.is_anon_box() + /// Gets the flags associated to this pseudo-element, or 0 if it's an + /// anonymous box. + pub fn flags(&self) -> u32 { + match *self { + PseudoElement::After => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_after + } + PseudoElement::Before => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_before + } + PseudoElement::Backdrop => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_backdrop + } + PseudoElement::Cue => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_cue + } + PseudoElement::FirstLetter => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_firstLetter + } + PseudoElement::FirstLine => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_firstLine + } + PseudoElement::MozSelection => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozSelection + } + PseudoElement::MozFocusInner => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozFocusInner + } + PseudoElement::MozFocusOuter => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozFocusOuter + } + PseudoElement::MozListBullet => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozListBullet + } + PseudoElement::MozListNumber => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozListNumber + } + PseudoElement::MozMathAnonymous => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozMathAnonymous + } + PseudoElement::MozNumberWrapper => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberWrapper + } + PseudoElement::MozNumberText => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberText + } + PseudoElement::MozNumberSpinBox => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinBox + } + PseudoElement::MozNumberSpinUp => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinUp + } + PseudoElement::MozNumberSpinDown => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozNumberSpinDown + } + PseudoElement::MozProgressBar => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozProgressBar + } + PseudoElement::MozRangeTrack => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeTrack + } + PseudoElement::MozRangeProgress => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeProgress + } + PseudoElement::MozRangeThumb => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeThumb + } + PseudoElement::MozMeterBar => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozMeterBar + } + PseudoElement::MozPlaceholder => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozPlaceholder + } + PseudoElement::Placeholder => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder + } + PseudoElement::MozColorSwatch => { + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch + } + PseudoElement::MozText => { + 0 + } + PseudoElement::OofPlaceholder => { + 0 + } + PseudoElement::FirstLetterContinuation => { + 0 + } + PseudoElement::MozBlockInsideInlineWrapper => { + 0 + } + PseudoElement::MozMathMLAnonymousBlock => { + 0 + } + PseudoElement::MozXULAnonymousBlock => { + 0 + } + PseudoElement::HorizontalFramesetBorder => { + 0 + } + PseudoElement::VerticalFramesetBorder => { + 0 + } + PseudoElement::MozLineFrame => { + 0 + } + PseudoElement::ButtonContent => { + 0 + } + PseudoElement::CellContent => { + 0 + } + PseudoElement::DropDownList => { + 0 + } + PseudoElement::FieldsetContent => { + 0 + } + PseudoElement::FramesetBlank => { + 0 + } + PseudoElement::MozDisplayComboboxControlFrame => { + 0 + } + PseudoElement::HtmlCanvasContent => { + 0 + } + PseudoElement::InlineTable => { + 0 + } + PseudoElement::Table => { + 0 + } + PseudoElement::TableCell => { + 0 + } + PseudoElement::TableColGroup => { + 0 + } + PseudoElement::TableCol => { + 0 + } + PseudoElement::TableWrapper => { + 0 + } + PseudoElement::TableRowGroup => { + 0 + } + PseudoElement::TableRow => { + 0 + } + PseudoElement::Canvas => { + 0 + } + PseudoElement::PageBreak => { + 0 + } + PseudoElement::Page => { + 0 + } + PseudoElement::PageContent => { + 0 + } + PseudoElement::PageSequence => { + 0 + } + PseudoElement::ScrolledContent => { + 0 + } + PseudoElement::ScrolledCanvas => { + 0 + } + PseudoElement::ScrolledPageSequence => { + 0 + } + PseudoElement::ColumnContent => { + 0 + } + PseudoElement::Viewport => { + 0 + } + PseudoElement::ViewportScroll => { + 0 + } + PseudoElement::AnonymousFlexItem => { + 0 + } + PseudoElement::AnonymousGridItem => { + 0 + } + PseudoElement::Ruby => { + 0 + } + PseudoElement::RubyBase => { + 0 + } + PseudoElement::RubyBaseContainer => { + 0 + } + PseudoElement::RubyText => { + 0 + } + PseudoElement::RubyTextContainer => { + 0 + } + PseudoElement::Moztreecolumn => { + 0 + } + PseudoElement::Moztreerow => { + 0 + } + PseudoElement::Moztreeseparator => { + 0 + } + PseudoElement::Moztreecell => { + 0 + } + PseudoElement::Moztreeindentation => { + 0 + } + PseudoElement::Moztreeline => { + 0 + } + PseudoElement::Moztreetwisty => { + 0 + } + PseudoElement::Moztreeimage => { + 0 + } + PseudoElement::Moztreecelltext => { + 0 + } + PseudoElement::Moztreecheckbox => { + 0 + } + PseudoElement::Moztreeprogressmeter => { + 0 + } + PseudoElement::Moztreedropfeedback => { + 0 + } + PseudoElement::MozSVGMarkerAnonChild => { + 0 + } + PseudoElement::MozSVGOuterSVGAnonChild => { + 0 + } + PseudoElement::MozSVGForeignContent => { + 0 + } + PseudoElement::MozSVGText => { + 0 + } + } } /// Construct a pseudo-element from a `CSSPseudoElementType`. @@ -741,417 +991,417 @@ impl PseudoElement { pub fn from_slice(s: &str, in_ua_stylesheet: bool) -> Option<Self> { use std::ascii::AsciiExt; - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::After.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("after") { return Some(PseudoElement::After) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Before.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("before") { return Some(PseudoElement::Before) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Backdrop.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("backdrop") { return Some(PseudoElement::Backdrop) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Cue.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("cue") { return Some(PseudoElement::Cue) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::FirstLetter.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("first-letter") { return Some(PseudoElement::FirstLetter) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::FirstLine.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("first-line") { return Some(PseudoElement::FirstLine) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozSelection.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-selection") { return Some(PseudoElement::MozSelection) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozFocusInner.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-focus-inner") { return Some(PseudoElement::MozFocusInner) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozFocusOuter.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-focus-outer") { return Some(PseudoElement::MozFocusOuter) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozListBullet.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-list-bullet") { return Some(PseudoElement::MozListBullet) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozListNumber.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-list-number") { return Some(PseudoElement::MozListNumber) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozMathAnonymous.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-math-anonymous") { return Some(PseudoElement::MozMathAnonymous) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozNumberWrapper.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-number-wrapper") { return Some(PseudoElement::MozNumberWrapper) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozNumberText.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-number-text") { return Some(PseudoElement::MozNumberText) } } - if !false || in_ua_stylesheet { + 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) } } - if !false || in_ua_stylesheet { + 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) } } - if !false || in_ua_stylesheet { + 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) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozProgressBar.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-progress-bar") { return Some(PseudoElement::MozProgressBar) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozRangeTrack.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-range-track") { return Some(PseudoElement::MozRangeTrack) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozRangeProgress.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-range-progress") { return Some(PseudoElement::MozRangeProgress) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozRangeThumb.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-range-thumb") { return Some(PseudoElement::MozRangeThumb) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozMeterBar.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-meter-bar") { return Some(PseudoElement::MozMeterBar) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozPlaceholder.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-placeholder") { return Some(PseudoElement::MozPlaceholder) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Placeholder.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("placeholder") { return Some(PseudoElement::Placeholder) } } - if !false || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozColorSwatch.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-color-swatch") { return Some(PseudoElement::MozColorSwatch) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozText.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-text") { return Some(PseudoElement::MozText) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::OofPlaceholder.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-oof-placeholder") { return Some(PseudoElement::OofPlaceholder) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::HorizontalFramesetBorder.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-hframeset-border") { return Some(PseudoElement::HorizontalFramesetBorder) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::VerticalFramesetBorder.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-vframeset-border") { return Some(PseudoElement::VerticalFramesetBorder) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozLineFrame.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-line-frame") { return Some(PseudoElement::MozLineFrame) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::ButtonContent.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-button-content") { return Some(PseudoElement::ButtonContent) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::CellContent.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-cell-content") { return Some(PseudoElement::CellContent) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::DropDownList.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-dropdown-list") { return Some(PseudoElement::DropDownList) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::FieldsetContent.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-fieldset-content") { return Some(PseudoElement::FieldsetContent) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::FramesetBlank.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-frameset-blank") { return Some(PseudoElement::FramesetBlank) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::InlineTable.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-inline-table") { return Some(PseudoElement::InlineTable) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Table.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-table") { return Some(PseudoElement::Table) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::TableCell.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-table-cell") { return Some(PseudoElement::TableCell) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::TableCol.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-table-column") { return Some(PseudoElement::TableCol) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::TableWrapper.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-table-wrapper") { return Some(PseudoElement::TableWrapper) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::TableRow.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-table-row") { return Some(PseudoElement::TableRow) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Canvas.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-canvas") { return Some(PseudoElement::Canvas) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::PageBreak.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-pagebreak") { return Some(PseudoElement::PageBreak) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Page.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-page") { return Some(PseudoElement::Page) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::PageContent.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-pagecontent") { return Some(PseudoElement::PageContent) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::PageSequence.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-page-sequence") { return Some(PseudoElement::PageSequence) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::ScrolledContent.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-scrolled-content") { return Some(PseudoElement::ScrolledContent) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::ScrolledCanvas.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-scrolled-canvas") { return Some(PseudoElement::ScrolledCanvas) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::ColumnContent.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-column-content") { return Some(PseudoElement::ColumnContent) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Viewport.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-viewport") { return Some(PseudoElement::Viewport) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::ViewportScroll.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-viewport-scroll") { return Some(PseudoElement::ViewportScroll) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Ruby.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-ruby") { return Some(PseudoElement::Ruby) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::RubyBase.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-ruby-base") { return Some(PseudoElement::RubyBase) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::RubyText.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-ruby-text") { return Some(PseudoElement::RubyText) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreecolumn.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-column") { return Some(PseudoElement::Moztreecolumn) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreerow.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-row") { return Some(PseudoElement::Moztreerow) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreeseparator.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-separator") { return Some(PseudoElement::Moztreeseparator) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreecell.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-cell") { return Some(PseudoElement::Moztreecell) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreeindentation.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-indentation") { return Some(PseudoElement::Moztreeindentation) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreeline.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-line") { return Some(PseudoElement::Moztreeline) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreetwisty.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-twisty") { return Some(PseudoElement::Moztreetwisty) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreeimage.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-image") { return Some(PseudoElement::Moztreeimage) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreecelltext.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-cell-text") { return Some(PseudoElement::Moztreecelltext) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreecheckbox.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-checkbox") { return Some(PseudoElement::Moztreecheckbox) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreeprogressmeter.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-progressmeter") { return Some(PseudoElement::Moztreeprogressmeter) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::Moztreedropfeedback.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-tree-drop-feedback") { return Some(PseudoElement::Moztreedropfeedback) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + 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) } } - if !true || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::MozSVGText.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("-moz-svg-text") { return Some(PseudoElement::MozSVGText) } diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 3141fa27c16..851f05c1172 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -1111,6 +1111,18 @@ pub mod root { pub const NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION: ::std::os::raw::c_uint = 250; + pub const CSS_PSEUDO_ELEMENT_IS_CSS2: ::std::os::raw::c_uint = 1; + 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 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; @@ -1228,7 +1240,7 @@ pub mod root { pub struct atomic { } #[test] - fn __bindgen_test_layout_atomic_instantiation_61468() { + fn __bindgen_test_layout_atomic_instantiation_61524() { assert_eq!(::std::mem::size_of::<u32>() , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( u32 ) )); @@ -1237,7 +1249,7 @@ pub mod root { ( u32 ) )); } #[test] - fn __bindgen_test_layout_atomic_instantiation_61476() { + fn __bindgen_test_layout_atomic_instantiation_61532() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -6889,7 +6901,7 @@ pub mod root { _unused: [u8; 0], } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_118151() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_118207() { assert_eq!(::std::mem::size_of::<root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -7812,13 +7824,14 @@ pub mod root { pub mRefCnt: root::nsAutoRefCnt, pub _mOwningThread: root::nsAutoOwningThread, pub mPresContext: *mut root::nsPresContext, - pub mCacheTable: [u64; 6usize], + pub mStyles: [u64; 6usize], + pub mRetiredStyles: root::nsTArray<*mut root::mozilla::CounterStyle>, } pub type CounterStyleManager_HasThreadSafeRefCnt = root::mozilla::FalseType; #[test] fn bindgen_test_layout_CounterStyleManager() { - assert_eq!(::std::mem::size_of::<CounterStyleManager>() , 72usize + assert_eq!(::std::mem::size_of::<CounterStyleManager>() , 80usize , concat ! ( "Size of: " , stringify ! ( CounterStyleManager ) )); assert_eq! (::std::mem::align_of::<CounterStyleManager>() , 8usize @@ -7846,12 +7859,18 @@ pub mod root { CounterStyleManager ) , "::" , stringify ! ( mPresContext ) )); assert_eq! (unsafe { + & ( * ( 0 as * const CounterStyleManager ) ) . mStyles + as * const _ as usize } , 24usize , concat ! ( + "Alignment of field: " , stringify ! ( + CounterStyleManager ) , "::" , stringify ! ( mStyles ) + )); + assert_eq! (unsafe { & ( * ( 0 as * const CounterStyleManager ) ) . - mCacheTable as * const _ as usize } , 24usize , concat - ! ( + mRetiredStyles as * const _ as usize } , 72usize , + concat ! ( "Alignment of field: " , stringify ! ( CounterStyleManager ) , "::" , stringify ! ( - mCacheTable ) )); + mRetiredStyles ) )); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -8160,6 +8179,26 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] + #[derive(Debug)] + pub struct CounterStylePtr { + pub mRaw: usize, + } + pub const CounterStylePtr_kAnonymousFlag: usize = 1; + #[test] + fn bindgen_test_layout_CounterStylePtr() { + assert_eq!(::std::mem::size_of::<CounterStylePtr>() , 8usize , + concat ! ( + "Size of: " , stringify ! ( CounterStylePtr ) )); + assert_eq! (::std::mem::align_of::<CounterStylePtr>() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( CounterStylePtr ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CounterStylePtr ) ) . mRaw as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( CounterStylePtr + ) , "::" , stringify ! ( mRaw ) )); + } + #[repr(C)] #[derive(Debug, Copy)] pub struct Position { pub mXPosition: root::mozilla::Position_Coord, @@ -9105,7 +9144,7 @@ pub mod root { pub type ComputedKeyframeValues = root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>; #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_155856() { + fn __bindgen_test_layout_DefaultDelete_instantiation_155943() { assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -11544,7 +11583,7 @@ pub mod root { pub _address: u8, } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_51312() { + fn __bindgen_test_layout_nsCharTraits_instantiation_51368() { assert_eq!(::std::mem::size_of::<root::nsCharTraits>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -11555,7 +11594,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_51316() { + fn __bindgen_test_layout_nsCharTraits_instantiation_51372() { assert_eq!(::std::mem::size_of::<root::nsCharTraits>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -13103,7 +13142,7 @@ pub mod root { } pub type nsCOMPtr_element_type<T> = T; #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_64757() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_64813() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsISupports>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -28679,7 +28718,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_151848() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_151935() { assert_eq!(::std::mem::size_of::<root::mozilla::StaticRefPtr<root::nsStyleQuoteValues>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -28694,7 +28733,7 @@ pub mod root { pub struct nsStyleList { pub mListStylePosition: u8, pub mListStyleImage: root::RefPtr<root::nsStyleImageRequest>, - pub mCounterStyle: root::RefPtr<root::mozilla::CounterStyle>, + pub mCounterStyle: root::mozilla::CounterStylePtr, pub mQuotes: root::RefPtr<root::nsStyleQuoteValues>, pub mImageRegion: root::nsRect, } @@ -31568,6 +31607,31 @@ pub mod root { impl Clone for GeckoFontMetrics { fn clone(&self) -> Self { *self } } + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_after: u32 = 1; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_before: u32 = 1; + 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_firstLetter: u32 = 3; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_firstLine: u32 = 3; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozSelection: u32 = 2; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozFocusInner: u32 = 0; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozFocusOuter: u32 = 0; + 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_mozProgressBar: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeTrack: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeProgress: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeThumb: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozMeterBar: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozPlaceholder: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch: u32 = 12; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nsROCSSPrimitiveValue { @@ -31903,7 +31967,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_179636() { + fn __bindgen_test_layout_IntegralConstant_instantiation_179789() { assert_eq!(::std::mem::size_of::<u8>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -31912,7 +31976,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_179640() { + fn __bindgen_test_layout_IntegralConstant_instantiation_179793() { assert_eq!(::std::mem::size_of::<u8>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -31921,7 +31985,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_180472() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_180625() { assert_eq!(::std::mem::size_of::<root::nsReadingIterator<root::mozilla::detail::nsStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31934,7 +31998,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_180475() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_180628() { assert_eq!(::std::mem::size_of::<root::nsWritingIterator<root::mozilla::detail::nsStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31947,7 +32011,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_180547() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_180700() { assert_eq!(::std::mem::size_of::<root::nsReadingIterator<root::mozilla::detail::nsCStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31960,7 +32024,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_180550() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_180703() { assert_eq!(::std::mem::size_of::<root::nsWritingIterator<root::mozilla::detail::nsCStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31973,7 +32037,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_184957() { + fn __bindgen_test_layout_nsTArray_instantiation_185110() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCString>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31984,7 +32048,7 @@ pub mod root { root::nsTArray<root::nsCString> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_185808() { + fn __bindgen_test_layout_Handle_instantiation_185961() { assert_eq!(::std::mem::size_of::<root::JS::Handle<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31995,7 +32059,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_185824() { + fn __bindgen_test_layout_Handle_instantiation_185977() { assert_eq!(::std::mem::size_of::<root::JS::Handle<root::JS::Value>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32006,7 +32070,7 @@ pub mod root { root::JS::Handle<root::JS::Value> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_185834() { + fn __bindgen_test_layout_MutableHandle_instantiation_185987() { assert_eq!(::std::mem::size_of::<root::JS::MutableHandle<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32017,7 +32081,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_185850() { + fn __bindgen_test_layout_MutableHandle_instantiation_186003() { assert_eq!(::std::mem::size_of::<root::JS::MutableHandle<root::JS::Value>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32028,7 +32092,7 @@ pub mod root { root::JS::MutableHandle<root::JS::Value> ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_185853() { + fn __bindgen_test_layout_Rooted_instantiation_186006() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32039,7 +32103,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_188400() { + fn __bindgen_test_layout_nsTArray_instantiation_188553() { assert_eq!(::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32050,7 +32114,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_188404() { + fn __bindgen_test_layout_nsTArray_instantiation_188557() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FontFamilyName>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32061,7 +32125,7 @@ pub mod root { root::nsTArray<root::mozilla::FontFamilyName> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_188417() { + fn __bindgen_test_layout_nsTArray_instantiation_188570() { assert_eq!(::std::mem::size_of::<root::nsTArray<u32>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32072,7 +32136,7 @@ pub mod root { root::nsTArray<u32> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_189579() { + fn __bindgen_test_layout_TenuredHeap_instantiation_189732() { assert_eq!(::std::mem::size_of::<root::JS::TenuredHeap>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32083,7 +32147,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_189669() { + fn __bindgen_test_layout_Heap_instantiation_189822() { assert_eq!(::std::mem::size_of::<root::JS::Heap<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32094,7 +32158,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_189784() { + fn __bindgen_test_layout_Heap_instantiation_189937() { assert_eq!(::std::mem::size_of::<root::JS::Heap<root::JS::Value>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32105,7 +32169,7 @@ pub mod root { root::JS::Heap<root::JS::Value> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_189791() { + fn __bindgen_test_layout_TErrorResult_instantiation_189944() { assert_eq!(::std::mem::size_of::<root::mozilla::binding_danger::TErrorResult>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32116,7 +32180,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_189807() { + fn __bindgen_test_layout_TErrorResult_instantiation_189960() { assert_eq!(::std::mem::size_of::<root::mozilla::binding_danger::TErrorResult>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32127,7 +32191,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_189812() { + fn __bindgen_test_layout_already_AddRefed_instantiation_189965() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsStringBuffer>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32138,7 +32202,7 @@ pub mod root { root::already_AddRefed<root::nsStringBuffer> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_189864() { + fn __bindgen_test_layout_already_AddRefed_instantiation_190017() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIAtom>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32149,7 +32213,7 @@ pub mod root { root::already_AddRefed<root::nsIAtom> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_190347() { + fn __bindgen_test_layout_RefPtr_instantiation_190500() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32160,7 +32224,7 @@ pub mod root { root::RefPtr<root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_190693() { + fn __bindgen_test_layout_already_AddRefed_instantiation_190846() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::mozilla::dom::NodeInfo>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32171,7 +32235,7 @@ pub mod root { root::already_AddRefed<root::mozilla::dom::NodeInfo> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_190938() { + fn __bindgen_test_layout_already_AddRefed_instantiation_191091() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIURI>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32182,7 +32246,7 @@ pub mod root { root::already_AddRefed<root::nsIURI> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_191085() { + fn __bindgen_test_layout_already_AddRefed_instantiation_191238() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsINode>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32193,7 +32257,7 @@ pub mod root { root::already_AddRefed<root::nsINode> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_195189() { + fn __bindgen_test_layout_UniquePtr_instantiation_195342() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32204,7 +32268,7 @@ pub mod root { root::mozilla::UniquePtr<root::JSErrorNotes_Note> ) )); } #[test] - fn __bindgen_test_layout_iterator_instantiation_195221() { + fn __bindgen_test_layout_iterator_instantiation_195374() { assert_eq!(::std::mem::size_of::<root::std::iterator>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32215,7 +32279,7 @@ pub mod root { root::std::iterator ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_195790() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_195943() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIPrincipal>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32226,7 +32290,7 @@ pub mod root { root::nsCOMPtr<root::nsIPrincipal> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_197378() { + fn __bindgen_test_layout_nsTArray_instantiation_197531() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32239,7 +32303,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_LinkedList_instantiation_197651() { + fn __bindgen_test_layout_LinkedList_instantiation_197804() { assert_eq!(::std::mem::size_of::<root::mozilla::LinkedList>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32250,7 +32314,7 @@ pub mod root { root::mozilla::LinkedList ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_197667() { + fn __bindgen_test_layout_RefPtr_instantiation_197820() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Element>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32261,7 +32325,7 @@ pub mod root { root::RefPtr<root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_197666() { + fn __bindgen_test_layout_nsTArray_instantiation_197819() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::Element>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32274,7 +32338,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_197696() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_197849() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIObserver>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32285,7 +32349,7 @@ pub mod root { root::nsCOMPtr<root::nsIObserver> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_197695() { + fn __bindgen_test_layout_nsTArray_instantiation_197848() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCOMPtr<root::nsIObserver>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32296,7 +32360,7 @@ pub mod root { root::nsTArray<root::nsCOMPtr<root::nsIObserver>> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_197741() { + fn __bindgen_test_layout_already_AddRefed_instantiation_197894() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIDocument>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32307,7 +32371,7 @@ pub mod root { root::already_AddRefed<root::nsIDocument> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_197906() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198059() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsContentList>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32318,7 +32382,7 @@ pub mod root { root::already_AddRefed<root::nsContentList> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_198233() { + fn __bindgen_test_layout_already_AddRefed_instantiation_198386() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIRunnable>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32329,7 +32393,7 @@ pub mod root { root::already_AddRefed<root::nsIRunnable> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_198326() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_198479() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::mozilla::dom::Link>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32340,7 +32404,7 @@ pub mod root { root::nsCOMPtr<root::mozilla::dom::Link> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_198617() { + fn __bindgen_test_layout_UniquePtr_instantiation_198770() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsISMILAttr>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32351,7 +32415,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsISMILAttr> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_199164() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_199317() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::mozilla::dom::DOMIntersectionObserver>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32364,7 +32428,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_199163() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_199316() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32375,7 +32439,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_199279() { + fn __bindgen_test_layout_nsTArray_instantiation_199432() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32386,7 +32450,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_199330() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_199483() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -32395,7 +32459,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_199510() { + fn __bindgen_test_layout_nsTArray_instantiation_199663() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsRect>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32406,7 +32470,7 @@ pub mod root { root::nsTArray<root::nsRect> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_199788() { + fn __bindgen_test_layout_nsTArray_instantiation_199941() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCOMPtr<root::nsIAtom>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32417,7 +32481,7 @@ pub mod root { root::nsTArray<root::nsCOMPtr<root::nsIAtom>> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_200575() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_200728() { assert_eq!(::std::mem::size_of::<[u64; 29usize]>() , 232usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32428,7 +32492,7 @@ pub mod root { [u64; 29usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_200667() { + fn __bindgen_test_layout_already_AddRefed_instantiation_200820() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32439,7 +32503,7 @@ pub mod root { root::already_AddRefed<root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_200848() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_201001() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32450,7 +32514,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_201371() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_201524() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<::std::os::raw::c_void>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32461,7 +32525,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_201379() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_201532() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::WeakFrame>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32472,7 +32536,7 @@ pub mod root { root::nsPtrHashKey<root::WeakFrame> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_201494() { + fn __bindgen_test_layout_OwningNonNull_instantiation_201647() { assert_eq!(::std::mem::size_of::<root::mozilla::OwningNonNull<root::nsINode>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32483,7 +32547,7 @@ pub mod root { root::mozilla::OwningNonNull<root::nsINode> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_201621() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_201774() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIWeakReference>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32494,7 +32558,7 @@ pub mod root { root::nsCOMPtr<root::nsIWeakReference> ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_202573() { + fn __bindgen_test_layout_PointTyped_instantiation_202726() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32505,7 +32569,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_202576() { + fn __bindgen_test_layout_IntPointTyped_instantiation_202729() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32516,7 +32580,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_SizeTyped_instantiation_202579() { + fn __bindgen_test_layout_SizeTyped_instantiation_202732() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32527,7 +32591,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_202585() { + fn __bindgen_test_layout_RectTyped_instantiation_202738() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32538,7 +32602,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_202609() { + fn __bindgen_test_layout_IntPointTyped_instantiation_202762() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32549,7 +32613,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntSizeTyped_instantiation_202615() { + fn __bindgen_test_layout_IntSizeTyped_instantiation_202768() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32560,7 +32624,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_202621() { + fn __bindgen_test_layout_IntRectTyped_instantiation_202774() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32571,7 +32635,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_MarginTyped_instantiation_202750() { + fn __bindgen_test_layout_MarginTyped_instantiation_202903() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32582,7 +32646,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_202777() { + fn __bindgen_test_layout_RectTyped_instantiation_202930() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32593,7 +32657,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_202780() { + fn __bindgen_test_layout_IntRectTyped_instantiation_202933() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32604,7 +32668,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactor_instantiation_202816() { + fn __bindgen_test_layout_ScaleFactor_instantiation_202969() { assert_eq!(::std::mem::size_of::<u32>() , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( u32 ) )); @@ -32613,7 +32677,7 @@ pub mod root { u32 ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_202916() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_203069() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32624,7 +32688,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_202924() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_203077() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32635,7 +32699,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_202968() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_203121() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32646,7 +32710,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_203598() { + fn __bindgen_test_layout_nsTArray_instantiation_203751() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FramePropertyTable_PropertyValue>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32659,7 +32723,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_203614() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_203767() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::nsIFrame>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32670,7 +32734,7 @@ pub mod root { root::nsPtrHashKey<root::nsIFrame> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_206877() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_207030() { assert_eq!(::std::mem::size_of::<[u64; 29usize]>() , 232usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32681,7 +32745,7 @@ pub mod root { [u64; 29usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_207510() { + fn __bindgen_test_layout_already_AddRefed_instantiation_207663() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::mozilla::dom::CSSValue>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32692,7 +32756,7 @@ pub mod root { root::already_AddRefed<root::mozilla::dom::CSSValue> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_207602() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_207755() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32703,7 +32767,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_208791() { + fn __bindgen_test_layout_already_AddRefed_instantiation_208944() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsISupports>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32714,7 +32778,7 @@ pub mod root { root::already_AddRefed<root::nsISupports> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_209137() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_209290() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr<root::nsIRunnable>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32725,7 +32789,7 @@ pub mod root { root::nsCOMPtr<root::nsIRunnable> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_210717() { + fn __bindgen_test_layout_nsTArray_instantiation_210870() { assert_eq!(::std::mem::size_of::<root::nsTArray<f64>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32736,7 +32800,7 @@ pub mod root { root::nsTArray<f64> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_210729() { + fn __bindgen_test_layout_RefPtr_instantiation_210882() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32749,7 +32813,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_210728() { + fn __bindgen_test_layout_nsTArray_instantiation_210881() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32762,7 +32826,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_210762() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_210915() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::Element>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32773,7 +32837,7 @@ pub mod root { root::nsPtrHashKey<root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_210859() { + fn __bindgen_test_layout_UniquePtr_instantiation_211012() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::ProfilerBacktrace>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32784,7 +32848,7 @@ pub mod root { root::mozilla::UniquePtr<root::ProfilerBacktrace> ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_212630() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_212783() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32795,7 +32859,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_212669() { + fn __bindgen_test_layout_OwningNonNull_instantiation_212822() { assert_eq!(::std::mem::size_of::<root::mozilla::OwningNonNull<root::mozilla::EffectCompositor_AnimationStyleRuleProcessor>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32808,7 +32872,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_212690() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_212845() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::nsIAtom>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32819,7 +32883,7 @@ pub mod root { root::nsRefPtrHashKey<root::nsIAtom> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_212721() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_212881() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::nsIContent>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32830,7 +32894,7 @@ pub mod root { root::nsRefPtrHashKey<root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_213277() { + fn __bindgen_test_layout_already_AddRefed_instantiation_213437() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::mozilla::URLExtraData>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32841,7 +32905,7 @@ pub mod root { root::already_AddRefed<root::mozilla::URLExtraData> ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_213281() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_213441() { assert_eq!(::std::mem::size_of::<root::nsMainThreadPtrHolder<root::nsIURI>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32852,7 +32916,7 @@ pub mod root { root::nsMainThreadPtrHolder<root::nsIURI> ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_213355() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_213515() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::nsIDocument>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32863,7 +32927,7 @@ pub mod root { root::nsPtrHashKey<root::nsIDocument> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_213640() { + fn __bindgen_test_layout_UniquePtr_instantiation_213800() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValueList>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32874,7 +32938,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsCSSValueList> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_213643() { + fn __bindgen_test_layout_UniquePtr_instantiation_213803() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValuePairList>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32885,7 +32949,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsCSSValuePairList> ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_213985() { + fn __bindgen_test_layout_Maybe_instantiation_214145() { assert_eq!(::std::mem::size_of::<[u64; 2usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32896,7 +32960,7 @@ pub mod root { [u64; 2usize] ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_214151() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_214311() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -32905,7 +32969,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_214304() { + fn __bindgen_test_layout_Maybe_instantiation_214472() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32916,7 +32980,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_214319() { + fn __bindgen_test_layout_already_AddRefed_instantiation_214487() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsStyleImageRequest>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32927,7 +32991,7 @@ pub mod root { root::already_AddRefed<root::nsStyleImageRequest> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_214325() { + fn __bindgen_test_layout_UniquePtr_instantiation_214493() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32938,7 +33002,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsStyleSides> ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_214511() { + fn __bindgen_test_layout_pair_instantiation_214679() { assert_eq!(::std::mem::size_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32949,7 +33013,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_214510() { + fn __bindgen_test_layout_nsTArray_instantiation_214678() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>>() , 8usize , concat ! ( @@ -32964,7 +33028,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_215512() { + fn __bindgen_test_layout_RefPtr_instantiation_215667() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::RawServoAnimationValue>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32975,7 +33039,7 @@ pub mod root { root::RefPtr<root::RawServoAnimationValue> ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_219500() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_219655() { assert_eq!(::std::mem::size_of::<root::mozilla::BaseTimeDuration>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32986,7 +33050,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_220092() { + fn __bindgen_test_layout_nsTArray_instantiation_220247() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::DisplayItemClip_RoundedRect>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32999,7 +33063,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_220272() { + fn __bindgen_test_layout_Maybe_instantiation_220427() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33010,7 +33074,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_220447() { + fn __bindgen_test_layout_RefPtr_instantiation_220602() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMRect>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33021,7 +33085,7 @@ pub mod root { root::RefPtr<root::mozilla::dom::DOMRect> ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_220691() { + fn __bindgen_test_layout_Sequence_instantiation_220846() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -33030,7 +33094,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_220990() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_221145() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::mozilla::dom::Element>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33041,7 +33105,7 @@ pub mod root { root::nsRefPtrHashKey<root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_220989() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_221144() { assert_eq!(::std::mem::size_of::<[u64; 6usize]>() , 48usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33052,7 +33116,7 @@ pub mod root { [u64; 6usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_222132() { + fn __bindgen_test_layout_nsTArray_instantiation_222311() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::css::DocumentRule>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -33063,7 +33127,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_222170() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_222349() { assert_eq!(::std::mem::size_of::<root::nsAutoPtr<root::nsMediaQuery>>() , 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 b1aa9e383de..0f4e5e0b764 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -1111,6 +1111,18 @@ pub mod root { pub const NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION: ::std::os::raw::c_uint = 250; + pub const CSS_PSEUDO_ELEMENT_IS_CSS2: ::std::os::raw::c_uint = 1; + 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 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; @@ -1228,7 +1240,7 @@ pub mod root { pub struct atomic { } #[test] - fn __bindgen_test_layout_atomic_instantiation_60317() { + fn __bindgen_test_layout_atomic_instantiation_60373() { assert_eq!(::std::mem::size_of::<u32>() , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( u32 ) )); @@ -1237,7 +1249,7 @@ pub mod root { ( u32 ) )); } #[test] - fn __bindgen_test_layout_atomic_instantiation_60325() { + fn __bindgen_test_layout_atomic_instantiation_60381() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -6747,7 +6759,7 @@ pub mod root { _unused: [u8; 0], } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_114814() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_114870() { assert_eq!(::std::mem::size_of::<root::mozilla::StaticRefPtr<root::mozilla::URLExtraData>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -7649,13 +7661,14 @@ pub mod root { pub struct CounterStyleManager { pub mRefCnt: root::nsAutoRefCnt, pub mPresContext: *mut root::nsPresContext, - pub mCacheTable: [u64; 5usize], + pub mStyles: [u64; 5usize], + pub mRetiredStyles: root::nsTArray<*mut root::mozilla::CounterStyle>, } pub type CounterStyleManager_HasThreadSafeRefCnt = root::mozilla::FalseType; #[test] fn bindgen_test_layout_CounterStyleManager() { - assert_eq!(::std::mem::size_of::<CounterStyleManager>() , 56usize + assert_eq!(::std::mem::size_of::<CounterStyleManager>() , 64usize , concat ! ( "Size of: " , stringify ! ( CounterStyleManager ) )); assert_eq! (::std::mem::align_of::<CounterStyleManager>() , 8usize @@ -7676,12 +7689,18 @@ pub mod root { CounterStyleManager ) , "::" , stringify ! ( mPresContext ) )); assert_eq! (unsafe { + & ( * ( 0 as * const CounterStyleManager ) ) . mStyles + as * const _ as usize } , 16usize , concat ! ( + "Alignment of field: " , stringify ! ( + CounterStyleManager ) , "::" , stringify ! ( mStyles ) + )); + assert_eq! (unsafe { & ( * ( 0 as * const CounterStyleManager ) ) . - mCacheTable as * const _ as usize } , 16usize , concat - ! ( + mRetiredStyles as * const _ as usize } , 56usize , + concat ! ( "Alignment of field: " , stringify ! ( CounterStyleManager ) , "::" , stringify ! ( - mCacheTable ) )); + mRetiredStyles ) )); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -7908,6 +7927,26 @@ pub mod root { fn clone(&self) -> Self { *self } } #[repr(C)] + #[derive(Debug)] + pub struct CounterStylePtr { + pub mRaw: usize, + } + pub const CounterStylePtr_kAnonymousFlag: usize = 1; + #[test] + fn bindgen_test_layout_CounterStylePtr() { + assert_eq!(::std::mem::size_of::<CounterStylePtr>() , 8usize , + concat ! ( + "Size of: " , stringify ! ( CounterStylePtr ) )); + assert_eq! (::std::mem::align_of::<CounterStylePtr>() , 8usize , + concat ! ( + "Alignment of " , stringify ! ( CounterStylePtr ) )); + assert_eq! (unsafe { + & ( * ( 0 as * const CounterStylePtr ) ) . mRaw as * + const _ as usize } , 0usize , concat ! ( + "Alignment of field: " , stringify ! ( CounterStylePtr + ) , "::" , stringify ! ( mRaw ) )); + } + #[repr(C)] #[derive(Debug, Copy)] pub struct Position { pub mXPosition: root::mozilla::Position_Coord, @@ -8853,7 +8892,7 @@ pub mod root { pub type ComputedKeyframeValues = root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>; #[test] - fn __bindgen_test_layout_DefaultDelete_instantiation_152177() { + fn __bindgen_test_layout_DefaultDelete_instantiation_152265() { assert_eq!(::std::mem::size_of::<root::mozilla::DefaultDelete>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -11070,7 +11109,7 @@ pub mod root { pub _address: u8, } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_50051() { + fn __bindgen_test_layout_nsCharTraits_instantiation_50107() { assert_eq!(::std::mem::size_of::<root::nsCharTraits>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -11081,7 +11120,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout_nsCharTraits_instantiation_50055() { + fn __bindgen_test_layout_nsCharTraits_instantiation_50111() { assert_eq!(::std::mem::size_of::<root::nsCharTraits>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -12793,7 +12832,7 @@ pub mod root { } pub type nsCOMPtr_element_type<T> = T; #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_63481() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_63537() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -28156,7 +28195,7 @@ pub mod root { ) , "::" , stringify ! ( mQuotePairs ) )); } #[test] - fn __bindgen_test_layout_StaticRefPtr_instantiation_148169() { + fn __bindgen_test_layout_StaticRefPtr_instantiation_148257() { assert_eq!(::std::mem::size_of::<root::mozilla::StaticRefPtr<root::nsStyleQuoteValues>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -28171,7 +28210,7 @@ pub mod root { pub struct nsStyleList { pub mListStylePosition: u8, pub mListStyleImage: root::RefPtr<root::nsStyleImageRequest>, - pub mCounterStyle: root::RefPtr<root::mozilla::CounterStyle>, + pub mCounterStyle: root::mozilla::CounterStylePtr, pub mQuotes: root::RefPtr<root::nsStyleQuoteValues>, pub mImageRegion: root::nsRect, } @@ -31045,6 +31084,31 @@ pub mod root { impl Clone for GeckoFontMetrics { fn clone(&self) -> Self { *self } } + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_after: u32 = 1; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_before: u32 = 1; + 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_firstLetter: u32 = 3; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_firstLine: u32 = 3; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozSelection: u32 = 2; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozFocusInner: u32 = 0; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozFocusOuter: u32 = 0; + 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_mozProgressBar: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeTrack: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeProgress: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozRangeThumb: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozMeterBar: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozPlaceholder: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_placeholder: u32 = 8; + pub const SERVO_CSS_PSEUDO_ELEMENT_FLAGS_mozColorSwatch: u32 = 12; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nsROCSSPrimitiveValue { @@ -31380,7 +31444,7 @@ pub mod root { } pub type __builtin_va_list = [root::__va_list_tag; 1usize]; #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_175838() { + fn __bindgen_test_layout_IntegralConstant_instantiation_175992() { assert_eq!(::std::mem::size_of::<u8>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -31389,7 +31453,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_IntegralConstant_instantiation_175842() { + fn __bindgen_test_layout_IntegralConstant_instantiation_175996() { assert_eq!(::std::mem::size_of::<u8>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -31398,7 +31462,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_176671() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_176825() { assert_eq!(::std::mem::size_of::<root::nsReadingIterator<root::mozilla::detail::nsStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31411,7 +31475,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_176674() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_176828() { assert_eq!(::std::mem::size_of::<root::nsWritingIterator<root::mozilla::detail::nsStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31424,7 +31488,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsReadingIterator_instantiation_176746() { + fn __bindgen_test_layout_nsReadingIterator_instantiation_176900() { assert_eq!(::std::mem::size_of::<root::nsReadingIterator<root::mozilla::detail::nsCStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31437,7 +31501,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsWritingIterator_instantiation_176749() { + fn __bindgen_test_layout_nsWritingIterator_instantiation_176903() { assert_eq!(::std::mem::size_of::<root::nsWritingIterator<root::mozilla::detail::nsCStringRepr_char_type>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31450,7 +31514,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_181103() { + fn __bindgen_test_layout_nsTArray_instantiation_181257() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCString>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31461,7 +31525,7 @@ pub mod root { root::nsTArray<root::nsCString> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_181947() { + fn __bindgen_test_layout_Handle_instantiation_182101() { assert_eq!(::std::mem::size_of::<root::JS::Handle<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31472,7 +31536,7 @@ pub mod root { root::JS::Handle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_Handle_instantiation_181963() { + fn __bindgen_test_layout_Handle_instantiation_182117() { assert_eq!(::std::mem::size_of::<root::JS::Handle<root::JS::Value>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31483,7 +31547,7 @@ pub mod root { root::JS::Handle<root::JS::Value> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_181973() { + fn __bindgen_test_layout_MutableHandle_instantiation_182127() { assert_eq!(::std::mem::size_of::<root::JS::MutableHandle<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31494,7 +31558,7 @@ pub mod root { root::JS::MutableHandle<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_MutableHandle_instantiation_181989() { + fn __bindgen_test_layout_MutableHandle_instantiation_182143() { assert_eq!(::std::mem::size_of::<root::JS::MutableHandle<root::JS::Value>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31505,7 +31569,7 @@ pub mod root { root::JS::MutableHandle<root::JS::Value> ) )); } #[test] - fn __bindgen_test_layout_Rooted_instantiation_181992() { + fn __bindgen_test_layout_Rooted_instantiation_182146() { assert_eq!(::std::mem::size_of::<[u64; 3usize]>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31516,7 +31580,7 @@ pub mod root { [u64; 3usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_184495() { + fn __bindgen_test_layout_nsTArray_instantiation_184649() { assert_eq!(::std::mem::size_of::<root::nsTArray<::nsstring::nsStringRepr>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31527,7 +31591,7 @@ pub mod root { root::nsTArray<::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_184499() { + fn __bindgen_test_layout_nsTArray_instantiation_184653() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FontFamilyName>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31538,7 +31602,7 @@ pub mod root { root::nsTArray<root::mozilla::FontFamilyName> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_184512() { + fn __bindgen_test_layout_nsTArray_instantiation_184666() { assert_eq!(::std::mem::size_of::<root::nsTArray<u32>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31549,7 +31613,7 @@ pub mod root { root::nsTArray<u32> ) )); } #[test] - fn __bindgen_test_layout_TenuredHeap_instantiation_185365() { + fn __bindgen_test_layout_TenuredHeap_instantiation_185519() { assert_eq!(::std::mem::size_of::<root::JS::TenuredHeap>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31560,7 +31624,7 @@ pub mod root { root::JS::TenuredHeap ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_185455() { + fn __bindgen_test_layout_Heap_instantiation_185609() { assert_eq!(::std::mem::size_of::<root::JS::Heap<*mut root::JSObject>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31571,7 +31635,7 @@ pub mod root { root::JS::Heap<*mut root::JSObject> ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_185565() { + fn __bindgen_test_layout_TErrorResult_instantiation_185719() { assert_eq!(::std::mem::size_of::<root::mozilla::binding_danger::TErrorResult>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31582,7 +31646,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_TErrorResult_instantiation_185581() { + fn __bindgen_test_layout_TErrorResult_instantiation_185735() { assert_eq!(::std::mem::size_of::<root::mozilla::binding_danger::TErrorResult>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31593,7 +31657,7 @@ pub mod root { root::mozilla::binding_danger::TErrorResult ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_185586() { + fn __bindgen_test_layout_already_AddRefed_instantiation_185740() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsStringBuffer>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31604,7 +31668,7 @@ pub mod root { root::already_AddRefed<root::nsStringBuffer> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_185638() { + fn __bindgen_test_layout_already_AddRefed_instantiation_185792() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIAtom>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31615,7 +31679,7 @@ pub mod root { root::already_AddRefed<root::nsIAtom> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_186112() { + fn __bindgen_test_layout_RefPtr_instantiation_186266() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::StyleSheet>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31626,7 +31690,7 @@ pub mod root { root::RefPtr<root::mozilla::StyleSheet> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_186458() { + fn __bindgen_test_layout_already_AddRefed_instantiation_186612() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::mozilla::dom::NodeInfo>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31637,7 +31701,7 @@ pub mod root { root::already_AddRefed<root::mozilla::dom::NodeInfo> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_186701() { + fn __bindgen_test_layout_already_AddRefed_instantiation_186855() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIURI>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31648,7 +31712,7 @@ pub mod root { root::already_AddRefed<root::nsIURI> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_186848() { + fn __bindgen_test_layout_already_AddRefed_instantiation_187002() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsINode>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31659,7 +31723,7 @@ pub mod root { root::already_AddRefed<root::nsINode> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_190928() { + fn __bindgen_test_layout_UniquePtr_instantiation_191082() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::JSErrorNotes_Note>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31670,7 +31734,7 @@ pub mod root { root::mozilla::UniquePtr<root::JSErrorNotes_Note> ) )); } #[test] - fn __bindgen_test_layout_iterator_instantiation_190960() { + fn __bindgen_test_layout_iterator_instantiation_191114() { assert_eq!(::std::mem::size_of::<root::std::iterator>() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31681,7 +31745,7 @@ pub mod root { root::std::iterator ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_191527() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_191681() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31692,7 +31756,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_Heap_instantiation_192775() { + fn __bindgen_test_layout_Heap_instantiation_192929() { assert_eq!(::std::mem::size_of::<root::JS::Heap<root::JS::Value>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31703,7 +31767,7 @@ pub mod root { root::JS::Heap<root::JS::Value> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_193117() { + fn __bindgen_test_layout_nsTArray_instantiation_193271() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::AnonymousContent>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31716,7 +31780,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_LinkedList_instantiation_193390() { + fn __bindgen_test_layout_LinkedList_instantiation_193544() { assert_eq!(::std::mem::size_of::<root::mozilla::LinkedList>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31727,7 +31791,7 @@ pub mod root { root::mozilla::LinkedList ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_193406() { + fn __bindgen_test_layout_RefPtr_instantiation_193560() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::Element>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31738,7 +31802,7 @@ pub mod root { root::RefPtr<root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_193405() { + fn __bindgen_test_layout_nsTArray_instantiation_193559() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::Element>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31751,7 +31815,7 @@ pub mod root { )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_193435() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_193589() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31762,7 +31826,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_193434() { + fn __bindgen_test_layout_nsTArray_instantiation_193588() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31773,7 +31837,7 @@ pub mod root { root::nsTArray<root::nsCOMPtr> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_193480() { + fn __bindgen_test_layout_already_AddRefed_instantiation_193634() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIDocument>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31784,7 +31848,7 @@ pub mod root { root::already_AddRefed<root::nsIDocument> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_193645() { + fn __bindgen_test_layout_already_AddRefed_instantiation_193799() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsContentList>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31795,7 +31859,7 @@ pub mod root { root::already_AddRefed<root::nsContentList> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_193972() { + fn __bindgen_test_layout_already_AddRefed_instantiation_194126() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIRunnable>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31806,7 +31870,7 @@ pub mod root { root::already_AddRefed<root::nsIRunnable> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_194065() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_194219() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31817,7 +31881,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_194354() { + fn __bindgen_test_layout_UniquePtr_instantiation_194508() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsISMILAttr>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31828,7 +31892,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsISMILAttr> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_194891() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_195045() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::mozilla::dom::DOMIntersectionObserver>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31841,7 +31905,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_194890() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_195044() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31852,7 +31916,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_195006() { + fn __bindgen_test_layout_nsTArray_instantiation_195160() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31863,7 +31927,7 @@ pub mod root { root::nsTArray<*mut root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_195053() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_195207() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -31872,7 +31936,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_195230() { + fn __bindgen_test_layout_nsTArray_instantiation_195384() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsRect>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31883,7 +31947,7 @@ pub mod root { root::nsTArray<root::nsRect> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_195505() { + fn __bindgen_test_layout_nsTArray_instantiation_195659() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::nsCOMPtr>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31894,7 +31958,7 @@ pub mod root { root::nsTArray<root::nsCOMPtr> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_196292() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_196446() { assert_eq!(::std::mem::size_of::<[u64; 28usize]>() , 224usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31905,7 +31969,7 @@ pub mod root { [u64; 28usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_196384() { + fn __bindgen_test_layout_already_AddRefed_instantiation_196538() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsIContent>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31916,7 +31980,7 @@ pub mod root { root::already_AddRefed<root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_196565() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_196719() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31927,7 +31991,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_197082() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_197236() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::WeakFrame>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31938,7 +32002,7 @@ pub mod root { root::nsPtrHashKey<root::WeakFrame> ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_197197() { + fn __bindgen_test_layout_OwningNonNull_instantiation_197351() { assert_eq!(::std::mem::size_of::<root::mozilla::OwningNonNull<root::nsINode>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31949,7 +32013,7 @@ pub mod root { root::mozilla::OwningNonNull<root::nsINode> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_197324() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_197478() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31960,7 +32024,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_197484() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_197638() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<::std::os::raw::c_void>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31971,7 +32035,7 @@ pub mod root { root::nsPtrHashKey<::std::os::raw::c_void> ) )); } #[test] - fn __bindgen_test_layout_PointTyped_instantiation_198273() { + fn __bindgen_test_layout_PointTyped_instantiation_198427() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31982,7 +32046,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_198276() { + fn __bindgen_test_layout_IntPointTyped_instantiation_198430() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -31993,7 +32057,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_SizeTyped_instantiation_198279() { + fn __bindgen_test_layout_SizeTyped_instantiation_198433() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32004,7 +32068,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_198285() { + fn __bindgen_test_layout_RectTyped_instantiation_198439() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32015,7 +32079,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntPointTyped_instantiation_198309() { + fn __bindgen_test_layout_IntPointTyped_instantiation_198463() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32026,7 +32090,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntSizeTyped_instantiation_198315() { + fn __bindgen_test_layout_IntSizeTyped_instantiation_198469() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32037,7 +32101,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_198321() { + fn __bindgen_test_layout_IntRectTyped_instantiation_198475() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32048,7 +32112,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_MarginTyped_instantiation_198450() { + fn __bindgen_test_layout_MarginTyped_instantiation_198604() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32059,7 +32123,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_RectTyped_instantiation_198477() { + fn __bindgen_test_layout_RectTyped_instantiation_198631() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32070,7 +32134,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_IntRectTyped_instantiation_198480() { + fn __bindgen_test_layout_IntRectTyped_instantiation_198634() { assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32081,7 +32145,7 @@ pub mod root { [u32; 4usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactor_instantiation_198516() { + fn __bindgen_test_layout_ScaleFactor_instantiation_198670() { assert_eq!(::std::mem::size_of::<u32>() , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( u32 ) )); @@ -32090,7 +32154,7 @@ pub mod root { u32 ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_198616() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_198770() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32101,7 +32165,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_198624() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_198778() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32112,7 +32176,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_ScaleFactors2D_instantiation_198668() { + fn __bindgen_test_layout_ScaleFactors2D_instantiation_198822() { assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32123,7 +32187,7 @@ pub mod root { [u32; 2usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_199298() { + fn __bindgen_test_layout_nsTArray_instantiation_199452() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::FramePropertyTable_PropertyValue>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32136,7 +32200,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_199314() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_199468() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::nsIFrame>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32147,7 +32211,7 @@ pub mod root { root::nsPtrHashKey<root::nsIFrame> ) )); } #[test] - fn __bindgen_test_layout_nsPIDOMWindow_instantiation_202572() { + fn __bindgen_test_layout_nsPIDOMWindow_instantiation_202726() { assert_eq!(::std::mem::size_of::<[u64; 28usize]>() , 224usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32158,7 +32222,7 @@ pub mod root { [u64; 28usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_203199() { + fn __bindgen_test_layout_already_AddRefed_instantiation_203353() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::mozilla::dom::CSSValue>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32169,7 +32233,7 @@ pub mod root { root::already_AddRefed<root::mozilla::dom::CSSValue> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_203291() { + fn __bindgen_test_layout_nsRefPtrHashtable_instantiation_203445() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32180,7 +32244,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_204480() { + fn __bindgen_test_layout_already_AddRefed_instantiation_204634() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsISupports>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32191,7 +32255,7 @@ pub mod root { root::already_AddRefed<root::nsISupports> ) )); } #[test] - fn __bindgen_test_layout_nsCOMPtr_instantiation_204826() { + fn __bindgen_test_layout_nsCOMPtr_instantiation_204980() { assert_eq!(::std::mem::size_of::<root::nsCOMPtr>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32202,7 +32266,7 @@ pub mod root { root::nsCOMPtr ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_206406() { + fn __bindgen_test_layout_nsTArray_instantiation_206560() { assert_eq!(::std::mem::size_of::<root::nsTArray<f64>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32213,7 +32277,7 @@ pub mod root { root::nsTArray<f64> ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_206418() { + fn __bindgen_test_layout_RefPtr_instantiation_206572() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32226,7 +32290,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_206417() { + fn __bindgen_test_layout_nsTArray_instantiation_206571() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::RefPtr<root::mozilla::dom::DOMIntersectionObserverEntry>>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32239,7 +32303,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_206451() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_206605() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::mozilla::dom::Element>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32250,7 +32314,7 @@ pub mod root { root::nsPtrHashKey<root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_206548() { + fn __bindgen_test_layout_UniquePtr_instantiation_206702() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::ProfilerBacktrace>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32261,7 +32325,7 @@ pub mod root { root::mozilla::UniquePtr<root::ProfilerBacktrace> ) )); } #[test] - fn __bindgen_test_layout_nsDataHashtable_instantiation_208299() { + fn __bindgen_test_layout_nsDataHashtable_instantiation_208453() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32272,7 +32336,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_OwningNonNull_instantiation_208338() { + fn __bindgen_test_layout_OwningNonNull_instantiation_208492() { assert_eq!(::std::mem::size_of::<root::mozilla::OwningNonNull<root::mozilla::EffectCompositor_AnimationStyleRuleProcessor>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32285,7 +32349,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_208359() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_208515() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::nsIAtom>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32296,7 +32360,7 @@ pub mod root { root::nsRefPtrHashKey<root::nsIAtom> ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_208390() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_208551() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::nsIContent>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32307,7 +32371,7 @@ pub mod root { root::nsRefPtrHashKey<root::nsIContent> ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_208946() { + fn __bindgen_test_layout_already_AddRefed_instantiation_209107() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::mozilla::URLExtraData>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32318,7 +32382,7 @@ pub mod root { root::already_AddRefed<root::mozilla::URLExtraData> ) )); } #[test] - fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_208950() { + fn __bindgen_test_layout_nsMainThreadPtrHolder_instantiation_209111() { assert_eq!(::std::mem::size_of::<root::nsMainThreadPtrHolder<root::nsIURI>>() , 24usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32329,7 +32393,7 @@ pub mod root { root::nsMainThreadPtrHolder<root::nsIURI> ) )); } #[test] - fn __bindgen_test_layout_nsPtrHashKey_instantiation_209024() { + fn __bindgen_test_layout_nsPtrHashKey_instantiation_209185() { assert_eq!(::std::mem::size_of::<root::nsPtrHashKey<root::nsIDocument>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32340,7 +32404,7 @@ pub mod root { root::nsPtrHashKey<root::nsIDocument> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_209309() { + fn __bindgen_test_layout_UniquePtr_instantiation_209470() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValueList>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32351,7 +32415,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsCSSValueList> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_209312() { + fn __bindgen_test_layout_UniquePtr_instantiation_209473() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsCSSValuePairList>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32362,7 +32426,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsCSSValuePairList> ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_209581() { + fn __bindgen_test_layout_Maybe_instantiation_209742() { assert_eq!(::std::mem::size_of::<[u64; 2usize]>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32373,7 +32437,7 @@ pub mod root { [u64; 2usize] ) )); } #[test] - fn __bindgen_test_layout_SupportsWeakPtr_instantiation_209747() { + fn __bindgen_test_layout_SupportsWeakPtr_instantiation_209908() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -32382,7 +32446,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_209897() { + fn __bindgen_test_layout_Maybe_instantiation_210066() { assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32393,7 +32457,7 @@ pub mod root { [u32; 3usize] ) )); } #[test] - fn __bindgen_test_layout_already_AddRefed_instantiation_209912() { + fn __bindgen_test_layout_already_AddRefed_instantiation_210081() { assert_eq!(::std::mem::size_of::<root::already_AddRefed<root::nsStyleImageRequest>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32404,7 +32468,7 @@ pub mod root { root::already_AddRefed<root::nsStyleImageRequest> ) )); } #[test] - fn __bindgen_test_layout_UniquePtr_instantiation_209918() { + fn __bindgen_test_layout_UniquePtr_instantiation_210087() { assert_eq!(::std::mem::size_of::<root::mozilla::UniquePtr<root::nsStyleSides>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32415,7 +32479,7 @@ pub mod root { root::mozilla::UniquePtr<root::nsStyleSides> ) )); } #[test] - fn __bindgen_test_layout_pair_instantiation_210104() { + fn __bindgen_test_layout_pair_instantiation_210273() { assert_eq!(::std::mem::size_of::<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>() , 32usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32426,7 +32490,7 @@ pub mod root { root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr> ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_210103() { + fn __bindgen_test_layout_nsTArray_instantiation_210272() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::std::pair<::nsstring::nsStringRepr, ::nsstring::nsStringRepr>>>() , 8usize , concat ! ( @@ -32441,7 +32505,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_211105() { + fn __bindgen_test_layout_RefPtr_instantiation_211261() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::RawServoAnimationValue>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32452,7 +32516,7 @@ pub mod root { root::RefPtr<root::RawServoAnimationValue> ) )); } #[test] - fn __bindgen_test_layout_BaseTimeDuration_instantiation_215093() { + fn __bindgen_test_layout_BaseTimeDuration_instantiation_215249() { assert_eq!(::std::mem::size_of::<root::mozilla::BaseTimeDuration>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32463,7 +32527,7 @@ pub mod root { root::mozilla::BaseTimeDuration ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_215685() { + fn __bindgen_test_layout_nsTArray_instantiation_215841() { assert_eq!(::std::mem::size_of::<root::nsTArray<root::mozilla::DisplayItemClip_RoundedRect>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32476,7 +32540,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout_Maybe_instantiation_215859() { + fn __bindgen_test_layout_Maybe_instantiation_216015() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32487,7 +32551,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_RefPtr_instantiation_216034() { + fn __bindgen_test_layout_RefPtr_instantiation_216190() { assert_eq!(::std::mem::size_of::<root::RefPtr<root::mozilla::dom::DOMRect>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32498,7 +32562,7 @@ pub mod root { root::RefPtr<root::mozilla::dom::DOMRect> ) )); } #[test] - fn __bindgen_test_layout_Sequence_instantiation_216278() { + fn __bindgen_test_layout_Sequence_instantiation_216434() { assert_eq!(::std::mem::size_of::<u64>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( u64 ) )); @@ -32507,7 +32571,7 @@ pub mod root { u64 ) )); } #[test] - fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_216577() { + fn __bindgen_test_layout_nsRefPtrHashKey_instantiation_216733() { assert_eq!(::std::mem::size_of::<root::nsRefPtrHashKey<root::mozilla::dom::Element>>() , 16usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32518,7 +32582,7 @@ pub mod root { root::nsRefPtrHashKey<root::mozilla::dom::Element> ) )); } #[test] - fn __bindgen_test_layout_nsClassHashtable_instantiation_216576() { + fn __bindgen_test_layout_nsClassHashtable_instantiation_216732() { assert_eq!(::std::mem::size_of::<[u64; 5usize]>() , 40usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32529,7 +32593,7 @@ pub mod root { [u64; 5usize] ) )); } #[test] - fn __bindgen_test_layout_nsTArray_instantiation_217717() { + fn __bindgen_test_layout_nsTArray_instantiation_217897() { assert_eq!(::std::mem::size_of::<root::nsTArray<*mut root::mozilla::css::DocumentRule>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( @@ -32540,7 +32604,7 @@ pub mod root { root::nsTArray<*mut root::mozilla::css::DocumentRule> ) )); } #[test] - fn __bindgen_test_layout_nsAutoPtr_instantiation_217753() { + fn __bindgen_test_layout_nsAutoPtr_instantiation_217933() { assert_eq!(::std::mem::size_of::<root::nsAutoPtr<root::nsMediaQuery>>() , 8usize , concat ! ( "Size of template specialization: " , stringify ! ( diff --git a/components/style/gecko/pseudo_element.rs b/components/style/gecko/pseudo_element.rs index f5793499108..f01c182802e 100644 --- a/components/style/gecko/pseudo_element.rs +++ b/components/style/gecko/pseudo_element.rs @@ -9,7 +9,7 @@ //! need to update the checked-in files for Servo. use cssparser::ToCss; -use gecko_bindings::structs::CSSPseudoElementType; +use gecko_bindings::structs::{self, CSSPseudoElementType}; use selector_parser::PseudoElementCascadeType; use std::fmt; use string_cache::Atom; @@ -61,6 +61,26 @@ impl PseudoElement { pub fn is_lazy(&self) -> bool { !self.is_eager() && !self.is_precomputed() } + + /// Whether this pseudo-element is web-exposed. + pub fn exposed_in_non_ua_sheets(&self) -> bool { + if self.is_anon_box() { + return false; + } + + (self.flags() & structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY) == 0 + } + + /// Whether this pseudo-element supports user action selectors. + pub fn supports_user_action_state(&self) -> bool { + (self.flags() & structs::CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) != 0 + } + + /// Whether this pseudo-element is precomputed. + #[inline] + pub fn is_precomputed(&self) -> bool { + self.is_anon_box() + } } impl ToCss for PseudoElement { diff --git a/components/style/gecko/pseudo_element_definition.mako.rs b/components/style/gecko/pseudo_element_definition.mako.rs index 0872ed9a9a2..81bf539f2e1 100644 --- a/components/style/gecko/pseudo_element_definition.mako.rs +++ b/components/style/gecko/pseudo_element_definition.mako.rs @@ -60,10 +60,20 @@ impl PseudoElement { ${" | ".join(map(lambda name: "PseudoElement::{}".format(name), EAGER_PSEUDOS))}) } - /// Whether this pseudo-element is precomputed. - #[inline] - pub fn is_precomputed(&self) -> bool { - self.is_anon_box() + /// Gets the flags associated to this pseudo-element, or 0 if it's an + /// anonymous box. + pub fn flags(&self) -> u32 { + match *self { + % for pseudo in PSEUDOS: + PseudoElement::${pseudo.capitalized()} => { + % if pseudo.is_anon_box(): + 0 + % else: + structs::SERVO_CSS_PSEUDO_ELEMENT_FLAGS_${pseudo.original_ident} + % endif + } + % endfor + } } /// Construct a pseudo-element from a `CSSPseudoElementType`. @@ -106,7 +116,7 @@ impl PseudoElement { use std::ascii::AsciiExt; % for pseudo in PSEUDOS: - if !${str(pseudo.is_anon_box()).lower()} || in_ua_stylesheet { + if in_ua_stylesheet || PseudoElement::${pseudo.capitalized()}.exposed_in_non_ua_sheets() { if s.eq_ignore_ascii_case("${pseudo.value[1:]}") { return Some(PseudoElement::${pseudo.capitalized()}) } |