mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
layout: Store containing block inline-size separately rather than
writing it to a temporary location and overwriting it. This makes layout more idempotent, which is important for incremental layout. Also converts `is_root` to a set of flags and fixes a `TODO` concerning percentage inline heights of images.
This commit is contained in:
parent
6e3c776387
commit
423f5f0ebf
9 changed files with 141 additions and 106 deletions
|
@ -190,7 +190,7 @@ impl Flow for TableRowGroupFlow {
|
|||
debug!("assign_inline_sizes({}): assigning inline_size for flow", "table_rowgroup");
|
||||
|
||||
// The position was set to the containing block by the flow's parent.
|
||||
let containing_block_inline_size = self.block_flow.base.position.size.inline;
|
||||
let containing_block_inline_size = self.block_flow.base.block_container_inline_size;
|
||||
// FIXME: In case of border-collapse: collapse, inline-start_content_edge should be
|
||||
// the border width on the inline-start side.
|
||||
let inline_start_content_edge = Au::new(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue