diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-18 08:09:56 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-18 08:39:52 +0200 |
commit | 70eca3b500b9ebc96022643e06ecef91fd036934 (patch) | |
tree | 2b90f245375163b0026b5985424d99ab9bf1514a /Libraries/LibHTML/CSS/StyleValue.h | |
parent | 587ddc5126a09bc8d926929e0220404674628247 (diff) | |
download | serenity-70eca3b500b9ebc96022643e06ecef91fd036934.zip |
LibHTML: Finish the block width calculation
Also add horizontal box values to the layout tree dump.
Diffstat (limited to 'Libraries/LibHTML/CSS/StyleValue.h')
-rw-r--r-- | Libraries/LibHTML/CSS/StyleValue.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibHTML/CSS/StyleValue.h b/Libraries/LibHTML/CSS/StyleValue.h index dd42aa7a19..11ff210a6a 100644 --- a/Libraries/LibHTML/CSS/StyleValue.h +++ b/Libraries/LibHTML/CSS/StyleValue.h @@ -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) |