aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-03-29 17:10:01 -0600
committerbors-servo <metajack+bors@gmail.com>2015-03-29 17:10:01 -0600
commit39556cc8328793478c0e34ff99e2d36d1ab4f5cb (patch)
treeb1ea3856f806144fe88ea091fe8fb232f768b4ed /components/script/script_task.rs
parenta0a1304be08250511e20ed8b378bbf6a34c22bf4 (diff)
parentccc55d658f92b73a8384973a02f5f7e9f56f34e5 (diff)
downloadservo-39556cc8328793478c0e34ff99e2d36d1ab4f5cb.tar.gz
servo-39556cc8328793478c0e34ff99e2d36d1ab4f5cb.zip
auto merge of #5422 : bdero/servo/bdero/box-syntax, r=jdm
Closes #5417
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 7e2c586caf0..33e66e7fb7b 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -1101,7 +1101,7 @@ impl ScriptTask {
// https://html.spec.whatwg.org/multipage/#the-end step 4
let addr: Trusted<Document> = Trusted::new(self.get_cx(), document.r(), self.chan.clone());
- let handler = Box::new(DocumentProgressHandler::new(addr.clone(), DocumentProgressTask::DOMContentLoaded));
+ let handler = box DocumentProgressHandler::new(addr.clone(), DocumentProgressTask::DOMContentLoaded);
self.chan.send(ScriptMsg::RunnableMsg(handler)).unwrap();
// We have no concept of a document loader right now, so just dispatch the
@@ -1109,7 +1109,7 @@ impl ScriptTask {
// the initial load.
// https://html.spec.whatwg.org/multipage/#the-end step 7
- let handler = Box::new(DocumentProgressHandler::new(addr, DocumentProgressTask::Load));
+ let handler = box DocumentProgressHandler::new(addr, DocumentProgressTask::Load);
self.chan.send(ScriptMsg::RunnableMsg(handler)).unwrap();
window.r().set_fragment_name(final_url.fragment.clone());