diff options
Diffstat (limited to 'src/components/script/dom/text.rs')
-rw-r--r-- | src/components/script/dom/text.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/text.rs b/src/components/script/dom/text.rs index 34f981f3a53..2875d115245 100644 --- a/src/components/script/dom/text.rs +++ b/src/components/script/dom/text.rs @@ -6,7 +6,7 @@ use dom::bindings::codegen::TextBinding; use dom::bindings::utils::{DOMString, Fallible}; use dom::characterdata::CharacterData; use dom::document::AbstractDocument; -use dom::node::{AbstractNode, ScriptView, Node, TextNodeTypeId}; +use dom::node::{AbstractNode, Node, TextNodeTypeId}; use dom::window::Window; /// An HTML text node. @@ -21,16 +21,16 @@ impl Text { } } - pub fn new(text: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> { + pub fn new(text: ~str, document: AbstractDocument) -> AbstractNode { let node = Text::new_inherited(text, document); Node::reflect_node(@mut node, document, TextBinding::Wrap) } - pub fn Constructor(owner: @mut Window, text: DOMString) -> Fallible<AbstractNode<ScriptView>> { + pub fn Constructor(owner: @mut Window, text: DOMString) -> Fallible<AbstractNode> { Ok(Text::new(text.clone(), owner.Document())) } - pub fn SplitText(&self, _offset: u32) -> Fallible<AbstractNode<ScriptView>> { + pub fn SplitText(&self, _offset: u32) -> Fallible<AbstractNode> { fail!("unimplemented") } |