mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #7245 - jxs:master, r=Ms2ger
replace len() !=0 with !is_empty() <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7245) <!-- Reviewable:end -->
This commit is contained in:
commit
d90907cb5f
3 changed files with 3 additions and 4 deletions
|
@ -213,7 +213,7 @@ impl DisplayList {
|
|||
};
|
||||
|
||||
doit(&(self.all_display_items()));
|
||||
if self.children.len() != 0 {
|
||||
if !self.children.is_empty() {
|
||||
println!("{} Children stacking contexts list length: {}",
|
||||
indentation,
|
||||
self.children.len());
|
||||
|
|
|
@ -244,7 +244,7 @@ pub trait Flow: fmt::Debug + Sync {
|
|||
match self.class() {
|
||||
FlowClass::Block |
|
||||
FlowClass::TableCaption |
|
||||
FlowClass::TableCell if base(self).children.len() != 0 => {
|
||||
FlowClass::TableCell if !base(self).children.is_empty() => {
|
||||
// FIXME(#2795): Get the real container size.
|
||||
let container_size = Size2D::zero();
|
||||
for kid in mut_base(self).children.iter_mut() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue