[webkit-changes] [WebKit/WebKit] 5673db: Let siblings layout if an adjacent float may no lo...

Alan Baradlay noreply at github.com
Sat Apr 1 10:04:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5673db1ac5baceef9c25b3f57cc95dc2950c1f54
      https://github.com/WebKit/WebKit/commit/5673db1ac5baceef9c25b3f57cc95dc2950c1f54
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    A LayoutTests/fast/block/float/float-not-intruding-anymore-expected.html
    A LayoutTests/fast/block/float/float-not-intruding-anymore.html
    M Source/WebCore/rendering/RenderBlockFlow.cpp

  Log Message:
  -----------
  Let siblings layout if an adjacent float may no longer affect them
https://bugs.webkit.org/show_bug.cgi?id=254183
<rdar://problem/107283741>

Reviewed by Antti Koivisto.

When a changing float was previously intruding to sibling block container e.g.
<block>
  <float box></float box>
  <block>
    The float box shrinks the available space here
  </block>
  <block>
    and here too
  </block>
</block>

these sibling containers need to be marked for layout as well.

* LayoutTests/fast/block/float/float-not-intruding-anymore-expected.html: Added.
* LayoutTests/fast/block/float/float-not-intruding-anymore.html: Added.
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutBlockChildren):

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




More information about the webkit-changes mailing list