<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>306059</bug_id>
          
          <creation_ts>2026-01-22 13:32:37 -0800</creation_ts>
          <short_desc>Make WidthCache more generic, preparing for future improvement</short_desc>
          <delta_ts>2026-03-20 21:49:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>306235</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gerald Squelart">g_squelart</reporter>
          <assigned_to name="Gerald Squelart">g_squelart</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2174216</commentid>
    <comment_count>0</comment_count>
    <who name="Gerald Squelart">g_squelart</who>
    <bug_when>2026-01-22 13:32:37 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174217</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-22 13:32:43 -0800</bug_when>
    <thetext>&lt;rdar://problem/168702176&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174219</commentid>
    <comment_count>2</comment_count>
    <who name="Gerald Squelart">g_squelart</who>
    <bug_when>2026-01-22 13:40:35 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57037</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174408</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-23 02:34:57 -0800</bug_when>
    <thetext>Committed 306069@main (ed20cc0620d3): &lt;https://commits.webkit.org/306069@main&gt;

Reviewed commits have been landed. Closing PR #57037 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2192301</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-03-20 21:49:20 -0700</bug_when>
    <thetext>Committed 305413.545@safari-7624-branch (e3d2c0539869): &lt;https://commits.webkit.org/305413.545@safari-7624-branch&gt;

Reviewed commits have been landed. Closing PR #4779 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>