mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
stylo: We've had bitfield accessors for a while now.
This commit is contained in:
parent
32f835260c
commit
efed0ac742
1 changed files with 1 additions and 4 deletions
|
@ -156,11 +156,8 @@ impl WeakAtom {
|
||||||
/// Returns the length of the atom string.
|
/// Returns the length of the atom string.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn len(&self) -> u32 {
|
pub fn len(&self) -> u32 {
|
||||||
// FIXME(emilio): re-introduce bitfield accessors:
|
|
||||||
//
|
|
||||||
// https://github.com/servo/rust-bindgen/issues/519
|
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.as_ptr())._bitfield_1 & 0x7FFFFFFF
|
(*self.as_ptr()).mLength()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue