Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC][hanging punctuation] Move trailing hanging content handling fro…
…m LineBuilder to Line https://bugs.webkit.org/show_bug.cgi?id=249650 Reviewed by Antti Koivisto. 1. reset trailing punctuation if the current line is not the last formatted line (trailing punctuation is not supposed to be hanging) 2. shrink the content logical width by the hanging content if in preferred width computation mode * Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp: (WebCore::Layout::Line::handleTrailingHangingContent): (WebCore::Layout::Line::removeHangingGlyphs): Deleted. * Source/WebCore/layout/formattingContexts/inline/InlineLine.h: * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::close): * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::hangablePunctuationStartWidth): off-by-one fix. (WebCore::Layout::TextUtil::hasHangablePunctuationEnd): (WebCore::Layout::TextUtil::hangablePunctuationEndWidth): (WebCore::Layout::TextUtil::hangableStopOrCommaEndWidth): Canonical link: https://commits.webkit.org/258173@main
- Loading branch information
1 parent
1b00e98
commit e65bb2e
Showing
4 changed files
with
53 additions
and
27 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
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