[webkit-changes] [WebKit/WebKit] d97fdb: Strings are not wrapped at zero width spaces when ...
Alan Baradlay
noreply at github.com
Tue Nov 22 06:58:16 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d97fdbd62db30d8c7a85096f21113e89523ebcfc
https://github.com/WebKit/WebKit/commit/d97fdbd62db30d8c7a85096f21113e89523ebcfc
Author: Alan Baradlay <zalan at apple.com>
Date: 2022-11-22 (Tue, 22 Nov 2022)
Changed paths:
A LayoutTests/fast/text/word-break-keep-all-with-zero-width-space-expected.html
A LayoutTests/fast/text/word-break-keep-all-with-zero-width-space.html
M Source/WebCore/rendering/BreakLines.h
Log Message:
-----------
Strings are not wrapped at zero width spaces when "word-break: keep-all" is set
https://bugs.webkit.org/show_bug.cgi?id=248201
<rdar://problem/102593988>
Reviewed by Antti Koivisto.
Let's treat zero-width space characters as soft wrap opportunities when nextBreakablePositionKeepingAllWords is used (non-keep-all content goes through nextBreakablePosition where ubrk_following computes the correct soft wrap opportunities when zero-width space characters are present).
* LayoutTests/fast/text/word-break-keep-all-with-zero-width-space-expected.html: Added.
* LayoutTests/fast/text/word-break-keep-all-with-zero-width-space.html: Added.
* Source/WebCore/rendering/BreakLines.h:
(WebCore::nextBreakablePositionKeepingAllWords):
Canonical link: https://commits.webkit.org/256937@main
More information about the webkit-changes
mailing list