add assign_height in box_

This commit is contained in:
patrick kim 2014-01-22 14:29:54 +09:00
parent ef122f8fbf
commit 5ce3bae160
2 changed files with 88 additions and 54 deletions

View file

@ -676,6 +676,10 @@ impl Flow for InlineFlow {
// TODO(pcwalton): Cache the linebox scanner?
debug!("assign_height_inline: floats_in: {:?}", self.base.floats_in);
// assign height for inline boxes
for box_ in self.boxes.iter() {
box_.assign_height();
}
let scanner_floats = self.base.floats_in.clone();
let mut scanner = LineboxScanner::new(scanner_floats);