Make ServoShadowRoot.flush_stylesheets unsafe

This commit is contained in:
Fernando Jiménez Moreno 2019-02-28 13:06:01 +01:00
parent 67c90a0717
commit 3e63655018

View file

@ -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)
}
}