Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Simplify ExpansionBehavior to avoid using getters/setters
https://bugs.webkit.org/show_bug.cgi?id=240823 Patch by Kiet Ho <tho22@apple.com> on 2022-05-24 Reviewed by Cameron McCormack. * Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp: (WebCore::Layout::Line::applyRunExpansion): * Source/WebCore/platform/graphics/ComplexTextController.cpp: (WebCore::ComplexTextController::adjustGlyphsAndAdvances): * Source/WebCore/platform/graphics/FontCascade.cpp: (WebCore::FontCascade::expansionOpportunityCountInternal): * Source/WebCore/platform/graphics/TextRun.cpp: * Source/WebCore/platform/graphics/WidthIterator.cpp: (WebCore::WidthIterator::WidthIterator): (WebCore::WidthIterator::calculateAdditionalWidth const): * Source/WebCore/platform/text/TextFlags.h: (WebCore::ExpansionBehavior::ExpansionBehavior): (WebCore::ExpansionBehavior::defaultBehavior): (WebCore::ExpansionBehavior::allowRightOnly): (WebCore::ExpansionBehavior::allowLeftOnly): (WebCore::ExpansionBehavior::forceLeftOnly): (WebCore::ExpansionBehavior::forbidAll): (WebCore::ExpansionBehavior::left const): Deleted. (WebCore::ExpansionBehavior::setLeft): Deleted. (WebCore::ExpansionBehavior::right const): Deleted. (WebCore::ExpansionBehavior::setRight): Deleted. * Source/WebCore/rendering/LegacyInlineTextBox.cpp: (WebCore::LegacyInlineTextBox::expansionBehavior const): * Source/WebCore/rendering/LegacyLineLayout.cpp: (WebCore::expansionBehaviorForInlineTextBox): (WebCore::applyExpansionBehavior): Canonical link: https://commits.webkit.org/250926@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
f86ff68
commit 956f033898db4b247105dd4628a8bd7bb2253a8e
Showing
7 changed files
with
45 additions
and
55 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