[webkit-changes] [WebKit/WebKit] 9161ae: [IFC] Move "Is Text And ForcedLineBreak Only Conte...
Alan Baradlay
noreply at github.com
Tue Jan 14 05:13:43 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9161ae6dbae4e09440af21da8e5f2cc34829978f
https://github.com/WebKit/WebKit/commit/9161ae6dbae4e09440af21da8e5f2cc34829978f
Author: Alan Baradlay <zalan at apple.com>
Date: 2025-01-14 (Tue, 14 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/288839@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