diff options
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r-- | components/layout_thread/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index db9507144a0..1c590dd799b 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -895,11 +895,7 @@ impl LayoutThread { } fn try_get_layout_root<N: LayoutNode>(&self, node: N) -> Option<FlowRef> { - let mut data = match node.mutate_layout_data() { - Some(x) => x, - None => return None, - }; - let result = data.flow_construction_result.get(); + let result = node.mutate_layout_data()?.flow_construction_result.get(); let mut flow = match result { ConstructionResult::Flow(mut flow, abs_descendants) => { |