From 7772984e0b5eb48a3e5ee63efa2050baf1a7fef7 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Tue, 19 May 2015 15:23:18 -0400 Subject: Fix borrow_unchecked in LayoutDataRef --- components/script/dom/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/node.rs') diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index f7401c99b11..033afb43a7f 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -245,7 +245,7 @@ impl LayoutDataRef { #[inline] #[allow(unsafe_code)] pub unsafe fn borrow_unchecked(&self) -> *const Option { - mem::transmute(&self.data_cell) + self.data_cell.as_unsafe_cell().get() as *const _ } /// Borrows the layout data immutably. This function is *not* thread-safe. -- cgit v1.2.3