mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
commit
9b540d199e
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue