mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update node.rs (Ignore changes)
This commit is contained in:
parent
f789c02693
commit
67d6ac0d14
1 changed files with 4 additions and 1 deletions
|
@ -97,7 +97,10 @@ 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