mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Formatting.
This commit is contained in:
parent
dbff26bce0
commit
0e8ac3fdac
81 changed files with 588 additions and 206 deletions
|
@ -28,13 +28,25 @@ impl GPUValidationError {
|
|||
Self::new_with_proto(global, None, message)
|
||||
}
|
||||
|
||||
fn new_with_proto(global: &GlobalScope, proto: Option<HandleObject>, message: DOMString) -> DomRoot<Self> {
|
||||
reflect_dom_object2(Box::new(GPUValidationError::new_inherited(message)), global, proto)
|
||||
fn new_with_proto(
|
||||
global: &GlobalScope,
|
||||
proto: Option<HandleObject>,
|
||||
message: DOMString,
|
||||
) -> DomRoot<Self> {
|
||||
reflect_dom_object2(
|
||||
Box::new(GPUValidationError::new_inherited(message)),
|
||||
global,
|
||||
proto,
|
||||
)
|
||||
}
|
||||
|
||||
/// https://gpuweb.github.io/gpuweb/#dom-gpuvalidationerror-gpuvalidationerror
|
||||
#[allow(non_snake_case)]
|
||||
pub fn Constructor(global: &GlobalScope, proto: Option<HandleObject>, message: DOMString) -> DomRoot<Self> {
|
||||
pub fn Constructor(
|
||||
global: &GlobalScope,
|
||||
proto: Option<HandleObject>,
|
||||
message: DOMString,
|
||||
) -> DomRoot<Self> {
|
||||
GPUValidationError::new_with_proto(global, proto, message)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue