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/customelementregistry.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'components/script/dom/customelementregistry.rs') diff --git a/components/script/dom/customelementregistry.rs b/components/script/dom/customelementregistry.rs index 25a824c5d78..503605428ab 100644 --- a/components/script/dom/customelementregistry.rs +++ b/components/script/dom/customelementregistry.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::callback::{CallbackContainer, ExceptionHandling}; -use dom::bindings::cell::DOMRefCell; +use dom::bindings::cell::DomRefCell; use dom::bindings::codegen::Bindings::CustomElementRegistryBinding; use dom::bindings::codegen::Bindings::CustomElementRegistryBinding::CustomElementRegistryMethods; use dom::bindings::codegen::Bindings::CustomElementRegistryBinding::ElementDefinitionOptions; @@ -48,12 +48,12 @@ pub struct CustomElementRegistry { window: Dom, #[ignore_heap_size_of = "Rc"] - when_defined: DOMRefCell>>, + when_defined: DomRefCell>>, element_definition_is_running: Cell, #[ignore_heap_size_of = "Rc"] - definitions: DOMRefCell>>, + definitions: DomRefCell>>, } impl CustomElementRegistry { @@ -61,9 +61,9 @@ impl CustomElementRegistry { CustomElementRegistry { reflector_: Reflector::new(), window: Dom::from_ref(window), - when_defined: DOMRefCell::new(HashMap::new()), + when_defined: DomRefCell::new(HashMap::new()), element_definition_is_running: Cell::new(false), - definitions: DOMRefCell::new(HashMap::new()), + definitions: DomRefCell::new(HashMap::new()), } } @@ -404,7 +404,7 @@ pub struct CustomElementDefinition { pub callbacks: LifecycleCallbacks, - pub construction_stack: DOMRefCell>, + pub construction_stack: DomRefCell>, } impl CustomElementDefinition { @@ -627,7 +627,7 @@ enum BackupElementQueueFlag { #[derive(HeapSizeOf, JSTraceable)] #[must_root] pub struct CustomElementReactionStack { - stack: DOMRefCell>, + stack: DomRefCell>, backup_queue: ElementQueue, processing_backup_element_queue: Cell, } @@ -635,7 +635,7 @@ pub struct CustomElementReactionStack { impl CustomElementReactionStack { pub fn new() -> CustomElementReactionStack { CustomElementReactionStack { - stack: DOMRefCell::new(Vec::new()), + stack: DomRefCell::new(Vec::new()), backup_queue: ElementQueue::new(), processing_backup_element_queue: Cell::new(BackupElementQueueFlag::NotProcessing), } @@ -776,7 +776,7 @@ impl CustomElementReactionStack { #[derive(HeapSizeOf, JSTraceable)] #[must_root] struct ElementQueue { - queue: DOMRefCell>>, + queue: DomRefCell>>, } impl ElementQueue { -- cgit v1.2.3