Changeset 267880 in webkit
- Timestamp:
- Oct 2, 2020, 8:45:17 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r267878 r267880 1 2020-10-02 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][IFC] Do not use simplified text measuring when soft hyphen is present 4 https://bugs.webkit.org/show_bug.cgi?id=217224 5 6 Reviewed by Antti Koivisto. 7 8 Specifically the monospaced fast codepath computes incorrect widht value when soft hyphens are present. 9 10 * layout/layouttree/LayoutTreeBuilder.cpp: 11 (WebCore::Layout::canUseSimplifiedTextMeasuring): 12 * rendering/RenderText.cpp: 13 (WebCore::RenderText::computeCanUseSimplifiedTextMeasuring const): 14 1 15 2020-10-02 Andres Gonzalez <andresg_22@apple.com> 2 16 -
trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp
r267648 r267880 107 107 108 108 for (unsigned i = 0; i < content.length(); ++i) { 109 if ((!whitespaceIsCollapsed && content[i] == '\t') || content[i] == noBreakSpace || content[i] >= HiraganaLetterSmallA)109 if ((!whitespaceIsCollapsed && content[i] == '\t') || content[i] == noBreakSpace || content[i] == softHyphen || content[i] >= HiraganaLetterSmallA) 110 110 return false; 111 111 } -
trunk/Source/WebCore/rendering/RenderText.cpp
r267734 r267880 1215 1215 auto whitespaceIsCollapsed = style().collapseWhiteSpace(); 1216 1216 for (unsigned i = 0; i < text().length(); ++i) { 1217 if ((!whitespaceIsCollapsed && text()[i] == '\t') || text()[i] == noBreakSpace || text()[i] >= HiraganaLetterSmallA)1217 if ((!whitespaceIsCollapsed && text()[i] == '\t') || text()[i] == noBreakSpace || text()[i] == softHyphen || text()[i] >= HiraganaLetterSmallA) 1218 1218 return false; 1219 1219 }
Note:
See TracChangeset
for help on using the changeset viewer.