style: Make getting the XBL binding faster.

MozReview-Commit-ID: GPj3uv4xgAv
This commit is contained in:
Emilio Cobos Álvarez 2018-03-07 15:00:45 +01:00
parent 72d09202f4
commit da97d56d4e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -616,7 +616,8 @@ impl<'le> GeckoElement<'le> {
return None; return None;
} }
unsafe { bindings::Gecko_GetXBLBinding(self.0).map(GeckoXBLBinding) } let slots = self.extended_slots()?;
unsafe { slots.mXBLBinding.mRawPtr.as_ref().map(GeckoXBLBinding) }
} }
#[inline] #[inline]