stylo: Use bitfield accessors in string-cache.

This commit is contained in:
Emilio Cobos Álvarez 2017-06-11 18:39:25 +02:00
parent 811c980864
commit cb04ef933b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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
}
}