[webkit-changes] [WebKit/WebKit] b673ad: [IFC][hanging punctuation] LineBuilder::candidateC...
Alan Baradlay
noreply at github.com
Fri Dec 23 00:36:23 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b673ad130ad254b8b6f1f847a1b26162ea681a46
https://github.com/WebKit/WebKit/commit/b673ad130ad254b8b6f1f847a1b26162ea681a46
Author: Alan Baradlay <zalan at apple.com>
Date: 2022-12-23 (Fri, 23 Dec 2022)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h
Log Message:
-----------
[IFC][hanging punctuation] LineBuilder::candidateContentForLine should take "StopOrComma" into account when searching for trailing hanging content
https://bugs.webkit.org/show_bug.cgi?id=249698
Reviewed by Antti Koivisto.
This is preparation for supporting "hanging-punctuation: allow-end".
(Let's search for "StopOrComma" in the candidate content so that line breaking can use this info to carry out line fitting properly.)
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::trailingPunctuationOrStopOrCommaWidthForLineCandiate const):
(WebCore::Layout::LineBuilder::candidateContentForLine):
(WebCore::Layout::LineBuilder::trailingPunctuationWidthForLineCandiate const): Deleted.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h:
Canonical link: https://commits.webkit.org/258288@main
More information about the webkit-changes
mailing list