Bug 216023

Summary: RenderText::computeCanUseSimplifiedTextMeasuring() seems bogus
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Myles C. Maxfield 2020-08-31 19:26:28 PDT
RenderText::computeCanUseSimplifiedTextMeasuring() has:

    TextRun run(m_text);
    run.setCharacterScanForCodePath(false);
    if (font.codePath(run) != FontCascade::Simple)
        return false;

and FontCascade::codePath() has:

    if (!run.characterScanForCodePath())
        return Simple;

and

bool characterScanForCodePath() const { return m_characterScanForCodePath; }

this code sure looks like:
1. Explicitly set m_characterScanForCodePath to false
2. If m_characterScanForCodePath is false, use the simple text codepath
Comment 1 Radar WebKit Bug Importer 2020-09-07 19:27:12 PDT
<rdar://problem/68482100>