mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Replaced DOMString by String in devtools.
This commit is contained in:
parent
9cbc4393eb
commit
5101506089
6 changed files with 27 additions and 28 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue