diff options
author | Michael Wu <mwu@mozilla.com> | 2015-05-19 15:23:18 -0400 |
---|---|---|
committer | Michael Wu <mwu@mozilla.com> | 2015-05-19 15:27:40 -0400 |
commit | 7772984e0b5eb48a3e5ee63efa2050baf1a7fef7 (patch) | |
tree | 478fb63b8b56f8405925d4cfe7125e854149d97c /components/script/dom/node.rs | |
parent | c2ed42d2bcdc0f0cd665908ff5270051fb9946e6 (diff) | |
download | servo-7772984e0b5eb48a3e5ee63efa2050baf1a7fef7.tar.gz servo-7772984e0b5eb48a3e5ee63efa2050baf1a7fef7.zip |
Fix borrow_unchecked in LayoutDataRef
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<LayoutData> { - 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. |