style: Remove dynamic HTML5 atoms.

Co-authored-by: Nicholas Nethercote <nnethercote@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D11035
This commit is contained in:
Emilio Cobos Álvarez 2018-11-09 14:27:10 +01:00
parent 35c061179a
commit d9453bc0ea
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -14,7 +14,7 @@ use crate::gecko_bindings::bindings::Gecko_AddRefAtom;
use crate::gecko_bindings::bindings::Gecko_Atomize; use crate::gecko_bindings::bindings::Gecko_Atomize;
use crate::gecko_bindings::bindings::Gecko_Atomize16; use crate::gecko_bindings::bindings::Gecko_Atomize16;
use crate::gecko_bindings::bindings::Gecko_ReleaseAtom; 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 nsstring::{nsAString, nsStr};
use precomputed_hash::PrecomputedHash; use precomputed_hash::PrecomputedHash;
use std::borrow::{Borrow, Cow}; use std::borrow::{Borrow, Cow};
@ -175,7 +175,7 @@ impl WeakAtom {
/// Returns whether this atom is static. /// Returns whether this atom is static.
#[inline] #[inline]
pub fn is_static(&self) -> bool { 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. /// Returns the length of the atom string.