diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 62848346fd9..6b3ce4a555c 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -174,7 +174,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 {