Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f561d98c1872476b82c7de46dddcf6acb357830e
https://github.com/WebKit/WebKit/commit/f561d98c1872476b82c7de46dddcf6acb357830e
Author: Alan Baradlay <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes