style: Make mBindingParent strong.

Bug: 1463116
Reviewed-by: bz
This commit is contained in:
Olli Pettay 2018-05-22 00:11:11 +03:00 committed by Emilio Cobos Álvarez
parent 32c6d5b7c6
commit f82bf81f8e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -665,7 +665,7 @@ impl<'le> GeckoElement<'le> {
fn non_xul_xbl_binding_parent_raw_content(&self) -> *mut nsIContent {
debug_assert!(!self.is_xul_element());
self.extended_slots()
.map_or(ptr::null_mut(), |slots| slots._base.mBindingParent)
.map_or(ptr::null_mut(), |slots| slots._base.mBindingParent.raw::<nsIContent>())
}
#[inline]