[webkit-changes] [WebKit/WebKit] d74b8e: [IFC] Add InlineFormattingContext::minimumMaximumC...

Alan Baradlay noreply at github.com
Wed Jan 10 07:58:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d74b8e548f46e0be5f4ee48af239063b888b7b3a
      https://github.com/WebKit/WebKit/commit/d74b8e548f46e0be5f4ee48af239063b888b7b3a
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2024-01-10 (Wed, 10 Jan 2024)

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

  Log Message:
  -----------
  [IFC] Add InlineFormattingContext::minimumMaximumContentSize function
https://bugs.webkit.org/show_bug.cgi?id=267303

Reviewed by Antti Koivisto.

Use this function when we need both min/max values and can compute them without swapping min/max BoxGeometry instances in-between (i.e. text only content).

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::minimumMaximumContentSize):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h:
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::computeIntrinsicWidthConstraints):

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




More information about the webkit-changes mailing list