aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index 550fed85fad..445a3e5a49c 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -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() {