[webkit-changes] [WebKit/WebKit] 5bb306: [IFC][Partial layout] Move computing the leading i...

Alan Baradlay noreply at github.com
Tue Feb 21 07:27:22 PST 2023


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

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

  Log Message:
  -----------
  [IFC][Partial layout] Move computing the leading inline item index on the damaged line to a dedicated function
https://bugs.webkit.org/show_bug.cgi?id=252635

Reviewed by Antti Koivisto.

InlineInvalidation::textInserted was getting too busy. This patch also addresses a downcast issue when the damaged leading inline item was a InlineSoftLineBreakItem (and not InlineTextItem).

* Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp:
(WebCore::Layout::leadingInlineItemPositionOnDamagedLine):
(WebCore::Layout::InlineInvalidation::textInserted):

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




More information about the webkit-changes mailing list