servo/components/script
bors-servo 967efc7fbc
Auto merge of #23164 - Manishearth:getpose, r=asajeffrey
Add XRFrame.getPose()

I think I've figured out the model of poses, waiting on Nell for confirmation.

Basically, `getViewerPose(p)` is equivalent to `getPose(source=viewerSpace, relative_to=p)`

The eye-level space, for example, is stationary and stuck to the origin. The position-disabled and identity spaces somewhat counterintuitively follow you around (and appear to be stationary from `getViewerPose()` but not `getPose()`.

The incorrect mental model kinda "works" when looking at only `getViewerPose()`, but we need to figure it out for `getPose()`.

Todo (may add to this PR, but probably not)

 - implement `XRSession.viewerSpace`
 - implement position-disabled
 - implement floor-level (hard to test without a 6dof device)

r? @asajeffrey

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23164)
<!-- Reviewable:end -->
2019-04-05 21:00:47 -04:00
..
docs
dom Auto merge of #23164 - Manishearth:getpose, r=asajeffrey 2019-04-05 21:00:47 -04:00
task_source
body.rs
build.rs
Cargo.toml Bump euclid to 0.19.7 2019-04-03 23:55:33 -07:00
clipboard_provider.rs
CMakeLists.txt
devtools.rs Fix servo build. 2019-02-10 07:23:51 +01:00
document_loader.rs ran ./mach fmt 2019-03-14 14:10:29 -05:00
fetch.rs Remove foreign service-workers mode 2018-12-23 01:48:45 +08:00
image_listener.rs Implement HTMLMediaElement poster attribute 2019-01-11 17:11:11 +01:00
layout_image.rs Add url for LayoutImageContext 2019-03-16 12:26:31 -03:00
lib.rs Implement CDATASection interface and createCDATASection method 2019-03-14 21:41:02 +02:00
mem.rs
microtask.rs
network_listener.rs
script_runtime.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
script_thread.rs Auto merge of #23143 - CYBAI:remove-compound-microtasks, r=jdm 2019-04-05 10:51:09 -04:00
serviceworker_manager.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
serviceworkerjob.rs
stylesheet_loader.rs
task.rs
task_manager.rs
task_queue.rs in BC event-loop, only run tasks related to fully-active documents 2019-03-06 14:18:18 +08:00
test.rs
textinput.rs Fixed bug in textinput::adjust_vertical concerning selection_origin update 2018-12-22 17:50:24 +01:00
timers.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
unpremultiplytable.rs
webdriver_handlers.rs Implement WebDriver FindElementFromElement command 2019-03-09 16:56:51 +02:00