[webkit-changes] [WebKit/WebKit] 24b133: [LFC][IFC] Fix editing/selection/move-by-line-003....

Alan Baradlay noreply at github.com
Thu Oct 20 16:59:14 PDT 2022


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

  Changed paths:
    M LayoutTests/accessibility/node-only-object-element-rect-expected.txt
    M LayoutTests/fast/repaint/focus-ring-repaint-expected.txt
    M LayoutTests/platform/ios/accessibility/node-only-object-element-rect-expected.txt
    M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp

  Log Message:
  -----------
  [LFC][IFC] Fix editing/selection/move-by-line-003.html
https://bugs.webkit.org/show_bug.cgi?id=246730

Reviewed by Antti Koivisto.

Empty inline boxes (including the root inline box) should not contribute to the enclosing line geometry.
It confuses the editing logic when the empty root inline box makes the enclosing geometry overflow the previous line (empty root inline box has negative top as it sits on a zero height line box).

* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp:
(WebCore::Layout::InlineDisplayLineBuilder::collectEnclosingLineGeometry const):

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




More information about the webkit-changes mailing list