mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix stylo issue after changing counter style names to nsIAtom.
This commit is contained in:
parent
f50b8fd545
commit
1ef7b323ac
3 changed files with 15 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue