<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[201065] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/201065">201065</a></dd>
<dt>Author</dt> <dd>dino@apple.com</dd>
<dt>Date</dt> <dd>2016-05-17 19:07:11 -0700 (Tue, 17 May 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add media query support for wide gamut displays on Mac
https://bugs.webkit.org/show_bug.cgi?id=157824
<rdar://problem/26333137>
Reviewed by Simon Fraser.
Source/WebCore:
Implement the Mac version of the color-gamut media query
by filling out the screenSupportsExtendedColor function.
On Yosemite, we always return false. On El Capitan, we
can check the ColorProfile via ColorSync to see if the
screen is wide gamut.
There is already a test in fast/media/mq-color-gamut.html
* css/MediaQueryEvaluator.cpp:
(WebCore::color_gamutMediaFeatureEval): Pass the mainFrame's view
to screenSupportsExtendedColor, so that it can fetch the NSScreen.
* platform/PlatformScreen.h: screenSupportsExtendedColor now takes
an optional Widget parameter.
* platform/ios/PlatformScreenIOS.mm:
(WebCore::screenSupportsExtendedColor): Add empty parameter.
* platform/mac/PlatformScreenMac.mm:
(WebCore::screenSupportsExtendedColor): Get the NSWindow, then the
NSScreen, then the ColorSpace, then the ColorSyncProfile, and
check if it is a wide gamut profile.
* platform/spi/cg/CoreGraphicsSPI.h: Add the SPI declarations.
LayoutTests:
Remove the check for sRGB, since it is confusingly false
on browsers that don't implement this query, and is likely
to be dropped from the specification.
Also, make the text readable.
* fast/media/mq-color-gamut-expected.html:
* fast/media/mq-color-gamut.html:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastmediamqcolorgamutexpectedhtml">trunk/LayoutTests/fast/media/mq-color-gamut-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastmediamqcolorgamuthtml">trunk/LayoutTests/fast/media/mq-color-gamut.html</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssMediaQueryEvaluatorcpp">trunk/Source/WebCore/css/MediaQueryEvaluator.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformPlatformScreenh">trunk/Source/WebCore/platform/PlatformScreen.h</a></li>
<li><a href="#trunkSourceWebCoreplatformeflPlatformScreenEflcpp">trunk/Source/WebCore/platform/efl/PlatformScreenEfl.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgtkPlatformScreenGtkcpp">trunk/Source/WebCore/platform/gtk/PlatformScreenGtk.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformiosPlatformScreenIOSmm">trunk/Source/WebCore/platform/ios/PlatformScreenIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacPlatformScreenMacmm">trunk/Source/WebCore/platform/mac/PlatformScreenMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformspicgCoreGraphicsSPIh">trunk/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h</a></li>
<li><a href="#trunkSourceWebCoreplatformwinPlatformScreenWincpp">trunk/Source/WebCore/platform/win/PlatformScreenWin.cpp</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/LayoutTests/ChangeLog        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2016-05-17 Dean Jackson <dino@apple.com>
+
+ Add media query support for wide gamut displays on Mac
+ https://bugs.webkit.org/show_bug.cgi?id=157824
+ <rdar://problem/26333137>
+
+ Reviewed by Simon Fraser.
+
+ Remove the check for sRGB, since it is confusingly false
+ on browsers that don't implement this query, and is likely
+ to be dropped from the specification.
+
+ Also, make the text readable.
+
+ * fast/media/mq-color-gamut-expected.html:
+ * fast/media/mq-color-gamut.html:
+
</ins><span class="cx"> 2016-05-17 Joseph Pecoraro <pecoraro@apple.com>
</span><span class="cx">
</span><span class="cx"> REGRESSION(r192855): Math.random() always produces the same first 7 decimal points the first two invocations
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediamqcolorgamutexpectedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/media/mq-color-gamut-expected.html (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/media/mq-color-gamut-expected.html        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/LayoutTests/fast/media/mq-color-gamut-expected.html        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -2,15 +2,13 @@
</span><span class="cx"> <head>
</span><span class="cx"> <title>CSS4 media query test: color-gamut.</title>
</span><span class="cx"> <style type="text/css">
</span><del>-#a { background-color: green; }
-#b { background-color: blue; }
-#c { background-color: green; }
</del><ins>+#a { background-color: green; color: white; }
+#b { background-color: green; color: white; }
</ins><span class="cx"> </style>
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <p id="a">This paragraph should have a green background.</p>
</span><del>- <p id="b">This paragraph should have a blue background on a device with a display that supports something close to sRGB, which is nearly all displays. Otherwise the background should be green.</p>
- <p id="c">This paragraph should have a blue background on a device with a display that supports something close to P3. Otherwise the background should be green.</p>
</del><ins>+ <p id="b">This paragraph should have a blue background on a device with a display that supports something close to P3. Otherwise the background should be green.</p>
</ins><span class="cx"> <p>Note that the expected results of this test assume a display that is not significantly wider than sRGB.</p>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediamqcolorgamuthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/media/mq-color-gamut.html (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/media/mq-color-gamut.html        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/LayoutTests/fast/media/mq-color-gamut.html        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -2,23 +2,17 @@
</span><span class="cx"> <head>
</span><span class="cx"> <title>CSS4 media query test: color-gamut.</title>
</span><span class="cx"> <style type="text/css">
</span><del>-#a { background-color: green; }
-#b { background-color: green; }
-#c { background-color: green; }
</del><ins>+#a { background-color: green; color: white; }
+#b { background-color: green; color: white; }
</ins><span class="cx">
</span><del>-@media (color-gamut: srgb) {
</del><ins>+@media (color-gamut: p3) {
</ins><span class="cx"> #b { background-color: blue; }
</span><span class="cx"> }
</span><del>-
-@media (color-gamut: p3) {
-#c { background-color: blue; }
-}
</del><span class="cx"> </style>
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <p id="a">This paragraph should have a green background.</p>
</span><del>- <p id="b">This paragraph should have a blue background on a device with a display that supports something close to sRGB, which is nearly all displays. Otherwise the background should be green.</p>
- <p id="c">This paragraph should have a blue background on a device with a display that supports something close to P3. Otherwise the background should be green.</p>
</del><ins>+ <p id="b">This paragraph should have a blue background on a device with a display that supports something close to P3. Otherwise the background should be green.</p>
</ins><span class="cx"> <p>Note that the expected results of this test assume a display that is not significantly wider than sRGB.</p>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/ChangeLog        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2016-05-17 Dean Jackson <dino@apple.com>
+
+ Add media query support for wide gamut displays on Mac
+ https://bugs.webkit.org/show_bug.cgi?id=157824
+ <rdar://problem/26333137>
+
+ Reviewed by Simon Fraser.
+
+ Implement the Mac version of the color-gamut media query
+ by filling out the screenSupportsExtendedColor function.
+
+ On Yosemite, we always return false. On El Capitan, we
+ can check the ColorProfile via ColorSync to see if the
+ screen is wide gamut.
+
+ There is already a test in fast/media/mq-color-gamut.html
+
+ * css/MediaQueryEvaluator.cpp:
+ (WebCore::color_gamutMediaFeatureEval): Pass the mainFrame's view
+ to screenSupportsExtendedColor, so that it can fetch the NSScreen.
+ * platform/PlatformScreen.h: screenSupportsExtendedColor now takes
+ an optional Widget parameter.
+ * platform/ios/PlatformScreenIOS.mm:
+ (WebCore::screenSupportsExtendedColor): Add empty parameter.
+ * platform/mac/PlatformScreenMac.mm:
+ (WebCore::screenSupportsExtendedColor): Get the NSWindow, then the
+ NSScreen, then the ColorSpace, then the ColorSyncProfile, and
+ check if it is a wide gamut profile.
+ * platform/spi/cg/CoreGraphicsSPI.h: Add the SPI declarations.
+
</ins><span class="cx"> 2016-05-17 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><span class="cx"> Unreviewed, fix Darin's post-mortem review comments for r201052.
</span></span></pre></div>
<a id="trunkSourceWebCorecssMediaQueryEvaluatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/MediaQueryEvaluator.cpp (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/MediaQueryEvaluator.cpp        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/css/MediaQueryEvaluator.cpp        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -246,7 +246,7 @@
</span><span class="cx"> return numberValue(value, number) && compareValue(0, static_cast<int>(number), op);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static bool color_gamutMediaFeatureEval(CSSValue* value, const CSSToLengthConversionData&, Frame*, MediaFeaturePrefix)
</del><ins>+static bool color_gamutMediaFeatureEval(CSSValue* value, const CSSToLengthConversionData&, Frame* frame, MediaFeaturePrefix)
</ins><span class="cx"> {
</span><span class="cx"> if (!value)
</span><span class="cx"> return true;
</span><span class="lines">@@ -257,7 +257,7 @@
</span><span class="cx"> case CSSValueP3:
</span><span class="cx"> // FIXME: For the moment we'll just assume an "extended
</span><span class="cx"> // color" display is at least as good as P3.
</span><del>- return screenSupportsExtendedColor();
</del><ins>+ return screenSupportsExtendedColor(frame->page()->mainFrame().view());
</ins><span class="cx"> case CSSValueRec2020:
</span><span class="cx"> // FIXME: At some point we should start detecting displays that
</span><span class="cx"> // support more colors.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformPlatformScreenh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/PlatformScreen.h (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/PlatformScreen.h        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/platform/PlatformScreen.h        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> FloatRect screenRect(Widget*);
</span><span class="cx"> FloatRect screenAvailableRect(Widget*);
</span><span class="cx">
</span><del>- WEBCORE_EXPORT bool screenSupportsExtendedColor();
</del><ins>+ WEBCORE_EXPORT bool screenSupportsExtendedColor(Widget* widget = nullptr);
</ins><span class="cx">
</span><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx"> NSScreen *screenForWindow(NSWindow *);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformeflPlatformScreenEflcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/efl/PlatformScreenEfl.cpp (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/efl/PlatformScreenEfl.cpp        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/platform/efl/PlatformScreenEfl.cpp        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -118,7 +118,7 @@
</span><span class="cx"> return screenRect(widget);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool screenSupportsExtendedColor()
</del><ins>+bool screenSupportsExtendedColor(Widget*)
</ins><span class="cx"> {
</span><span class="cx"> return false;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgtkPlatformScreenGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/gtk/PlatformScreenGtk.cpp (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/gtk/PlatformScreenGtk.cpp        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/platform/gtk/PlatformScreenGtk.cpp        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx">
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool screenSupportsExtendedColor()
</del><ins>+bool screenSupportsExtendedColor(Widget*)
</ins><span class="cx"> {
</span><span class="cx"> return false;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosPlatformScreenIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/PlatformScreenIOS.mm (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/PlatformScreenIOS.mm        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/platform/ios/PlatformScreenIOS.mm        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx"> return UIAccessibilityIsInvertColorsEnabled();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool screenSupportsExtendedColor()
</del><ins>+bool screenSupportsExtendedColor(Widget*)
</ins><span class="cx"> {
</span><span class="cx"> #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90300
</span><span class="cx"> return MGGetBoolAnswer(kMGQHasExtendedColorDisplay);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacPlatformScreenMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/PlatformScreenMac.mm (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/PlatformScreenMac.mm        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/platform/mac/PlatformScreenMac.mm        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -26,10 +26,13 @@
</span><span class="cx"> #import "config.h"
</span><span class="cx"> #import "PlatformScreen.h"
</span><span class="cx">
</span><ins>+#import "CoreGraphicsSPI.h"
</ins><span class="cx"> #import "FloatRect.h"
</span><span class="cx"> #import "FrameView.h"
</span><span class="cx"> #import "HostWindow.h"
</span><span class="cx">
</span><ins>+#import <ColorSync/ColorSync.h>
+
</ins><span class="cx"> extern "C" {
</span><span class="cx"> bool CGDisplayUsesInvertedPolarity(void);
</span><span class="cx"> bool CGDisplayUsesForceToGray(void);
</span><span class="lines">@@ -135,9 +138,30 @@
</span><span class="cx"> return nil;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool screenSupportsExtendedColor()
</del><ins>+bool screenSupportsExtendedColor(Widget* widget)
</ins><span class="cx"> {
</span><del>- return false; // FIXME: Update this to detect extended color screens.
</del><ins>+#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101100
+ UNUSED_PARAM(widget);
+ return false;
+#else
+ if (!widget)
+ return false;
+
+ NSWindow *window = [widget->platformWidget() window];
+ NSScreen *screen = screenForWidget(widget, window);
+ CGColorSpaceRef colorSpace = screen.colorSpace.CGColorSpace;
+
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
+ return CGColorSpaceIsWideGamutRGB(colorSpace);
+#else
+ bool isWideGamut = false;
+ RetainPtr<CFDataRef> iccData = adoptCF(CGColorSpaceCopyICCProfile(colorSpace));
+ RetainPtr<ColorSyncProfileRef> profile = adoptCF(ColorSyncProfileCreate(iccData.get(), NULL));
+ if (profile)
+ isWideGamut = ColorSyncProfileIsWideGamut(profile.get());
+ return isWideGamut;
+#endif
+#endif
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> FloatRect toUserSpace(const NSRect& rect, NSWindow *destination)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformspicgCoreGraphicsSPIh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -33,8 +33,13 @@
</span><span class="cx"> #include "IOSurfaceSPI.h"
</span><span class="cx"> #endif
</span><span class="cx">
</span><ins>+#if PLATFORM(MAC)
+#include <ColorSync/ColorSync.h>
+#endif
+
</ins><span class="cx"> #if USE(APPLE_INTERNAL_SDK)
</span><span class="cx">
</span><ins>+#include <ColorSync/ColorSyncPriv.h>
</ins><span class="cx"> #include <CoreGraphics/CGFontCache.h>
</span><span class="cx"> #include <CoreGraphics/CoreGraphicsPrivate.h>
</span><span class="cx">
</span><span class="lines">@@ -195,6 +200,8 @@
</span><span class="cx"> CGError CGSSetConnectionProperty(CGSConnectionID, CGSConnectionID ownerCid, CFStringRef key, CFTypeRef value);
</span><span class="cx"> CGError CGSCopyConnectionProperty(CGSConnectionID, CGSConnectionID ownerCid, CFStringRef key, CFTypeRef *value);
</span><span class="cx"> CGError CGSGetScreenRectForWindow(CGSConnectionID, CGSWindowID, CGRect *);
</span><ins>+
+bool ColorSyncProfileIsWideGamut(ColorSyncProfileRef);
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> WTF_EXTERN_C_END
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformwinPlatformScreenWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/win/PlatformScreenWin.cpp (201064 => 201065)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/win/PlatformScreenWin.cpp        2016-05-18 01:26:11 UTC (rev 201064)
+++ trunk/Source/WebCore/platform/win/PlatformScreenWin.cpp        2016-05-18 02:07:11 UTC (rev 201065)
</span><span class="lines">@@ -101,7 +101,7 @@
</span><span class="cx"> return monitorInfo.rcWork;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool screenSupportsExtendedColor()
</del><ins>+bool screenSupportsExtendedColor(Widget*)
</ins><span class="cx"> {
</span><span class="cx"> return false;
</span><span class="cx"> }
</span></span></pre>
</div>
</div>
</body>
</html>