https://bugs.webkit.org/show_bug.cgi?id=153963
Reviewed by Sam Weinig.
Source/JavaScriptCore:
* inspector/remote/RemoteInspectorXPCConnection.mm:
Source/WebCore:
* accessibility/mac/AXObjectCacheMac.mm:
* crypto/CommonCryptoUtilities.cpp:
* crypto/CommonCryptoUtilities.h:
* editing/mac/TextUndoInsertionMarkupMac.h:
* editing/mac/TextUndoInsertionMarkupMac.mm:
* platform/cocoa/TelephoneNumberDetectorCocoa.cpp:
* platform/graphics/cg/ImageSourceCG.cpp:
* platform/graphics/mac/PDFDocumentImageMac.mm:
* platform/network/ios/NetworkStateNotifierIOS.mm:
* platform/network/mac/BlobDataFileReferenceMac.mm:
* platform/network/mac/ResourceHandleMac.mm:
* rendering/RenderThemeMac.mm:
Source/WebKit/mac:
* WebView/WebPDFView.mm:
Source/WTF:
* wtf/SystemTracing.h:
* wtf/WTFThreadData.h:
* wtf/spi/darwin/CommonCryptoSPI.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196239
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2016-02-07 Dan Bernstein <mitz@apple.com>
+
+ [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
+ https://bugs.webkit.org/show_bug.cgi?id=153963
+
+ Reviewed by Sam Weinig.
+
+ * inspector/remote/RemoteInspectorXPCConnection.mm:
+
2016-02-06 Filip Pizlo <fpizlo@apple.com>
FTL must store the call site index before runtime calls, even if it's the tail call slow path
#import <wtf/spi/cocoa/SecuritySPI.h>
#import <wtf/spi/darwin/XPCSPI.h>
-#if __has_include(<CoreFoundation/CFXPCBridge.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <CoreFoundation/CFXPCBridge.h>
#else
extern "C" {
+2016-02-07 Dan Bernstein <mitz@apple.com>
+
+ [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
+ https://bugs.webkit.org/show_bug.cgi?id=153963
+
+ Reviewed by Sam Weinig.
+
+ * wtf/SystemTracing.h:
+ * wtf/WTFThreadData.h:
+ * wtf/spi/darwin/CommonCryptoSPI.h:
+
2016-02-06 Darin Adler <darin@apple.com>
Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
#ifndef SystemTracing_h
#define SystemTracing_h
-#if defined(__has_include)
-#if __has_include(<System/sys/kdebug.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <System/sys/kdebug.h>
#define HAVE_KDEBUG_H 1
#endif
-#endif
// No namespaces because this file has to be includable from C and Objective-C.
#include <wtf/StackStats.h>
#include <wtf/text/StringHash.h>
-#if OS(DARWIN)
-#if defined(__has_include) && __has_include(<System/pthread_machdep.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <System/pthread_machdep.h>
#endif
-#endif
#if defined(__PTK_FRAMEWORK_JAVASCRIPTCORE_KEY1)
#define USE_PTHREAD_GETSPECIFIC_DIRECT 1
#if OS(DARWIN)
-#if defined(__has_include)
-#if __has_include(<CommonCrypto/CommonRandomSPI.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <CommonCrypto/CommonRandomSPI.h>
#endif
-#endif
typedef struct __CCRandom* CCRandomRef;
extern const CCRandomRef kCCRandomDefault;
+2016-02-07 Dan Bernstein <mitz@apple.com>
+
+ [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
+ https://bugs.webkit.org/show_bug.cgi?id=153963
+
+ Reviewed by Sam Weinig.
+
+ * accessibility/mac/AXObjectCacheMac.mm:
+ * crypto/CommonCryptoUtilities.cpp:
+ * crypto/CommonCryptoUtilities.h:
+ * editing/mac/TextUndoInsertionMarkupMac.h:
+ * editing/mac/TextUndoInsertionMarkupMac.mm:
+ * platform/cocoa/TelephoneNumberDetectorCocoa.cpp:
+ * platform/graphics/cg/ImageSourceCG.cpp:
+ * platform/graphics/mac/PDFDocumentImageMac.mm:
+ * platform/network/ios/NetworkStateNotifierIOS.mm:
+ * platform/network/mac/BlobDataFileReferenceMac.mm:
+ * platform/network/mac/ResourceHandleMac.mm:
+ * rendering/RenderThemeMac.mm:
+
2016-02-07 Carlos Garcia Campos <cgarcia@igalia.com>
REGRESSION(r195661): [GTK] Scrollbar tests crashing after overlay scrollbar groundwork
#import "WebAccessibilityObjectWrapperMac.h"
#import "WebCoreSystemInterface.h"
-#if __has_include(<HIServices/AccessibilityPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <HIServices/AccessibilityPriv.h>
#endif
#if ENABLE(SUBTLE_CRYPTO)
-#if defined(__has_include)
-#if __has_include(<CommonCrypto/CommonBigNum.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <CommonCrypto/CommonBigNum.h>
#endif
-#endif
typedef CCCryptorStatus CCStatus;
extern "C" CCBigNumRef CCBigNumFromData(CCStatus *status, const void *s, size_t len);
#include <CommonCrypto/CommonCryptor.h>
#include <wtf/Vector.h>
-#if defined(__has_include)
-#if __has_include(<CommonCrypto/CommonRSACryptor.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <CommonCrypto/CommonRSACryptor.h>
-#endif
-#endif
-
-#if defined(__has_include) && PLATFORM(COCOA)
-#if __has_include(<CommonCrypto/CommonRandomSPI.h>)
#include <CommonCrypto/CommonRandomSPI.h>
#endif
-#endif
#ifndef _CC_RSACRYPTOR_H_
enum {
#if USE(INSERTION_UNDO_GROUPING)
-#if __has_include(<AppKit/NSTextInputContext_Private.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <AppKit/NSTextInputContext_Private.h>
#else
extern "C" NSString *NSTextInsertionUndoableAttributeName;
#import "config.h"
#import "TextUndoInsertionMarkupMac.h"
-#if __has_include(<Foundation/NSUndoManager_Private.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <Foundation/NSUndoManager_Private.h>
#else
@interface NSUndoManager (WebCorePrivate)
#include "SoftLinking.h"
-#if __has_include(<DataDetectorsCore/DDDFAScanner.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <DataDetectorsCore/DDDFAScanner.h>
#else
typedef struct __DDDFAScanner DDDFAScanner, * DDDFAScannerRef;
#include <wtf/RetainPtr.h>
#endif
-#if __has_include(<ImageIO/CGImageSourcePrivate.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <ImageIO/CGImageSourcePrivate.h>
#else
const CFStringRef kCGImageSourceSubsampleFactor = CFSTR("kCGImageSourceSubsampleFactor");
#import <objc/objc-class.h>
#import <wtf/RetainPtr.h>
-#ifdef __has_include
-#if __has_include(<ApplicationServices/ApplicationServicesPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <ApplicationServices/ApplicationServicesPriv.h>
#endif
-#endif
SOFT_LINK_FRAMEWORK_IN_UMBRELLA(Quartz, PDFKit)
SOFT_LINK_CLASS(PDFKit, PDFDocument)
#import "SoftLinking.h"
#import "WebCoreThreadRun.h"
-#if defined(__has_include) && __has_include(<AppSupport/CPNetworkObserver.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <AppSupport/CPNetworkObserver.h>
#else
extern NSString * const CPNetworkObserverReachable;
#include "SoftLinking.h"
#include <wtf/text/CString.h>
-#if defined(__has_include)
-#if __has_include(<Bom/BOMCopier.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <Bom/BOMCopier.h>
#endif
-#endif
typedef struct _BOMCopier* BOMCopier;
#import <wtf/text/CString.h>
#if USE(CFNETWORK)
-#if __has_include(<CFNetwork/CFURLConnectionPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <CFNetwork/CFURLConnectionPriv.h>
#endif
typedef struct _CFURLConnection* CFURLConnectionRef;
#if ENABLE(SERVICE_CONTROLS) && HAVE(APPKIT_SERVICE_CONTROLS_SUPPORT)
-#if __has_include(<AppKit/AppKitDefines_Private.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <AppKit/AppKitDefines_Private.h>
-#else
-#define APPKIT_PRIVATE_CLASS
-#endif
-
-#if __has_include(<AppKit/NSServicesRolloverButtonCell.h>)
#import <AppKit/NSServicesRolloverButtonCell.h>
#else
+#define APPKIT_PRIVATE_CLASS
@interface NSServicesRolloverButtonCell : NSButtonCell
@end
#endif
+2016-02-07 Dan Bernstein <mitz@apple.com>
+
+ [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
+ https://bugs.webkit.org/show_bug.cgi?id=153963
+
+ Reviewed by Sam Weinig.
+
+ * WebView/WebPDFView.mm:
+
2016-02-06 Darin Adler <darin@apple.com>
Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
#import <PDFKit/PDFKit.h>
-#ifdef __has_include
-#if __has_include(<ApplicationServices/ApplicationServicesPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#import <ApplicationServices/ApplicationServicesPriv.h>
#endif
-#endif
extern "C" {
bool CGContextGetAllowsFontSmoothing(CGContextRef context);