From 3ea6d87bcc37167464e856949a4b9b77d0e9318a Mon Sep 17 00:00:00 2001 From: YUAN LYU Date: Fri, 20 Mar 2020 22:14:18 -0400 Subject: Add trait DomObjectWrap to provide WRAP function --- components/script/dom/xrframe.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'components/script/dom/xrframe.rs') diff --git a/components/script/dom/xrframe.rs b/components/script/dom/xrframe.rs index 9a752abf759..6de10312ec3 100644 --- a/components/script/dom/xrframe.rs +++ b/components/script/dom/xrframe.rs @@ -2,7 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use crate::dom::bindings::codegen::Bindings::XRFrameBinding; use crate::dom::bindings::codegen::Bindings::XRFrameBinding::XRFrameMethods; use crate::dom::bindings::error::Error; use crate::dom::bindings::inheritance::Castable; @@ -40,11 +39,7 @@ impl XRFrame { } pub fn new(global: &GlobalScope, session: &XRSession, data: Frame) -> DomRoot { - reflect_dom_object( - Box::new(XRFrame::new_inherited(session, data)), - global, - XRFrameBinding::Wrap, - ) + reflect_dom_object(Box::new(XRFrame::new_inherited(session, data)), global) } /// https://immersive-web.github.io/webxr/#xrframe-active -- cgit v1.2.3