Summary: | Use LazyNeverDestroyed instead of DEFINE_GLOBAL for WebKitFontFamilyNames | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||||
Component: | WebCore Misc. | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | achristensen, commit-queue, webkit-bug-importer, ysuzuki | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 174979 | ||||||||||
Attachments: |
|
Description
Fujii Hironori
2017-08-02 18:46:13 PDT
In Bug 174150, > And we also change emptyAtom to emptyAtom() to get the value from LazyNeverDestroyed<>. Yusuke changed emptyAtom from a varialbe to an inline function. I'm wondering how I should do. I will create two WIP patches to begin a discussion. Created attachment 317062 [details]
WIP patch (variable version)
Created attachment 317068 [details]
WIP patch (inline function version)
Hi Alex and Yusuke, Which approach does look better? Give me your feedback. I like the approach not using inline function if we do not need to annotate ".get()" so many. Created attachment 324090 [details]
Patch
Comment on attachment 324090 [details]
Patch
r=me
Comment on attachment 324090 [details] Patch Clearing flags on attachment: 324090 Committed r223600: <https://trac.webkit.org/changeset/223600> All reviewed patches have been landed. Closing bug. |