aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_extensions
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-26 01:32:40 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-26 09:49:08 +0200
commit577370746e2ce3da7fa25a20b8e1bbeed319df65 (patch)
tree8082a48e08b01ad5fbfc29b4bfaf4a47f42f2889 /components/script/dom/webgl_extensions
parent9a7ba89c841cc9ea2e2500813aa844b4d9c35828 (diff)
downloadservo-577370746e2ce3da7fa25a20b8e1bbeed319df65.tar.gz
servo-577370746e2ce3da7fa25a20b8e1bbeed319df65.zip
Rename DOMRefCell<T> to DomRefCell<T>
I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
Diffstat (limited to 'components/script/dom/webgl_extensions')
-rw-r--r--components/script/dom/webgl_extensions/ext/webglvertexarrayobjectoes.rs6
-rw-r--r--components/script/dom/webgl_extensions/extensions.rs10
2 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/webgl_extensions/ext/webglvertexarrayobjectoes.rs b/components/script/dom/webgl_extensions/ext/webglvertexarrayobjectoes.rs
index 3ef5f8bbefa..cdbe9f2e2e8 100644
--- a/components/script/dom/webgl_extensions/ext/webglvertexarrayobjectoes.rs
+++ b/components/script/dom/webgl_extensions/ext/webglvertexarrayobjectoes.rs
@@ -5,7 +5,7 @@
use canvas_traits::webgl::WebGLVertexArrayId;
use core::cell::Ref;
use core::iter::FromIterator;
-use dom::bindings::cell::DOMRefCell;
+use dom::bindings::cell::DomRefCell;
use dom::bindings::codegen::Bindings::WebGLVertexArrayObjectOESBinding;
use dom::bindings::reflector::reflect_dom_object;
use dom::bindings::root::{Dom, MutNullableDom, Root};
@@ -22,7 +22,7 @@ pub struct WebGLVertexArrayObjectOES {
id: WebGLVertexArrayId,
ever_bound: Cell<bool>,
is_deleted: Cell<bool>,
- bound_attrib_buffers: DOMRefCell<HashMap<u32, Dom<WebGLBuffer>>>,
+ bound_attrib_buffers: DomRefCell<HashMap<u32, Dom<WebGLBuffer>>>,
bound_buffer_element_array: MutNullableDom<WebGLBuffer>,
}
@@ -33,7 +33,7 @@ impl WebGLVertexArrayObjectOES {
id: id,
ever_bound: Cell::new(false),
is_deleted: Cell::new(false),
- bound_attrib_buffers: DOMRefCell::new(HashMap::new()),
+ bound_attrib_buffers: DomRefCell::new(HashMap::new()),
bound_buffer_element_array: MutNullableDom::new(None),
}
}
diff --git a/components/script/dom/webgl_extensions/extensions.rs b/components/script/dom/webgl_extensions/extensions.rs
index 1eca2aac3ca..ebadaf9a612 100644
--- a/components/script/dom/webgl_extensions/extensions.rs
+++ b/components/script/dom/webgl_extensions/extensions.rs
@@ -5,7 +5,7 @@
use canvas_traits::webgl::WebGLError;
use core::iter::FromIterator;
use core::nonzero::NonZero;
-use dom::bindings::cell::DOMRefCell;
+use dom::bindings::cell::DomRefCell;
use dom::bindings::codegen::Bindings::OESStandardDerivativesBinding::OESStandardDerivativesConstants;
use dom::bindings::codegen::Bindings::OESTextureHalfFloatBinding::OESTextureHalfFloatConstants;
use dom::bindings::codegen::Bindings::WebGLRenderingContextBinding::WebGLRenderingContextConstants as constants;
@@ -76,15 +76,15 @@ impl Default for WebGLExtensionFeatures {
#[must_root]
#[derive(HeapSizeOf, JSTraceable)]
pub struct WebGLExtensions {
- extensions: DOMRefCell<HashMap<String, Box<WebGLExtensionWrapper>>>,
- features: DOMRefCell<WebGLExtensionFeatures>,
+ extensions: DomRefCell<HashMap<String, Box<WebGLExtensionWrapper>>>,
+ features: DomRefCell<WebGLExtensionFeatures>,
}
impl WebGLExtensions {
pub fn new() -> WebGLExtensions {
Self {
- extensions: DOMRefCell::new(HashMap::new()),
- features: DOMRefCell::new(Default::default())
+ extensions: DomRefCell::new(HashMap::new()),
+ features: DomRefCell::new(Default::default())
}
}