From d9453bc0ea7540c1bcc4b848446bb9c1ca6ddc5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 9 Nov 2018 14:27:10 +0100 Subject: [PATCH] style: Remove dynamic HTML5 atoms. Co-authored-by: Nicholas Nethercote Differential Revision: https://phabricator.services.mozilla.com/D11035 --- components/style/gecko_string_cache/mod.rs | 4 ++-- 1 file 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.