aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-07-06 08:29:17 -0600
committerbors-servo <metajack+bors@gmail.com>2015-07-06 08:29:17 -0600
commita3821bf24094bf5bb2a9553e66b69da3b6430aa5 (patch)
treea032c77c25aaafb41899de6755326471b451e053 /components/layout/context.rs
parent6386addb01dfec4bda38f99e534516ddf5ff77aa (diff)
parent24730f1078a216c3d32d3efc9c6a7c01b82a1706 (diff)
downloadservo-a3821bf24094bf5bb2a9553e66b69da3b6430aa5.tar.gz
servo-a3821bf24094bf5bb2a9553e66b69da3b6430aa5.zip
Auto merge of #6547 - Ms2ger:workqueue-reference, r=pcwalton
Borrow the QueueData for WorkQueue::run. This allows us to get rid of the raw pointers and unsafe dereferencing in the parallel layout implementation. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6547) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index f433c121f7e..1e376166300 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -129,9 +129,7 @@ pub struct SharedLayoutContext {
pub goal: ReflowGoal,
}
-pub struct SharedLayoutContextWrapper(pub *const SharedLayoutContext);
-
-unsafe impl Send for SharedLayoutContextWrapper {}
+unsafe impl Send for SharedLayoutContext {}
pub struct LayoutContext<'a> {
pub shared: &'a SharedLayoutContext,