mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
servo: Merge #18014 - stylo: We've had bitfield accessors for a while now (from emilio:bitfields); r=SimonSapin
This will allow my work in bug 1362338 to not break stylo. Source-Repo: https://github.com/servo/servo Source-Revision: 3c644ea616ba3f614a00834327e3b0196daaf406 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 55ebf29c9d390a7140547cf6c06e9d3db77cf51d
This commit is contained in:
parent
ac0f3aab46
commit
847873031f
@ -156,11 +156,8 @@ impl WeakAtom {
|
||||
/// Returns the length of the atom string.
|
||||
#[inline]
|
||||
pub fn len(&self) -> u32 {
|
||||
// FIXME(emilio): re-introduce bitfield accessors:
|
||||
//
|
||||
// https://github.com/servo/rust-bindgen/issues/519
|
||||
unsafe {
|
||||
(*self.as_ptr())._bitfield_1 & 0x7FFFFFFF
|
||||
(*self.as_ptr()).mLength()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user