Use macro getters for input elements

This commit is contained in:
Manish Goregaokar 2014-08-28 14:06:56 +05:30
parent 2ce5b46bba
commit 8f47259d6e
7 changed files with 7 additions and 28 deletions

View file

@ -56,10 +56,7 @@ impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> {
}
// http://www.whatwg.org/html/#dom-fe-disabled
fn Disabled(&self) -> bool {
let elem: &JSRef<Element> = ElementCast::from_ref(self);
elem.has_attribute("disabled")
}
make_bool_getter!(Disabled)
// http://www.whatwg.org/html/#dom-fe-disabled
fn SetDisabled(&self, disabled: bool) {