mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
layout: Make table layout idempotent.
By "idempotent" I mean that later passes do not stomp on data from earlier passes, so that we can run the passes individually for incremental reflow. The main change here was to stop overwriting the "minimum inline-size" field of each column with the column's computed inline-size.
This commit is contained in:
parent
512d55ecef
commit
3cddaf8da6
7 changed files with 243 additions and 185 deletions
|
@ -45,10 +45,8 @@ impl TableCellFlow {
|
|||
|
||||
/// Assign block-size for table-cell flow.
|
||||
///
|
||||
/// TODO(#2015, pcwalton): This doesn't handle floats right.
|
||||
///
|
||||
/// inline(always) because this is only ever called by in-order or non-in-order top-level
|
||||
/// methods
|
||||
/// methods.
|
||||
#[inline(always)]
|
||||
fn assign_block_size_table_cell_base<'a>(&mut self, layout_context: &'a LayoutContext<'a>) {
|
||||
self.block_flow.assign_block_size_block_base(layout_context, MarginsMayNotCollapse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue