diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-08-28 14:06:56 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-08-28 14:06:56 +0530 |
commit | 8f47259d6e112c60817a047ed9ce58a766031aa0 (patch) | |
tree | e3af44be528c0b4eade788b910e93a752f5d8a95 /src/components/script/dom/htmloptionelement.rs | |
parent | 2ce5b46bba2bf80890f3e7a305a4bc5a833ba477 (diff) | |
download | servo-8f47259d6e112c60817a047ed9ce58a766031aa0.tar.gz servo-8f47259d6e112c60817a047ed9ce58a766031aa0.zip |
Use macro getters for input elements
Diffstat (limited to 'src/components/script/dom/htmloptionelement.rs')
-rw-r--r-- | src/components/script/dom/htmloptionelement.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/dom/htmloptionelement.rs b/src/components/script/dom/htmloptionelement.rs index ac0502eb0eb..d066784b285 100644 --- a/src/components/script/dom/htmloptionelement.rs +++ b/src/components/script/dom/htmloptionelement.rs @@ -44,10 +44,7 @@ impl HTMLOptionElement { impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> { // http://www.whatwg.org/html/#dom-option-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-option-disabled fn SetDisabled(&self, disabled: bool) { |