mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00
servo: Merge #17270 - stylo: Use bitfield accessors in string-cache (from emilio:bindgen-does-bitfields-sort-of); r=wafflespeanut
Source-Repo: https://github.com/servo/servo Source-Revision: 03074f4b0e9908d80558efe519301f39aadc436e --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 7d3d3be92df34988f095e78bd9233154e49da6c5
This commit is contained in:
parent
8e8d2ffd5f
commit
99357f53e9
@ -148,11 +148,8 @@ impl WeakAtom {
|
||||
/// Returns whether this atom is static.
|
||||
#[inline]
|
||||
pub fn is_static(&self) -> bool {
|
||||
// FIXME(emilio): re-introduce bitfield accessors:
|
||||
//
|
||||
// https://github.com/servo/rust-bindgen/issues/519
|
||||
unsafe {
|
||||
((*self.as_ptr())._bitfield_1 & (0x80000000 as u32)) != 0
|
||||
(*self.as_ptr()).mIsStatic() != 0
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user