summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Layout/LayoutStyle.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-24 16:11:15 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-24 16:49:51 +0200
commit5d86305a7247032c026899bf5ada39afd2964a89 (patch)
tree8f142c64f70245c65474fdaf6b7c76de1c93430c /Libraries/LibWeb/Layout/LayoutStyle.h
parentec466c0385c76213579a9418e32182e316f20cc6 (diff)
downloadserenity-5d86305a7247032c026899bf5ada39afd2964a89.zip
LibWeb: Move height, min-height and max-height into LayoutStyle
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutStyle.h')
-rw-r--r--Libraries/LibWeb/Layout/LayoutStyle.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutStyle.h b/Libraries/LibWeb/Layout/LayoutStyle.h
index 41a0b44ad7..619086d878 100644
--- a/Libraries/LibWeb/Layout/LayoutStyle.h
+++ b/Libraries/LibWeb/Layout/LayoutStyle.h
@@ -39,6 +39,9 @@ public:
const Length& width() const { return m_width; }
const Length& min_width() const { return m_min_width; }
const Length& max_width() const { return m_max_width; }
+ const Length& height() const { return m_height; }
+ const Length& min_height() const { return m_min_height; }
+ const Length& max_height() const { return m_max_height; }
protected:
Optional<int> m_z_index;
@@ -47,6 +50,9 @@ protected:
Length m_width;
Length m_min_width;
Length m_max_width;
+ Length m_height;
+ Length m_min_height;
+ Length m_max_height;
};
class ImmutableLayoutStyle final : public LayoutStyle {
@@ -60,6 +66,9 @@ public:
void set_width(const Length& width) { m_width = width; }
void set_min_width(const Length& width) { m_min_width = width; }
void set_max_width(const Length& width) { m_max_width = width; }
+ void set_height(const Length& height) { m_height = height; }
+ void set_min_height(const Length& height) { m_min_height = height; }
+ void set_max_height(const Length& height) { m_max_height = height; }
};
}