mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
LibWeb: Add Layout::Box::margin_box_height()
This commit is contained in:
parent
149f10b0b9
commit
3e8873b63e
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ public:
|
||||||
return width() + margin_box.left + margin_box.right;
|
return width() + margin_box.left + margin_box.right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float margin_box_height() const
|
||||||
|
{
|
||||||
|
auto margin_box = box_model().margin_box();
|
||||||
|
return height() + margin_box.top + margin_box.bottom;
|
||||||
|
}
|
||||||
|
|
||||||
float border_box_width() const
|
float border_box_width() const
|
||||||
{
|
{
|
||||||
auto border_box = box_model().border_box();
|
auto border_box = box_model().border_box();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue