aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_wrapper.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-04-27 13:36:10 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-04-28 10:30:47 -0700
commitcad5d8b670bffba22dcc324fe295178b68c59bae (patch)
tree1d6f648336d2dfaf3db54f7b461576444d3fb86a /components/layout/table_wrapper.rs
parent32b9c0962b7e42ac6d298f5959f1e48d4cc99c5a (diff)
downloadservo-cad5d8b670bffba22dcc324fe295178b68c59bae.tar.gz
servo-cad5d8b670bffba22dcc324fe295178b68c59bae.zip
Ignore border-spacing for tables with zero cells
Diffstat (limited to 'components/layout/table_wrapper.rs')
-rw-r--r--components/layout/table_wrapper.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs
index 5e321382e97..a336ca55cfb 100644
--- a/components/layout/table_wrapper.rs
+++ b/components/layout/table_wrapper.rs
@@ -95,8 +95,7 @@ impl TableWrapperFlow {
for kid in self.block_flow.base.child_iter() {
if kid.is_table() {
let kid_table = kid.as_table();
- let spacing_per_cell = kid_table.spacing().horizontal;
- spacing = spacing_per_cell * (self.column_intrinsic_inline_sizes.len() as i32 + 1);
+ spacing = kid_table.total_horizontal_spacing();
table_border_padding =
kid_table.block_flow.fragment.border_padding.inline_start_end();
break