Skip to content

Commit

Permalink
stylo: Devirtualize nsIAtom refcounting.
Browse files Browse the repository at this point in the history
Bug: 1362338
Reviewed-by: froydnj
MozReview-Commit-ID: 3q5rz3L8quQ
  • Loading branch information
emilio committed Aug 9, 2017
1 parent f6aa17a commit 4e3ea45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/style/gecko_string_cache/mod.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit 4e3ea45

Please sign in to comment.