[webkit-changes] [WebKit/WebKit] 9ed51c: [IFC] Incorrect soft wrap opportunity with trailin...

Alan Baradlay noreply at github.com
Sun Dec 25 07:24:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9ed51cd07fc8ae4ebd79e73cf7269dcdd0864c15
      https://github.com/WebKit/WebKit/commit/9ed51cd07fc8ae4ebd79e73cf7269dcdd0864c15
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2022-12-25 (Sun, 25 Dec 2022)

  Changed paths:
    A LayoutTests/fast/inline/trailing-inline-box-soft-wrap-opportunity-expected.html
    A LayoutTests/fast/inline/trailing-inline-box-soft-wrap-opportunity.html
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp

  Log Message:
  -----------
  [IFC] Incorrect soft wrap opportunity with trailing inline box
https://bugs.webkit.org/show_bug.cgi?id=249876

Reviewed by Antti Koivisto.

The soft wrap opportunity when there are inline boxes in-between the inline content is
the position right before the first inline box that encloses the trailing content (if there's any).
e.g.
 <div>soft wrap is af-<span id=here></span>ter the span with 'here' id</div>
 <div>soft wrap is af-<span id=here><span></span></span>ter the span with 'here' id</div>
 <div>soft wrap is af-<span id=here><span></span></span><span>ter the span with 'here' id</span></div>

* LayoutTests/fast/inline/trailing-inline-box-soft-wrap-opportunity-expected.html: Added.
* LayoutTests/fast/inline/trailing-inline-box-soft-wrap-opportunity.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::nextWrapOpportunity const):

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




More information about the webkit-changes mailing list