Skip to content

Commit

Permalink
Don't assert when we do a rule tree GC and the root nodes still has s…
Browse files Browse the repository at this point in the history
…trong references.

It could still have children.
  • Loading branch information
heycam committed Nov 21, 2016
1 parent 226c946 commit d92cc8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/style/rule_tree/mod.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit d92cc8e

Please sign in to comment.