Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cfd853a10c2cab91281dc93703545301343fd231
https://github.com/WebKit/WebKit/commit/cfd853a10c2cab91281dc93703545301343fd231
Author: Alan Baradlay <[email protected]>
Date: 2026-02-09 (Mon, 09 Feb 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.h
Log Message:
-----------
Compute ContentAttributes while collecting inline items
https://bugs.webkit.org/show_bug.cgi?id=307233
Reviewed by Antti Koivisto.
Currently, InlineItemsBuilder performs two passes: the first collects inline
items, and the second measures text widths and
determines whether the content is text-only, as well as the number of inline
boxes.
This patch moves the 'determines' part to the first pass. It is a preparation
for being able to do only one pass on simple content.
* Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:
(WebCore::Layout::isTextOrLineBreak):
(WebCore::Layout::InlineItemsBuilder::build):
(WebCore::Layout::isInlineBoxWithInlineContent):
(WebCore::Layout::InlineItemsBuilder::traverseUntilDamaged):
(WebCore::Layout::InlineItemsBuilder::collectInlineItems):
(WebCore::Layout::InlineItemsBuilder::computeInlineTextItemWidthsAndTextSpacing):
(WebCore::Layout::InlineItemsBuilder::handleInlineBoxStart):
(WebCore::Layout::InlineItemsBuilder::computeContentAttributesAndInlineTextItemWidths):
Deleted.
* Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.h:
Canonical link: https://commits.webkit.org/307079@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications