mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +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
|
@ -77,20 +77,20 @@ pub trait LayoutDataAccess {
|
|||
impl<'ln> LayoutDataAccess for LayoutNode<'ln> {
|
||||
#[inline(always)]
|
||||
unsafe fn borrow_layout_data_unchecked(&self) -> *const Option<LayoutDataWrapper> {
|
||||
mem::transmute(self.get().layout_data.deref().borrow_unchecked())
|
||||
mem::transmute(self.get().layout_data.borrow_unchecked())
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
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