diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2015-11-10 15:40:10 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2015-11-12 17:52:58 -0600 |
commit | 5101506089718b11bb1092c2356d911e16439707 (patch) | |
tree | 746a965761e1ead521c6a8e0c40aef9eff16b8c5 /components/script/script_task.rs | |
parent | 9cbc4393eb61bfe46ef1d8868a0ab32fa64c0985 (diff) | |
download | servo-5101506089718b11bb1092c2356d911e16439707.tar.gz servo-5101506089718b11bb1092c2356d911e16439707.zip |
Replaced DOMString by String in devtools.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 48972b3fe70..564f8575d17 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1632,7 +1632,7 @@ impl ScriptTask { let content_type = match metadata.content_type { Some(ContentType(Mime(TopLevel::Text, SubLevel::Plain, _))) => { - Some(DOMString("text/plain".to_owned())) + Some(DOMString::from("text/plain")) } _ => None }; @@ -1705,7 +1705,7 @@ impl ScriptTask { fn notify_devtools(&self, title: DOMString, url: Url, ids: (PipelineId, Option<WorkerId>)) { if let Some(ref chan) = self.devtools_chan { let page_info = DevtoolsPageInfo { - title: title, + title: String::from(title), url: url, }; chan.send(ScriptToDevtoolsControlMsg::NewGlobal( @@ -1924,7 +1924,7 @@ impl ScriptTask { // http://dev.w3.org/csswg/cssom-view/#resizing-viewports // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-resize let uievent = UIEvent::new(window.r(), - DOMString("resize".to_owned()), EventBubbles::DoesNotBubble, + DOMString::from("resize"), EventBubbles::DoesNotBubble, EventCancelable::NotCancelable, Some(window.r()), 0i32); uievent.upcast::<Event>().fire(window.upcast()); |