diff options
Diffstat (limited to 'components/style/thread_state.rs')
-rw-r--r-- | components/style/thread_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/style/thread_state.rs b/components/style/thread_state.rs index 12e52425f55..b0fbd5f4294 100644 --- a/components/style/thread_state.rs +++ b/components/style/thread_state.rs @@ -72,7 +72,8 @@ mod imp { pub fn get() -> ThreadState { let state = STATE.with(|ref k| { match *k.borrow() { - None => panic!("Thread state not initialized"), + // This is one of the layout threads, that use rayon. + None => super::LAYOUT | super::IN_WORKER, Some(s) => s, } }); |