[webkit-changes] [WebKit/WebKit] fe5ff0: hyphens: auto; does not line break a phrase contai...

Alan Baradlay noreply at github.com
Tue Sep 10 17:19:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fe5ff0118ff6b95fc2cbf465838fd31b523af8da
      https://github.com/WebKit/WebKit/commit/fe5ff0118ff6b95fc2cbf465838fd31b523af8da
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2024-09-10 (Tue, 10 Sep 2024)

  Changed paths:
    A LayoutTests/fast/inline/min-content-width-with-hypens-expected.html
    A LayoutTests/fast/inline/min-content-width-with-hypens.html
    M Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp

  Log Message:
  -----------
  hyphens: auto; does not line break a phrase containing a non-breaking space in a grid-child
https://bugs.webkit.org/show_bug.cgi?id=279053
<rdar://problem/135685979>

Reviewed by Antti Koivisto.

Intrinsic min width computation ignores hyphenation which results in incorrect preferred width value.

tryBreakingAtHyphenationOpportunity returns early where there's absolutely no space for the content
which is correct for regular line breaking but not when trying to figure out the minimum width value.

* LayoutTests/fast/inline/min-content-width-with-hypens-expected.html: Added.
* LayoutTests/fast/inline/min-content-width-with-hypens.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::firstHyphenPosition): This is similar to legacy's hyphenation handling -finding the first hyphenation position.
(WebCore::Layout::InlineContentBreaker::tryBreakingTextRun const):

Canonical link: https://commits.webkit.org/283449@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list