diff options
Diffstat (limited to 'components/style/thread_state.rs')
-rw-r--r-- | components/style/thread_state.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/style/thread_state.rs b/components/style/thread_state.rs index 25e77ecbb45..12e52425f55 100644 --- a/components/style/thread_state.rs +++ b/components/style/thread_state.rs @@ -24,6 +24,10 @@ bitflags! { macro_rules! thread_types ( ( $( $fun:ident = $flag:ident ; )* ) => ( impl ThreadState { + pub fn is_worker(self) -> bool { + self.contains(IN_WORKER) + } + $( #[cfg(debug_assertions)] pub fn $fun(self) -> bool { |