mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibHTML: Finish the block width calculation
Also add horizontal box values to the layout tree dump.
This commit is contained in:
parent
587ddc5126
commit
70eca3b500
4 changed files with 78 additions and 15 deletions
|
@ -26,6 +26,8 @@ public:
|
|||
virtual String to_string() const = 0;
|
||||
virtual Length to_length() const { return {}; }
|
||||
|
||||
virtual bool is_auto() const { return false; }
|
||||
|
||||
protected:
|
||||
explicit StyleValue(Type);
|
||||
|
||||
|
@ -66,6 +68,8 @@ public:
|
|||
|
||||
const Length& length() const { return m_length; }
|
||||
|
||||
virtual bool is_auto() const override { return m_length.is_auto(); }
|
||||
|
||||
private:
|
||||
explicit LengthStyleValue(const Length& length)
|
||||
: StyleValue(Type::Length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue