Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 66f1fe7208f2580510c78be27afa1d83f3d94a94
      
https://github.com/WebKit/WebKit/commit/66f1fe7208f2580510c78be27afa1d83f3d94a94
  Author: Alan Baradlay <[email protected]>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    A 
LayoutTests/fast/text/min-content-width-assert-with-inline-box-expected.html
    A LayoutTests/fast/text/min-content-width-assert-with-inline-box.html
    M Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp

  Log Message:
  -----------
  [IFC] youtube.com ASSERT(inlineTextBox->style().whiteSpaceCollapse() != 
WhiteSpaceCollapse::Preserve)
https://bugs.webkit.org/show_bug.cgi?id=308864

Reviewed by Antti Koivisto.

Do not use fast (no line builder is required) codepath when the enclosing 
inline box is not eligible.

e.g.
<div>                                <- block container style is eligible
  <span style="white-space: pre">    <- inline box style is not
   some text

Test: fast/text/min-content-width-assert-with-inline-box.html

* LayoutTests/fast/text/min-content-width-assert-with-inline-box-expected.html: 
Added.
* LayoutTests/fast/text/min-content-width-assert-with-inline-box.html: Added.
* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp:
(WebCore::Layout::isContentEligibleForNonLineBuilderMinimumWidth):
(WebCore::Layout::IntrinsicWidthHandler::minimumContentSize):
  It's not sufficient to check the block container whether the style is 
sufficient
  when it is enclosed by an inline box, we have to check the style that applies
  directly to the text content (innermost "container")

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to