[webkit-reviews] review granted: [Bug 238205] [LegacyLineLayout] Use the simplified text measuring in RenderText when applicable : [Attachment 455389] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 22 10:23:33 PDT 2022
Antti Koivisto <koivisto at iki.fi> has granted zalan <zalan at apple.com>'s request
for review:
Bug 238205: [LegacyLineLayout] Use the simplified text measuring in RenderText
when applicable
https://bugs.webkit.org/show_bug.cgi?id=238205
Attachment 455389: Patch
https://bugs.webkit.org/attachment.cgi?id=455389&action=review
--- Comment #2 from Antti Koivisto <koivisto at iki.fi> ---
Comment on attachment 455389
--> https://bugs.webkit.org/attachment.cgi?id=455389
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
More information about the webkit-reviews
mailing list