mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Formatting.
This commit is contained in:
parent
dbff26bce0
commit
0e8ac3fdac
81 changed files with 588 additions and 206 deletions
|
@ -33,12 +33,24 @@ impl XRMediaBinding {
|
|||
}
|
||||
}
|
||||
|
||||
fn new(global: &Window, proto: Option<HandleObject>, session: &XRSession) -> DomRoot<XRMediaBinding> {
|
||||
reflect_dom_object2(Box::new(XRMediaBinding::new_inherited(session)), global, proto)
|
||||
fn new(
|
||||
global: &Window,
|
||||
proto: Option<HandleObject>,
|
||||
session: &XRSession,
|
||||
) -> DomRoot<XRMediaBinding> {
|
||||
reflect_dom_object2(
|
||||
Box::new(XRMediaBinding::new_inherited(session)),
|
||||
global,
|
||||
proto,
|
||||
)
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn Constructor(global: &Window, proto: Option<HandleObject>, session: &XRSession) -> Fallible<DomRoot<XRMediaBinding>> {
|
||||
pub fn Constructor(
|
||||
global: &Window,
|
||||
proto: Option<HandleObject>,
|
||||
session: &XRSession,
|
||||
) -> Fallible<DomRoot<XRMediaBinding>> {
|
||||
// Step 1.
|
||||
if session.is_ended() {
|
||||
return Err(Error::InvalidState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue