-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC] Do not populate InlineContentBreaker::ContinuousContent eagerly…
… with candidate content https://bugs.webkit.org/show_bug.cgi?id=260403 Reviewed by Antti Koivisto. InlineContentBreaker::ContinuousContent pre-processes the candidate content to provide trailing/trimming information for InlineContentBreaker. However we don't need that information until after we feed the content to line breaking. Let's populate ContinuousContent lazily right before calling handleOverflowingTextContent. (when content fits, we directly commit to line, otherwise 1. commit to ContinuousContent first 2. call InlineContentBreaker 3. commit the result to line) This is ~10% progression on PerformanceTests/Layout/line-layout.html. * Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp: (WebCore::Layout::CandidateTextContent::append): (WebCore::Layout::measuredInlineTextItem): (WebCore::Layout::appendInlineTextItem): (WebCore::Layout::TextOnlySimpleLineBuilder::placeInlineTextContent): (WebCore::Layout::TextOnlySimpleLineBuilder::placeNonWrappingInlineTextContent): (WebCore::Layout::TextOnlySimpleLineBuilder::handleOverflowingTextContent): (WebCore::Layout::TextOnlySimpleLineBuilder::revertToTrailingItem): (WebCore::Layout::TextOnlySimpleLineBuilder::revertToLastNonOverflowingItem): (WebCore::Layout::TextOnlySimpleLineBuilder::availableWidth const): (WebCore::Layout::inlineTextItemWidth): Deleted. (WebCore::Layout::TextOnlySimpleLineBuilder::handleInlineTextContent): Deleted. * Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.h: Canonical link: https://commits.webkit.org/267079@main
- Loading branch information
1 parent
5903034
commit dc83324
Showing
2 changed files
with
84 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters