Fix the iOS build.
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Apr 2015 00:24:18 +0000 (00:24 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Apr 2015 00:24:18 +0000 (00:24 +0000)
* platform/spi/cg/CoreGraphicsSPI.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183087 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h

index 2b7e79eb11bb1ec9e337b5b9d6175dcb3f84e043..136e50c77330c7b0c13569b39dda4c61018c7f4c 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-21  Tim Horton  <timothy_horton@apple.com>
+
+        Fix the iOS build.
+
+        * platform/spi/cg/CoreGraphicsSPI.h:
+
 2015-04-21  Said Abou-Hallawa  <sabouhallawa@apple.com>
 
         SVGAnimateElementBase::calculateAnimatedValue() asserts when reinserting an SVG animating element within the same animation limits
index 0c7ae890f48c459b774d3d12188332db6b0fd972..cdb04b52cb047ae4674983aaa9523adbe2d4d8ae 100644 (file)
@@ -113,6 +113,7 @@ static inline CGFloat CGFloatMin(CGFloat a, CGFloat b) { return isnan(a) ? b : (
 
 typedef struct CGFontCache CGFontCache;
 
+#if PLATFORM(MAC)
 typedef uint32_t CGSConnectionID;
 typedef uint32_t CGSWindowID;
 typedef uint32_t CGSWindowCount;
@@ -123,6 +124,7 @@ enum {
     kCGSCaptureIgnoreGlobalClipShape = 0x0800,
 };
 typedef uint32_t CGSWindowCaptureOptions;
+#endif
 
 #endif // USE(APPLE_INTERNAL_SDK)
 
@@ -173,8 +175,10 @@ void CGFontCacheSetShouldAutoExpire(CGFontCache*, bool);
 void CGFontCacheSetMaxSize(CGFontCache*, size_t);
 #endif
 
+#if PLATFORM(MAC)
 CGSConnectionID CGSMainConnectionID(void);
 CFArrayRef CGSHWCaptureWindowList(CGSConnectionID cid, CGSWindowIDList windowList, CGSWindowCount windowCount, CGSWindowCaptureOptions options);
+#endif
 
 WTF_EXTERN_C_END