Changeset 254679 in webkit
- Timestamp:
- Jan 16, 2020 7:38:34 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r254678 r254679 1 2020-01-16 Antti Koivisto <antti@apple.com> 2 3 [LFC][IFC] TextUtil::width should use StringView for substrings 4 https://bugs.webkit.org/show_bug.cgi?id=206346 5 6 Reviewed by Zalan Bujtas. 7 8 * layout/inlineformatting/text/TextUtil.cpp: 9 (WebCore::Layout::TextUtil::width): 10 1 11 2020-01-16 Takashi Komori <Takashi.Komori@sony.com> 2 12 -
trunk/Source/WebCore/layout/inlineformatting/text/TextUtil.cpp
r254666 r254679 67 67 width = fixedPitchWidth(text, style, from, to, contentLogicalLeft); 68 68 else 69 width = font.widthForSimpleText( text.substring(from, to - from));69 width = font.widthForSimpleText(StringView(text).substring(from, to - from)); 70 70 } else { 71 71 auto tabWidth = style.collapseWhiteSpace() ? TabSize(0) : style.tabSize(); 72 WebCore::TextRun run( text.substring(from, to - from), contentLogicalLeft);72 WebCore::TextRun run(StringView(text).substring(from, to - from), contentLogicalLeft); 73 73 if (tabWidth) 74 74 run.setTabSize(true, tabWidth);
Note: See TracChangeset
for help on using the changeset viewer.