Changeset 207251 in webkit


Ignore:
Timestamp:
Oct 12, 2016 4:01:48 PM (8 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r203903. rdar://problem/28476961

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  
     12016-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
    1262016-10-11  Matthew Hanson  <matthew_hanson@apple.com>
    227
  • branches/safari-602.2.14.0-branch/Source/WebCore/platform/mac/PlatformScreenMac.mm

    r201441 r207251  
    144144        return false;
    145145
     146#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
     147    return [screen(widget) canRepresentDisplayGamut:NSDisplayGamutP3];
     148#else
    146149    auto colorSpace = screen(widget).colorSpace.CGColorSpace;
    147 
    148 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
    149     return CGColorSpaceIsWideGamutRGB(colorSpace);
    150 #else
    151150    auto iccData = adoptCF(CGColorSpaceCopyICCProfile(colorSpace));
    152151    auto profile = adoptCF(ColorSyncProfileCreate(iccData.get(), nullptr));
Note: See TracChangeset for help on using the changeset viewer.