Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d97fdbd62db30d8c7a85096f21113e89523ebcfc
      
https://github.com/WebKit/WebKit/commit/d97fdbd62db30d8c7a85096f21113e89523ebcfc
  Author: Alan Baradlay <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to