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

LibWeb: Make LineBuilder assign height to empty line boxes

This ensures that <br> produces empty line boxes with the line-height
property as their height.
This commit is contained in:
Andreas Kling 2022-01-23 01:34:26 +01:00
parent 093a598c87
commit b60e19fd34
2 changed files with 7 additions and 5 deletions

View file

@ -19,7 +19,6 @@ public:
~LineBuilder();
void break_line();
void begin_new_line();
void append_box(Box&);
void append_text_chunk(TextNode&, size_t offset_in_node, size_t length_in_node, float width, float height);
@ -36,6 +35,8 @@ public:
void remove_last_line_if_empty();
private:
void begin_new_line(bool increment_y);
bool should_break(LayoutMode, float next_item_width, bool should_force_break);
InlineFormattingContext& m_context;