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
Convert ExpansionBehavior to a struct of left/right expansion behaviors
https://bugs.webkit.org/show_bug.cgi?id=240554 Patch by Kiet Ho <tho22@apple.com> on 2022-05-20 Reviewed by Myles C. Maxfield. * Tools/TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp: (TestWebKitAPI::TEST_F): * Source/WebKit/WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp: (WebKit::WebPopupMenu::setUpPlatformData): No new tests, no functional changes made. * Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::measureText): (WebCore::CanvasRenderingContext2D::drawTextInternal): * Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp: (WebCore::CanvasRenderingContext2DBase::drawText): (WebCore::CanvasRenderingContext2DBase::measureTextInternal): * Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp: (WebCore::Layout::Line::applyRunExpansion): * Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayBox.h: * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::fallbackFontsForText): * Source/WebCore/platform/graphics/ComplexTextController.cpp: (WebCore::ComplexTextController::adjustGlyphsAndAdvances): * Source/WebCore/platform/graphics/FontCascade.cpp: (WebCore::FontCascade::expansionOpportunityCountInternal): * Source/WebCore/platform/graphics/TextRun.h: (WebCore::TextRun::TextRun): * Source/WebCore/platform/graphics/WidthIterator.cpp: (WebCore::WidthIterator::WidthIterator): (WebCore::WidthIterator::calculateAdditionalWidth const): * Source/WebCore/platform/text/TextFlags.h: (WebCore::ExpansionBehavior::ExpansionBehavior): (WebCore::ExpansionBehavior::allowLeftOnly): (WebCore::ExpansionBehavior::forceLeftOnly): (WebCore::ExpansionBehavior::allowRightOnly): * Source/WebCore/platform/win/PopupMenuWin.cpp: (WebCore::PopupMenuWin::paint): * Source/WebCore/rendering/LegacyEllipsisBox.cpp: (WebCore::LegacyEllipsisBox::paint): (WebCore::LegacyEllipsisBox::selectionRect const): (WebCore::LegacyEllipsisBox::paintSelection): * Source/WebCore/rendering/LegacyInlineTextBox.cpp: (WebCore::LegacyInlineTextBox::expansionBehavior const): * Source/WebCore/rendering/LegacyLineLayout.cpp: (WebCore::expansionBehaviorForInlineTextBox): (WebCore::applyExpansionBehavior): * Source/WebCore/rendering/RenderBlock.h: * Source/WebCore/rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::paintObject): (WebCore::RenderFileUploadControl::computeIntrinsicLogicalWidths const): * Source/WebCore/rendering/RenderImage.cpp: (WebCore::RenderImage::paintReplaced): * Source/WebCore/rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement): (WebCore::RenderListBox::paintItemForeground): * Source/WebCore/rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::getAverageCharWidth): * Source/WebCore/rendering/svg/SVGInlineTextBox.cpp: (WebCore::SVGInlineTextBox::constructTextRun const): * Source/WebCore/rendering/svg/SVGTextMetrics.cpp: (WebCore::SVGTextMetrics::constructTextRun): Canonical link: https://commits.webkit.org/250833@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
fbf1615
commit ab2fbd6f38327d405c675d65a9f458172bef6b8a
Showing
24 changed files
with
148 additions
and
108 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
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.