diff options
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r-- | components/script/dom/macros.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs index 23f65a6b186..6cfca77593d 100644 --- a/components/script/dom/macros.rs +++ b/components/script/dom/macros.rs @@ -12,8 +12,7 @@ macro_rules! make_getter( use dom::bindings::codegen::InheritTypes::ElementCast; use std::ascii::StrAsciiExt; let element: &JSRef<Element> = ElementCast::from_ref(self); - element.get_string_attribute(&Atom::from_slice(stringify!($attr).to_ascii_lower() - .as_slice())) + element.get_string_attribute(stringify!($attr).to_ascii_lower().as_slice()) } ); ) @@ -39,8 +38,7 @@ macro_rules! make_uint_getter( use dom::bindings::codegen::InheritTypes::ElementCast; use std::ascii::StrAsciiExt; let element: &JSRef<Element> = ElementCast::from_ref(self); - element.get_uint_attribute(&Atom::from_slice(stringify!($attr).to_ascii_lower() - .as_slice())) + element.get_uint_attribute(stringify!($attr).to_ascii_lower().as_slice()) } ); ) |