From 12ec560dc1e223a4e00a7bf3504dfc6aadfa42f1 Mon Sep 17 00:00:00 2001 From: komuhangi <51232461+jahielkomu@users.noreply.github.com> Date: Sun, 31 Mar 2024 17:09:08 +0300 Subject: [PATCH] Update shadow_root.rs Removed the ``` # Safety ``` section from components/script/layout_dom --- components/script/layout_dom/shadow_root.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/script/layout_dom/shadow_root.rs b/components/script/layout_dom/shadow_root.rs index 3da0e2cc537..090d1e84f8b 100644 --- a/components/script/layout_dom/shadow_root.rs +++ b/components/script/layout_dom/shadow_root.rs @@ -71,9 +71,6 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoShadowRoot<'dom, LayoutDataType } } - /// # Safety - /// - /// This function should not mutate StyleSharedRwLockReadGuard. pub unsafe fn flush_stylesheets( &self, stylist: &mut Stylist,