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] Add punctuation/stop/comma utility functio…
…ns to TextUtil https://bugs.webkit.org/show_bug.cgi?id=249543 Reviewed by Antti Koivisto. This is in preparation for supporting "hanging-punctuation" property. (Line builder/breaker is going to use these functions to check if the candidate content has any hangable leading/trailing characters -as they should not be taken into account for line content fit). * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::hangablePunctuationStartWidth): (WebCore::Layout::TextUtil::hangablePunctuationEndWidth): (WebCore::Layout::TextUtil::hangableStopOrCommaEndWidth): * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.h: Canonical link: https://commits.webkit.org/258064@main
- Loading branch information
1 parent
df8eda6
commit f561d98
Showing
2 changed files
with
42 additions
and
0 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