mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibHTML: Fetch the box edge values needed for block width computation.
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user