mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use macro getters for input elements
This commit is contained in:
parent
2ce5b46bba
commit
8f47259d6e
7 changed files with 7 additions and 28 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue