-
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] Add non-line-builder based minimum width computation
https://bugs.webkit.org/show_bug.cgi?id=260454 Reviewed by Antti Koivisto. Minimum size computation with breaking at arbitrary positions does not require line builder. (This is a 4x speedup on PerformanceTests/Layout/line-layout-preferred-width-break-all.html) * PerformanceTests/Layout/line-layout.html: * Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp: (WebCore::Layout::isEligibleForNonLineBuilderProcess): (WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicSizes): (WebCore::Layout::IntrinsicWidthHandler::simplifiedMinimumWidth const): * Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.h: * Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp: (WebCore::Layout::TextOnlySimpleLineBuilder::TextOnlySimpleLineBuilder): (WebCore::Layout::TextOnlySimpleLineBuilder::layoutInlineContent): * Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.h: (WebCore::Layout::TextOnlySimpleLineBuilder::isWrappingAllowed const): Canonical link: https://commits.webkit.org/267116@main
- Loading branch information
1 parent
cb3dfe3
commit 23014dd
Showing
4 changed files
with
44 additions
and
10 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
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