summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/CSS/StyleValue.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-18 08:09:56 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-18 08:39:52 +0200
commit70eca3b500b9ebc96022643e06ecef91fd036934 (patch)
tree2b90f245375163b0026b5985424d99ab9bf1514a /Libraries/LibHTML/CSS/StyleValue.h
parent587ddc5126a09bc8d926929e0220404674628247 (diff)
downloadserenity-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.h4
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)