-
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][Intrinsic width] Maximum content size may be computed during mi…
…nimum phase in some limited cases https://bugs.webkit.org/show_bug.cgi?id=267312 Reviewed by Antti Koivisto. Let's compute the maximum content width between 2 forced line breaks and cache it. 'Preserve whitespace' type of text only content may reuse it as maximum content size. * Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp: Hanging content is still there, it just does not count as content width. (WebCore::Layout::Line::handleTrailingHangingContent): * Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp: (WebCore::Layout::mayUseContentWidthBetweenLineBreaksAsMaximumSize): (WebCore::Layout::IntrinsicWidthHandler::maximumContentSize): (WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicWidthForConstraint): * Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.h: Canonical link: https://commits.webkit.org/272853@main
- Loading branch information
1 parent
058ed67
commit 7ab6ffc
Showing
3 changed files
with
30 additions
and
5 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