[webkit-changes] [WebKit/WebKit] f561d9: [IFC][hanging punctuation] Add punctuation/stop/co...
Alan Baradlay
noreply at github.com
Sun Dec 18 06:45:06 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f561d98c1872476b82c7de46dddcf6acb357830e
https://github.com/WebKit/WebKit/commit/f561d98c1872476b82c7de46dddcf6acb357830e
Author: Alan Baradlay <zalan at apple.com>
Date: 2022-12-18 (Sun, 18 Dec 2022)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp
M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.h
Log Message:
-----------
[IFC][hanging punctuation] Add punctuation/stop/comma utility functions 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
More information about the webkit-changes
mailing list