mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
LibWeb: Rename PositionedBox to GridItem
This seems like a more accurate description of what this class really is, and easier to understand in my opinion.
This commit is contained in:
parent
8da31764b9
commit
e65f4b3dc5
2 changed files with 43 additions and 43 deletions
|
@ -29,9 +29,9 @@ private:
|
|||
Vector<Vector<bool>> m_occupation_grid;
|
||||
};
|
||||
|
||||
class PositionedBox {
|
||||
class GridItem {
|
||||
public:
|
||||
PositionedBox(Box const& box, int row, int row_span, int column, int column_span)
|
||||
GridItem(Box const& box, int row, int row_span, int column, int column_span)
|
||||
: m_box(box)
|
||||
, m_row(row)
|
||||
, m_row_span(row_span)
|
||||
|
@ -40,13 +40,13 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
Box const& box() { return m_box; }
|
||||
Box const& box() const { return m_box; }
|
||||
|
||||
int raw_row_span() { return m_row_span; }
|
||||
int raw_column_span() { return m_column_span; }
|
||||
|
||||
int gap_adjusted_row(Box const& parent_box);
|
||||
int gap_adjusted_column(Box const& parent_box);
|
||||
int gap_adjusted_row(Box const& parent_box) const;
|
||||
int gap_adjusted_column(Box const& parent_box) const;
|
||||
|
||||
private:
|
||||
JS::NonnullGCPtr<Box const> m_box;
|
||||
|
@ -120,7 +120,7 @@ private:
|
|||
Vector<TemporaryTrack> m_grid_columns;
|
||||
|
||||
OccupationGrid m_occupation_grid;
|
||||
Vector<PositionedBox> m_positioned_boxes;
|
||||
Vector<GridItem> m_grid_items;
|
||||
Vector<JS::NonnullGCPtr<Box const>> m_boxes_to_place;
|
||||
|
||||
CSSPixels get_free_space_x(AvailableSpace const& available_space);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue