diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 1d3a94d9b6c..517fdb36fef 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -611,7 +611,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> { /// If this is an element, accesses the element data. Fails if this is not an element node. #[inline] - pub fn as_element(&self) -> ThreadSafeLayoutElement { + pub fn as_element(&self) -> ThreadSafeLayoutElement<'ln> { unsafe { assert!(self.get_jsmanaged().is_element_for_layout()); let elem: JS = self.get_jsmanaged().transmute_copy();