mirror of
https://github.com/servo/servo.git
synced 2025-08-17 11:25:35 +01:00
Update web-platform-tests to revision 424249088dd679888e07bd315dd8ebc98ccf323a
This commit is contained in:
parent
4ad08fff04
commit
bca3835607
93 changed files with 1641 additions and 291 deletions
|
@ -643,7 +643,7 @@ class MockXRInputSource {
|
|||
this.primary_input_clicked_ = fakeInputSourceInit.selectionClicked;
|
||||
}
|
||||
|
||||
this.grip_ = null;
|
||||
this.mojo_from_input_ = null;
|
||||
if (fakeInputSourceInit.gripOrigin != null) {
|
||||
this.setGripOrigin(fakeInputSourceInit.gripOrigin);
|
||||
}
|
||||
|
@ -676,22 +676,22 @@ class MockXRInputSource {
|
|||
}
|
||||
|
||||
setGripOrigin(transform, emulatedPosition = false) {
|
||||
this.grip_ = new gfx.mojom.Transform();
|
||||
this.grip_.matrix = getMatrixFromTransform(transform);
|
||||
this.mojo_from_input_ = new gfx.mojom.Transform();
|
||||
this.mojo_from_input_.matrix = getMatrixFromTransform(transform);
|
||||
this.emulated_position_ = emulatedPosition;
|
||||
}
|
||||
|
||||
clearGripOrigin() {
|
||||
if (this.grip_ != null) {
|
||||
this.grip_ = null;
|
||||
if (this.mojo_from_input_ != null) {
|
||||
this.mojo_from_input_ = null;
|
||||
this.emulated_position_ = false;
|
||||
}
|
||||
}
|
||||
|
||||
setPointerOrigin(transform, emulatedPosition = false) {
|
||||
this.desc_dirty_ = true;
|
||||
this.pointer_offset_ = new gfx.mojom.Transform();
|
||||
this.pointer_offset_.matrix = getMatrixFromTransform(transform);
|
||||
this.input_from_pointer_ = new gfx.mojom.Transform();
|
||||
this.input_from_pointer_.matrix = getMatrixFromTransform(transform);
|
||||
this.emulated_position_ = emulatedPosition;
|
||||
}
|
||||
|
||||
|
@ -810,7 +810,7 @@ class MockXRInputSource {
|
|||
input_state.primaryInputPressed = this.primary_input_pressed_;
|
||||
input_state.primaryInputClicked = this.primary_input_clicked_;
|
||||
|
||||
input_state.grip = this.grip_;
|
||||
input_state.mojoFromInput = this.mojo_from_input_;
|
||||
|
||||
input_state.gamepad = this.gamepad_;
|
||||
|
||||
|
@ -840,7 +840,7 @@ class MockXRInputSource {
|
|||
break;
|
||||
}
|
||||
|
||||
input_desc.pointerOffset = this.pointer_offset_;
|
||||
input_desc.inputFromPointer = this.input_from_pointer_;
|
||||
|
||||
input_desc.profiles = this.profiles_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue