aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webxr/xrwebglbinding.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webxr/xrwebglbinding.rs')
-rw-r--r--components/script/dom/webxr/xrwebglbinding.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/script/dom/webxr/xrwebglbinding.rs b/components/script/dom/webxr/xrwebglbinding.rs
index c2d652bb81d..d0e7c3a3d01 100644
--- a/components/script/dom/webxr/xrwebglbinding.rs
+++ b/components/script/dom/webxr/xrwebglbinding.rs
@@ -31,14 +31,17 @@ use crate::dom::xrwebglsubimage::XRWebGLSubImage;
use crate::script_runtime::CanGc;
#[dom_struct]
-pub struct XRWebGLBinding {
+pub(crate) struct XRWebGLBinding {
reflector: Reflector,
session: Dom<XRSession>,
context: Dom<WebGLRenderingContext>,
}
impl XRWebGLBinding {
- pub fn new_inherited(session: &XRSession, context: &WebGLRenderingContext) -> XRWebGLBinding {
+ pub(crate) fn new_inherited(
+ session: &XRSession,
+ context: &WebGLRenderingContext,
+ ) -> XRWebGLBinding {
XRWebGLBinding {
reflector: Reflector::new(),
session: Dom::from_ref(session),