[webkit-changes] [WebKit/WebKit] 783cca: [LFC][IFC] Add support for -webkit-line-break: aft...

alan noreply at github.com
Sat Sep 24 19:27:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 783cca59238b2f7c295a079801480f3ae1038421
      https://github.com/WebKit/WebKit/commit/783cca59238b2f7c295a079801480f3ae1038421
  Author: Alan Bujtas <zalan at apple.com>
  Date:   2022-09-24 (Sat, 24 Sep 2022)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp

  Log Message:
  -----------
  [LFC][IFC] Add support for -webkit-line-break: after-white-space
https://bugs.webkit.org/show_bug.cgi?id=245447

Reviewed by Antti Koivisto.

This non-standard property works somewhat like "white-space: break-spaces", where soft wrapping opportunity only exists after the whitespace. It also preserves such (collapsed) trailing whitespace content.

* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::isAtSoftWrapOpportunity):
(WebCore::Layout::LineBuilder::close):

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




More information about the webkit-changes mailing list