[webkit-changes] [WebKit/WebKit] 3de390: [Legacy line layout] Zero height float boxes do no...

Alan Baradlay noreply at github.com
Wed Jan 18 09:46:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3de390d56c49b00517f42fa6c77b221166f0f12f
      https://github.com/WebKit/WebKit/commit/3de390d56c49b00517f42fa6c77b221166f0f12f
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M Source/WebCore/rendering/FloatingObjects.cpp

  Log Message:
  -----------
  [Legacy line layout] Zero height float boxes do not shrink/indent line boxes
https://bugs.webkit.org/show_bug.cgi?id=250753

Reviewed by Antti Koivisto.

This patch aligns legacy line layout behavior with IFC.

"
...
Note: this means that floats with zero outer height or negative outer height do not shorten line boxes.
...
"

https://www.w3.org/TR/CSS2/visuren.html#floats

* Source/WebCore/rendering/FloatingObjects.cpp:
(WebCore::FindNextFloatLogicalBottomAdapter::collectIfNeeded):
(WebCore::ComputeFloatOffsetAdapter<FloatTypeValue>::collectIfNeeded):

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




More information about the webkit-changes mailing list