diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-09-28 01:07:32 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-15 17:30:41 +0200 |
commit | 7d6ea834790445d2ea71ca186484ef59ac2ac268 (patch) | |
tree | f535bc5428961c332e4ffc3e9c948d180817922e /components/script/dom/htmlanchorelement.rs | |
parent | 617fc08783d2356e644266d9e9addcd720a7138a (diff) | |
download | servo-7d6ea834790445d2ea71ca186484ef59ac2ac268.tar.gz servo-7d6ea834790445d2ea71ca186484ef59ac2ac268.zip |
Explicitly customise flags of new nodes where needed
Given codegen now generates the various TypeId enums, it seems pointless to
still have to write their respective values in every DOM struct inheriting from
Node just to set the initial IS_IN_DOC flag in Document and IN_ENABLED_STATE in
form controls.
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r-- | components/script/dom/htmlanchorelement.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs index 09f3c31de79..ca775b45672 100644 --- a/components/script/dom/htmlanchorelement.rs +++ b/components/script/dom/htmlanchorelement.rs @@ -11,8 +11,7 @@ use dom::bindings::codegen::Bindings::HTMLAnchorElementBinding::HTMLAnchorElemen use dom::bindings::codegen::Bindings::MouseEventBinding::MouseEventMethods; use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast}; -use dom::bindings::codegen::InheritTypes::{HTMLElementTypeId, HTMLImageElementDerived}; -use dom::bindings::codegen::InheritTypes::{MouseEventCast, NodeCast}; +use dom::bindings::codegen::InheritTypes::{HTMLImageElementDerived, MouseEventCast, NodeCast}; use dom::bindings::js::{JS, MutNullableHeap, Root}; use dom::document::Document; use dom::domtokenlist::DOMTokenList; @@ -40,7 +39,7 @@ impl HTMLAnchorElement { document: &Document) -> HTMLAnchorElement { HTMLAnchorElement { htmlelement: - HTMLElement::new_inherited(HTMLElementTypeId::HTMLAnchorElement, localName, prefix, document), + HTMLElement::new_inherited(localName, prefix, document), rel_list: Default::default(), } } |