mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Merge branch 'main' of github.com:jahielkomu/servo into contribution/7
This commit is contained in:
commit
aabc422ccb
2 changed files with 7 additions and 2 deletions
|
@ -97,7 +97,10 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoLayoutNode<'dom, LayoutDataType
|
|||
phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// # Safety
|
||||
///
|
||||
/// This function should not be called if there is no TrustedNodeAddress.
|
||||
pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
|
||||
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
|
||||
}
|
||||
|
|
|
@ -70,7 +70,9 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoShadowRoot<'dom, LayoutDataType
|
|||
phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
/// # Safety
|
||||
///
|
||||
/// This function should not mutate StyleSharedRwLockReadGuard.
|
||||
pub unsafe fn flush_stylesheets(
|
||||
&self,
|
||||
stylist: &mut Stylist,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue