[webkit-changes] [WebKit/WebKit] 1abd93: REGRESSION (STP 157) CSS2/floats/floats-placement-...

Alan Baradlay noreply at github.com
Thu Nov 10 05:50:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1abd9354b891cf6eb4a3d93968a33f0516754891
      https://github.com/WebKit/WebKit/commit/1abd9354b891cf6eb4a3d93968a33f0516754891
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M LayoutTests/css2.1/20110323/floats-zero-height-wrap-002-expected.html
    A LayoutTests/fast/block/float/ignore-empty-float-expected.html
    A LayoutTests/fast/block/float/ignore-empty-float.html
    M Source/WebCore/layout/floats/FloatingContext.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
    M Source/WebCore/layout/layouttree/LayoutGeometryRect.h

  Log Message:
  -----------
  REGRESSION (STP 157) CSS2/floats/floats-placement-001.html fails
https://bugs.webkit.org/show_bug.cgi?id=247631
<rdar://problem/102103989>

Reviewed by Antti Koivisto.

While empty (height: 0px) float boxes do have vertical positions, they should be ignored when
probing for horizontal constraints.

* LayoutTests/fast/block/float/ignore-empty-float-expected.html: Added.
* LayoutTests/fast/block/float/ignore-empty-float.html: Added.
* Source/WebCore/layout/floats/FloatingContext.cpp:
(WebCore::Layout::FloatingContext::constraints const):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::tryPlacingFloatBox):
* Source/WebCore/layout/layouttree/LayoutGeometryRect.h:
(WebCore::Layout::Rect::isEmpty const):

css2.1/20110323/floats-zero-height-wrap-002.htm: Firefox agrees with the new result. The 0 height float box should not "indent" the linebox (not even when it has clearance).

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




More information about the webkit-changes mailing list