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/documentfragment.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/documentfragment.rs')
-rw-r--r-- | src/components/script/dom/documentfragment.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/documentfragment.rs b/src/components/script/dom/documentfragment.rs index 1f4e6a35113..fdee1c68aca 100644 --- a/src/components/script/dom/documentfragment.rs +++ b/src/components/script/dom/documentfragment.rs @@ -21,14 +21,14 @@ impl DocumentFragment { } } - pub fn new(document: AbstractDocument) -> AbstractNode<ScriptView> { + pub fn new(document: AbstractDocument) -> AbstractNode { let node = DocumentFragment::new_inherited(document); Node::reflect_node(@mut node, document, DocumentFragmentBinding::Wrap) } } impl DocumentFragment { - pub fn Constructor(owner: @mut Window) -> Fallible<AbstractNode<ScriptView>> { + pub fn Constructor(owner: @mut Window) -> Fallible<AbstractNode> { Ok(DocumentFragment::new(owner.Document())) } } |