[webkit-changes] [WebKit/WebKit] e59f7b: Introduce shortcut for common line-breaking combin...
fantasai
noreply at github.com
Sat May 25 07:36:37 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e59f7bd6c41b92ddd0fce72a1282bb357dbd07d3
https://github.com/WebKit/WebKit/commit/e59f7bd6c41b92ddd0fce72a1282bb357dbd07d3
Author: Elika Etemad <fantasai.bugs at inkedblade.net>
Date: 2024-05-25 (Sat, 25 May 2024)
Changed paths:
M LayoutTests/platform/ios/TestExpectations
M LayoutTests/platform/mac/TestExpectations
M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp
M Source/WebCore/rendering/BreakLines.h
M Source/WebCore/rendering/RenderText.cpp
M Source/WebCore/rendering/line/BreakingContext.h
Log Message:
-----------
Introduce shortcut for common line-breaking combinations
https://bugs.webkit.org/show_bug.cgi?id=273793
rdar://126007812
Reviewed by Alan Baradlay.
Introduces a shortcut to catch the most common character breaking pairs,
avoiding the call to ICU.
Skips any characters that are likely to be tailored.
* LayoutTests/TestExpectations: See bug 274628.
* LayoutTests/platform/ios/TestExpectations: See bug 274628.
* LayoutTests/platform/mac/TestExpectations: See bug 274628.
* Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp:
(WebCore::Layout::TextUtil::findNextBreakablePosition): Pass in auto-phrase.
* Source/WebCore/rendering/BreakLines.h:
(WebCore::BreakLines::CharacterInfo::CharacterInfo): Add helper datatype.
(WebCore::BreakLines::CharacterInfo::set): Add helper datatype.
(WebCore::BreakLines::CharacterInfo::operator CharacterType const): Add helper datatype.
(WebCore::BreakLines::nextBreakablePosition): Add fast path.
(WebCore::BreakLines::classify): Add UAX14 classification function.
* Source/WebCore/rendering/RenderText.cpp:
(WebCore::RenderText::computePreferredLogicalWidths): Check for auto-phrase.
* Source/WebCore/rendering/line/BreakingContext.h:
(WebCore::BreakingContext::handleText): Check for auto-phrase.
Canonical link: https://commits.webkit.org/279318@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list