mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
LibHTML: Fetch the box edge values needed for block width computation.
This commit is contained in:
parent
af23b38418
commit
f88c5860df
4 changed files with 42 additions and 2 deletions
|
@ -29,6 +29,13 @@ public:
|
|||
return String::format("%d [Length/Absolute]", m_value);
|
||||
}
|
||||
|
||||
int to_px() const
|
||||
{
|
||||
if (is_auto())
|
||||
return 0;
|
||||
return m_value;
|
||||
}
|
||||
|
||||
private:
|
||||
Type m_type { Type::Auto };
|
||||
int m_value { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue