Title: [161762] trunk/Source/WebCore
Revision
161762
Author
simon.fra...@apple.com
Date
2014-01-11 08:29:04 -0800 (Sat, 11 Jan 2014)

Log Message

Fix use of nonexistent kCGColorSpaceSRGB on iOS.

* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::sRGBColorSpaceRef):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (161761 => 161762)


--- trunk/Source/WebCore/ChangeLog	2014-01-11 15:51:31 UTC (rev 161761)
+++ trunk/Source/WebCore/ChangeLog	2014-01-11 16:29:04 UTC (rev 161762)
@@ -1,3 +1,10 @@
+2014-01-11  Simon Fraser  <simon.fra...@apple.com>
+
+        Fix use of nonexistent kCGColorSpaceSRGB on iOS.
+
+        * platform/graphics/cg/GraphicsContextCG.cpp:
+        (WebCore::sRGBColorSpaceRef):
+
 2014-01-11  Joseph Pecoraro  <pecor...@apple.com>
 
         Web Inspector: Some ScriptDebugServer Cleanup

Modified: trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp (161761 => 161762)


--- trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp	2014-01-11 15:51:31 UTC (rev 161761)
+++ trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp	2014-01-11 16:29:04 UTC (rev 161762)
@@ -91,7 +91,7 @@
 {
 #if PLATFORM(IOS)
     return deviceRGBColorSpaceRef();
-#endif // PLATFORM(IOS)
+#else
     static CGColorSpaceRef sRGBSpace = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
 #if PLATFORM(WIN)
     // Out-of-date CG installations will not honor kCGColorSpaceSRGB. This logic avoids
@@ -99,8 +99,9 @@
     // is sRGB, this all works out nicely.
     if (!sRGBSpace)
         sRGBSpace = deviceRGBColorSpaceRef();
-#endif
+#endif // PLATFORM(WIN)
     return sRGBSpace;
+#endif // PLATFORM(IOS)
 }
 
 #if PLATFORM(IOS)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to