LibWeb: Add CSS::Size::is_intrinsic_sizing_constraint()

This commit is contained in:
Jelle Raaijmakers 2025-11-05 09:09:06 +01:00 committed by Jelle Raaijmakers
parent 8d81421526
commit f9b4fa9702
Notes: github-actions[bot] 2025-11-05 11:02:54 +00:00
3 changed files with 4 additions and 5 deletions

View file

@ -47,6 +47,7 @@ public:
bool is_none() const { return m_type == Type::None; }
Type type() const { return m_type; }
bool is_intrinsic_sizing_constraint() const { return is_min_content() || is_max_content() || is_fit_content(); }
bool is_length_percentage() const { return is_length() || is_percentage() || is_calculated(); }
[[nodiscard]] CSSPixels to_px(Layout::Node const&, CSSPixels reference_value) const;