diff options
author | Tim Taubert <tim@timtaubert.de> | 2014-10-13 00:32:48 +0200 |
---|---|---|
committer | Tim Taubert <tim@timtaubert.de> | 2014-10-13 13:25:44 +0200 |
commit | 28061b1c913c432d46e935e632862e0164d2cbfd (patch) | |
tree | e11ed9157aa363b0e36e279b2dcb2ab5c62c4797 /components/layout/util.rs | |
parent | da7590d108be2f000bae2c00f9ea721ebd11f626 (diff) | |
download | servo-28061b1c913c432d46e935e632862e0164d2cbfd.tar.gz servo-28061b1c913c432d46e935e632862e0164d2cbfd.zip |
Privatize Node
Diffstat (limited to 'components/layout/util.rs')
-rw-r--r-- | components/layout/util.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/util.rs b/components/layout/util.rs index 198607473f1..9bb1a3ffa1f 100644 --- a/components/layout/util.rs +++ b/components/layout/util.rs @@ -78,20 +78,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.borrow_unchecked()) + mem::transmute(self.get().layout_data_unchecked()) } #[inline(always)] fn borrow_layout_data<'a>(&'a self) -> Ref<'a,Option<LayoutDataWrapper>> { unsafe { - mem::transmute(self.get().layout_data.borrow()) + mem::transmute(self.get().layout_data()) } } #[inline(always)] fn mutate_layout_data<'a>(&'a self) -> RefMut<'a,Option<LayoutDataWrapper>> { unsafe { - mem::transmute(self.get().layout_data.borrow_mut()) + mem::transmute(self.get().layout_data_mut()) } } } |