[webkit-changes] [WebKit/WebKit] c9e3f2: [IFC] Minimum content width with "line-break: afte...

Alan Baradlay noreply at github.com
Wed Aug 23 18:33:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c9e3f2480826ae077bc48a4a41e776f97f14ab46
      https://github.com/WebKit/WebKit/commit/c9e3f2480826ae077bc48a4a41e776f97f14ab46
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M LayoutTests/editing/deleting/delete-block-table-expected.txt
    A LayoutTests/fast/text/preferred-widht-with-line-break-after-whitespace-expected.html
    A LayoutTests/fast/text/preferred-widht-with-line-break-after-whitespace.html
    M LayoutTests/platform/ios-wk2/editing/style/table-selection-expected.txt
    M LayoutTests/platform/ios/editing/deleting/delete-to-select-table-expected.txt
    M LayoutTests/platform/ios/editing/inserting/paragraph-separator-in-table-2-expected.txt
    M LayoutTests/platform/mac/editing/deleting/delete-to-select-table-expected.txt
    M LayoutTests/platform/mac/editing/inserting/paragraph-separator-in-table-2-expected.txt
    M LayoutTests/platform/mac/editing/style/table-selection-expected.txt
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
    M Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp

  Log Message:
  -----------
  [IFC] Minimum content width with "line-break: after-white-space" should not include trailing whitespace
https://bugs.webkit.org/show_bug.cgi?id=260617

Reviewed by Antti Koivisto.

This matches legacy line layout behavior (except inside table cells with one (unbreakable) word, where legacy diverges from default behavior).

* LayoutTests/fast/text/preferred-widht-with-line-break-after-whitespace-expected.html: Added.
* LayoutTests/fast/text/preferred-widht-with-line-break-after-whitespace.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::placeInlineAndFloatContent):
* Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp:
(WebCore::Layout::TextOnlySimpleLineBuilder::handleLineEnding):

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




More information about the webkit-changes mailing list