aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlbaseelement.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-12-16 20:29:20 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-12-17 18:07:12 -0800
commitbe69a503fec2a5cc5a5cbeb6341229e468c25ed2 (patch)
treea40565b25baedd37dc449d0e7c3a4c1e2fd039ca /src/components/script/dom/htmlbaseelement.rs
parentda4cff034bcf44316f1c88ee163df9e6bd8e495f (diff)
downloadservo-be69a503fec2a5cc5a5cbeb6341229e468c25ed2.tar.gz
servo-be69a503fec2a5cc5a5cbeb6341229e468c25ed2.zip
script: Eliminate the phantom type in favor of just whitelisting methods
that layout can safely call. This is simpler. Currently, the set of methods is not safe, but I plan to lock it down more soon.
Diffstat (limited to 'src/components/script/dom/htmlbaseelement.rs')
-rw-r--r--src/components/script/dom/htmlbaseelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/htmlbaseelement.rs b/src/components/script/dom/htmlbaseelement.rs
index 97970b1128d..10d07f226c5 100644
--- a/src/components/script/dom/htmlbaseelement.rs
+++ b/src/components/script/dom/htmlbaseelement.rs
@@ -7,7 +7,7 @@ use dom::bindings::utils::{DOMString, ErrorResult};
use dom::document::AbstractDocument;
use dom::element::HTMLBaseElementTypeId;
use dom::htmlelement::HTMLElement;
-use dom::node::{AbstractNode, Node, ScriptView};
+use dom::node::{AbstractNode, Node};
pub struct HTMLBaseElement {
htmlelement: HTMLElement
@@ -20,7 +20,7 @@ impl HTMLBaseElement {
}
}
- pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> {
+ pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
let element = HTMLBaseElement::new_inherited(localName, document);
Node::reflect_node(@mut element, document, HTMLBaseElementBinding::Wrap)
}