WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
306059
Make WidthCache more generic, preparing for future improvement
https://bugs.webkit.org/show_bug.cgi?id=306059
Summary
Make WidthCache more generic, preparing for future improvement
Gerald Squelart
Reported
2026-01-22 13:32:37 PST
As its name implies, WidthCache only caches widths (of given texts, per font). Some code paths (like CanvasRenderingContext2DBase::FontProxy::width() calling FontCascade::width()) also need to compute GlyphOverflow. These could benefit from also caching GlyphOverflow. This preliminary task here will only make WidthCache more generic, to allow the caching of other value types.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-01-22 13:32:43 PST
<
rdar://problem/168702176
>
Gerald Squelart
Comment 2
2026-01-22 13:40:35 PST
Pull request:
https://github.com/WebKit/WebKit/pull/57037
EWS
Comment 3
2026-01-23 02:34:57 PST
Committed
306069@main
(ed20cc0620d3): <
https://commits.webkit.org/306069@main
> Reviewed commits have been landed. Closing PR #57037 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug