[webkit-changes] [WebKit/WebKit] b706f3: [LFC][IFC] Float box overlap should be checked aga...

alan noreply at github.com
Wed Sep 7 06:37:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b706f34ca1d4f5ca0340754e24d2263025a2e069
      https://github.com/WebKit/WebKit/commit/b706f34ca1d4f5ca0340754e24d2263025a2e069
  Author: Alan Bujtas <zalan at apple.com>
  Date:   2022-09-07 (Wed, 07 Sep 2022)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h

  Log Message:
  -----------
  [LFC][IFC] Float box overlap should be checked against the _margin_ box of the line box
https://bugs.webkit.org/show_bug.cgi?id=244869

Reviewed by Antti Koivisto.

While line boxes don't have margins, text-indent is treated as margin-start. Float boxes should not overlap the line box's margin box.

* LayoutTests/css2.1/t0905-c414-flt-fit-01-d-g.html:
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::layoutInlineContent):
(WebCore::Layout::LineBuilder::tryPlacingFloatBox):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h:

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




More information about the webkit-changes mailing list