mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Revert "script: Use atom comparison in more places, especially for attributes." for persistent test failures.
This reverts commit 874db26104
.
This commit is contained in:
parent
7158cac2dc
commit
9607b468bc
32 changed files with 147 additions and 300 deletions
|
@ -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())
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue