[webkit-changes] [WebKit/WebKit] c6d75c: [IFC] InlineFormattingGeometry::staticPositionForO...

Alan Baradlay noreply at github.com
Wed Feb 1 08:26:58 PST 2023


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

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

  Log Message:
  -----------
  [IFC] InlineFormattingGeometry::staticPositionForOutOfFlowBlockLevelBox should be able to handle empty content
https://bugs.webkit.org/show_bug.cgi?id=251477
<rdar://104797919>

Reviewed by Antti Koivisto.

This is the block level box variant of webkit.org/b/248158 (<- inline level box).
While line-clamp does not produce empty IFCs anymore (changed at webkit.org/b/250270), accessing line[0] unconditionally may not be such a great idea.

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp:
(WebCore::Layout::InlineFormattingGeometry::staticPositionForOutOfFlowBlockLevelBox const):

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




More information about the webkit-changes mailing list