diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2013-12-16 20:29:20 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2013-12-17 18:07:12 -0800 |
commit | be69a503fec2a5cc5a5cbeb6341229e468c25ed2 (patch) | |
tree | a40565b25baedd37dc449d0e7c3a4c1e2fd039ca /src/components/script/dom/htmloptionelement.rs | |
parent | da4cff034bcf44316f1c88ee163df9e6bd8e495f (diff) | |
download | servo-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.rs | 6 |
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 } |