mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Make getting the XBL binding faster.
MozReview-Commit-ID: GPj3uv4xgAv
This commit is contained in:
parent
72d09202f4
commit
da97d56d4e
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue