diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-28 18:01:04 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-28 18:01:04 +0200 |
commit | 7ec7729e1be385f9fd7861b167599b7159b20151 (patch) | |
tree | b81290d7d26905c612655f587c5afd477f63f0b6 /Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp | |
parent | 88c32836d858564a8664f0fc85f8fd36021945bf (diff) | |
download | serenity-7ec7729e1be385f9fd7861b167599b7159b20151.zip |
LibWeb: Don't force line box fragments height to be at least line-height
I don't remember why we did things this way, but it's clearly not right
to stretch fragments vertically. Instead, we should just align their
bottom to the appropriate line (as we already do.)
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp index 6cbedac7ff..06f50ba25f 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp @@ -141,8 +141,6 @@ void InlineFormattingContext::run(Box&, LayoutMode layout_mode) if (fragment.type() == LineBoxFragment::Type::Leading || fragment.type() == LineBoxFragment::Type::Trailing) { fragment.set_height(max_height); - } else { - fragment.set_height(max(min_line_height, fragment.height())); } // Vertically align everyone's bottom to the line. |