Re: [webkit-dev] calcPrefWidths, SimpleFontData, and text fields (oh my!)

2008-11-19 Thread Mike Pinkerton
Sorry everyone, I was looking at our current Chromium source, which has patches applied over ToT Webkit. It all makes sense now. Clue vended, thanks! On Wed, Nov 19, 2008 at 4:26 PM, Dan Bernstein <[EMAIL PROTECTED]> wrote: > > On Nov 19, 2008, at 1:17 PM, Mike Pinkerton wrote: > >> In tracking d

Re: [webkit-dev] calcPrefWidths, SimpleFontData, and text fields (oh my!)

2008-11-19 Thread Dan Bernstein
On Nov 19, 2008, at 1:17 PM, Mike Pinkerton wrote: In tracking down something for Mac Chromium, I came across something in WebCore that I can't explain, and hopefully someone on this list can vend me a clue. RenderTextControl::calcPrefWidths() checks the average character width of the primary

[webkit-dev] calcPrefWidths, SimpleFontData, and text fields (oh my!)

2008-11-19 Thread Mike Pinkerton
In tracking down something for Mac Chromium, I came across something in WebCore that I can't explain, and hopefully someone on this list can vend me a clue. RenderTextControl::calcPrefWidths() checks the average character width of the primary font if the width isn't explicitly set. This calls into