aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko_string_cache
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-08-09 12:48:10 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-08-09 13:06:11 +0200
commit4e3ea4532578fb18285ffe3136917d31f54ff57c (patch)
treef657de496a363bcba1e44ef494f1dc2225889d34 /components/style/gecko_string_cache
parentf6aa17add96a49e7ee6746b24bc8f250380ea51e (diff)
downloadservo-4e3ea4532578fb18285ffe3136917d31f54ff57c.tar.gz
servo-4e3ea4532578fb18285ffe3136917d31f54ff57c.zip
stylo: Devirtualize nsIAtom refcounting.
Bug: 1362338 Reviewed-by: froydnj MozReview-Commit-ID: 3q5rz3L8quQ
Diffstat (limited to 'components/style/gecko_string_cache')
-rw-r--r--components/style/gecko_string_cache/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/gecko_string_cache/mod.rs b/components/style/gecko_string_cache/mod.rs
index f3bb04f6c55..aa3c3b731ea 100644
--- a/components/style/gecko_string_cache/mod.rs
+++ b/components/style/gecko_string_cache/mod.rs
@@ -10,7 +10,7 @@ use gecko_bindings::bindings::Gecko_AddRefAtom;
use gecko_bindings::bindings::Gecko_Atomize;
use gecko_bindings::bindings::Gecko_Atomize16;
use gecko_bindings::bindings::Gecko_ReleaseAtom;
-use gecko_bindings::structs::nsIAtom;
+use gecko_bindings::structs::{nsIAtom, nsIAtom_AtomKind};
use nsstring::{nsAString, nsString};
use precomputed_hash::PrecomputedHash;
use std::ascii::AsciiExt;
@@ -149,7 +149,7 @@ impl WeakAtom {
#[inline]
pub fn is_static(&self) -> bool {
unsafe {
- (*self.as_ptr()).mIsStatic() != 0
+ (*self.as_ptr()).mKind() == nsIAtom_AtomKind::StaticAtom as u32
}
}