diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-08 17:33:51 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-08 17:34:12 +0200 |
commit | efed0ac742746ad5947037482eeadde15b487ef7 (patch) | |
tree | 1376e425935e66d2b9b8df9f97bf9be7c5d8e02a /components/style/gecko_string_cache | |
parent | 32f835260cd3ea03a881f7a344a01f401c4db621 (diff) | |
download | servo-efed0ac742746ad5947037482eeadde15b487ef7.tar.gz servo-efed0ac742746ad5947037482eeadde15b487ef7.zip |
stylo: We've had bitfield accessors for a while now.
Diffstat (limited to 'components/style/gecko_string_cache')
-rw-r--r-- | components/style/gecko_string_cache/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/style/gecko_string_cache/mod.rs b/components/style/gecko_string_cache/mod.rs index fed06fbeec5..f3bb04f6c55 100644 --- a/components/style/gecko_string_cache/mod.rs +++ b/components/style/gecko_string_cache/mod.rs @@ -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() } } |