aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-09-12 22:44:31 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-09-12 23:04:56 +0200
commitcd3b0c23fa8971b312e2528711d220c834200061 (patch)
tree76cc30d6394cefb72b4290069754213d709676e2 /components/layout_thread/lib.rs
parent9eaadc68600637268f19accf2ad7dec93d536285 (diff)
downloadservo-cd3b0c23fa8971b312e2528711d220c834200061.tar.gz
servo-cd3b0c23fa8971b312e2528711d220c834200061.zip
style: Fix Servo build, and rustfmt recent changes.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index e24360db2dc..f03ca9f9d03 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -1497,11 +1497,10 @@ impl LayoutThread {
// Create a layout context for use throughout the following passes.
let mut layout_context = self.build_layout_context(guards.clone(), true, &map);
+ let pool;
let (thread_pool, num_threads) = if self.parallel_flag {
- (
- STYLE_THREAD_POOL.style_thread_pool.as_ref(),
- STYLE_THREAD_POOL.num_threads,
- )
+ pool = STYLE_THREAD_POOL.pool();
+ (pool.as_ref(), STYLE_THREAD_POOL.num_threads)
} else {
(None, 1)
};
@@ -1859,8 +1858,10 @@ impl LayoutThread {
|| {
let profiler_metadata = self.profiler_metadata();
+ let pool;
let thread_pool = if self.parallel_flag {
- STYLE_THREAD_POOL.style_thread_pool.as_ref()
+ pool = STYLE_THREAD_POOL.pool();
+ pool.as_ref()
} else {
None
};