Fix stylo issue after changing counter style names to nsIAtom.

This commit is contained in:
Xidorn Quan 2017-05-06 11:46:47 +10:00
parent f50b8fd545
commit 1ef7b323ac
3 changed files with 15 additions and 2 deletions

View file

@ -226,6 +226,14 @@ impl Atom {
}
}
/// Convert this atom into an addrefed nsIAtom pointer.
#[inline]
pub fn into_addrefed(self) -> *mut nsIAtom {
let ptr = self.as_ptr();
mem::forget(self);
ptr
}
/// Return whether two atoms are ASCII-case-insensitive matches
pub fn eq_ignore_ascii_case(&self, other: &Self) -> bool {
let a = self.as_slice();