aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/rule_tree/mod.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-06-04 01:02:50 -0400
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-06-04 01:04:05 -0400
commitc155639bc5d8357d8c6e27535bc64f72bb8d2562 (patch)
tree9ab4f1d7f301b00e79474dc3fe6776ba1ff2a608 /components/style/rule_tree/mod.rs
parentaad49357c3980a701a2f73bfb705a72b00f71056 (diff)
downloadservo-c155639bc5d8357d8c6e27535bc64f72bb8d2562.tar.gz
servo-c155639bc5d8357d8c6e27535bc64f72bb8d2562.zip
style: Fix RuleNode::has_children_for_testing().
Diffstat (limited to 'components/style/rule_tree/mod.rs')
-rw-r--r--components/style/rule_tree/mod.rs2
1 files changed, 1 insertions, 1 deletions
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<WeakRuleNode> {