-
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] Turn LineLayoutResult into a cacheable object
https://bugs.webkit.org/show_bug.cgi?id=260045 Reviewed by Antti Koivisto. This is in preparation for sharing the result of line building between min/max and inline layout codepaths. (Make some function static so that they don't accidentally access to moved out m_line) * Source/WebCore/layout/formattingContexts/inline/AbstractLineBuilder.h: * Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp: (WebCore::Layout::InlineFormattingGeometry::contentLeftAfterLastLine const): (WebCore::Layout::InlineFormattingGeometry::horizontalAlignmentOffset): (WebCore::Layout::InlineFormattingGeometry::horizontalAlignmentOffset const): Deleted. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.h: * Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp: (WebCore::Layout::Line::close): * Source/WebCore/layout/formattingContexts/inline/InlineLine.h: (WebCore::Layout::Line::contentNeedsBidiReordering const): (WebCore::Layout::Line::hangingTrailingContentWidth const): (WebCore::Layout::Line::isHangingTrailingContentWhitespace const): * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::computedVisualOrder): (WebCore::Layout::horizontalAlignmentOffset): (WebCore::Layout::isLastLineWithInlineContent): (WebCore::Layout::inlineBaseDirectionForLineContent): (WebCore::Layout::LineBuilder::layoutInlineContent): (WebCore::Layout::LineBuilder::placeInlineAndFloatContent): (WebCore::Layout::LineBuilder::isLastLineWithInlineContent const): Deleted. (WebCore::Layout::LineBuilder::inlineBaseDirectionForLineContent const): Deleted. (WebCore::Layout::LineBuilder::horizontalAlignmentOffset const): Deleted. * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h: * Source/WebCore/layout/formattingContexts/inline/TextOnlyLineBuilder.cpp: (WebCore::Layout::horizontalAlignmentOffset): (WebCore::Layout::TextOnlyLineBuilder::layoutInlineContent): (WebCore::Layout::TextOnlyLineBuilder::horizontalAlignmentOffset const): Deleted. * Source/WebCore/layout/formattingContexts/inline/TextOnlyLineBuilder.h: Canonical link: https://commits.webkit.org/266853@main
- Loading branch information
1 parent
cd25edd
commit 715601c
Showing
9 changed files
with
130 additions
and
121 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
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
Oops, something went wrong.