aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-04 00:54:05 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:49 +0200
commit19108aa3305df2172208c83500f5ac67d2dee104 (patch)
treed65138e8d1a8723cb30a56f8bd117f580f39438c /components/script/dom/xmlhttprequest.rs
parent1fd470889dd9b4e6c3a871b6b40b50e30114443d (diff)
downloadservo-19108aa3305df2172208c83500f5ac67d2dee104.tar.gz
servo-19108aa3305df2172208c83500f5ac67d2dee104.zip
Pass a &GlobalScope to WebIDL static methods and constructors
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 5e7f156931e..a5b09193b7f 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -206,8 +206,8 @@ impl XMLHttpRequest {
}
// https://xhr.spec.whatwg.org/#constructors
- pub fn Constructor(global: GlobalRef) -> Fallible<Root<XMLHttpRequest>> {
- Ok(XMLHttpRequest::new(global.as_global_scope()))
+ pub fn Constructor(global: &GlobalScope) -> Fallible<Root<XMLHttpRequest>> {
+ Ok(XMLHttpRequest::new(global))
}
fn sync_in_window(&self) -> bool {