mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -401,7 +401,7 @@ impl HTMLScriptElement {
|
|||
// TODO: Otherwise, decode the file to Unicode, using character
|
||||
// encoding as the fallback encoding.
|
||||
|
||||
(DOMString(UTF_8.decode(&*bytes, DecoderTrap::Replace).unwrap()),
|
||||
(DOMString::from(UTF_8.decode(&*bytes, DecoderTrap::Replace).unwrap()),
|
||||
true,
|
||||
metadata.final_url)
|
||||
},
|
||||
|
@ -549,7 +549,7 @@ impl HTMLScriptElement {
|
|||
let window = window_from_node(self);
|
||||
let window = window.r();
|
||||
let event = Event::new(GlobalRef::Window(window),
|
||||
DOMString(type_),
|
||||
DOMString::from(type_),
|
||||
bubbles,
|
||||
cancelable);
|
||||
event.fire(self.upcast())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue