mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use macro setters everywhere else
This commit is contained in:
parent
8cba6c7580
commit
3a1f9bd7fb
5 changed files with 5 additions and 20 deletions
|
@ -49,10 +49,7 @@ impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
|||
make_bool_getter!(Disabled)
|
||||
|
||||
// http://www.whatwg.org/html#dom-optgroup-disabled
|
||||
fn SetDisabled(self, disabled: bool) {
|
||||
let elem: JSRef<Element> = ElementCast::from_ref(self);
|
||||
elem.set_bool_attribute("disabled", disabled)
|
||||
}
|
||||
make_bool_setter!(SetDisabled, "disabled")
|
||||
}
|
||||
|
||||
impl<'a> VirtualMethods for JSRef<'a, HTMLOptGroupElement> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue