summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/Node.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/Node.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.h b/Userland/Libraries/LibWeb/Layout/Node.h
index 20e4f3b1f0..ebd2405ea4 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.h
+++ b/Userland/Libraries/LibWeb/Layout/Node.h
@@ -204,6 +204,9 @@ public:
NonnullRefPtr<NodeWithStyle> create_anonymous_wrapper() const;
+ bool has_definite_height() const { return m_has_definite_height; }
+ bool has_definite_width() const { return m_has_definite_width; }
+
protected:
NodeWithStyle(DOM::Document&, DOM::Node*, NonnullRefPtr<CSS::StyleProperties>);
NodeWithStyle(DOM::Document&, DOM::Node*, CSS::ComputedValues);
@@ -216,6 +219,9 @@ private:
RefPtr<CSS::ImageStyleValue> m_background_image;
CSS::Position m_position;
+
+ bool m_has_definite_height { false };
+ bool m_has_definite_width { false };
};
class NodeWithStyleAndBoxModelMetrics : public NodeWithStyle {