aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/serviceworkercontainer.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-05 11:06:25 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:36:41 +0200
commitd8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4 (patch)
tree14676fcd23d30d1652023aa14969446f58b83922 /components/script/dom/serviceworkercontainer.rs
parentb6bbd41e11a8d73f884b7011905c05bd3efec3cd (diff)
downloadservo-d8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4.tar.gz
servo-d8e92bb271a9f9dd87bf77e38cd820d01f2f0ae4.zip
Rename Reflectable::global_scope to global
Diffstat (limited to 'components/script/dom/serviceworkercontainer.rs')
-rw-r--r--components/script/dom/serviceworkercontainer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/serviceworkercontainer.rs b/components/script/dom/serviceworkercontainer.rs
index c5d27017f8e..0947b9c0a1f 100644
--- a/components/script/dom/serviceworkercontainer.rs
+++ b/components/script/dom/serviceworkercontainer.rs
@@ -58,7 +58,7 @@ impl ServiceWorkerContainerMethods for ServiceWorkerContainer {
script_url: USVString,
options: &RegistrationOptions) -> Fallible<Root<ServiceWorkerRegistration>> {
let USVString(ref script_url) = script_url;
- let api_base_url = self.global_scope().api_base_url();
+ let api_base_url = self.global().api_base_url();
// Step 3-4
let script_url = match api_base_url.join(script_url) {
Ok(url) => url,
@@ -96,7 +96,7 @@ impl ServiceWorkerContainerMethods for ServiceWorkerContainer {
return Err(Error::Type("Scope URL contains forbidden characters".to_owned()));
}
- let global = self.global_scope();
+ let global = self.global();
let worker_registration = ServiceWorkerRegistration::new(&global,
script_url,
scope.clone(),