Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dced9d40e0ba387b976739efb45a6513be9bcd4a
https://github.com/WebKit/WebKit/commit/dced9d40e0ba387b976739efb45a6513be9bcd4a
Author: Alan Baradlay <[email protected]>
Date: 2022-12-22 (Thu, 22 Dec 2022)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h
M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp
Log Message:
-----------
[IFC][hanging punctuation] Candidate content should let the line breaker know
if there's hanging punctuation
https://bugs.webkit.org/show_bug.cgi?id=249653
Reviewed by Antti Koivisto.
This patch ensures that the inline content breaker (line breaker) is aware of
any hanging punctuation in the candidate content.
This helps when computing if the candidate content fits the available
horizontal space.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineCandidate::InlineContent::setHangingContentWidth):
(WebCore::Layout::LineBuilder::leadingPunctuationWidthForLineCandiate const):
(WebCore::Layout::LineBuilder::trailingPunctuationWidthForLineCandiate const):
(WebCore::Layout::LineBuilder::candidateContentForLine):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h:
Canonical link: https://commits.webkit.org/258239@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes