Integrate 'BoxModel' into 'RenderBoxBase'. (#1257)

This commit is contained in:
Tetsuharu OHZEKI 2013-11-18 15:23:04 +09:00
parent 426d18ffb1
commit bce462a1d5
5 changed files with 150 additions and 174 deletions

View file

@ -681,10 +681,10 @@ impl FlowContext for InlineFlow {
let mut top;
let mut bottom;
{
let model = image_box.base.model.get();
top = model.border.top + model.padding.top + model.margin.top;
bottom = model.border.bottom + model.padding.bottom +
model.margin.bottom;
let base = &image_box.base;
top = base.border.top + base.padding.top + base.margin.top;
bottom = base.border.bottom + base.padding.bottom +
base.margin.bottom;
}
let noncontent_height = top + bottom;