mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove Traceable/Untraceable from node.rs
This commit is contained in:
parent
5c8a45d74e
commit
a8f96ddfb2
3 changed files with 27 additions and 25 deletions
|
@ -667,7 +667,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
|
|||
#[inline(always)]
|
||||
pub fn borrow_layout_data<'a>(&'a self) -> Ref<'a,Option<LayoutDataWrapper>> {
|
||||
unsafe {
|
||||
mem::transmute(self.get().layout_data.deref().borrow())
|
||||
mem::transmute(self.get().layout_data.borrow())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -675,7 +675,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
|
|||
#[inline(always)]
|
||||
pub fn mutate_layout_data<'a>(&'a self) -> RefMut<'a,Option<LayoutDataWrapper>> {
|
||||
unsafe {
|
||||
mem::transmute(self.get().layout_data.deref().borrow_mut())
|
||||
mem::transmute(self.get().layout_data.borrow_mut())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue