mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Add CSS::Size::is_intrinsic_sizing_constraint()
This commit is contained in:
parent
8d81421526
commit
f9b4fa9702
Notes:
github-actions[bot]
2025-11-05 11:02:54 +00:00
Author: https://github.com/gmta
Commit: f9b4fa9702
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6695
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue