Skip to content
Permalink
Browse files

style: Fix RuleNode::has_children_for_testing().

  • Loading branch information...
emilio committed Jun 4, 2019
1 parent aad4935 commit c155639bc5d8357d8c6e27535bc64f72bb8d2562
Showing with 1 addition and 1 deletion.
  1. +1 −1 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> {

0 comments on commit c155639

Please sign in to comment.
You can’t perform that action at this time.