Changeset 207251 in webkit
- Timestamp:
- Oct 12, 2016 4:01:48 PM (8 years ago)
- Location:
- branches/safari-602.2.14.0-branch/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-602.2.14.0-branch/Source/WebCore/ChangeLog
r207250 r207251 1 2016-10-12 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r203903. rdar://problem/28476961 4 5 2016-07-28 Dean Jackson <dino@apple.com> 6 7 color-gamut media query returns incorrect results 8 https://bugs.webkit.org/show_bug.cgi?id=160166 9 <rdar://problem/27537577> 10 11 Reviewed by Darin Adler. 12 13 While I was unable to reproduce the originator's issue, 14 we communicated via email and it might have been related 15 to a customized color space calibration on an external 16 display. 17 18 Anyway, I took this opportunity to update to use the 19 more appropriate API for detection on macOS Sierra. 20 21 Covered by the existing fast/media/mq-color-gamut.html test. 22 23 * platform/mac/PlatformScreenMac.mm: 24 (WebCore::screenSupportsExtendedColor): Use NSScreen canRepresentDisplayGamut. 25 1 26 2016-10-11 Matthew Hanson <matthew_hanson@apple.com> 2 27 -
branches/safari-602.2.14.0-branch/Source/WebCore/platform/mac/PlatformScreenMac.mm
r201441 r207251 144 144 return false; 145 145 146 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 147 return [screen(widget) canRepresentDisplayGamut:NSDisplayGamutP3]; 148 #else 146 149 auto colorSpace = screen(widget).colorSpace.CGColorSpace; 147 148 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200149 return CGColorSpaceIsWideGamutRGB(colorSpace);150 #else151 150 auto iccData = adoptCF(CGColorSpaceCopyICCProfile(colorSpace)); 152 151 auto profile = adoptCF(ColorSyncProfileCreate(iccData.get(), nullptr));
Note: See TracChangeset
for help on using the changeset viewer.