-
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] TextOnlyLineBuilder should handle content split between boxes
https://bugs.webkit.org/show_bug.cgi?id=260282 Reviewed by Antti Koivisto. When continuous inline text content is split between boxes (and therefore between InlineTextItems) (e.g. createTextNode()) we need to be able to figure out if there's a soft wrap opportunity between such inline items. This patch adds this ability to TextOnlyLineBuilder by reusing InlineLineBuilder's endsWithSoftWrapOpportunity logic. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp: (WebCore::Layout::endsWithSoftWrapOpportunity): * Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp: (WebCore::Layout::InlineItemsBuilder::handleTextContent): * Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp: (WebCore::Layout::TextOnlySimpleLineBuilder::placeInlineTextContent): (WebCore::Layout::TextOnlySimpleLineBuilder::handleInlineTextContent): (WebCore::Layout::TextOnlySimpleLineBuilder::revertToTrailingItem): (WebCore::Layout::TextOnlySimpleLineBuilder::revertToLastNonOverflowingItem): (WebCore::Layout::TextOnlySimpleLineBuilder::rebuildLine): Deleted. * Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.h: * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::mayBreakInBetween): * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.h: Canonical link: https://commits.webkit.org/267011@main
- Loading branch information
1 parent
997e074
commit bc0673f
Showing
6 changed files
with
91 additions
and
53 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
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