mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Mark HTMLAreaElement and KeyboardEvent as DOM structs.
This commit is contained in:
parent
ccdf0bd65e
commit
d1e5f7f8ce
2 changed files with 4 additions and 19 deletions
|
@ -8,7 +8,7 @@ use dom::bindings::codegen::Bindings::HTMLAreaElementBinding::HTMLAreaElementMet
|
|||
use dom::bindings::codegen::InheritTypes::{HTMLAreaElementDerived, HTMLElementCast};
|
||||
use dom::bindings::codegen::InheritTypes::ElementCast;
|
||||
use dom::bindings::js::{MutNullableJS, JSRef, Temporary};
|
||||
use dom::bindings::utils::{Reflectable, Reflector};
|
||||
use dom::bindings::utils::Reflectable;
|
||||
use dom::document::Document;
|
||||
use dom::domtokenlist::DOMTokenList;
|
||||
use dom::element::ElementTypeId;
|
||||
|
@ -21,9 +21,7 @@ use std::default::Default;
|
|||
use string_cache::Atom;
|
||||
use util::str::DOMString;
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct HTMLAreaElement {
|
||||
htmlelement: HTMLElement,
|
||||
rel_list: MutNullableJS<DOMTokenList>,
|
||||
|
@ -64,12 +62,6 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLAreaElement> {
|
|||
}
|
||||
}
|
||||
|
||||
impl Reflectable for HTMLAreaElement {
|
||||
fn reflector<'a>(&'a self) -> &'a Reflector {
|
||||
self.htmlelement.reflector()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
||||
fn RelList(self) -> Temporary<DOMTokenList> {
|
||||
self.rel_list.or_init(|| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue