mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -288,7 +288,7 @@ impl Flow for TableWrapperFlow {
|
|||
|
||||
// Our inline-size was set to the inline-size of the containing block by the flow's parent.
|
||||
// Now compute the real value.
|
||||
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;
|
||||
if self.is_float() {
|
||||
self.block_flow.float.as_mut().unwrap().containing_inline_size =
|
||||
containing_block_inline_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue