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] Line::HangingContent should tell if the tr…
…ailing content is conditionally hanging https://bugs.webkit.org/show_bug.cgi?id=249713 Reviewed by Antti Koivisto. "Stop or Comma" trailing content is conditionally hanging when hanging-punctuation is set to allow-end. However it is non-conditional when hanging-punctuation says "force-end". In this patch, we start tracking if the trailing hanging content is conditional or not so that we can reset/trim them accordingly. * Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp: (WebCore::Layout::Line::handleTrailingHangingContent): (WebCore::Layout::Line::appendTextContent): * Source/WebCore/layout/formattingContexts/inline/InlineLine.h: (WebCore::Layout::Line::HangingContent::resetTrailingContent): (WebCore::Layout::Line::HangingContent::isTrailingContentPunctuation const): (WebCore::Layout::Line::HangingContent::isTrailingContentConditional const): (WebCore::Layout::Line::HangingContent::isTrailingContentConditionalWhenFollowedByForcedLineBreak const): (WebCore::Layout::Line::HangingContent::setTrailingPunctuation): (WebCore::Layout::Line::HangingContent::setTrailingStopOrComma): (WebCore::Layout::Line::HangingContent::setTrailingWhitespace): (WebCore::Layout::Line::HangingContent::isTrailingContentWhitespace const): Deleted. (WebCore::Layout::Line::HangingContent::isTrailingContentStopOrComma const): Deleted. (WebCore::Layout::Line::HangingContent::trailingWhitespaceWidth const): Deleted. (WebCore::Layout::Line::HangingContent::resetTrailingPunctuation): Deleted. * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::hasHangableStopOrCommaEnd): Canonical link: https://commits.webkit.org/258281@main
- Loading branch information
1 parent
3c5823b
commit 6a6997c
Showing
3 changed files
with
23 additions
and
30 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