Bug 262514

Summary: Use HashMap::ensure() in FontCascadeFonts::glyphDataForCharacter()
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Layout and RenderingAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Chris Dumez 2023-10-02 16:49:58 PDT
Use HashMap::ensure() in FontCascadeFonts::glyphDataForCharacter() instead of adding a "null" value and then checking if the value is null. This simplifies the code a bit and may be a little more efficient.
Comment 1 Chris Dumez 2023-10-02 16:53:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18524
Comment 2 EWS 2023-10-03 15:01:35 PDT
Committed 268805@main (84766e172527): <https://commits.webkit.org/268805@main>

Reviewed commits have been landed. Closing PR #18524 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-10-03 15:02:23 PDT
<rdar://problem/116427050>