aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko_string_cache
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-11-09 14:27:10 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-11-10 21:11:19 +0100
commitd9453bc0ea7540c1bcc4b848446bb9c1ca6ddc5e (patch)
treeaa33caec01c0aa0f967463289c4272f27bec791f /components/style/gecko_string_cache
parent35c061179aff8a630853822a3e05213ce1b19ace (diff)
downloadservo-d9453bc0ea7540c1bcc4b848446bb9c1ca6ddc5e.tar.gz
servo-d9453bc0ea7540c1bcc4b848446bb9c1ca6ddc5e.zip
style: Remove dynamic HTML5 atoms.
Co-authored-by: Nicholas Nethercote <nnethercote@mozilla.com> Differential Revision: https://phabricator.services.mozilla.com/D11035
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 d822600afd9..6d9e5c60f80 100644
--- a/components/style/gecko_string_cache/mod.rs
+++ b/components/style/gecko_string_cache/mod.rs
@@ -14,7 +14,7 @@ use crate::gecko_bindings::bindings::Gecko_AddRefAtom;
use crate::gecko_bindings::bindings::Gecko_Atomize;
use crate::gecko_bindings::bindings::Gecko_Atomize16;
use crate::gecko_bindings::bindings::Gecko_ReleaseAtom;
-use crate::gecko_bindings::structs::{nsAtom, nsAtom_AtomKind, nsDynamicAtom, nsStaticAtom};
+use crate::gecko_bindings::structs::{nsAtom, nsDynamicAtom, nsStaticAtom};
use nsstring::{nsAString, nsStr};
use precomputed_hash::PrecomputedHash;
use std::borrow::{Borrow, Cow};
@@ -175,7 +175,7 @@ impl WeakAtom {
/// Returns whether this atom is static.
#[inline]
pub fn is_static(&self) -> bool {
- unsafe { (*self.as_ptr()).mKind() == nsAtom_AtomKind::Static as u32 }
+ unsafe { (*self.as_ptr()).mIsStatic() != 0 }
}
/// Returns the length of the atom string.