| Index: Source/platform/image-decoders/ImageDecoder.h
|
| diff --git a/Source/platform/image-decoders/ImageDecoder.h b/Source/platform/image-decoders/ImageDecoder.h
|
| index 2a305c40b8887d342726adac3a3ba8d2fe3e0420..d00a68056d24f4e4579c67b5d63a863f86d7e984 100644
|
| --- a/Source/platform/image-decoders/ImageDecoder.h
|
| +++ b/Source/platform/image-decoders/ImageDecoder.h
|
| @@ -42,8 +42,9 @@
|
| #if USE(QCMSLIB)
|
| #include "qcms.h"
|
| #if OS(MACOSX)
|
| -#include <ApplicationServices/ApplicationServices.h>
|
| +#include "public/platform/mac/WebSandboxSupport.h"
|
| #include "wtf/RetainPtr.h"
|
| +#include <ApplicationServices/ApplicationServices.h>
|
| #endif
|
| #endif
|
|
|
| @@ -200,8 +201,8 @@ public:
|
| {
|
| // FIXME: Add optional ICCv4 support.
|
| #if OS(MACOSX)
|
| - RetainPtr<CGColorSpaceRef> monitorColorSpace(AdoptCF, CGDisplayCopyColorSpace(CGMainDisplayID()));
|
| - CFDataRef iccProfile(CGColorSpaceCopyICCProfile(monitorColorSpace.get()));
|
| + CGColorSpaceRef monitorColorSpace = Platform::current()->sandboxSupport()->displayColorSpace();
|
| + CFDataRef iccProfile(CGColorSpaceCopyICCProfile(monitorColorSpace));
|
| if (iccProfile) {
|
| size_t length = CFDataGetLength(iccProfile);
|
| const unsigned char* systemProfile = CFDataGetBytePtr(iccProfile);
|
|
|