mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Integrate 'BoxModel' into 'RenderBoxBase'. (#1257)
This commit is contained in:
parent
426d18ffb1
commit
bce462a1d5
5 changed files with 150 additions and 174 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue