mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
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.
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user