mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #17270 - emilio:bindgen-does-bitfields-sort-of, r=wafflespeanut
stylo: Use bitfield accessors in string-cache. <!-- 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/17270) <!-- Reviewable:end -->
This commit is contained in:
commit
03074f4b0e
1 changed files with 1 additions and 4 deletions
|
@ -148,11 +148,8 @@ impl WeakAtom {
|
||||||
/// Returns whether this atom is static.
|
/// Returns whether this atom is static.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_static(&self) -> bool {
|
pub fn is_static(&self) -> bool {
|
||||||
// FIXME(emilio): re-introduce bitfield accessors:
|
|
||||||
//
|
|
||||||
// https://github.com/servo/rust-bindgen/issues/519
|
|
||||||
unsafe {
|
unsafe {
|
||||||
((*self.as_ptr())._bitfield_1 & (0x80000000 as u32)) != 0
|
(*self.as_ptr()).mIsStatic() != 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue