aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 1d0ba9728cb..add38e67dc3 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -1180,11 +1180,8 @@ impl LayoutThread {
shared_layout_context.style_context.stylist.rule_tree.dump_stdout();
}
- // GC The rule tree.
- //
- // FIXME(emilio): The whole point of the free list is not always freeing
- // the list, find a good heuristic here for that.
- unsafe { shared_layout_context.style_context.stylist.rule_tree.gc() }
+ // GC the rule tree if some heuristics are met.
+ unsafe { shared_layout_context.style_context.stylist.rule_tree.maybe_gc(); }
// Perform post-style recalculation layout passes.
self.perform_post_style_recalc_layout_passes(&data.reflow_info,