[webkit-changes] [WebKit/WebKit] 607c16: [IFC] InlineFormattingContext::computedIntrinsicWi...

Alan Baradlay noreply at github.com
Mon Jun 5 06:07:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 607c167b79a2999d7e011bb46c4a080dbb8c9299
      https://github.com/WebKit/WebKit/commit/607c167b79a2999d7e011bb46c4a080dbb8c9299
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-06-05 (Mon, 05 Jun 2023)

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

  Log Message:
  -----------
  [IFC] InlineFormattingContext::computedIntrinsicWidthForConstraint should pass in the initial line rect to LineBuilder::computedIntrinsicWidth
https://bugs.webkit.org/show_bug.cgi?id=257678

Reviewed by Antti Koivisto.

This is in preparation for removing the special LineBuilder::computedIntrinsicWidth codepath.
It is essentially running the same inline content placement logic as LineBuilder::layoutInlineContent
with the exception of returning less information to the caller about the final line content.

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthForConstraint const):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::computedIntrinsicWidth):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h:

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




More information about the webkit-changes mailing list