Update shadow_root.rs

Removed the ``` # Safety ``` section from components/script/layout_dom
This commit is contained in:
komuhangi 2024-03-31 17:09:08 +03:00 committed by GitHub
parent 076e1dd7e5
commit 12ec560dc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,9 +71,6 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoShadowRoot<'dom, LayoutDataType
} }
} }
/// # Safety
///
/// This function should not mutate StyleSharedRwLockReadGuard.
pub unsafe fn flush_stylesheets( pub unsafe fn flush_stylesheets(
&self, &self,
stylist: &mut Stylist, stylist: &mut Stylist,