[webkit-changes] [WebKit/WebKit] 05aed3: [LFC][IFC] Figure out the logicalTopForNextLine wi...

Alan Baradlay noreply at github.com
Thu Oct 13 06:27:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 05aed3a595dc47ebeb2b1c5c782f93cab9c1d52f
      https://github.com/WebKit/WebKit/commit/05aed3a595dc47ebeb2b1c5c782f93cab9c1d52f
  Author: Alan Bujtas <zalan at apple.com>
  Date:   2022-10-13 (Thu, 13 Oct 2022)

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

  Log Message:
  -----------
  [LFC][IFC] Figure out the logicalTopForNextLine without passing in the initial line rect
https://bugs.webkit.org/show_bug.cgi?id=246416

Reviewed by Antti Koivisto.

This is in preparation for using 0px as the initial line height to find correct vertical position for inline content when float boxes are vertically stacked within the line.
This patch preserves the current behavior where we move the line down by the computed line height to probe for floats.

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::lineLayout):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp:
(WebCore::Layout::InlineFormattingGeometry::logicalTopForNextLine const):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.h:

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




More information about the webkit-changes mailing list