mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make ServoShadowRoot.flush_stylesheets unsafe
This commit is contained in:
parent
67c90a0717
commit
3e63655018
1 changed files with 3 additions and 5 deletions
|
@ -213,16 +213,14 @@ impl<'lr> ServoShadowRoot<'lr> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn flush_stylesheets(
|
||||
pub unsafe fn flush_stylesheets(
|
||||
&self,
|
||||
device: &Device,
|
||||
quirks_mode: QuirksMode,
|
||||
guard: &SharedRwLockReadGuard,
|
||||
) {
|
||||
unsafe {
|
||||
self.shadow_root
|
||||
.flush_stylesheets::<ServoLayoutElement>(device, quirks_mode, guard)
|
||||
};
|
||||
self.shadow_root
|
||||
.flush_stylesheets::<ServoLayoutElement>(device, quirks_mode, guard)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue