mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Upgrade to SM 39
This commit is contained in:
parent
a256f39796
commit
675267b782
205 changed files with 6546 additions and 5340 deletions
|
@ -5,8 +5,8 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/webgl.idl
|
||||
use dom::bindings::codegen::Bindings::WebGLObjectBinding;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{Temporary};
|
||||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||
use dom::bindings::js::Root;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct WebGLObject {
|
||||
|
@ -20,7 +20,7 @@ impl WebGLObject {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: GlobalRef) -> Temporary<WebGLObject> {
|
||||
pub fn new(global: GlobalRef) -> Root<WebGLObject> {
|
||||
reflect_dom_object(box WebGLObject::new_inherited(), global, WebGLObjectBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue