mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Change core::task::local_data to core::local_data.
This commit is contained in:
parent
7234635aa5
commit
263a8251a9
1 changed files with 3 additions and 3 deletions
|
@ -153,7 +153,7 @@ pub fn Content(layout_task: LayoutTask,
|
|||
};
|
||||
|
||||
cx.set_cx_private(ptr::to_unsafe_ptr(&*content) as *());
|
||||
unsafe { task::local_data::local_data_set(global_content_key, cast::transmute(content)); }
|
||||
unsafe { local_data::local_data_set(global_content_key, cast::transmute(content)); }
|
||||
|
||||
content
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ fn global_content_key(_: @Content) {}
|
|||
|
||||
pub fn global_content() -> @Content {
|
||||
unsafe {
|
||||
return task::local_data::local_data_get(global_content_key).get();
|
||||
return local_data::local_data_get(global_content_key).get();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ pub fn task_from_context(cx: *JSContext) -> *mut Content {
|
|||
#[unsafe_destructor]
|
||||
impl Drop for Content {
|
||||
fn finalize(&self) {
|
||||
unsafe { task::local_data::local_data_pop(global_content_key) };
|
||||
unsafe { local_data::local_data_pop(global_content_key) };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue