Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC] InlineLevelBox::LayoutBounds is a glorified AscentAndDescent
https://bugs.webkit.org/show_bug.cgi?id=255387 Reviewed by Antti Koivisto. 1. Move AscentAndDescent from InlineLineBoxBuilder.cpp under InlineLevelBox 2. Turn both InlineLevelBox::LayoutBounds and InlineLevelBox's m_ascent/m_descent into a AscentAndDescent * Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h: (WebCore::Layout::InlineLevelBox::AscentAndDescent::height const): (WebCore::Layout::InlineLevelBox::AscentAndDescent::operator== const): (WebCore::Layout::InlineLevelBox::ascent const): (WebCore::Layout::InlineLevelBox::descent const): (WebCore::Layout::InlineLevelBox::LayoutBounds::ascent const): (WebCore::Layout::InlineLevelBox::LayoutBounds::descent const): (WebCore::Layout::InlineLevelBox::LayoutBounds::height const): (WebCore::Layout::InlineLevelBox::LayoutBounds::operator== const): (WebCore::Layout::InlineLevelBox::setAscentAndDescent): (WebCore::Layout::InlineLevelBox::setLayoutBounds): (WebCore::Layout::InlineLevelBox::LayoutBounds::LayoutBounds): (WebCore::Layout::InlineLevelBox::AscentAndDescent::round): (WebCore::Layout::InlineLevelBox::setAscent): Deleted. (WebCore::Layout::InlineLevelBox::setDescent): Deleted. * Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp: (WebCore::Layout::primaryFontMetricsForInlineBox): (WebCore::Layout::ascentAndDescentWithTextEdgeForInlineBox): (WebCore::Layout::LineBoxBuilder::enclosingAscentDescentWithFallbackFonts const): (WebCore::Layout::LineBoxBuilder::setLayoutBoundsForInlineBox const): (WebCore::Layout::LineBoxBuilder::setVerticalPropertiesForInlineLevelBox const): (WebCore::Layout::LineBoxBuilder::constructInlineLevelBoxes): (WebCore::Layout::LineBoxBuilder::adjustInlineBoxHeightsForLineBoxContainIfApplicable): (WebCore::Layout::LineBoxBuilder::adjustIdeographicBaselineIfApplicable): (WebCore::Layout::LineBoxBuilder::computeLineBoxGeometry const): (): Deleted. (WebCore::Layout::AscentAndDescent::height const): Deleted. (WebCore::Layout::AscentAndDescent::round const): Deleted. * Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.h: * Source/WebCore/layout/formattingContexts/inline/InlineLineBoxVerticalAligner.cpp: (WebCore::Layout::LineBoxVerticalAligner::computeLogicalHeightAndAlign const): (WebCore::Layout::LineBoxVerticalAligner::simplifiedVerticalAlignment const): (WebCore::Layout::LineBoxVerticalAligner::computeLineBoxLogicalHeight const): (WebCore::Layout::LineBoxVerticalAligner::computeRootInlineBoxVerticalPosition const): (WebCore::Layout::LineBoxVerticalAligner::layoutBoundsForInlineBoxSubtree const): (WebCore::Layout::LineBoxVerticalAligner::alignInlineLevelBoxes const): (WebCore::Layout::LineBoxVerticalAligner::adjustForAnnotationIfNeeded const): Canonical link: https://commits.webkit.org/262942@main
- Loading branch information
1 parent
b877662
commit a055bb1
Showing
5 changed files
with
48 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