Summary: | [GTK] Replace DEFINE_STATIC_LOCAL with NeverDestroyed<T> in GTK WK1 and WK2 code | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Zan Dobersek <zan> | ||||
Component: | New Bugs | Assignee: | Zan Dobersek <zan> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | cgarcia, commit-queue, gustavo, mrobinson | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Zan Dobersek
2014-02-04 10:57:10 PST
Created attachment 223140 [details]
Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API Comment on attachment 223140 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=223140&action=review > Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.h:69 > + friend class NeverDestroyed<PlatformStrategiesGtk>; Why is this necessary? > Source/WebKit2/WebProcess/gtk/WebGtkExtensionManager.h:55 > + friend class NeverDestroyed<WebGtkExtensionManager>; Ditto. Comment on attachment 223140 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=223140&action=review >> Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.h:69 >> + friend class NeverDestroyed<PlatformStrategiesGtk>; > > Why is this necessary? So that NeverDestroyed<PlatformStrategiesGtk> can access the private PlatformStrategiesGtk constructor. Landed in r163433. http://trac.webkit.org/changeset/163433 |