mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibWeb: Add border box top/bottom metrics to line box fragments
This will allow us to support more kinds of vertical alignment.
This commit is contained in:
parent
8b369bf7bd
commit
797f51e122
6 changed files with 22 additions and 10 deletions
|
@ -90,7 +90,7 @@ void InlineFormattingContext::run(Box const&, LayoutMode layout_mode)
|
|||
for (auto& line_box : m_state.get(containing_block()).line_boxes) {
|
||||
float max_height = min_line_height;
|
||||
for (auto& fragment : line_box.fragments()) {
|
||||
max_height = max(max_height, fragment.height());
|
||||
max_height = max(max_height, fragment.border_box_height());
|
||||
}
|
||||
max_line_width = max(max_line_width, line_box.width());
|
||||
content_height += max_height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue