Bug 238205

Summary: [LegacyLineLayout] Use the simplified text measuring in RenderText when applicable
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: NEW ---    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, koivisto, kondapallykalyan, mmaxfield, pdr, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch koivisto: review+, ews-feeder: commit-queue-

Description zalan 2022-03-22 10:17:44 PDT
ssia
Comment 1 zalan 2022-03-22 10:21:27 PDT
Created attachment 455389 [details]
Patch
Comment 2 Antti Koivisto 2022-03-22 10:23:33 PDT
Comment on attachment 455389 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=455389&action=review

> Source/WebCore/rendering/RenderText.cpp:1568
> +            width = widthFromCache(fontCascade, from, len, xPos, fallbackFonts, glyphOverflow, style);
> +    } else if (canUseSimplifiedTextMeasuring())
> +        width = fontCascade.widthForSimpleText(StringView(text()).substring(from, len), style.direction());

no lambda😤
Comment 3 Radar WebKit Bug Importer 2022-03-29 10:18:43 PDT
<rdar://problem/90990081>