diff options
Diffstat (limited to 'components/script/layout_dom/shadow_root.rs')
-rw-r--r-- | components/script/layout_dom/shadow_root.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/layout_dom/shadow_root.rs b/components/script/layout_dom/shadow_root.rs index 9137e863972..0763e150eff 100644 --- a/components/script/layout_dom/shadow_root.rs +++ b/components/script/layout_dom/shadow_root.rs @@ -48,6 +48,12 @@ impl<'dom> ServoShadowRoot<'dom> { ServoShadowRoot { shadow_root } } + /// Flush the stylesheets for the underlying shadow root. + /// + /// # Safety + /// + /// This modifies a DOM object, so should care should be taken that only one + /// thread has a reference to this object. pub unsafe fn flush_stylesheets( &self, stylist: &mut Stylist, |