aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlvideoelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-09-28 01:07:32 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-10-15 17:30:41 +0200
commit7d6ea834790445d2ea71ca186484ef59ac2ac268 (patch)
treef535bc5428961c332e4ffc3e9c948d180817922e /components/script/dom/htmlvideoelement.rs
parent617fc08783d2356e644266d9e9addcd720a7138a (diff)
downloadservo-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/htmlvideoelement.rs')
-rw-r--r--components/script/dom/htmlvideoelement.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs
index 5837f00b21f..6ca2028161a 100644
--- a/components/script/dom/htmlvideoelement.rs
+++ b/components/script/dom/htmlvideoelement.rs
@@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::Bindings::HTMLVideoElementBinding;
-use dom::bindings::codegen::InheritTypes::HTMLMediaElementTypeId;
use dom::bindings::js::Root;
use dom::document::Document;
use dom::htmlmediaelement::HTMLMediaElement;
@@ -19,7 +18,7 @@ impl HTMLVideoElement {
fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: &Document) -> HTMLVideoElement {
HTMLVideoElement {
htmlmediaelement:
- HTMLMediaElement::new_inherited(HTMLMediaElementTypeId::HTMLVideoElement, localName, prefix, document)
+ HTMLMediaElement::new_inherited(localName, prefix, document)
}
}