From f87c2a8d7616112ca924e30292db2d244cf87eec Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 26 Sep 2017 01:53:40 +0200 Subject: Rename Root to DomRoot In a later PR, DomRoot will become a type alias of Root>, where Root will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned. --- components/script/dom/domtokenlist.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/script/dom/domtokenlist.rs') diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs index 96fd1226950..22f0a45654b 100644 --- a/components/script/dom/domtokenlist.rs +++ b/components/script/dom/domtokenlist.rs @@ -7,7 +7,7 @@ use dom::bindings::codegen::Bindings::DOMTokenListBinding; use dom::bindings::codegen::Bindings::DOMTokenListBinding::DOMTokenListMethods; use dom::bindings::error::{Error, ErrorResult, Fallible}; use dom::bindings::reflector::{Reflector, reflect_dom_object}; -use dom::bindings::root::{Dom, Root}; +use dom::bindings::root::{Dom, DomRoot}; use dom::bindings::str::DOMString; use dom::element::Element; use dom::node::window_from_node; @@ -32,14 +32,14 @@ impl DOMTokenList { } } - pub fn new(element: &Element, local_name: &LocalName) -> Root { + pub fn new(element: &Element, local_name: &LocalName) -> DomRoot { let window = window_from_node(element); reflect_dom_object(box DOMTokenList::new_inherited(element, local_name.clone()), &*window, DOMTokenListBinding::Wrap) } - fn attribute(&self) -> Option> { + fn attribute(&self) -> Option> { self.element.get_attribute(&ns!(), &self.local_name) } -- cgit v1.2.3