diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index 2e87a30c212..1e9602428c0 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -440,8 +440,7 @@ impl StrongRuleNode { // script. debug_assert!(!thread_state::get().is_worker() && (thread_state::get().is_layout() || - (thread_state::get().is_script() && - me.refcount.load(Ordering::SeqCst) == 0))); + thread_state::get().is_script())); let current = me.next_free.load(Ordering::SeqCst); if current == FREE_LIST_SENTINEL {