mirror of
https://github.com/servo/servo.git
synced 2025-06-09 17:13:24 +00:00
Call the generated rather than the hand-written traits (fixes #2936).
This commit is contained in:
parent
38a658d561
commit
944d8b00b0
116 changed files with 126 additions and 765 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue