Make {ThreadSafe,}LayoutNode::get_jsmanaged private.

There are no longer any callers outside wrapper.rs, and this makes it harder
to introduce buggy callers.
This commit is contained in:
Ms2ger 2015-06-24 14:43:43 +02:00
parent 2ea32829af
commit e1cee995b7

View file

@ -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<Node> {
unsafe fn get_jsmanaged<'a>(&'a self) -> &'a LayoutJS<Node> {
&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<Node> {
unsafe fn get_jsmanaged<'a>(&'a self) -> &'a LayoutJS<Node> {
self.node.get_jsmanaged()
}