mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Rename MutNullableJS<T> to MutNullableDom<T>
This commit is contained in:
parent
d29335040d
commit
c52fd0a780
63 changed files with 232 additions and 232 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use core::nonzero::NonZero;
|
||||
use dom::bindings::reflector::DomObject;
|
||||
use dom::bindings::root::{MutNullableJS, Root};
|
||||
use dom::bindings::root::{MutNullableDom, Root};
|
||||
use dom::bindings::trace::JSTraceable;
|
||||
use dom::webglrenderingcontext::WebGLRenderingContext;
|
||||
use heapsize::HeapSizeOf;
|
||||
|
@ -29,15 +29,15 @@ pub trait WebGLExtensionWrapper: JSTraceable + HeapSizeOf {
|
|||
#[must_root]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
pub struct TypedWebGLExtensionWrapper<T: WebGLExtension> {
|
||||
extension: MutNullableJS<T::Extension>
|
||||
extension: MutNullableDom<T::Extension>
|
||||
}
|
||||
|
||||
/// Typed WebGL Extension implementation.
|
||||
/// Exposes the exact MutNullableJS<DOMObject> type defined by the extension.
|
||||
/// Exposes the exact MutNullableDom<DOMObject> type defined by the extension.
|
||||
impl<T: WebGLExtension> TypedWebGLExtensionWrapper<T> {
|
||||
pub fn new() -> TypedWebGLExtensionWrapper<T> {
|
||||
TypedWebGLExtensionWrapper {
|
||||
extension: MutNullableJS::new(None)
|
||||
extension: MutNullableDom::new(None)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue