[webkit-changes] [WebKit/WebKit] 3467db: [IFC] TextOnlyLineBuilder should handle content wi...
Alan Baradlay
noreply at github.com
Wed Aug 16 12:49:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3467db48018705926453f25661a26c243dee7141
https://github.com/WebKit/WebKit/commit/3467db48018705926453f25661a26c243dee7141
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-08-16 (Wed, 16 Aug 2023)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/TextOnlyLineBuilder.cpp
Log Message:
-----------
[IFC] TextOnlyLineBuilder should handle content with 'white-space: break-spaces'
https://bugs.webkit.org/show_bug.cgi?id=260257
Reviewed by Antti Koivisto.
'white-space: break-spaces' allows soft wrap opportunities only after whitespace (as opposed to before and after.
TextOnlyLineBuilder currently assumes each inline item ends in a soft wrap opportunity. This patch teaches TextOnlyLineBuilder::placeInlineTextContent
to concatenate multiple inline items as a continuous content, input to line breaking.
* Source/WebCore/layout/formattingContexts/inline/TextOnlyLineBuilder.cpp:
(WebCore::Layout::TextOnlyLineBuilder::placeInlineTextContent):
(WebCore::Layout::TextOnlyLineBuilder::handleInlineTextContent):
(WebCore::Layout::TextOnlyLineBuilder::isEligibleForSimplifiedTextOnlyInlineLayout):
Canonical link: https://commits.webkit.org/266955@main
More information about the webkit-changes
mailing list