mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
2ea32829af
commit
e1cee995b7
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue