mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use 'atom!' macro for known static strings
This commit is contained in:
parent
6cc8186481
commit
edc1493932
3 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue