Improve use of NeverDestroyed
[WebKit-https.git] / Source / WebKitLegacy / mac / ChangeLog
index 0d450c9..8d443ed 100644 (file)
@@ -1,3 +1,24 @@
+2017-07-17  Darin Adler  <darin@apple.com>
+
+        Improve use of NeverDestroyed
+        https://bugs.webkit.org/show_bug.cgi?id=174348
+
+        Reviewed by Sam Weinig.
+
+        * Misc/WebStringTruncator.mm:
+        (+[WebStringTruncator centerTruncateString:toWidth:]): Replace
+        NeverDestroyed<RetainPtr> with just an NSFont * global.
+
+        * Plugins/Hosted/NetscapePluginHostManager.h: Removed unneeded include of
+        NeverDestroyed.h.
+        * Storage/WebDatabaseManager.mm: Ditto.
+        * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
+        * WebCoreSupport/WebPlatformStrategies.mm: Ditto.
+
+        * WebView/WebView.mm: Removed unneeded include of NetworkStateNotifier.h.
+        (aeDescFromJSValue): Removed double hashing by using the return value from
+        add rather than calling contains before calling add.
+
 2017-07-14  Jer Noble  <jer.noble@apple.com>
 
         Allow clients to override their own hardware media requirements where no fallback media exists.