diff options
Diffstat (limited to 'src/components/script/dom/htmlselectelement.rs')
-rw-r--r-- | src/components/script/dom/htmlselectelement.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/script/dom/htmlselectelement.rs b/src/components/script/dom/htmlselectelement.rs index 147252dc2cd..3170006bbbd 100644 --- a/src/components/script/dom/htmlselectelement.rs +++ b/src/components/script/dom/htmlselectelement.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::HTMLSelectElementBinding; +use dom::bindings::codegen::Bindings::HTMLSelectElementBinding::HTMLSelectElementMethods; use dom::bindings::codegen::InheritTypes::HTMLSelectElementDerived; use dom::bindings::codegen::UnionTypes::HTMLElementOrLong::HTMLElementOrLong; use dom::bindings::codegen::UnionTypes::HTMLOptionElementOrHTMLOptGroupElement::HTMLOptionElementOrHTMLOptGroupElement; @@ -40,11 +41,6 @@ impl HTMLSelectElement { } } -pub trait HTMLSelectElementMethods { - fn Validity(&self) -> Temporary<ValidityState>; - fn Add(&self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>); -} - impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> { fn Validity(&self) -> Temporary<ValidityState> { let window = window_from_node(self).root(); |