aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/table_cell.rs')
-rw-r--r--components/layout/table_cell.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/components/layout/table_cell.rs b/components/layout/table_cell.rs
index a70ea183931..0faeb8c1c6e 100644
--- a/components/layout/table_cell.rs
+++ b/components/layout/table_cell.rs
@@ -14,7 +14,6 @@ use script_layout_interface::wrapper_traits::ThreadSafeLayoutNode;
use serde::Serialize;
use style::logical_geometry::{LogicalMargin, LogicalRect, LogicalSize, WritingMode};
use style::properties::ComputedValues;
-use style::values::computed::length::Size;
use style::values::computed::Color;
use style::values::generics::box_::{VerticalAlign, VerticalAlignKeyword};
use style::values::specified::BorderStyle;
@@ -206,10 +205,13 @@ impl Flow for TableCellFlow {
);
self.block_flow.bubble_inline_sizes_for_block(true);
- let specified_inline_size = match self.block_flow.fragment.style().content_inline_size() {
- Size::Auto => Au(0),
- Size::LengthPercentage(ref lp) => lp.to_used_value(Au(0)),
- };
+ let specified_inline_size = self
+ .block_flow
+ .fragment
+ .style()
+ .content_inline_size()
+ .to_used_value(Au(0))
+ .unwrap_or(Au(0));
if self
.block_flow