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   

Chris Dumez
Reported 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.
Attachments
Chris Dumez
Comment 1 2023-10-02 16:53:15 PDT
EWS
Comment 2 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.
Radar WebKit Bug Importer
Comment 3 2023-10-03 15:02:23 PDT
Note You need to log in before you can comment on or make changes to this bug.