mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Fix RuleNode::has_children_for_testing().
This commit is contained in:
parent
aad49357c3
commit
c155639bc5
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue