mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
stylo: Use bitfield accessors in string-cache.
This commit is contained in:
parent
811c980864
commit
cb04ef933b
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