[iOS] Make WebCore build with public iOS SDK
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Sep 2014 18:18:02 +0000 (18:18 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Sep 2014 18:18:02 +0000 (18:18 +0000)
commitf6f3d4f58cefa69cf0d08c9d5caf259d7502c793
treeac4c4e0123092032643b46fed56944586e08e8e6
parent6ee701bafbba93612e8dd11c5b5163248f8bfdee
[iOS] Make WebCore build with public iOS SDK
https://bugs.webkit.org/show_bug.cgi?id=136487

Reviewed by David Kilzer.

Source/WebCore:

Add headers that wrap Mac and iOS SPIs and update WebCore source files to include these
headers instead of the corresponding actual SPI header(s).

* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.vcxproj/WebCoreCG.props:
* WebCore.vcxproj/copyForwardingHeaders.cmd:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMInternal.mm:
* bridge/objc/objc_instance.mm:
* platform/audio/ios/MediaSessionManagerIOS.mm:
* platform/cocoa/DisplaySleepDisablerCocoa.cpp:
* platform/cocoa/MemoryPressureHandlerCocoa.mm:
* platform/graphics/SimpleFontData.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
* platform/graphics/cg/BitmapImageCG.cpp:
* platform/graphics/cg/ColorCG.cpp:
* platform/graphics/cg/GraphicsContextCG.cpp:
* platform/graphics/cg/ImageSourceCG.cpp:
* platform/graphics/cg/PDFDocumentImage.cpp:
* platform/graphics/cocoa/FontPlatformDataCocoa.mm:
* platform/graphics/ios/FontCacheIOS.mm:
* platform/graphics/ios/FontServicesIOS.mm:
* platform/graphics/ios/SimpleFontDataIOS.mm:
* platform/graphics/mac/FontMac.mm:
* platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
* platform/graphics/mac/MediaPlayerProxy.h:
* platform/graphics/mac/SimpleFontDataMac.mm:
* platform/ios/LegacyTileCache.mm:
* platform/ios/LegacyTileGrid.mm:
* platform/ios/LegacyTileGridTile.mm:
* platform/ios/PlatformEventFactoryIOS.mm:
* platform/ios/PlatformScreenIOS.mm:
* platform/ios/WebEvent.mm:
* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
* platform/ios/wak/WAKAppKitStubs.h:
* platform/ios/wak/WAKView.h:
* platform/ios/wak/WKGraphics.h:
* platform/ios/wak/WKGraphics.mm:
* platform/ios/wak/WebCoreThread.mm:
* platform/network/ios/QuickLook.mm:
* platform/spi/ca/CALayerSPI.h: Added.
* platform/spi/ca/CATiledLayerSPI.h: Added.
* platform/spi/cf/CFLocaleSPI.h: Modified to use EXTERN_C.
* platform/spi/cf/CFNetworkConnectionCacheSPI.h: Ditto. Also changed header visibility from private to project.
* platform/spi/cf/CFURLRequestSPI.h: Ditto. Also modified to unconditionally include header <CoreFoundation/CFBase.h>.
* platform/spi/cg/CGColorTransformSPI.h: Added.
* platform/spi/cg/CGContextSPI.h: Added.
* platform/spi/cg/CGFloatSPI.h: Added.
* platform/spi/cg/CGFontGlyphSupportSPI.h: Added.
* platform/spi/cg/CGFontInfoSPI.h: Added.
* platform/spi/cg/CGFontRenderingSPI.h: Added.
* platform/spi/cg/CGFontUnicodeSupportSPI.h: Added.
* platform/spi/cg/CGImageSPI.h: Added.
* platform/spi/cg/CGSRegionSPI.h: Added.
* platform/spi/cocoa/DispatchSPI.h: Added.
* platform/spi/cocoa/IOPMLibSPI.h: Added.
* platform/spi/cocoa/MachVMSPI.h: Added.
* platform/spi/cocoa/NSFileManagerSPI.h: Added.
* platform/spi/cocoa/NSGeometrySPI.h: Added.
* platform/spi/cocoa/NSPointerFunctionsSPI.h: Added.
* platform/spi/cocoa/dyldSPI.h: Added.
* platform/spi/ios/AVPlayerControllerSPI.h: Added.
* platform/spi/ios/AVPlayerViewControllerSPI.h: Added.
* platform/spi/ios/AVValueTimingSPI.h: Added.
* platform/spi/ios/AVVideoLayerSPI.h: Added.
* platform/spi/ios/CTFontDescriptorSPI.h: Added.
* platform/spi/ios/CTFontSPI.h: Added.
* platform/spi/ios/CUICatalogSPI.h: Added.
* platform/spi/ios/CUIStyleEffectConfigurationSPI.h: Added.
* platform/spi/ios/MPAVRoutingControllerSPI.h: Added.
* platform/spi/ios/MobileGestaltSPI.h: Added.
* platform/spi/ios/QLPreviewConverterSPI.h: Added.
* platform/spi/ios/QuickLookSPI.h: Added.
* rendering/RenderThemeIOS.mm:

Source/WebKit/ios:

Substitute <WebCore/CGFloatSPI.h> for <CoreGraphics/CGFloat.h>.

* WebCoreSupport/WebFixedPositionContent.mm:

Source/WebKit/mac:

Update WebKit1 source files to include the wrapper SPI headers instead of the corresponding
actual SPI header(s).

* DOM/WebDOMOperationsPrivate.h:
* MigrateHeaders.make: Modified to only modify the include path of a "<WebCore/"-prefixed header
file if its filename doesn't end in "SPI.h" as an alternative to having MigrateHeaders.make copy
such files into the WebKit framework as private headers.
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebInspector/WebNodeHighlight.mm:
* WebView/WebIndicateLayer.mm:
* WebView/WebRenderLayer.h:
* WebView/WebView.mm:

Source/WebKit2:

Update WebKit2 source files to include the wrapper SPI headers instead of the corresponding
actual SPI header(s).

* Platform/mac/SharedMemoryMac.cpp:
* Shared/ios/NativeWebTouchEventIOS.mm:
* Shared/mac/RemoteLayerBackingStore.mm:
* Shared/mac/RemoteLayerTreePropertyApplier.mm:
* UIProcess/API/Cocoa/WKWebView.mm:
* UIProcess/ios/WKPDFPageNumberIndicator.mm:
* UIProcess/ios/WKScrollView.mm:
* UIProcess/ios/WebMemoryPressureHandlerIOS.mm:
* UIProcess/ios/forms/WKAirPlayRoutePicker.mm:
* WebProcess/WebPage/WebPage.cpp:

Source/WTF:

Define convenience macro EXTERN_C that can be used to specify the C linkage convention
for a declaration. For example, the declaration "EXTERN_C const int x;" will expand to:

extern const int x;

and

extern "C" const int x;

when used in a C and C++ file, respectively.

* wtf/Compiler.h:

Tools:

Substitute <WebCore/MachVMSPI.h> for <mach/mach_vm.h>.

* DumpRenderTree/mac/CheckedMalloc.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
99 files changed:
Source/WTF/ChangeLog
Source/WTF/wtf/Compiler.h
Source/WebCore/ChangeLog
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
Source/WebCore/WebCore.vcxproj/WebCoreCG.props
Source/WebCore/WebCore.vcxproj/copyForwardingHeaders.cmd
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/objc/DOMInternal.mm
Source/WebCore/bridge/objc/objc_instance.mm
Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm
Source/WebCore/platform/cocoa/DisplaySleepDisablerCocoa.cpp
Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm
Source/WebCore/platform/graphics/SimpleFontData.h
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm
Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp
Source/WebCore/platform/graphics/cg/ColorCG.cpp
Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp
Source/WebCore/platform/graphics/cg/PDFDocumentImage.cpp
Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm
Source/WebCore/platform/graphics/ios/FontCacheIOS.mm
Source/WebCore/platform/graphics/ios/FontServicesIOS.mm
Source/WebCore/platform/graphics/ios/SimpleFontDataIOS.mm
Source/WebCore/platform/graphics/mac/FontMac.mm
Source/WebCore/platform/graphics/mac/GlyphPageTreeNodeMac.cpp
Source/WebCore/platform/graphics/mac/MediaPlayerProxy.h
Source/WebCore/platform/graphics/mac/SimpleFontDataMac.mm
Source/WebCore/platform/ios/LegacyTileCache.mm
Source/WebCore/platform/ios/LegacyTileGrid.mm
Source/WebCore/platform/ios/LegacyTileGridTile.mm
Source/WebCore/platform/ios/PlatformEventFactoryIOS.mm
Source/WebCore/platform/ios/PlatformScreenIOS.mm
Source/WebCore/platform/ios/WebEvent.mm
Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm
Source/WebCore/platform/ios/wak/WAKAppKitStubs.h
Source/WebCore/platform/ios/wak/WAKView.h
Source/WebCore/platform/ios/wak/WKGraphics.h
Source/WebCore/platform/ios/wak/WKGraphics.mm
Source/WebCore/platform/ios/wak/WebCoreThread.mm
Source/WebCore/platform/network/ios/QuickLook.mm
Source/WebCore/platform/spi/ca/CALayerSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ca/CATiledLayerSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cf/CFLocaleSPI.h
Source/WebCore/platform/spi/cf/CFNetworkConnectionCacheSPI.h
Source/WebCore/platform/spi/cf/CFURLRequestSPI.h
Source/WebCore/platform/spi/cg/CGColorTransformSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGContextSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGFloatSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGFontGlyphSupportSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGFontInfoSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGFontRenderingSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGFontUnicodeSupportSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGImageSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cg/CGSRegionSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cocoa/DispatchSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cocoa/IOPMLibSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cocoa/MachVMSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cocoa/NSFileManagerSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cocoa/NSGeometrySPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cocoa/NSPointerFunctionsSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/cocoa/dyldSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/AVPlayerControllerSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/AVPlayerViewControllerSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/AVValueTimingSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/AVVideoLayerSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/CTFontDescriptorSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/CTFontSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/CUICatalogSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/CUIStyleEffectConfigurationSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/MPAVRoutingControllerSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/MobileGestaltSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/QLPreviewConverterSPI.h [new file with mode: 0644]
Source/WebCore/platform/spi/ios/QuickLookSPI.h [new file with mode: 0644]
Source/WebCore/rendering/RenderThemeIOS.mm
Source/WebKit/ios/ChangeLog
Source/WebKit/ios/WebCoreSupport/WebFixedPositionContent.mm
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h
Source/WebKit/mac/MigrateHeaders.make
Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
Source/WebKit/mac/WebInspector/WebNodeHighlight.mm
Source/WebKit/mac/WebView/WebIndicateLayer.mm
Source/WebKit/mac/WebView/WebRenderLayer.h
Source/WebKit/mac/WebView/WebView.mm
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/mac/SharedMemoryMac.cpp
Source/WebKit2/Shared/ios/NativeWebTouchEventIOS.mm
Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm
Source/WebKit2/Shared/mac/RemoteLayerTreePropertyApplier.mm
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
Source/WebKit2/UIProcess/ios/WKPDFPageNumberIndicator.mm
Source/WebKit2/UIProcess/ios/WKScrollView.mm
Source/WebKit2/UIProcess/ios/WebMemoryPressureHandlerIOS.mm
Source/WebKit2/UIProcess/ios/forms/WKAirPlayRoutePicker.mm
Source/WebKit2/WebProcess/WebPage/WebPage.cpp
Tools/ChangeLog
Tools/DumpRenderTree/mac/CheckedMalloc.cpp