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

@ -134,6 +134,11 @@ impl nsCSSValue {
self.set_string_internal(s, nsCSSUnit::eCSSUnit_Ident)
}
/// Set to an atom identifier value
pub fn set_atom_ident(&mut self, s: Atom) {
unsafe { bindings::Gecko_CSSValue_SetAtomIdent(self, s.into_addrefed()) }
}
/// Set to a font format
pub fn set_font_format(&mut self, s: &str) {
self.set_string_internal(s, nsCSSUnit::eCSSUnit_Font_Format);