mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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,
|
&self,
|
||||||
device: &Device,
|
device: &Device,
|
||||||
quirks_mode: QuirksMode,
|
quirks_mode: QuirksMode,
|
||||||
guard: &SharedRwLockReadGuard,
|
guard: &SharedRwLockReadGuard,
|
||||||
) {
|
) {
|
||||||
unsafe {
|
self.shadow_root
|
||||||
self.shadow_root
|
.flush_stylesheets::<ServoLayoutElement>(device, quirks_mode, guard)
|
||||||
.flush_stylesheets::<ServoLayoutElement>(device, quirks_mode, guard)
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue