From e1cee995b708ece5e1f6e25b9a02812d0612bfcf Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 24 Jun 2015 14:43:43 +0200 Subject: [PATCH] Make {ThreadSafe,}LayoutNode::get_jsmanaged private. There are no longer any callers outside wrapper.rs, and this makes it harder to introduce buggy callers. --- components/layout/wrapper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }