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