Actually store the overflow for inline-block elements.

Fixes #7571
This commit is contained in:
Michael Howell 2015-09-09 12:22:56 -07:00
parent 0d37e8f96b
commit 029af81570
7 changed files with 72 additions and 6 deletions

View file

@ -2179,11 +2179,11 @@ impl Fragment {
match self.specific {
SpecificFragmentInfo::InlineBlock(ref info) => {
let block_flow = info.flow_ref.as_block();
overflow = overflow.union(&block_flow.compute_overflow());
overflow = overflow.union(&flow::base(block_flow).overflow);
}
SpecificFragmentInfo::InlineAbsolute(ref info) => {
let block_flow = info.flow_ref.as_block();
overflow = overflow.union(&block_flow.compute_overflow());
overflow = overflow.union(&flow::base(block_flow).overflow);
}
_ => (),
}