diff --git a/components/style/thread_state.rs b/components/style/thread_state.rs
index 035d1e939b8..3c06666a057 100644
--- a/components/style/thread_state.rs
+++ b/components/style/thread_state.rs
@@ -7,7 +7,7 @@
#![deny(missing_docs)]
-pub use self::imp::{enter, exit, get, initialize};
+use std::cell::RefCell;
bitflags! {
/// A thread state flag, used for multiple assertions.
@@ -50,53 +50,48 @@ thread_types! {
is_layout = LAYOUT;
}
-mod imp {
- use std::cell::RefCell;
- use super::{TYPES, ThreadState};
+thread_local!(static STATE: RefCell