Make LayoutDocumentHelpers::style_shared_lock be safe

StyleSharedRwLock is Sync.
This commit is contained in:
Anthony Ramine 2020-04-01 00:22:22 +02:00
parent 4636507fa1
commit 0c0027ecfd
3 changed files with 5 additions and 5 deletions

View file

@ -375,7 +375,7 @@ impl<'ld> ServoLayoutDocument<'ld> {
}
pub fn style_shared_lock(&self) -> &StyleSharedRwLock {
unsafe { self.document.style_shared_lock() }
self.document.style_shared_lock()
}
pub fn shadow_roots(&self) -> Vec<ServoShadowRoot> {