mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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.
This commit is contained in:
parent
7bd6cb0091
commit
531bcb12ae
9 changed files with 80 additions and 7 deletions
|
@ -300,6 +300,7 @@ impl Flow for TableFlow {
|
|||
containing_block_inline_size);
|
||||
|
||||
let inline_start_content_edge = self.block_flow.fragment.border_padding.inline_start;
|
||||
let inline_end_content_edge = self.block_flow.fragment.border_padding.inline_end;
|
||||
let padding_and_borders = self.block_flow.fragment.border_padding.inline_start_end();
|
||||
let spacing_per_cell = self.spacing();
|
||||
let spacing = spacing_per_cell.horizontal *
|
||||
|
@ -352,6 +353,7 @@ impl Flow for TableFlow {
|
|||
};
|
||||
self.block_flow.propagate_assigned_inline_size_to_children(layout_context,
|
||||
inline_start_content_edge,
|
||||
inline_end_content_edge,
|
||||
content_inline_size,
|
||||
Some(info));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue