Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d09e59b5ef069bc31d52a0344bfd2d031445b14
      
https://github.com/WebKit/WebKit/commit/0d09e59b5ef069bc31d52a0344bfd2d031445b14
  Author: Alan Baradlay <[email protected]>
  Date:   2025-11-12 (Wed, 12 Nov 2025)

  Changed paths:
    A 
LayoutTests/fast/inline/blocks-in-inline-layout-with-shrink-to-fit-width-expected.html
    A 
LayoutTests/fast/inline/blocks-in-inline-layout-with-shrink-to-fit-width.html
    M Source/WebCore/rendering/RenderBlockFlow.cpp

  Log Message:
  -----------
  [blocks-in-inline] Fix fast/block/inside-inlines/block-width-check.html
https://bugs.webkit.org/show_bug.cgi?id=302307

Reviewed by Antti Koivisto.

We need to teach RenderBlockFlow::computeInlinePreferredLogicalWidths to handle
block level boxes within inline content.

Test: fast/inline/blocks-in-inline-layout-with-shrink-to-fit-width.html

* 
LayoutTests/fast/inline/blocks-in-inline-layout-with-shrink-to-fit-width-expected.html:
 Added.
* 
LayoutTests/fast/inline/blocks-in-inline-layout-with-shrink-to-fit-width.html: 
Added.
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::InlineMinMaxIterator::next):
(WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths const):
Block level box behaves like line break + contributes to min/max by its 
preferred size.

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



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

Reply via email to