1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

LibWeb: Convert TableFormattingContext to new pixel units

This commit is contained in:
Sam Atkins 2022-12-15 12:57:36 +00:00 committed by Linus Groh
parent ec336c9bc5
commit 700ba0007f
2 changed files with 58 additions and 58 deletions

View file

@ -22,23 +22,23 @@ public:
private:
void calculate_row_column_grid(Box const&);
void compute_table_measures();
void compute_table_width(float&);
void distribute_width_to_columns(float extra_width);
void compute_table_width(CSSPixels&);
void distribute_width_to_columns(CSSPixels extra_width);
void determine_intrisic_size_of_table_container(AvailableSpace const& available_space);
float m_automatic_content_height { 0 };
CSSPixels m_automatic_content_height { 0 };
struct Column {
float left_offset { 0 };
float min_width { 0 };
float max_width { 0 };
float used_width { 0 };
CSSPixels left_offset { 0 };
CSSPixels min_width { 0 };
CSSPixels max_width { 0 };
CSSPixels used_width { 0 };
};
struct Row {
Box& box;
float used_width { 0 };
float baseline { 0 };
CSSPixels used_width { 0 };
CSSPixels baseline { 0 };
};
struct Cell {
@ -47,7 +47,7 @@ private:
size_t row_index;
size_t column_span;
size_t row_span;
float baseline { 0 };
CSSPixels baseline { 0 };
};
Vector<Cell> m_cells;