aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_wrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/table_wrapper.rs')
-rw-r--r--components/layout/table_wrapper.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs
index d37e377f92d..84524285d2b 100644
--- a/components/layout/table_wrapper.rs
+++ b/components/layout/table_wrapper.rs
@@ -293,6 +293,12 @@ impl Flow for TableWrapperFlow {
let inline_start_content_edge = self.block_flow.fragment.border_box.start.i;
let content_inline_size = self.block_flow.fragment.border_box.size.inline;
+ // FIXME (mbrubeck): Test mixed RTL/LTR table layout, make sure this is right.
+ let inline_end_content_edge = self.block_flow.base.block_container_inline_size -
+ self.block_flow.fragment.margin.inline_end -
+ content_inline_size -
+ inline_start_content_edge;
+
// In case of fixed layout, column inline-sizes are calculated in table flow.
let assigned_column_inline_sizes = match self.table_layout {
TableLayout::Fixed => None,
@@ -310,6 +316,7 @@ impl Flow for TableWrapperFlow {
self.block_flow.propagate_assigned_inline_size_to_children(
layout_context,
inline_start_content_edge,
+ inline_end_content_edge,
content_inline_size,
None)
}
@@ -321,6 +328,7 @@ impl Flow for TableWrapperFlow {
self.block_flow
.propagate_assigned_inline_size_to_children(layout_context,
inline_start_content_edge,
+ inline_end_content_edge,
content_inline_size,
Some(info));
}