From c155639bc5d8357d8c6e27535bc64f72bb8d2562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 4 Jun 2019 01:02:50 -0400 Subject: [PATCH] style: Fix RuleNode::has_children_for_testing(). --- components/style/rule_tree/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index 395eefcc5e5..34222103241 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -1019,7 +1019,7 @@ impl StrongRuleNode { /// Returns whether this node has any child, only intended for testing /// purposes, and called on a single-threaded fashion only. pub unsafe fn has_children_for_testing(&self) -> bool { - self.get().children.read().is_empty() + !self.get().children.read().is_empty() } unsafe fn pop_from_free_list(&self) -> Option {