mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make LayoutDocumentHelpers::style_shared_lock be safe
StyleSharedRwLock is Sync.
This commit is contained in:
parent
4636507fa1
commit
0c0027ecfd
3 changed files with 5 additions and 5 deletions
|
@ -368,7 +368,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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue