aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/workerlocation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/workerlocation.rs')
-rw-r--r--components/script/dom/workerlocation.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/workerlocation.rs b/components/script/dom/workerlocation.rs
index 6dce917684f..0d11b0038c6 100644
--- a/components/script/dom/workerlocation.rs
+++ b/components/script/dom/workerlocation.rs
@@ -15,7 +15,7 @@ use crate::script_runtime::CanGc;
// https://html.spec.whatwg.org/multipage/#worker-locations
#[dom_struct]
-pub struct WorkerLocation {
+pub(crate) struct WorkerLocation {
reflector_: Reflector,
#[no_trace]
url: ServoUrl,
@@ -29,7 +29,7 @@ impl WorkerLocation {
}
}
- pub fn new(global: &WorkerGlobalScope, url: ServoUrl) -> DomRoot<WorkerLocation> {
+ pub(crate) fn new(global: &WorkerGlobalScope, url: ServoUrl) -> DomRoot<WorkerLocation> {
reflect_dom_object(
Box::new(WorkerLocation::new_inherited(url)),
global,
@@ -39,7 +39,7 @@ impl WorkerLocation {
// https://html.spec.whatwg.org/multipage/#dom-workerlocation-origin
#[allow(dead_code)]
- pub fn origin(&self) -> ImmutableOrigin {
+ pub(crate) fn origin(&self) -> ImmutableOrigin {
self.url.origin()
}
}