aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index aa6a50f0545..b2ea8090ea6 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -1329,6 +1329,13 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> {
let mut layout_data_ref = self.mutate_layout_data();
let layout_data = layout_data_ref.as_mut().expect("no layout data");
+ match result {
+ ConstructionResult::None => {
+ layout_data.clear();
+ }
+ _ => {}
+ }
+
let dst = self.get_construction_result(layout_data);
*dst = result;