[GTK] Replace DEFINE_STATIC_LOCAL with NeverDestroyed<T> in GTK WK1 and WK2 code
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