Use 'atom!' macro for known static strings

This commit is contained in:
Corey Farwell 2015-10-30 08:30:13 -04:00
parent 6cc8186481
commit edc1493932
3 changed files with 4 additions and 4 deletions

View file

@ -62,7 +62,7 @@ impl HTMLFontElementMethods for HTMLFontElement {
fn SetSize(&self, value: DOMString) {
let element = self.upcast::<Element>();
let length = parse_length(&value);
element.set_attribute(&Atom::from_slice("size"), AttrValue::Length(value, length));
element.set_attribute(&atom!("size"), AttrValue::Length(value, length));
}
}