Bug 234050

Summary: Move SystemFontDatabaseCoreText to FontCache
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: Layout and RenderingAssignee: Cameron McCormack (:heycam) <heycam>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, mattwoodrow, mmaxfield, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 233488    
Attachments:
Description Flags
Patch
mmaxfield: review+
Patch none

Description Cameron McCormack (:heycam) 2021-12-08 18:19:34 PST
Move SystemFontDatabaseCoreText to FontCache
Comment 1 Cameron McCormack (:heycam) 2021-12-08 18:20:48 PST
Created attachment 446470 [details]
Patch
Comment 2 Myles C. Maxfield 2021-12-10 15:14:12 PST
Comment on attachment 446470 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=446470&action=review

> Source/WebCore/platform/graphics/FontCache.h:226
> +    SystemFontDatabaseCoreText m_systemFontDatabaseCoreText;

Is this going to compile on the non-Apple ports?

> Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:257
> +        result.fontName = AtomString("system-ui", AtomString::ConstructFromLiteral);

Don't we have a suffix that does this? Like "system-ui"_as or something?
Comment 3 Cameron McCormack (:heycam) 2021-12-10 15:28:06 PST
(In reply to Myles C. Maxfield from comment #2)
> > Source/WebCore/platform/graphics/FontCache.h:226
> > +    SystemFontDatabaseCoreText m_systemFontDatabaseCoreText;
> 
> Is this going to compile on the non-Apple ports?

It's in an existing #ifdef, just outside the patch context limit.

> > Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:257
> > +        result.fontName = AtomString("system-ui", AtomString::ConstructFromLiteral);
> 
> Don't we have a suffix that does this? Like "system-ui"_as or something?

We do.
Comment 4 Radar WebKit Bug Importer 2021-12-15 18:21:24 PST
<rdar://problem/86552964>
Comment 5 Matt Woodrow 2022-07-21 15:18:23 PDT
Created attachment 461125 [details]
Patch
Comment 6 EWS 2022-07-24 15:39:09 PDT
Committed 252770@main (c7d95cf25d9d): <https://commits.webkit.org/252770@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 461125 [details].