From 577370746e2ce3da7fa25a20b8e1bbeed319df65 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 26 Sep 2017 01:32:40 +0200 Subject: Rename DOMRefCell to DomRefCell 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. --- components/script/dom/webglframebuffer.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'components/script/dom/webglframebuffer.rs') 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>, - depth: DOMRefCell>, - stencil: DOMRefCell>, - depthstencil: DOMRefCell>, + color: DomRefCell>, + depth: DomRefCell>, + stencil: DomRefCell>, + depthstencil: DomRefCell>, } 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(&self, rb: &WebGLRenderbuffer, mut closure: F) - where F: FnMut(&DOMRefCell>) + where F: FnMut(&DomRefCell>) { let attachments = [&self.color, &self.depth, @@ -314,7 +314,7 @@ impl WebGLFramebuffer { } fn with_matching_textures(&self, texture: &WebGLTexture, mut closure: F) - where F: FnMut(&DOMRefCell>) + where F: FnMut(&DomRefCell>) { let attachments = [&self.color, &self.depth, -- cgit v1.2.3