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

  Changed paths:
    A 
LayoutTests/fast/inline/blocks-in-inline-layout-float-inside-inline-content-expected.html
    A 
LayoutTests/fast/inline/blocks-in-inline-layout-float-inside-inline-content.html
    M 
Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.cpp
    M Source/WebCore/rendering/RenderBlockFlow.cpp

  Log Message:
  -----------
  [blocks-in-inline] Floats inside IFC should get exported back to the root 
block
https://bugs.webkit.org/show_bug.cgi?id=302175

Reviewed by Antti Koivisto.

Middle-block may have floats and those floats may interact with other floats
from previous (IFC) content. This change ensures that whenever we call back
to the render tree to layout middle-blocks, floats are exported so that
render tree layout sees them.

(note that in order to make it work properly, we have to have an estimated 
logical top
position computed for the block before running float layout. -see FIXME)

Test: fast/inline/blocks-in-inline-layout-float-inside-inline-content.html

* 
LayoutTests/fast/inline/blocks-in-inline-layout-float-inside-inline-content-expected.html:
 Added.
* 
LayoutTests/fast/inline/blocks-in-inline-layout-float-inside-inline-content.html:
 Added.
* 
Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.cpp:
(WebCore::LayoutIntegration::rootLayoutBox):
(WebCore::LayoutIntegration::layoutWithFormattingContextForBox):
(WebCore::LayoutIntegration::layoutWithFormattingContextForBlockInInline):
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::rebuildFloatingObjectSetFromIntrudingFloats):

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



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

Reply via email to