mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Revert "Updated fixes to clippy warnings in components/script"
This reverts commit 5780dc3a0a
.
This commit is contained in:
parent
5780dc3a0a
commit
2d7ab68217
3 changed files with 6 additions and 2 deletions
|
@ -2520,7 +2520,6 @@ impl Window {
|
|||
|
||||
impl Window {
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
runtime: Rc<Runtime>,
|
||||
script_chan: MainThreadScriptChan,
|
||||
|
|
|
@ -97,7 +97,9 @@ 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))
|
||||
}
|
||||
|
|
|
@ -71,6 +71,9 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoShadowRoot<'dom, LayoutDataType
|
|||
}
|
||||
}
|
||||
|
||||
/// # 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