mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -34,7 +34,7 @@ impl FormData {
|
|||
reflect_dom_object(@mut FormData::new_inherited(window), window, FormDataBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Append(&mut self, name: &DOMString, value: @mut Blob, filename: Option<DOMString>) {
|
||||
pub fn Append(&mut self, name: DOMString, value: @mut Blob, filename: Option<DOMString>) {
|
||||
let blob = BlobData {
|
||||
blob: value,
|
||||
name: filename.unwrap_or(~"default")
|
||||
|
@ -42,8 +42,8 @@ impl FormData {
|
|||
self.data.insert(name.clone(), blob);
|
||||
}
|
||||
|
||||
pub fn Append_(&mut self, name: &DOMString, value: &DOMString) {
|
||||
self.data.insert(name.clone(), StringData((*value).clone()));
|
||||
pub fn Append_(&mut self, name: DOMString, value: DOMString) {
|
||||
self.data.insert(name, StringData(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue