diff options
Diffstat (limited to 'components/script/dom/xrviewport.rs')
-rw-r--r-- | components/script/dom/xrviewport.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/components/script/dom/xrviewport.rs b/components/script/dom/xrviewport.rs index a49aaf3bf2f..f540558a527 100644 --- a/components/script/dom/xrviewport.rs +++ b/components/script/dom/xrviewport.rs @@ -22,12 +22,20 @@ impl XRViewport { fn new_inherited(x: u32, y: u32, width: u32, height: u32) -> XRViewport { XRViewport { reflector_: Reflector::new(), - x, y, width, height + x, + y, + width, + height, } } - pub fn new(global: &GlobalScope, - x: u32, y: u32, width: u32, height: u32) -> DomRoot<XRViewport> { + pub fn new( + global: &GlobalScope, + x: u32, + y: u32, + width: u32, + height: u32, + ) -> DomRoot<XRViewport> { reflect_dom_object( Box::new(XRViewport::new_inherited(x, y, width, height)), global, @@ -56,4 +64,4 @@ impl XRViewportMethods for XRViewport { fn Height(&self) -> i32 { self.height as i32 } -}
\ No newline at end of file +} |