[webkit-changes] [WebKit/WebKit] afd373: [IFC] Add simplified minimum width support for non...

Alan Baradlay noreply at github.com
Tue Nov 21 12:00:55 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: afd37355ccdce6cc4317bef7a418d35f3590cbb2
      https://github.com/WebKit/WebKit/commit/afd37355ccdce6cc4317bef7a418d35f3590cbb2
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-11-21 (Tue, 21 Nov 2023)

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

  Log Message:
  -----------
  [IFC] Add simplified minimum width support for non-text content
https://bugs.webkit.org/show_bug.cgi?id=265177

Reviewed by Antti Koivisto.

Let's expand simplified minimum width computation (where we can break at arbitrary position) to non-text content.

1. Check for nested content eligibility (e.g. <div>eligible content<span style="white-space: pre">not eligible content</span></div>)
2. Compute simplified minimum width on non-text content.

* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp:
(WebCore::Layout::isBoxEligibleForNonLineBuilderMinimumWidth):
(WebCore::Layout::isSubtreeEligibleForNonLineBuilderMinimumWidth):
(WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicSizes):
(WebCore::Layout::IntrinsicWidthHandler::simplifiedMinimumWidth const):
(WebCore::Layout::IntrinsicWidthHandler::root const):
(WebCore::Layout::isEligibleForNonLineBuilderProcess): Deleted.
(WebCore::Layout::IntrinsicWidthHandler::rootStyle const): Deleted.
* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.h:

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




More information about the webkit-changes mailing list