mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Replaced DOMString constructor by conversion functions.
Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
This commit is contained in:
parent
736323a779
commit
84bde75b42
64 changed files with 256 additions and 254 deletions
|
@ -228,7 +228,7 @@ impl FileReader {
|
|||
let convert = blob_bytes;
|
||||
// Step 7
|
||||
let output = enc.decode(convert, DecoderTrap::Replace).unwrap();
|
||||
DOMString(output)
|
||||
DOMString::from(output)
|
||||
}
|
||||
|
||||
//https://w3c.github.io/FileAPI/#dfn-readAsDataURL
|
||||
|
@ -248,7 +248,7 @@ impl FileReader {
|
|||
format!("data:{};base64,{}", data.blobtype, base64)
|
||||
};
|
||||
|
||||
DOMString(output)
|
||||
DOMString::from(output)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -323,7 +323,7 @@ impl FileReader {
|
|||
|
||||
let global = self.global.root();
|
||||
let progressevent = ProgressEvent::new(global.r(),
|
||||
DOMString(type_), EventBubbles::DoesNotBubble, EventCancelable::NotCancelable,
|
||||
DOMString::from(type_), EventBubbles::DoesNotBubble, EventCancelable::NotCancelable,
|
||||
total.is_some(), loaded, total.unwrap_or(0));
|
||||
progressevent.upcast::<Event>().fire(self.upcast());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue