1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

LibWeb: Convert InlineFormattingContext to new pixel units

This commit is contained in:
Sam Atkins 2022-11-03 17:48:46 +00:00 committed by Linus Groh
parent 55ddfa9348
commit 056acb5ebf
3 changed files with 37 additions and 37 deletions

View file

@ -29,10 +29,10 @@ public:
void dimension_box_on_line(Box const&, LayoutMode);
float leftmost_x_offset_at(float y) const;
float available_space_for_line(float y) const;
bool any_floats_intrude_at_y(float y) const;
bool can_fit_new_line_at_y(float y) const;
CSSPixels leftmost_x_offset_at(CSSPixels y) const;
CSSPixels available_space_for_line(CSSPixels y) const;
bool any_floats_intrude_at_y(CSSPixels y) const;
bool can_fit_new_line_at_y(CSSPixels y) const;
private:
void generate_line_boxes(LayoutMode);
@ -42,8 +42,8 @@ private:
Optional<AvailableSpace> m_available_space;
float m_automatic_content_width { 0 };
float m_automatic_content_height { 0 };
CSSPixels m_automatic_content_width { 0 };
CSSPixels m_automatic_content_height { 0 };
};
}