Use thread safe initialization for statics in Font::getCFStringAttributes
Created attachment 446476 [details] Patch
This is another one where the benefit of avoiding allocating these objects might be overwhelmed by the lines of code to do the caching.
Comment on attachment 446476 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446476&action=review > Source/WebCore/platform/graphics/mac/SimpleFontDataCoreText.cpp:46 > +static CFNumberRef zeroKerningValue() This function just returns a float zero. I don’t think its name should include "kerning value". It can be reused by anyone who needs a 0.0f as a CFNumber.
This too won't be needed if bug 234102 works.
<rdar://problem/86553412>
Created attachment 461058 [details] Patch
Committed 252677@main (070a876c5310): <https://commits.webkit.org/252677@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 461058 [details].