Bug 262514 - Use HashMap::ensure() in FontCascadeFonts::glyphDataForCharacter()
Summary: Use HashMap::ensure() in FontCascadeFonts::glyphDataForCharacter()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-02 16:49 PDT by Chris Dumez
Modified: 2023-10-03 15:02 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>