mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibWeb: Add length percentage getter to CSS::Size
This commit is contained in:
parent
d9b66b22a6
commit
56d5177eda
|
|
@ -71,6 +71,12 @@ public:
|
|||
return m_length_percentage->percentage();
|
||||
}
|
||||
|
||||
LengthPercentage const& length_percentage() const
|
||||
{
|
||||
VERIFY(is_length_percentage());
|
||||
return *m_length_percentage;
|
||||
}
|
||||
|
||||
Optional<LengthPercentage> const& fit_content_available_space() const
|
||||
{
|
||||
VERIFY(is_fit_content());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user