diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-14 04:16:34 +0530 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-12-27 14:48:36 +0100 |
commit | e9d1740e19a82c5c91cc196c7c00ba57c56ec971 (patch) | |
tree | cf20c732c36bf1763267e5776c02032a83c21639 /components/script/dom/domimplementation.rs | |
parent | 475ff4dcb7ecec6eed607c05eac452ab8bf52001 (diff) | |
download | servo-e9d1740e19a82c5c91cc196c7c00ba57c56ec971.tar.gz servo-e9d1740e19a82c5c91cc196c7c00ba57c56ec971.zip |
script: to_string() -> into_string()
Diffstat (limited to 'components/script/dom/domimplementation.rs')
-rw-r--r-- | components/script/dom/domimplementation.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs index 45be86c538a..021ef7b2adc 100644 --- a/components/script/dom/domimplementation.rs +++ b/components/script/dom/domimplementation.rs @@ -129,18 +129,18 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> { { // Step 3. - let doc_type = DocumentType::new("html".to_string(), None, None, *doc).root(); + let doc_type = DocumentType::new("html".into_string(), None, None, *doc).root(); assert!(doc_node.AppendChild(NodeCast::from_ref(*doc_type)).is_ok()); } { // Step 4. - let doc_html: Root<Node> = NodeCast::from_temporary(HTMLHtmlElement::new("html".to_string(), None, *doc)).root(); + let doc_html: Root<Node> = NodeCast::from_temporary(HTMLHtmlElement::new("html".into_string(), None, *doc)).root(); assert!(doc_node.AppendChild(*doc_html).is_ok()); { // Step 5. - let doc_head: Root<Node> = NodeCast::from_temporary(HTMLHeadElement::new("head".to_string(), None, *doc)).root(); + let doc_head: Root<Node> = NodeCast::from_temporary(HTMLHeadElement::new("head".into_string(), None, *doc)).root(); assert!(doc_html.AppendChild(*doc_head).is_ok()); // Step 6. @@ -148,7 +148,7 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> { None => (), Some(title_str) => { // Step 6.1. - let doc_title: Root<Node> = NodeCast::from_temporary(HTMLTitleElement::new("title".to_string(), None, *doc)).root(); + let doc_title: Root<Node> = NodeCast::from_temporary(HTMLTitleElement::new("title".into_string(), None, *doc)).root(); assert!(doc_head.AppendChild(*doc_title).is_ok()); // Step 6.2. @@ -159,7 +159,7 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> { } // Step 7. - let doc_body: Root<HTMLBodyElement> = HTMLBodyElement::new("body".to_string(), None, *doc).root(); + let doc_body: Root<HTMLBodyElement> = HTMLBodyElement::new("body".into_string(), None, *doc).root(); assert!(doc_html.AppendChild(NodeCast::from_ref(*doc_body)).is_ok()); } |