mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix formatting issues
This commit is contained in:
parent
c7c174f837
commit
60ba3d2573
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ impl AudioContextMethods for AudioContext {
|
|||
#[allow(unsafe_code)]
|
||||
fn Suspend(&self) -> Rc<Promise> {
|
||||
// Step 1.
|
||||
let promise = unsafe {Promise::new_in_current_compartment(&self.global()) };
|
||||
let promise = unsafe { Promise::new_in_current_compartment(&self.global()) };
|
||||
|
||||
// Step 2.
|
||||
if self.context.control_thread_state() == ProcessingState::Closed {
|
||||
|
|
|
@ -343,7 +343,7 @@ impl VRDisplayMethods for VRDisplay {
|
|||
// https://w3c.github.io/webvr/#dom-vrdisplay-requestpresent
|
||||
#[allow(unsafe_code)]
|
||||
fn RequestPresent(&self, layers: Vec<VRLayer>) -> Rc<Promise> {
|
||||
let promise = unsafe {Promise::new_in_current_compartment(&self.global()) };
|
||||
let promise = unsafe { Promise::new_in_current_compartment(&self.global()) };
|
||||
// TODO: WebVR spec: this method must be called in response to a user gesture
|
||||
|
||||
// WebVR spec: If canPresent is false the promise MUST be rejected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue