diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 357a3282f9d..3529ffda5bc 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -173,7 +173,7 @@ impl Temporary { } /// Create a stack-bounded root for this value. - pub fn root(self) -> Root { + pub fn root(&self) -> Root { STACK_ROOTS.with(|ref collection| { let RootCollectionPtr(collection) = collection.get().unwrap(); unsafe {