aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrviewport.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-12-21 15:20:51 -0800
committerManish Goregaokar <manishsmail@gmail.com>2018-12-21 15:47:28 -0800
commit28dff81dbf3f24ae470e1a0004f0813a3247e08f (patch)
tree3147e3ffd8047cbb22521224e8d6edd2012c6420 /components/script/dom/xrviewport.rs
parent7e043a33f17c5a084bb6e34ab3497932a285028a (diff)
downloadservo-28dff81dbf3f24ae470e1a0004f0813a3247e08f.tar.gz
servo-28dff81dbf3f24ae470e1a0004f0813a3247e08f.zip
Fill in XR frame/pose/view implementations
Diffstat (limited to 'components/script/dom/xrviewport.rs')
-rw-r--r--components/script/dom/xrviewport.rs16
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
+}