Fix compilation of Crypto.cpp on macOS with !WEB_CRYPTO
https://bugs.webkit.org/show_bug.cgi?id=202895

Reviewed by Alexey Proskuryakov.

Crypto.cpp does not use getCommonCryptoDigestAlgorithm(), defined in
CommonCryptoUtilities.h, but requires CommonCrypto includes which are
coming with it. However, when WEB_CRYPTO is disabled necessary
transitive includes are missing.

* page/Crypto.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index ad9089c..a81d06a 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,17 @@
+2019-10-13  Konstantin Tokarev  <annulen@yandex.ru>
+
+        Fix compilation of Crypto.cpp on macOS with !WEB_CRYPTO
+        https://bugs.webkit.org/show_bug.cgi?id=202895
+
+        Reviewed by Alexey Proskuryakov.
+
+        Crypto.cpp does not use getCommonCryptoDigestAlgorithm(), defined in
+        CommonCryptoUtilities.h, but requires CommonCrypto includes which are
+        coming with it. However, when WEB_CRYPTO is disabled necessary
+        transitive includes are missing.
+
+        * page/Crypto.cpp:
+
 2019-10-13  Simon Fraser  <simon.fraser@apple.com>
 
         Convert ENinePieceImageRule into an enum class and rename
diff --git a/Source/WebCore/page/Crypto.cpp b/Source/WebCore/page/Crypto.cpp
index 69c36e9..b99fe13 100644
--- a/Source/WebCore/page/Crypto.cpp
+++ b/Source/WebCore/page/Crypto.cpp
@@ -37,7 +37,8 @@
 #include <wtf/CryptographicallyRandomNumber.h>
 
 #if OS(DARWIN)
-#include "CommonCryptoUtilities.h"
+#include <CommonCrypto/CommonCryptor.h>
+#include <CommonCrypto/CommonRandom.h>
 #endif
 
 namespace WebCore {