mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update node.rs
Removed the ```# Safety ``` section.
This commit is contained in:
parent
5dc4980807
commit
076e1dd7e5
1 changed files with 1 additions and 3 deletions
|
@ -97,9 +97,7 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoLayoutNode<'dom, LayoutDataType
|
||||||
phantom: PhantomData,
|
phantom: PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// # Safety
|
|
||||||
///
|
|
||||||
/// This function should not be called if there is no TrustedNodeAddress.
|
|
||||||
pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
|
pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
|
||||||
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
|
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue