diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 03140dfd982..d56fb0925b5 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -166,7 +166,7 @@ impl<'ln> LayoutNode<'ln> { /// Returns the interior of this node as a `LayoutJS`. This is highly unsafe for layout to /// call and as such is marked `unsafe`. - pub unsafe fn get_jsmanaged<'a>(&'a self) -> &'a LayoutJS { + unsafe fn get_jsmanaged<'a>(&'a self) -> &'a LayoutJS { &self.node } @@ -643,7 +643,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> { /// Returns the interior of this node as a `LayoutJS`. This is highly unsafe for layout to /// call and as such is marked `unsafe`. - pub unsafe fn get_jsmanaged<'a>(&'a self) -> &'a LayoutJS { + unsafe fn get_jsmanaged<'a>(&'a self) -> &'a LayoutJS { self.node.get_jsmanaged() }