mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
LibWeb: Make it easier to check if grid track is auto positioned
Add some helper functions for checking if a grid-track is auto-positioned. I think this makes the code more legible.
This commit is contained in:
parent
236795e931
commit
9fd07e9cb1
2 changed files with 22 additions and 4 deletions
|
@ -22,6 +22,9 @@ public:
|
|||
|
||||
private:
|
||||
float m_automatic_content_height { 0 };
|
||||
bool is_auto_positioned_row(CSS::GridTrackPlacement const&, CSS::GridTrackPlacement const&) const;
|
||||
bool is_auto_positioned_column(CSS::GridTrackPlacement const&, CSS::GridTrackPlacement const&) const;
|
||||
bool is_auto_positioned_track(CSS::GridTrackPlacement const&, CSS::GridTrackPlacement const&) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue