aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_row.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-03-06 10:48:57 -0800
committerMatt Brubeck <mbrubeck@limpet.net>2015-03-17 10:18:17 -0700
commit531bcb12aeceede095a973861d3a77c2a4cdf28f (patch)
treeaabb0bcd3592f0f1b5515fc82fe0fec07ea4ddab /components/layout/table_row.rs
parent7bd6cb00911572e8733e462156122d974ff0c8a8 (diff)
downloadservo-531bcb12aeceede095a973861d3a77c2a4cdf28f.tar.gz
servo-531bcb12aeceede095a973861d3a77c2a4cdf28f.zip
Fixes for positioning of RTL blocks.
This fixes a bug in finding the top left corner of an RTL block in physical coordinates. (The old code used the `start` point of the `position` rect, which is not always the top left.) It also fixes the setting of `position.start.i` in certain mixed LTR/RTL cases. There is still a bug related to `position.size` for RTL blocks with margins. See the FIXME comments for details.
Diffstat (limited to 'components/layout/table_row.rs')
-rw-r--r--components/layout/table_row.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/layout/table_row.rs b/components/layout/table_row.rs
index 78b5a68e80a..44ac99420dc 100644
--- a/components/layout/table_row.rs
+++ b/components/layout/table_row.rs
@@ -238,6 +238,7 @@ impl Flow for TableRowFlow {
// FIXME: In case of border-collapse: collapse, inline_start_content_edge should be
// border_inline_start.
let inline_start_content_edge = Au(0);
+ let inline_end_content_edge = Au(0);
let inline_size_computer = InternalTable;
inline_size_computer.compute_used_inline_size(&mut self.block_flow,
@@ -285,6 +286,7 @@ impl Flow for TableRowFlow {
};
self.block_flow.propagate_assigned_inline_size_to_children(layout_context,
inline_start_content_edge,
+ inline_end_content_edge,
containing_block_inline_size,
Some(info));
}