aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r--components/layout/layout_task.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs
index ac58f56b2cf..9cf20fedc11 100644
--- a/components/layout/layout_task.rs
+++ b/components/layout/layout_task.rs
@@ -804,8 +804,12 @@ impl LayoutTask {
}
if needs_reflow {
- self.try_get_layout_root(*node).map(
- |mut flow| LayoutTask::reflow_all_nodes(&mut *flow));
+ match self.try_get_layout_root(*node) {
+ None => {}
+ Some(mut flow) => {
+ LayoutTask::reflow_all_nodes(&mut *flow);
+ }
+ }
}
// Create a layout context for use throughout the following passes.