mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -14,7 +14,6 @@ use dom::event::Event;
|
|||
use dom::eventtarget::EventTarget;
|
||||
use js::jsapi::{RootedValue, HandleValue, Heap, JSContext};
|
||||
use js::jsval::JSVal;
|
||||
use std::borrow::ToOwned;
|
||||
use std::default::Default;
|
||||
use util::str::DOMString;
|
||||
|
||||
|
@ -79,7 +78,7 @@ impl MessageEvent {
|
|||
scope: GlobalRef,
|
||||
message: HandleValue) {
|
||||
let messageevent = MessageEvent::new(
|
||||
scope, DOMString("message".to_owned()), false, false, message,
|
||||
scope, DOMString::from("message"), false, false, message,
|
||||
DOMString::new(), DOMString::new());
|
||||
messageevent.upcast::<Event>().fire(target);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue