mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Stop passing DOMStrings via borrowed pointer. (#1201)
This commit is contained in:
parent
b1762655e6
commit
f5ef4365f4
74 changed files with 364 additions and 366 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue