aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglframebuffer.rs
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/webglframebuffer.rs
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/webglframebuffer.rs')
-rw-r--r--components/script/dom/webglframebuffer.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs
index 0a8df198cdb..35698c5a4d2 100644
--- a/components/script/dom/webglframebuffer.rs
+++ b/components/script/dom/webglframebuffer.rs
@@ -6,7 +6,7 @@
use canvas_traits::webgl::{WebGLCommand, WebGLFramebufferBindingRequest, WebGLFramebufferId};
use canvas_traits::webgl::{WebGLMsgSender, WebGLResult, WebGLError};
use canvas_traits::webgl::webgl_channel;
-use dom::bindings::cell::DOMRefCell;
+use dom::bindings::cell::DomRefCell;
use dom::bindings::codegen::Bindings::WebGLFramebufferBinding;
use dom::bindings::codegen::Bindings::WebGLRenderingContextBinding::WebGLRenderingContextConstants as constants;
use dom::bindings::reflector::reflect_dom_object;
@@ -39,10 +39,10 @@ pub struct WebGLFramebuffer {
// The attachment points for textures and renderbuffers on this
// FBO.
- color: DOMRefCell<Option<WebGLFramebufferAttachment>>,
- depth: DOMRefCell<Option<WebGLFramebufferAttachment>>,
- stencil: DOMRefCell<Option<WebGLFramebufferAttachment>>,
- depthstencil: DOMRefCell<Option<WebGLFramebufferAttachment>>,
+ color: DomRefCell<Option<WebGLFramebufferAttachment>>,
+ depth: DomRefCell<Option<WebGLFramebufferAttachment>>,
+ stencil: DomRefCell<Option<WebGLFramebufferAttachment>>,
+ depthstencil: DomRefCell<Option<WebGLFramebufferAttachment>>,
}
impl WebGLFramebuffer {
@@ -57,10 +57,10 @@ impl WebGLFramebuffer {
renderer: renderer,
size: Cell::new(None),
status: Cell::new(constants::FRAMEBUFFER_UNSUPPORTED),
- color: DOMRefCell::new(None),
- depth: DOMRefCell::new(None),
- stencil: DOMRefCell::new(None),
- depthstencil: DOMRefCell::new(None),
+ color: DomRefCell::new(None),
+ depth: DomRefCell::new(None),
+ stencil: DomRefCell::new(None),
+ depthstencil: DomRefCell::new(None),
}
}
@@ -291,7 +291,7 @@ impl WebGLFramebuffer {
}
fn with_matching_renderbuffers<F>(&self, rb: &WebGLRenderbuffer, mut closure: F)
- where F: FnMut(&DOMRefCell<Option<WebGLFramebufferAttachment>>)
+ where F: FnMut(&DomRefCell<Option<WebGLFramebufferAttachment>>)
{
let attachments = [&self.color,
&self.depth,
@@ -314,7 +314,7 @@ impl WebGLFramebuffer {
}
fn with_matching_textures<F>(&self, texture: &WebGLTexture, mut closure: F)
- where F: FnMut(&DOMRefCell<Option<WebGLFramebufferAttachment>>)
+ where F: FnMut(&DomRefCell<Option<WebGLFramebufferAttachment>>)
{
let attachments = [&self.color,
&self.depth,