From d92cc8ecd02bffb312f529c7dd90f6c1bc79ff40 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Mon, 21 Nov 2016 17:04:58 +0800 Subject: [PATCH] Don't assert when we do a rule tree GC and the root nodes still has strong references. It could still have children. --- components/style/rule_tree/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index 2e87a30c2120..1e9602428c03 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 {