<!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>[192553] branches/safari-601.1.46-branch/Source</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/192553">192553</a></dd>
<dt>Author</dt> <dd>matthew_hanson@apple.com</dd>
<dt>Date</dt> <dd>2015-11-17 16:27:03 -0800 (Tue, 17 Nov 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Rollout <a href="http://trac.webkit.org/projects/webkit/changeset/192479">r192479</a>. rdar://problem/22846841</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari601146branchSourceWebCoreChangeLog">branches/safari-601.1.46-branch/Source/WebCore/ChangeLog</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicsGraphicsContextcpp">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/GraphicsContext.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicsImageBufferh">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/ImageBuffer.h</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicscgBitmapImageCGcpp">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicscgColorCGcpp">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ColorCG.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicscgGraphicsContextCGcpp">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicscgImageBufferCGcpp">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicscocoaIOSurfacemm">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cocoa/IOSurface.mm</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicsfiltersFEFloodh">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FEFlood.h</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicsfiltersFETilecpp">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FETile.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicsfiltersFilterEffectcpp">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FilterEffect.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoreplatformgraphicsfiltersSourceGraphich">branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/SourceGraphic.h</a></li>
<li><a href="#branchessafari601146branchSourceWebCorerenderingFilterEffectRenderercpp">branches/safari-601.1.46-branch/Source/WebCore/rendering/FilterEffectRenderer.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCorerenderingRenderThemeMacmm">branches/safari-601.1.46-branch/Source/WebCore/rendering/RenderThemeMac.mm</a></li>
<li><a href="#branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceClippercpp">branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceFiltercpp">branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceGradientcpp">branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceMaskercpp">branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourcePatterncpp">branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoresvggraphicsSVGImagecpp">branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/SVGImage.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebCoresvggraphicsfiltersSVGFEImagecpp">branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp</a></li>
<li><a href="#branchessafari601146branchSourceWebKit2ChangeLog">branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog</a></li>
<li><a href="#branchessafari601146branchSourceWebKit2SharedmacRemoteLayerBackingStoremm">branches/safari-601.1.46-branch/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm</a></li>
<li><a href="#branchessafari601146branchSourceWebKit2UIProcessAPICocoaWKWebViewmm">branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari601146branchSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/ChangeLog (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/ChangeLog        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/ChangeLog        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -1,62 +1,11 @@
</span><span class="cx"> 2015-11-13  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><del>-        Rollout r192501. rdar://problem/22846841
</del><ins>+        Rollout r192479. rdar://problem/22846841
</ins><span class="cx"> 
</span><del>-2015-11-16  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</del><ins>+2015-11-13  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</ins><span class="cx"> 
</span><del>-        Merge r192138. rdar://problem/22846841
</del><ins>+        Rollout r192501. rdar://problem/22846841
</ins><span class="cx"> 
</span><del>-    2015-11-07  Simon Fraser  &lt;simon.fraser@apple.com&gt;
-
-            Use ColorSpaceSRGB for image buffers everywhere
-            https://bugs.webkit.org/show_bug.cgi?id=150990
-
-            Reviewed by Zalan Bujtas.
-
-            ColorSpaceSRGB and ColorSpaceDeviceRGB are equivalent now, so convert
-            code that creates image buffers tagged with ColorSpaceDeviceRGB to use ColorSpaceSRGB.
-
-            * platform/graphics/GraphicsContext.cpp:
-            (WebCore::GraphicsContext::createCompatibleBuffer):
-            * platform/graphics/ImageBuffer.h:
-            (WebCore::ImageBuffer::create):
-            * platform/graphics/cg/BitmapImageCG.cpp:
-            (WebCore::BitmapImage::checkForSolidColor):
-            * platform/graphics/cg/ColorCG.cpp:
-            (WebCore::Color::Color):
-            * platform/graphics/cg/GraphicsContextCG.cpp:
-            (WebCore::sRGBColorSpaceRef): Deleted.
-            * platform/graphics/cg/ImageBufferCG.cpp:
-            (WebCore::ImageBuffer::putByteArray):
-            * platform/graphics/cocoa/IOSurface.mm:
-            (IOSurface::createFromImage):
-            * platform/graphics/filters/FEFlood.h:
-            * platform/graphics/filters/FETile.cpp:
-            (WebCore::FETile::platformApplySoftware):
-            * platform/graphics/filters/FilterEffect.cpp:
-            (WebCore::FilterEffect::FilterEffect):
-            * platform/graphics/filters/SourceGraphic.h:
-            (WebCore::SourceGraphic::SourceGraphic):
-            * rendering/FilterEffectRenderer.cpp:
-            (WebCore::FilterEffectRenderer::build):
-            (WebCore::FilterEffectRenderer::apply):
-            * rendering/RenderThemeMac.mm:
-            (WebCore::RenderThemeMac::paintProgressBar):
-            * rendering/svg/RenderSVGResourceClipper.cpp:
-            (WebCore::RenderSVGResourceClipper::applyClippingToContext):
-            * rendering/svg/RenderSVGResourceFilter.cpp:
-            (WebCore::RenderSVGResourceFilter::buildPrimitives):
-            * rendering/svg/RenderSVGResourceGradient.cpp:
-            (WebCore::createMaskAndSwapContextForTextGradient):
-            * rendering/svg/RenderSVGResourceMasker.cpp:
-            (WebCore::RenderSVGResourceMasker::applyResource):
-            * rendering/svg/RenderSVGResourcePattern.cpp:
-            (WebCore::RenderSVGResourcePattern::createTileImage):
-            * svg/graphics/SVGImage.cpp:
-            (WebCore::SVGImage::drawPatternForContainer):
-            * svg/graphics/filters/SVGFEImage.cpp:
-            (WebCore::FEImage::platformApplySoftware):
-
</del><span class="cx"> 2015-11-13  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r192269. rdar://problem/23189742
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicsGraphicsContextcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/GraphicsContext.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/GraphicsContext.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/GraphicsContext.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -640,7 +640,7 @@
</span><span class="cx">     AffineTransform transform = getCTM(DefinitelyIncludeDeviceScale);
</span><span class="cx">     FloatSize scaledSize(static_cast&lt;int&gt;(ceil(size.width() * transform.xScale())), static_cast&lt;int&gt;(ceil(size.height() * transform.yScale())));
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;ImageBuffer&gt; buffer = ImageBuffer::createCompatibleBuffer(scaledSize, 1, ColorSpaceSRGB, this, hasAlpha);
</del><ins>+    std::unique_ptr&lt;ImageBuffer&gt; buffer = ImageBuffer::createCompatibleBuffer(scaledSize, 1, ColorSpaceDeviceRGB, this, hasAlpha);
</ins><span class="cx">     if (!buffer)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicsImageBufferh"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/ImageBuffer.h (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/ImageBuffer.h        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/ImageBuffer.h        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -75,7 +75,7 @@
</span><span class="cx">     WTF_MAKE_NONCOPYABLE(ImageBuffer); WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><span class="cx">     // Will return a null pointer on allocation failure.
</span><del>-    static std::unique_ptr&lt;ImageBuffer&gt; create(const FloatSize&amp; size, float resolutionScale = 1, ColorSpace colorSpace = ColorSpaceSRGB, RenderingMode renderingMode = Unaccelerated)
</del><ins>+    static std::unique_ptr&lt;ImageBuffer&gt; create(const FloatSize&amp; size, float resolutionScale = 1, ColorSpace colorSpace = ColorSpaceDeviceRGB, RenderingMode renderingMode = Unaccelerated)
</ins><span class="cx">     {
</span><span class="cx">         bool success = false;
</span><span class="cx">         std::unique_ptr&lt;ImageBuffer&gt; buffer(new ImageBuffer(size, resolutionScale, colorSpace, renderingMode, success));
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicscgBitmapImageCGcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -155,7 +155,7 @@
</span><span class="cx">     // Currently we only check for solid color in the important special case of a 1x1 image.
</span><span class="cx">     if (CGImageGetWidth(image) == 1 &amp;&amp; CGImageGetHeight(image) == 1) {
</span><span class="cx">         unsigned char pixel[4]; // RGBA
</span><del>-        RetainPtr&lt;CGContextRef&gt; bitmapContext = adoptCF(CGBitmapContextCreate(pixel, 1, 1, 8, sizeof(pixel), sRGBColorSpaceRef(),
</del><ins>+        RetainPtr&lt;CGContextRef&gt; bitmapContext = adoptCF(CGBitmapContextCreate(pixel, 1, 1, 8, sizeof(pixel), deviceRGBColorSpaceRef(),
</ins><span class="cx">             kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big));
</span><span class="cx">         if (!bitmapContext)
</span><span class="cx">             return;
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicscgColorCGcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ColorCG.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ColorCG.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ColorCG.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -67,7 +67,6 @@
</span><span class="cx">     size_t numComponents = CGColorGetNumberOfComponents(color);
</span><span class="cx">     const CGFloat* components = CGColorGetComponents(color);
</span><span class="cx"> #else
</span><del>-    // FIXME: can we remove this?
</del><span class="cx">     RetainPtr&lt;CGColorRef&gt; correctedColor = adoptCF(createCGColorWithDeviceRGBA(color));
</span><span class="cx">     if (!correctedColor)
</span><span class="cx">         correctedColor = color;
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicscgGraphicsContextCGcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -81,6 +81,9 @@
</span><span class="cx"> 
</span><span class="cx"> CGColorSpaceRef sRGBColorSpaceRef()
</span><span class="cx"> {
</span><ins>+#if PLATFORM(IOS)
+    return deviceRGBColorSpaceRef();
+#else
</ins><span class="cx">     static CGColorSpaceRef sRGBSpace = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
</span><span class="cx"> #if PLATFORM(WIN)
</span><span class="cx">     // Out-of-date CG installations will not honor kCGColorSpaceSRGB. This logic avoids
</span><span class="lines">@@ -90,6 +93,7 @@
</span><span class="cx">         sRGBSpace = deviceRGBColorSpaceRef();
</span><span class="cx"> #endif // PLATFORM(WIN)
</span><span class="cx">     return sRGBSpace;
</span><ins>+#endif // PLATFORM(IOS)
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(WIN) || PLATFORM(IOS)
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicscgImageBufferCGcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -322,7 +322,7 @@
</span><span class="cx"> #if USE(IOSURFACE_CANVAS_BACKING_STORE)
</span><span class="cx">     // Make a copy of the source to ensure the bits don't change before being drawn
</span><span class="cx">     IntSize sourceCopySize(sourceRect.width(), sourceRect.height());
</span><del>-    std::unique_ptr&lt;ImageBuffer&gt; sourceCopy = ImageBuffer::create(sourceCopySize, 1, ColorSpaceSRGB, Unaccelerated);
</del><ins>+    std::unique_ptr&lt;ImageBuffer&gt; sourceCopy = ImageBuffer::create(sourceCopySize, 1, ColorSpaceDeviceRGB, Unaccelerated);
</ins><span class="cx">     if (!sourceCopy)
</span><span class="cx">         return;
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicscocoaIOSurfacemm"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cocoa/IOSurface.mm (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cocoa/IOSurface.mm        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/cocoa/IOSurface.mm        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">     size_t width = CGImageGetWidth(image);
</span><span class="cx">     size_t height = CGImageGetHeight(image);
</span><span class="cx"> 
</span><del>-    auto surface = IOSurface::create(IntSize(width, height), ColorSpaceSRGB);
</del><ins>+    auto surface = IOSurface::create(IntSize(width, height), ColorSpaceDeviceRGB);
</ins><span class="cx">     auto surfaceContext = surface-&gt;ensurePlatformContext();
</span><span class="cx">     CGContextDrawImage(surfaceContext, CGRectMake(0, 0, width, height), image);
</span><span class="cx">     CGContextFlush(surfaceContext);
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicsfiltersFEFloodh"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FEFlood.h (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FEFlood.h        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FEFlood.h        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -41,8 +41,8 @@
</span><span class="cx"> #if !USE(CG)
</span><span class="cx">     // feFlood does not perform color interpolation of any kind, so the result is always in the current
</span><span class="cx">     // color space regardless of the value of color-interpolation-filters.
</span><del>-    void setOperatingColorSpace(ColorSpace) override { FilterEffect::setResultColorSpace(ColorSpaceSRGB); }
-    void setResultColorSpace(ColorSpace) override { FilterEffect::setResultColorSpace(ColorSpaceSRGB); }
</del><ins>+    void setOperatingColorSpace(ColorSpace) override { FilterEffect::setResultColorSpace(ColorSpaceDeviceRGB); }
+    void setResultColorSpace(ColorSpace) override { FilterEffect::setResultColorSpace(ColorSpaceDeviceRGB); }
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware() override;
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicsfiltersFETilecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FETile.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FETile.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FETile.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">         tileRect.scale(filter.filterResolution().width(), filter.filterResolution().height());
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    auto tileImage = SVGRenderingContext::createImageBuffer(tileRect, tileRect, ColorSpaceSRGB, filter().renderingMode());
</del><ins>+    auto tileImage = SVGRenderingContext::createImageBuffer(tileRect, tileRect, ColorSpaceDeviceRGB, filter().renderingMode());
</ins><span class="cx">     if (!tileImage)
</span><span class="cx">         return;
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicsfiltersFilterEffectcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FilterEffect.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FilterEffect.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/FilterEffect.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">     , m_hasHeight(false)
</span><span class="cx">     , m_clipsToBounds(true)
</span><span class="cx">     , m_operatingColorSpace(ColorSpaceLinearRGB)
</span><del>-    , m_resultColorSpace(ColorSpaceSRGB)
</del><ins>+    , m_resultColorSpace(ColorSpaceDeviceRGB)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoreplatformgraphicsfiltersSourceGraphich"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/SourceGraphic.h (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/SourceGraphic.h        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/platform/graphics/filters/SourceGraphic.h        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx">     SourceGraphic(Filter&amp; filter)
</span><span class="cx">         : FilterEffect(filter)
</span><span class="cx">     {
</span><del>-        setOperatingColorSpace(ColorSpaceSRGB);
</del><ins>+        setOperatingColorSpace(ColorSpaceDeviceRGB);
</ins><span class="cx">     }
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCorerenderingFilterEffectRenderercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/rendering/FilterEffectRenderer.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/rendering/FilterEffectRenderer.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/rendering/FilterEffectRenderer.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx">             // Unlike SVG Filters and CSSFilterImages, filter functions on the filter
</span><span class="cx">             // property applied here should not clip to their primitive subregions.
</span><span class="cx">             effect-&gt;setClipsToBounds(consumer == FilterFunction);
</span><del>-            effect-&gt;setOperatingColorSpace(ColorSpaceSRGB);
</del><ins>+            effect-&gt;setOperatingColorSpace(ColorSpaceDeviceRGB);
</ins><span class="cx">             
</span><span class="cx">             if (filterOperation.type() != FilterOperation::REFERENCE) {
</span><span class="cx">                 effect-&gt;inputEffects().append(previousEffect);
</span><span class="lines">@@ -339,7 +339,7 @@
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;FilterEffect&gt; effect = lastEffect();
</span><span class="cx">     effect-&gt;apply();
</span><del>-    effect-&gt;transformResultColorSpace(ColorSpaceSRGB);
</del><ins>+    effect-&gt;transformResultColorSpace(ColorSpaceDeviceRGB);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> LayoutRect FilterEffectRenderer::computeSourceImageRectForDirtyRect(const LayoutRect&amp; filterBoxRect, const LayoutRect&amp; dirtyRect)
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCorerenderingRenderThemeMacmm"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/rendering/RenderThemeMac.mm (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/rendering/RenderThemeMac.mm        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/rendering/RenderThemeMac.mm        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -1147,7 +1147,7 @@
</span><span class="cx">     trackInfo.reserved = 0;
</span><span class="cx">     trackInfo.filler1 = 0;
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;ImageBuffer&gt; imageBuffer = ImageBuffer::createCompatibleBuffer(inflatedRect.size(), deviceScaleFactor, ColorSpaceSRGB, paintInfo.context, true);
</del><ins>+    std::unique_ptr&lt;ImageBuffer&gt; imageBuffer = ImageBuffer::createCompatibleBuffer(inflatedRect.size(), deviceScaleFactor, ColorSpaceDeviceRGB, paintInfo.context, true);
</ins><span class="cx">     if (!imageBuffer)
</span><span class="cx">         return true;
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceClippercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx">     AffineTransform absoluteTransform = SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem(renderer);
</span><span class="cx"> 
</span><span class="cx">     if (shouldCreateClipperMaskImage &amp;&amp; !repaintRect.isEmpty()) {
</span><del>-        clipperMaskImage = SVGRenderingContext::createImageBuffer(repaintRect, absoluteTransform, ColorSpaceSRGB, Unaccelerated);
</del><ins>+        clipperMaskImage = SVGRenderingContext::createImageBuffer(repaintRect, absoluteTransform, ColorSpaceDeviceRGB, Unaccelerated);
</ins><span class="cx">         if (!clipperMaskImage)
</span><span class="cx">             return false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceFiltercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx">         builder-&gt;appendEffectToEffectReferences(effect, element.renderer());
</span><span class="cx">         element.setStandardAttributes(effect.get());
</span><span class="cx">         effect-&gt;setEffectBoundaries(SVGLengthContext::resolveRectangle&lt;SVGFilterPrimitiveStandardAttributes&gt;(&amp;element, filterElement().primitiveUnits(), targetBoundingBox));
</span><del>-        effect-&gt;setOperatingColorSpace(element.renderer()-&gt;style().svgStyle().colorInterpolationFilters() == CI_LINEARRGB ? ColorSpaceLinearRGB : ColorSpaceSRGB);
</del><ins>+        effect-&gt;setOperatingColorSpace(element.renderer()-&gt;style().svgStyle().colorInterpolationFilters() == CI_LINEARRGB ? ColorSpaceLinearRGB : ColorSpaceDeviceRGB);
</ins><span class="cx">         builder-&gt;add(element.result(), effect.release());
</span><span class="cx">     }
</span><span class="cx">     return builder;
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceGradientcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx">     AffineTransform absoluteTransform = SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem(*textRootBlock);
</span><span class="cx">     FloatRect repaintRect = textRootBlock-&gt;repaintRectInLocalCoordinates();
</span><span class="cx"> 
</span><del>-    auto maskImage = SVGRenderingContext::createImageBuffer(repaintRect, absoluteTransform, ColorSpaceSRGB, Unaccelerated);
</del><ins>+    auto maskImage = SVGRenderingContext::createImageBuffer(repaintRect, absoluteTransform, ColorSpaceDeviceRGB, Unaccelerated);
</ins><span class="cx">     if (!maskImage)
</span><span class="cx">         return false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourceMaskercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!maskerData-&gt;maskImage &amp;&amp; !repaintRect.isEmpty()) {
</span><span class="cx">         const SVGRenderStyle&amp; svgStyle = style().svgStyle();
</span><del>-        ColorSpace colorSpace = svgStyle.colorInterpolation() == CI_LINEARRGB ? ColorSpaceLinearRGB : ColorSpaceSRGB;
</del><ins>+        ColorSpace colorSpace = svgStyle.colorInterpolation() == CI_LINEARRGB ? ColorSpaceLinearRGB : ColorSpaceDeviceRGB;
</ins><span class="cx">         maskerData-&gt;maskImage = SVGRenderingContext::createImageBuffer(repaintRect, absoluteTransform, colorSpace, Unaccelerated);
</span><span class="cx">         if (!maskerData-&gt;maskImage)
</span><span class="cx">             return false;
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCorerenderingsvgRenderSVGResourcePatterncpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -233,7 +233,7 @@
</span><span class="cx"> std::unique_ptr&lt;ImageBuffer&gt; RenderSVGResourcePattern::createTileImage(const PatternAttributes&amp; attributes, const FloatRect&amp; tileBoundaries, const FloatRect&amp; absoluteTileBoundaries, const AffineTransform&amp; tileImageTransform, FloatRect&amp; clampedAbsoluteTileBoundaries) const
</span><span class="cx"> {
</span><span class="cx">     clampedAbsoluteTileBoundaries = ImageBuffer::clampedRect(absoluteTileBoundaries);
</span><del>-    auto tileImage = SVGRenderingContext::createImageBuffer(absoluteTileBoundaries, clampedAbsoluteTileBoundaries, ColorSpaceSRGB, Unaccelerated);
</del><ins>+    auto tileImage = SVGRenderingContext::createImageBuffer(absoluteTileBoundaries, clampedAbsoluteTileBoundaries, ColorSpaceDeviceRGB, Unaccelerated);
</ins><span class="cx">     if (!tileImage)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoresvggraphicsSVGImagecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/SVGImage.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/SVGImage.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/SVGImage.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -199,7 +199,7 @@
</span><span class="cx">     FloatRect imageBufferSize = zoomedContainerRect;
</span><span class="cx">     imageBufferSize.scale(imageBufferScale.width(), imageBufferScale.height());
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;ImageBuffer&gt; buffer = ImageBuffer::createCompatibleBuffer(expandedIntSize(imageBufferSize.size()), 1, ColorSpaceSRGB, context, true);
</del><ins>+    std::unique_ptr&lt;ImageBuffer&gt; buffer = ImageBuffer::createCompatibleBuffer(expandedIntSize(imageBufferSize.size()), 1, ColorSpaceDeviceRGB, context, true);
</ins><span class="cx">     if (!buffer) // Failed to allocate buffer.
</span><span class="cx">         return;
</span><span class="cx">     drawForContainer(buffer-&gt;context(), containerSize, zoom, imageBufferSize, zoomedContainerRect, ColorSpaceDeviceRGB, CompositeSourceOver, BlendModeNormal);
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebCoresvggraphicsfiltersSVGFEImagecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -112,8 +112,8 @@
</span><span class="cx">     IntPoint paintLocation = absolutePaintRect().location();
</span><span class="cx">     destRect.move(-paintLocation.x(), -paintLocation.y());
</span><span class="cx"> 
</span><del>-    // FEImage results are always in ColorSpaceSRGB
-    setResultColorSpace(ColorSpaceSRGB);
</del><ins>+    // FEImage results are always in ColorSpaceDeviceRGB
+    setResultColorSpace(ColorSpaceDeviceRGB);
</ins><span class="cx"> 
</span><span class="cx">     if (renderer) {
</span><span class="cx">         const AffineTransform&amp; absoluteTransform = filter().absoluteTransform();
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -1,5 +1,9 @@
</span><span class="cx"> 2015-11-13  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Rollout r192479. rdar://problem/22846841
+
+2015-11-13  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
+
</ins><span class="cx">         Rollout r192501. rdar://problem/22846841
</span><span class="cx"> 
</span><span class="cx"> 2015-11-16  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="lines">@@ -37,27 +41,6 @@
</span><span class="cx"> 
</span><span class="cx"> 2015-11-16  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><del>-        Merge r192138. rdar://problem/22846841
-
-    2015-11-07  Simon Fraser  &lt;simon.fraser@apple.com&gt;
-
-            Use ColorSpaceSRGB for image buffers everywhere
-            https://bugs.webkit.org/show_bug.cgi?id=150990
-
-            Reviewed by Zalan Bujtas.
-
-            ColorSpaceSRGB and ColorSpaceDeviceRGB are equivalent now, so convert
-            code that creates image buffers tagged with ColorSpaceDeviceRGB to use ColorSpaceSRGB.
-
-            * Shared/mac/RemoteLayerBackingStore.mm:
-            (WebKit::RemoteLayerBackingStore::decode):
-            (WebKit::RemoteLayerBackingStore::swapToValidFrontBuffer):
-            * UIProcess/API/Cocoa/WKWebView.mm:
-            (-[WKWebView _takeViewSnapshot]):
-            (-[WKWebView _snapshotRect:intoImageOfWidth:completionHandler:]):
-
-2015-11-16  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
-
</del><span class="cx">         Merge r189637. rdar://problem/22846841
</span><span class="cx"> 
</span><span class="cx">     2015-09-11  Beth Dakin  &lt;bdakin@apple.com&gt;
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebKit2SharedmacRemoteLayerBackingStoremm"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -139,7 +139,7 @@
</span><span class="cx">         MachSendRight sendRight;
</span><span class="cx">         if (!decoder.decode(sendRight))
</span><span class="cx">             return false;
</span><del>-        result.m_frontBuffer.surface = IOSurface::createFromSendRight(sendRight, ColorSpaceSRGB);
</del><ins>+        result.m_frontBuffer.surface = IOSurface::createFromSendRight(sendRight, ColorSpaceDeviceRGB);
</ins><span class="cx">         return true;
</span><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="lines">@@ -186,7 +186,7 @@
</span><span class="cx">         std::swap(m_frontBuffer, m_backBuffer);
</span><span class="cx"> 
</span><span class="cx">         if (!m_frontBuffer.surface)
</span><del>-            m_frontBuffer.surface = IOSurface::create(expandedScaledSize, ColorSpaceSRGB);
</del><ins>+            m_frontBuffer.surface = IOSurface::create(expandedScaledSize, ColorSpaceDeviceRGB);
</ins><span class="cx"> 
</span><span class="cx">         setBufferVolatility(BufferType::Front, false);
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari601146branchSourceWebKit2UIProcessAPICocoaWKWebViewmm"></a>
<div class="modfile"><h4>Modified: branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (192552 => 192553)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2015-11-18 00:26:54 UTC (rev 192552)
+++ branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2015-11-18 00:27:03 UTC (rev 192553)
</span><span class="lines">@@ -1111,7 +1111,7 @@
</span><span class="cx">     CATransform3D transform = CATransform3DMakeScale(deviceScale, deviceScale, 1);
</span><span class="cx"> 
</span><span class="cx"> #if USE(IOSURFACE)
</span><del>-    auto surface = WebCore::IOSurface::create(WebCore::expandedIntSize(snapshotSize), WebCore::ColorSpaceSRGB);
</del><ins>+    auto surface = WebCore::IOSurface::create(WebCore::expandedIntSize(snapshotSize), WebCore::ColorSpaceDeviceRGB);
</ins><span class="cx">     CARenderServerRenderLayerWithTransform(MACH_PORT_NULL, self.layer.context.contextId, reinterpret_cast&lt;uint64_t&gt;(self.layer), surface-&gt;surface(), 0, 0, &amp;transform);
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;WebKit::ViewSnapshot&gt; viewSnapshot = WebKit::ViewSnapshot::create(nullptr);
</span><span class="lines">@@ -2973,7 +2973,7 @@
</span><span class="cx"> #if USE(IOSURFACE)
</span><span class="cx">     // If we are parented and thus won't incur a significant penalty from paging in tiles, snapshot the view hierarchy directly.
</span><span class="cx">     if (CADisplay *display = self.window.screen._display) {
</span><del>-        auto surface = WebCore::IOSurface::create(WebCore::expandedIntSize(WebCore::FloatSize(imageSize)), WebCore::ColorSpaceSRGB);
</del><ins>+        auto surface = WebCore::IOSurface::create(WebCore::expandedIntSize(WebCore::FloatSize(imageSize)), WebCore::ColorSpaceDeviceRGB);
</ins><span class="cx">         CGFloat imageScaleInViewCoordinates = imageWidth / rectInViewCoordinates.size.width;
</span><span class="cx">         CATransform3D transform = CATransform3DMakeScale(imageScaleInViewCoordinates, imageScaleInViewCoordinates, 1);
</span><span class="cx">         transform = CATransform3DTranslate(transform, -rectInViewCoordinates.origin.x, -rectInViewCoordinates.origin.y, 0);
</span></span></pre>
</div>
</div>

</body>
</html>