aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmloptionelement.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/htmloptionelement.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/htmloptionelement.rs')
-rw-r--r--src/components/script/dom/htmloptionelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/htmloptionelement.rs b/src/components/script/dom/htmloptionelement.rs
index 3d46580a080..6beb2ba3c18 100644
--- a/src/components/script/dom/htmloptionelement.rs
+++ b/src/components/script/dom/htmloptionelement.rs
@@ -7,7 +7,7 @@ use dom::bindings::utils::{DOMString, ErrorResult};
use dom::document::AbstractDocument;
use dom::element::HTMLOptionElementTypeId;
use dom::htmlelement::HTMLElement;
-use dom::node::{AbstractNode, Node, ScriptView};
+use dom::node::{AbstractNode, Node};
pub struct HTMLOptionElement {
htmlelement: HTMLElement
@@ -20,7 +20,7 @@ impl HTMLOptionElement {
}
}
- pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> {
+ pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
let element = HTMLOptionElement::new_inherited(localName, document);
Node::reflect_node(@mut element, document, HTMLOptionElementBinding::Wrap)
}
@@ -35,7 +35,7 @@ impl HTMLOptionElement {
Ok(())
}
- pub fn GetForm(&self) -> Option<AbstractNode<ScriptView>> {
+ pub fn GetForm(&self) -> Option<AbstractNode> {
None
}