Auto merge of #20241 - emilio:xbl-faster, r=bholley

style: Make getting the XBL binding faster.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20241)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-03-08 11:31:35 -05:00 committed by GitHub
commit 9b540d199e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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