With OffscreenCanvas, we can call shouldAutoActivateFontIfNeeded on a worker thread, and the knownFamilies HashSet is not thread safe. Also, the AtomStrings it stores are thread-specific. Move it to FontCache, so each thread has its own set.
Created attachment 445675 [details] Patch with dependencies for EWS
Created attachment 445676 [details] Patch
Comment on attachment 445676 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445676&action=review Good idea. > Source/WebCore/platform/graphics/FontCache.h:378 > +#if PLATFORM(MAC) I think generally our policy is to only ifdef function definitions, not declarations (just to reduce visual noise).
It's probably worth investigating whether this cache actually saves us any perf at all.
(In reply to Myles C. Maxfield from comment #3) > I think generally our policy is to only ifdef function definitions, not > declarations (just to reduce visual noise). OK. I guess it would need to be #ifdefed it were using some platform-specific type (and we didn't already have a typedef pointing to the platform-specific type we could use). There is some benefit from the #ifdef, which is to point out to the reader that these are indeed only available on some platform/configuration, but maybe they can just discover that themselves when they try to call the function and it's not defined everywhere.
/Volumes/Data/worker/Commit-Queue/build/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).
Created attachment 446261 [details] [fast-cq] Patch for landing
Committed r286634 (?): <https://commits.webkit.org/r286634> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446261 [details].
<rdar://problem/86185239>