Skip to content

Commit

Permalink
Backed out changeset dda1c7951937 for build bustage force-cargo-libra…
Browse files Browse the repository at this point in the history
…ry-build. r=backout on a CLOSED TREE

Backs out #19660
  • Loading branch information
Gecko Backout authored and moz-servo-sync committed Dec 31, 2017
1 parent d3f603e commit cf8b8db
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 100 deletions.
165 changes: 69 additions & 96 deletions components/style/gecko/generated/structs.rs

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions components/style/gecko/wrapper.rs
Expand Up @@ -536,9 +536,8 @@ impl<'le> GeckoElement<'le> {
fn get_extended_slots(
&self,
) -> Option<&structs::FragmentOrElement_nsExtendedDOMSlots> {
self.get_dom_slots().and_then(|s| unsafe {
(s._base.mExtendedSlots.mPtr as *const structs::FragmentOrElement_nsExtendedDOMSlots).as_ref()
})
self.get_dom_slots()
.and_then(|s| unsafe { s.mExtendedSlots.mPtr.as_ref() })
}

#[inline]
Expand Down Expand Up @@ -593,7 +592,7 @@ impl<'le> GeckoElement<'le> {
fn get_non_xul_xbl_binding_parent_raw_content(&self) -> *mut nsIContent {
debug_assert!(!self.is_xul_element());
self.get_extended_slots()
.map_or(ptr::null_mut(), |slots| slots._base.mBindingParent)
.map_or(ptr::null_mut(), |slots| slots.mBindingParent)
}

fn has_xbl_binding_parent(&self) -> bool {
Expand Down

0 comments on commit cf8b8db

Please sign in to comment.