[webkit-changes] [WebKit/WebKit] 5d2bd0: [IFC] Move "Is Text And ForcedLineBreak Only Conte...

Alan Baradlay noreply at github.com
Mon Jan 13 07:55:57 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5d2bd0b5e71ba866a3978850be632ab6366ade4b
      https://github.com/WebKit/WebKit/commit/5d2bd0b5e71ba866a3978850be632ab6366ade4b
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2025-01-13 (Mon, 13 Jan 2025)

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

  Log Message:
  -----------
  [IFC] Move "Is Text And ForcedLineBreak Only Content" to computeInlineTextItemWidths after finished collecting inline items
https://bugs.webkit.org/show_bug.cgi?id=285823

Reviewed by Antti Koivisto.

Let's figure out whether the current content is "text and forced line break" only
in a less error-prone way, in one go when we already have all the inline items.

* Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:
(WebCore::Layout::InlineItemsBuilder::traverseUntilDamaged):
(WebCore::Layout::InlineItemsBuilder::collectInlineItems):
(WebCore::Layout::InlineItemsBuilder::computeInlineTextItemWidths):
(WebCore::Layout::InlineItemsBuilder::handleInlineLevelBox):
* Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.h:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list