Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC][Line clamp] Let's construct lines even after the line-clamp cap…
… when overflow is not hidden https://bugs.webkit.org/show_bug.cgi?id=248255 Reviewed by Antti Koivisto. When the flex box is not overflow hidden, we should still produce lines for the block even after we reach the line-clamp limit. This result in a rather odd rendering where the ellipsis is placed at the end of a line somewhere in the middle of the block. However (which is even more odd) the block height uses the clamped content height (see FIXME), which then can produce overlapping content. * Source/WebCore/layout/formattingContexts/block/BlockLayoutState.h: * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::lineEndingEllipsisPolicy): (WebCore::Layout::InlineFormattingContext::lineLayout): * Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp: (WebCore::LayoutIntegration::lineClamp): (WebCore::LayoutIntegration::LineLayout::contentLogicalHeight const): Canonical link: https://commits.webkit.org/256979@main
- Loading branch information
1 parent
18af8a2
commit f707f6a
Showing
3 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters