aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-06-01 07:36:47 -0500
committerbors-servo <lbergstrom+bors@mozilla.com>2016-06-01 07:36:47 -0500
commit2be5f7211377a9609aad962be443308bef247df1 (patch)
treeb26d71b4f13e756fd2fd91be3ffeb8b056616d24 /components/script/dom/xmlhttprequest.rs
parent351b851e21ab34f30280b506e48c2d61aa115f1a (diff)
parent919a4774dd1a77318bb0cb918c6c53beef1413b9 (diff)
downloadservo-2be5f7211377a9609aad962be443308bef247df1.tar.gz
servo-2be5f7211377a9609aad962be443308bef247df1.zip
Auto merge of #11522 - nox:root-ref, r=jdm
Remove all uses of &Root<T> <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11522) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index f0294238db8..f40ef78a1eb 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -157,7 +157,7 @@ impl XMLHttpRequest {
ready_state: Cell::new(XMLHttpRequestState::Unsent),
timeout: Cell::new(0u32),
with_credentials: Cell::new(false),
- upload: JS::from_rooted(&XMLHttpRequestUpload::new(global)),
+ upload: JS::from_ref(&*XMLHttpRequestUpload::new(global)),
response_url: DOMRefCell::new(String::from("")),
status: Cell::new(0),
status_text: DOMRefCell::new(ByteString::new(vec!())),