aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-03-25 22:27:05 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-03-26 00:09:15 -0700
commit77e857891ad9c82b54586e221086fad58f53452f (patch)
tree447cd86191a6a9c75f7b562882ee6e78b2a509b0 /components/script/dom
parent2e486065691e5dc945566ab61599c857659e5a15 (diff)
downloadservo-77e857891ad9c82b54586e221086fad58f53452f.tar.gz
servo-77e857891ad9c82b54586e221086fad58f53452f.zip
Fix xrviewport.height
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/xrviewport.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xrviewport.rs b/components/script/dom/xrviewport.rs
index f540558a527..e3065a51d43 100644
--- a/components/script/dom/xrviewport.rs
+++ b/components/script/dom/xrviewport.rs
@@ -57,7 +57,7 @@ impl XRViewportMethods for XRViewport {
/// https://immersive-web.github.io/webxr/#dom-xrviewport-width
fn Width(&self) -> i32 {
- self.height as i32
+ self.width as i32
}
/// https://immersive-web.github.io/webxr/#dom-xrviewport-height