mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
servo: Merge #4912 - Use boxed::into_raw in create_or_get_local_context (from Ms2ger:local_context); r=mbrubeck
Source-Repo: https://github.com/servo/servo Source-Revision: 45d18ce21c0f902e2b88f01cd57b68a7e8c0a633
This commit is contained in:
parent
c897ff19a3
commit
13868c9015
@ -17,8 +17,8 @@ use script_traits::UntrustedNodeAddress;
|
||||
use msg::constellation_msg::ConstellationChan;
|
||||
use net::local_image_cache::LocalImageCache;
|
||||
use servo_util::geometry::Au;
|
||||
use std::boxed;
|
||||
use std::cell::Cell;
|
||||
use std::mem;
|
||||
use std::ptr;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use style::selector_matching::Stylist;
|
||||
@ -40,7 +40,7 @@ fn create_or_get_local_context(shared_layout_context: &SharedLayoutContext) -> *
|
||||
applicable_declarations_cache: ApplicableDeclarationsCache::new(),
|
||||
style_sharing_candidate_cache: StyleSharingCandidateCache::new(),
|
||||
};
|
||||
r.set(unsafe { mem::transmute(context) });
|
||||
r.set(unsafe { boxed::into_raw(context) });
|
||||
}
|
||||
|
||||
r.get()
|
||||
|
Loading…
Reference in New Issue
Block a user