mirror of
https://github.com/servo/servo
synced 2026-05-03 12:52:25 +02:00
Rename JS<T> to Dom<T>
This commit is contained in:
@@ -6,7 +6,7 @@ use canvas_traits::webgl::{webgl_channel, WebGLCommand, WebGLError};
|
||||
use dom::bindings::codegen::Bindings::OESVertexArrayObjectBinding::{self, OESVertexArrayObjectMethods};
|
||||
use dom::bindings::codegen::Bindings::OESVertexArrayObjectBinding::OESVertexArrayObjectConstants;
|
||||
use dom::bindings::reflector::{DomObject, Reflector, reflect_dom_object};
|
||||
use dom::bindings::root::{JS, MutNullableJS, Root};
|
||||
use dom::bindings::root::{Dom, MutNullableJS, Root};
|
||||
use dom::webglrenderingcontext::WebGLRenderingContext;
|
||||
use dom::webglvertexarrayobjectoes::WebGLVertexArrayObjectOES;
|
||||
use dom_struct::dom_struct;
|
||||
@@ -19,7 +19,7 @@ use super::{WebGLExtension, WebGLExtensions};
|
||||
#[dom_struct]
|
||||
pub struct OESVertexArrayObject {
|
||||
reflector_: Reflector,
|
||||
ctx: JS<WebGLRenderingContext>,
|
||||
ctx: Dom<WebGLRenderingContext>,
|
||||
bound_vao: MutNullableJS<WebGLVertexArrayObjectOES>,
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ impl OESVertexArrayObject {
|
||||
fn new_inherited(ctx: &WebGLRenderingContext) -> OESVertexArrayObject {
|
||||
Self {
|
||||
reflector_: Reflector::new(),
|
||||
ctx: JS::from_ref(ctx),
|
||||
ctx: Dom::from_ref(ctx),
|
||||
bound_vao: MutNullableJS::new(None)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user