-
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][Ruby] Introduce LineBuilder::handleRubyContent
https://bugs.webkit.org/show_bug.cgi?id=261626 Reviewed by Antti Koivisto. Ruby _base_ content is supposed to be placed on the current line as if it was regular inline content. In order to place inline content on the line we need logical width information (line breaking). Ruby _base_ content logical width has dependency on paired annotation(s) (see ruby columns). The idea here is that when IFC sees a <ruby>, we construct Ruby Formatting Context (RFC) which - takes an inline item range (<ruby> range) - runs ruby inline axis layout -> computes base run logical widths using ruby column sizing - probes line breaking - places content on the current line as far as line building is concerned. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp: (WebCore::Layout::InlineFormattingGeometry::nextWrapOpportunity): * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineCandidate::InlineContent::rubyContainerRange const): (WebCore::Layout::LineCandidate::InlineContent::appendRubyContainerRange): (WebCore::Layout::LineCandidate::InlineContent::isRuby const): (WebCore::Layout::LineCandidate::InlineContent::reset): (WebCore::Layout::LineBuilder::candidateContentForLine): (WebCore::Layout::LineBuilder::handleInlineContent): (WebCore::Layout::LineBuilder::handleRubyContent): * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h: * Source/WebCore/layout/layouttree/LayoutBox.h: (WebCore::Layout::Box::isRuby const): Canonical link: https://commits.webkit.org/268065@main
- Loading branch information
1 parent
7d72155
commit ab6f97a
Showing
4 changed files
with
78 additions
and
21 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