diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2013-11-09 03:55:30 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2013-11-14 20:35:36 +0900 |
commit | f5ef4365f46d31cb4aa85474345a5d2c20e86590 (patch) | |
tree | e4ac7016de573cfc179e1121d93eb384b3ef2fd7 /src/components/script/dom/node.rs | |
parent | b1762655e6ce7e9ff8a79710a5b10bef34a3c26b (diff) | |
download | servo-f5ef4365f46d31cb4aa85474345a5d2c20e86590.tar.gz servo-f5ef4365f46d31cb4aa85474345a5d2c20e86590.zip |
Stop passing DOMStrings via borrowed pointer. (#1201)
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r-- | src/components/script/dom/node.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index f08c91c817b..83deddcaf50 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -633,7 +633,7 @@ impl Node<ScriptView> { } } - pub fn SetNodeValue(&mut self, _abstract_self: AbstractNode<ScriptView>, _val: &Option<DOMString>) -> ErrorResult { + pub fn SetNodeValue(&mut self, _abstract_self: AbstractNode<ScriptView>, _val: Option<DOMString>) -> ErrorResult { Ok(()) } @@ -970,10 +970,10 @@ impl Node<ScriptView> { pub fn SetTextContent(&mut self, abstract_self: AbstractNode<ScriptView>, - value: &Option<DOMString>) -> ErrorResult { + value: Option<DOMString>) -> ErrorResult { self.wait_until_safe_to_modify_dom(); - let value = null_str_as_empty(value); + let value = null_str_as_empty(&value); match self.type_id { DocumentFragmentNodeTypeId | ElementNodeTypeId(*) => { // Step 1-2. @@ -981,7 +981,7 @@ impl Node<ScriptView> { None } else { let document = self.owner_doc(); - Some(document.document().CreateTextNode(document, &value)) + Some(document.document().CreateTextNode(document, value)) }; // Step 3. Node::replace_all(node, abstract_self); @@ -1049,15 +1049,15 @@ impl Node<ScriptView> { false } - pub fn LookupPrefix(&self, _prefix: &Option<DOMString>) -> Option<DOMString> { + pub fn LookupPrefix(&self, _prefix: Option<DOMString>) -> Option<DOMString> { None } - pub fn LookupNamespaceURI(&self, _namespace: &Option<DOMString>) -> Option<DOMString> { + pub fn LookupNamespaceURI(&self, _namespace: Option<DOMString>) -> Option<DOMString> { None } - pub fn IsDefaultNamespace(&self, _namespace: &Option<DOMString>) -> bool { + pub fn IsDefaultNamespace(&self, _namespace: Option<DOMString>) -> bool { false } |