<!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>[191867] trunk/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/191867">191867</a></dd>
<dt>Author</dt> <dd>darin@apple.com</dd>
<dt>Date</dt> <dd>2015-11-01 16:16:36 -0800 (Sun, 01 Nov 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove some dead and unneeded code (ScrollbarThemeSafari, RenderThemeSafari, OPENCL, a little color space logic)
https://bugs.webkit.org/show_bug.cgi?id=150783

Reviewed by Tim Horton.

Source/WebCore:

* PlatformWinCairo.cmake: Removed ScrollbarThemeSafari.cpp, no reason to compile it.

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::setContentsToImage): Removed the code that set a color space
on an image if it's set to device color space. This has been dead code for many releases
of OS X and iOS at this point.

* platform/graphics/filters/FEColorMatrix.h: Removed some ENABLE(OPENCL)-only code.
* platform/graphics/filters/FEFlood.h: Ditto.
* platform/graphics/filters/FEMerge.h: Ditto.
* platform/graphics/filters/FETurbulence.h: Ditto.
* platform/graphics/filters/FilterEffect.cpp:
(WebCore::FilterEffect::applyAll): Removed.
(WebCore::FilterEffect::apply): Removed ENABLE(OPENCL)-only code.
(WebCore::FilterEffect::platformApplyOpenCL): Removed.
(WebCore::FilterEffect::clearResult): Removed ENABLE(OPENCL)-only code.
(WebCore::FilterEffect::asImageBuffer): Ditto.
(WebCore::FilterEffect::openCLImageToImageBuffer): Removed.
(WebCore::FilterEffect::createOpenCLImageResult): Removed.
(WebCore::FilterEffect::transformResultColorSpace): Removed ENABLE(OPENCL)-only code.

* platform/graphics/filters/FilterEffect.h: Removed ENABLE(OPENCL)-only code.
* platform/graphics/filters/SourceAlpha.h: Ditto.
* platform/graphics/filters/SourceGraphic.h: Ditto.

* platform/win/ScrollbarThemeSafari.cpp: Removed.
* platform/win/ScrollbarThemeSafari.h: Removed.

* rendering/RenderThemeMac.mm: Removed an obsolete comment.

* rendering/RenderThemeSafari.cpp: Removed.
* rendering/RenderThemeSafari.h: Removed.

* svg/graphics/filters/SVGFEImage.h: Removed ENABLE(OPENCL)-only code.

Source/WTF:

* wtf/FeatureDefines.h: Removed the OPENCL feature, no longer supported.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfFeatureDefinesh">trunk/Source/WTF/wtf/FeatureDefines.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorePlatformWinCairocmake">trunk/Source/WebCore/PlatformWinCairo.cmake</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp">trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFEColorMatrixh">trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFEFloodh">trunk/Source/WebCore/platform/graphics/filters/FEFlood.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFEMergeh">trunk/Source/WebCore/platform/graphics/filters/FEMerge.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFETurbulenceh">trunk/Source/WebCore/platform/graphics/filters/FETurbulence.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFilterEffectcpp">trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFilterEffecth">trunk/Source/WebCore/platform/graphics/filters/FilterEffect.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersSourceAlphah">trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersSourceGraphich">trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeMacmm">trunk/Source/WebCore/rendering/RenderThemeMac.mm</a></li>
<li><a href="#trunkSourceWebCoresvggraphicsfiltersSVGFEImageh">trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformwinScrollbarThemeSafaricpp">trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformwinScrollbarThemeSafarih">trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeSafaricpp">trunk/Source/WebCore/rendering/RenderThemeSafari.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeSafarih">trunk/Source/WebCore/rendering/RenderThemeSafari.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WTF/ChangeLog        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2015-11-01  Darin Adler  &lt;darin@apple.com&gt;
+
+        Remove some dead and unneeded code (ScrollbarThemeSafari, RenderThemeSafari, OPENCL, a little color space logic)
+        https://bugs.webkit.org/show_bug.cgi?id=150783
+
+        Reviewed by Tim Horton.
+
+        * wtf/FeatureDefines.h: Removed the OPENCL feature, no longer supported.
+
</ins><span class="cx"> 2015-10-31  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         B3::reduceStrength's DCE should be more agro and less wrong
</span></span></pre></div>
<a id="trunkSourceWTFwtfFeatureDefinesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/FeatureDefines.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/FeatureDefines.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WTF/wtf/FeatureDefines.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -637,10 +637,6 @@
</span><span class="cx"> #define ENABLE_NOTIFICATIONS 0
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if !defined(ENABLE_OPENCL)
-#define ENABLE_OPENCL 0
-#endif
-
</del><span class="cx"> #if !defined(ENABLE_OPENTYPE_VERTICAL)
</span><span class="cx"> #define ENABLE_OPENTYPE_VERTICAL 0
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/ChangeLog        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -1,3 +1,45 @@
</span><ins>+2015-11-01  Darin Adler  &lt;darin@apple.com&gt;
+
+        Remove some dead and unneeded code (ScrollbarThemeSafari, RenderThemeSafari, OPENCL, a little color space logic)
+        https://bugs.webkit.org/show_bug.cgi?id=150783
+
+        Reviewed by Tim Horton.
+
+        * PlatformWinCairo.cmake: Removed ScrollbarThemeSafari.cpp, no reason to compile it.
+
+        * platform/graphics/ca/GraphicsLayerCA.cpp:
+        (WebCore::GraphicsLayerCA::setContentsToImage): Removed the code that set a color space
+        on an image if it's set to device color space. This has been dead code for many releases
+        of OS X and iOS at this point.
+
+        * platform/graphics/filters/FEColorMatrix.h: Removed some ENABLE(OPENCL)-only code.
+        * platform/graphics/filters/FEFlood.h: Ditto.
+        * platform/graphics/filters/FEMerge.h: Ditto.
+        * platform/graphics/filters/FETurbulence.h: Ditto.
+        * platform/graphics/filters/FilterEffect.cpp:
+        (WebCore::FilterEffect::applyAll): Removed.
+        (WebCore::FilterEffect::apply): Removed ENABLE(OPENCL)-only code.
+        (WebCore::FilterEffect::platformApplyOpenCL): Removed.
+        (WebCore::FilterEffect::clearResult): Removed ENABLE(OPENCL)-only code.
+        (WebCore::FilterEffect::asImageBuffer): Ditto.
+        (WebCore::FilterEffect::openCLImageToImageBuffer): Removed.
+        (WebCore::FilterEffect::createOpenCLImageResult): Removed.
+        (WebCore::FilterEffect::transformResultColorSpace): Removed ENABLE(OPENCL)-only code.
+
+        * platform/graphics/filters/FilterEffect.h: Removed ENABLE(OPENCL)-only code.
+        * platform/graphics/filters/SourceAlpha.h: Ditto.
+        * platform/graphics/filters/SourceGraphic.h: Ditto.
+
+        * platform/win/ScrollbarThemeSafari.cpp: Removed.
+        * platform/win/ScrollbarThemeSafari.h: Removed.
+
+        * rendering/RenderThemeMac.mm: Removed an obsolete comment.
+
+        * rendering/RenderThemeSafari.cpp: Removed.
+        * rendering/RenderThemeSafari.h: Removed.
+
+        * svg/graphics/filters/SVGFEImage.h: Removed ENABLE(OPENCL)-only code.
+
</ins><span class="cx"> 2015-11-01  Andreas Kling  &lt;akling@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Move the ResourceUsageOverlay out of the way by default.
</span></span></pre></div>
<a id="trunkSourceWebCorePlatformWinCairocmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/PlatformWinCairo.cmake (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/PlatformWinCairo.cmake        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/PlatformWinCairo.cmake        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -138,7 +138,6 @@
</span><span class="cx">     platform/win/LoggingWin.cpp
</span><span class="cx">     platform/win/PEImage.cpp
</span><span class="cx">     platform/win/PathWalker.cpp
</span><del>-    platform/win/ScrollbarThemeSafari.cpp
</del><span class="cx">     platform/win/WebCoreBundleWin.cpp
</span><span class="cx">     platform/win/WebCoreTextRenderer.cpp
</span><span class="cx">     platform/win/WindowMessageBroadcaster.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -994,17 +994,6 @@
</span><span class="cx">         m_uncorrectedContentsImage = newImage;
</span><span class="cx">         m_pendingContentsImage = newImage;
</span><span class="cx"> 
</span><del>-#if !PLATFORM(WIN) &amp;&amp; !PLATFORM(IOS)
-        CGColorSpaceRef colorSpace = CGImageGetColorSpace(m_pendingContentsImage.get());
-
-        static CGColorSpaceRef deviceRGB = CGColorSpaceCreateDeviceRGB();
-        if (colorSpace &amp;&amp; CFEqual(colorSpace, deviceRGB)) {
-            // CoreGraphics renders images tagged with DeviceRGB using the color space of the main display. When we hand such
-            // images to CA we need to tag them similarly so CA rendering matches CG rendering.
-            static CGColorSpaceRef genericRGB = CGDisplayCopyColorSpace(kCGDirectMainDisplay);
-            m_pendingContentsImage = adoptCF(CGImageCreateCopyWithColorSpace(m_pendingContentsImage.get(), genericRGB));
-        }
-#endif
</del><span class="cx">         m_contentsLayerPurpose = ContentsLayerForImage;
</span><span class="cx">         if (!m_contentsLayer)
</span><span class="cx">             noteSublayersChanged();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFEColorMatrixh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -48,9 +48,6 @@
</span><span class="cx">     bool setValues(const Vector&lt;float&gt;&amp;);
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware();
</span><del>-#if ENABLE(OPENCL)
-    virtual bool platformApplyOpenCL();
-#endif
</del><span class="cx">     virtual void dump();
</span><span class="cx"> 
</span><span class="cx">     virtual TextStream&amp; externalRepresentation(TextStream&amp;, int indention) const;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFEFloodh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FEFlood.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FEFlood.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/FEFlood.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -46,9 +46,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware() override;
</span><del>-#if ENABLE(OPENCL)
-    virtual bool platformApplyOpenCL() override;
-#endif
</del><span class="cx">     virtual void dump() override;
</span><span class="cx"> 
</span><span class="cx">     virtual void determineAbsolutePaintRect() override { setAbsolutePaintRect(enclosingIntRect(maxEffectRect())); }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFEMergeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FEMerge.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FEMerge.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/FEMerge.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -33,9 +33,6 @@
</span><span class="cx">     static Ref&lt;FEMerge&gt; create(Filter&amp;);
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware();
</span><del>-#if ENABLE(OPENCL)
-    virtual bool platformApplyOpenCL();
-#endif
</del><span class="cx">     virtual void dump();
</span><span class="cx"> 
</span><span class="cx">     virtual TextStream&amp; externalRepresentation(TextStream&amp;, int indention) const;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFETurbulenceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FETurbulence.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FETurbulence.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/FETurbulence.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -60,9 +60,6 @@
</span><span class="cx">     static void fillRegionWorker(void*);
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware();
</span><del>-#if ENABLE(OPENCL)
-    virtual bool platformApplyOpenCL();
-#endif
</del><span class="cx">     virtual void dump();
</span><span class="cx">     
</span><span class="cx">     virtual void determineAbsolutePaintRect() { setAbsolutePaintRect(enclosingIntRect(maxEffectRect())); }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFilterEffectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -114,24 +114,6 @@
</span><span class="cx">     return collectEffects(this, allEffects);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(OPENCL)
-void FilterEffect::applyAll()
-{
-    if (hasResult())
-        return;
-    FilterContextOpenCL* context = FilterContextOpenCL::context();
-    if (context) {
-        apply();
-        if (!context-&gt;inError())
-            return;
-        clearResultsRecursive();
-        context-&gt;destroyContext();
-    }
-    // Software code path.
-    apply();
-}
-#endif
-
</del><span class="cx"> void FilterEffect::apply()
</span><span class="cx"> {
</span><span class="cx">     if (hasResult())
</span><span class="lines">@@ -159,38 +141,9 @@
</span><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     // Add platform specific apply functions here and return earlier.
</span><del>-#if ENABLE(OPENCL)
-    if (platformApplyOpenCL())
-        return;
-#endif
</del><span class="cx">     platformApplySoftware();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(OPENCL)
-// This function will be changed to abstract virtual when all filters are landed.
-bool FilterEffect::platformApplyOpenCL()
-{
-    if (!FilterContextOpenCL::context())
-        return false;
-
-    unsigned size = m_inputEffects.size();
-    for (unsigned i = 0; i &lt; size; ++i) {
-        FilterEffect* in = m_inputEffects.at(i).get();
-        // Software code path expects that at least one of the following fileds is valid.
-        if (!in-&gt;m_imageBufferResult &amp;&amp; !in-&gt;m_unmultipliedImageResult &amp;&amp; !in-&gt;m_premultipliedImageResult)
-            in-&gt;asImageBuffer();
-    }
-
-    platformApplySoftware();
-    ImageBuffer* sourceImage = asImageBuffer();
-    if (sourceImage) {
-        RefPtr&lt;Uint8ClampedArray&gt; sourceImageData = sourceImage-&gt;getUnmultipliedImageData(IntRect(IntPoint(), sourceImage-&gt;internalSize()));
-        createOpenCLImageResult(sourceImageData-&gt;data());
-    }
-    return true;
-}
-#endif
-
</del><span class="cx"> void FilterEffect::forceValidPreMultipliedPixels()
</span><span class="cx"> {
</span><span class="cx">     // Must operate on pre-multiplied results; other formats cannot have invalid pixels.
</span><span class="lines">@@ -248,10 +201,6 @@
</span><span class="cx">         m_unmultipliedImageResult = nullptr;
</span><span class="cx">     if (m_premultipliedImageResult)
</span><span class="cx">         m_premultipliedImageResult = nullptr;
</span><del>-#if ENABLE(OPENCL)
-    if (m_openCLImageResult)
-        m_openCLImageResult = nullptr;
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void FilterEffect::clearResultsRecursive()
</span><span class="lines">@@ -272,10 +221,6 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     if (m_imageBufferResult)
</span><span class="cx">         return m_imageBufferResult.get();
</span><del>-#if ENABLE(OPENCL)
-    if (m_openCLImageResult)
-        return openCLImageToImageBuffer();
-#endif
</del><span class="cx">     m_imageBufferResult = ImageBuffer::create(m_absolutePaintRect.size(), m_filter.renderingMode(), m_filter.filterScale(), m_resultColorSpace);
</span><span class="cx">     if (!m_imageBufferResult)
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -288,37 +233,6 @@
</span><span class="cx">     return m_imageBufferResult.get();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(OPENCL)
-ImageBuffer* FilterEffect::openCLImageToImageBuffer()
-{
-    FilterContextOpenCL* context = FilterContextOpenCL::context();
-    ASSERT(context);
-
-    if (context-&gt;inError())
-        return nullptr;
-
-    size_t origin[3] = { 0, 0, 0 };
-    size_t region[3] = { m_absolutePaintRect.width(), m_absolutePaintRect.height(), 1 };
-
-    RefPtr&lt;Uint8ClampedArray&gt; destinationPixelArray = Uint8ClampedArray::create(m_absolutePaintRect.width() * m_absolutePaintRect.height() * 4);
-
-    if (context-&gt;isFailed(clFinish(context-&gt;commandQueue())))
-        return nullptr;
-
-    if (context-&gt;isFailed(clEnqueueReadImage(context-&gt;commandQueue(), m_openCLImageResult, CL_TRUE, origin, region, 0, 0, destinationPixelArray-&gt;data(), 0, 0, 0)))
-        return nullptr;
-
-    m_imageBufferResult = ImageBuffer::create(m_absolutePaintRect.size(), m_filter.renderingMode());
-    if (!m_imageBufferResult)
-        return nullptr;
-
-    IntRect destinationRect(IntPoint(), m_absolutePaintRect.size());
-    m_imageBufferResult-&gt;putByteArray(Unmultiplied, destinationPixelArray.get(), destinationRect.size(), destinationRect, IntPoint());
-
-    return m_imageBufferResult.get();
-}
-#endif
-
</del><span class="cx"> PassRefPtr&lt;Uint8ClampedArray&gt; FilterEffect::asUnmultipliedImage(const IntRect&amp; rect)
</span><span class="cx"> {
</span><span class="cx">     IntSize scaledSize(rect.size());
</span><span class="lines">@@ -497,36 +411,6 @@
</span><span class="cx">     return m_premultipliedImageResult.get();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(OPENCL)
-OpenCLHandle FilterEffect::createOpenCLImageResult(uint8_t* source)
-{
-    FilterContextOpenCL* context = FilterContextOpenCL::context();
-    ASSERT(context);
-
-    if (context-&gt;inError())
-        return 0;
-
-    ASSERT(!hasResult());
-    cl_image_format clImageFormat;
-    clImageFormat.image_channel_order = CL_RGBA;
-    clImageFormat.image_channel_data_type = CL_UNORM_INT8;
-
-    int errorCode = 0;
-#ifdef CL_API_SUFFIX__VERSION_1_2
-    cl_image_desc imageDescriptor = { CL_MEM_OBJECT_IMAGE2D, m_absolutePaintRect.width(), m_absolutePaintRect.height(), 0, 0, 0, 0, 0, 0, 0};
-    m_openCLImageResult = clCreateImage(context-&gt;deviceContext(), CL_MEM_READ_WRITE | (source ? CL_MEM_COPY_HOST_PTR : 0),
-        &amp;clImageFormat, &amp;imageDescriptor, source, &amp;errorCode);
-#else
-    m_openCLImageResult = clCreateImage2D(context-&gt;deviceContext(), CL_MEM_READ_WRITE | (source ? CL_MEM_COPY_HOST_PTR : 0),
-        &amp;clImageFormat, m_absolutePaintRect.width(), m_absolutePaintRect.height(), 0, source, &amp;errorCode);
-#endif
-    if (context-&gt;isFailed(errorCode))
-        return 0;
-
-    return m_openCLImageResult;
-}
-#endif
-
</del><span class="cx"> void FilterEffect::transformResultColorSpace(ColorSpace dstColorSpace)
</span><span class="cx"> {
</span><span class="cx"> #if USE(CG)
</span><span class="lines">@@ -536,24 +420,10 @@
</span><span class="cx">     if (!hasResult() || dstColorSpace == m_resultColorSpace)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-#if ENABLE(OPENCL)
-    if (openCLImage()) {
-        if (m_imageBufferResult)
-            m_imageBufferResult = nullptr;
-        FilterContextOpenCL* context = FilterContextOpenCL::context();
-        ASSERT(context);
-        context-&gt;openCLTransformColorSpace(m_openCLImageResult, absolutePaintRect(), m_resultColorSpace, dstColorSpace);
-    } else {
-#endif
</del><ins>+    // FIXME: We can avoid this potentially unnecessary ImageBuffer conversion by adding
+    // color space transform support for the {pre,un}multiplied arrays.
+    asImageBuffer()-&gt;transformColorSpace(m_resultColorSpace, dstColorSpace);
</ins><span class="cx"> 
</span><del>-        // FIXME: We can avoid this potentially unnecessary ImageBuffer conversion by adding
-        // color space transform support for the {pre,un}multiplied arrays.
-        asImageBuffer()-&gt;transformColorSpace(m_resultColorSpace, dstColorSpace);
-
-#if ENABLE(OPENCL)
-    }
-#endif
-
</del><span class="cx">     m_resultColorSpace = dstColorSpace;
</span><span class="cx"> 
</span><span class="cx">     if (m_unmultipliedImageResult)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFilterEffecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FilterEffect.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FilterEffect.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterEffect.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -25,19 +25,11 @@
</span><span class="cx"> #include &quot;ColorSpace.h&quot;
</span><span class="cx"> #include &quot;FloatRect.h&quot;
</span><span class="cx"> #include &quot;IntRect.h&quot;
</span><del>-
</del><span class="cx"> #include &lt;runtime/Uint8ClampedArray.h&gt;
</span><del>-
-#include &lt;wtf/HashSet.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> 
</span><del>-#if ENABLE(OPENCL)
-#include &quot;FilterContextOpenCL.h&quot;
-#endif
-
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class Filter;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersSourceAlphah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -32,9 +32,6 @@
</span><span class="cx">     static const AtomicString&amp; effectName();
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware();
</span><del>-#if ENABLE(OPENCL)
-    virtual bool platformApplyOpenCL();
-#endif
</del><span class="cx">     virtual void dump();
</span><span class="cx"> 
</span><span class="cx">     virtual void determineAbsolutePaintRect();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersSourceGraphich"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -33,9 +33,6 @@
</span><span class="cx">     static const AtomicString&amp; effectName();
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware();
</span><del>-#if ENABLE(OPENCL)
-    virtual bool platformApplyOpenCL();
-#endif
</del><span class="cx">     virtual void dump();
</span><span class="cx"> 
</span><span class="cx">     virtual void determineAbsolutePaintRect();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformwinScrollbarThemeSafaricpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.cpp (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.cpp        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.cpp        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -1,257 +0,0 @@
</span><del>-/*
- * Copyright (C) 2008 Apple Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#include &quot;config.h&quot;
-#include &quot;ScrollbarThemeSafari.h&quot;
-
-#if USE(SAFARI_THEME)
-
-#include &quot;GraphicsContext.h&quot;
-#include &quot;IntRect.h&quot;
-#include &quot;Page.h&quot;
-#include &quot;PlatformMouseEvent.h&quot;
-#include &quot;ScrollableArea.h&quot;
-#include &quot;Scrollbar.h&quot;
-#include &quot;ScrollbarThemeWin.h&quot;
-#include &quot;Settings.h&quot;
-#include &quot;SoftLinking.h&quot;
-
-#include &lt;CoreGraphics/CoreGraphics.h&gt;
-
-// If you have an empty placeholder SafariThemeConstants.h, then include SafariTheme.h
-// This is a workaround until a version of WebKitSupportLibrary is released with an updated SafariThemeConstants.h 
-#include &lt;SafariTheme/SafariThemeConstants.h&gt;
-#ifndef SafariThemeConstants_h
-#include &lt;SafariTheme/SafariTheme.h&gt;
-#endif
-
-// FIXME: There are repainting problems due to Aqua scroll bar buttons' visual overflow.
-
-using namespace std;
-
-namespace WebCore {
-
-using namespace SafariTheme;
-
-ScrollbarTheme&amp; ScrollbarTheme::nativeTheme()
-{
-    static ScrollbarThemeSafari safariTheme;
-    static ScrollbarThemeWin windowsTheme;
-    if (Settings::shouldPaintNativeControls())
-        return windowsTheme;
-    return safariTheme;
-}
-
-// FIXME: Get these numbers from CoreUI.
-static int cScrollbarThickness[] = { 15, 11 };
-static int cRealButtonLength[] = { 28, 21 };
-static int cButtonInset[] = { 14, 11 };
-static int cButtonHitInset[] = { 3, 2 };
-// cRealButtonLength - cButtonInset
-static int cButtonLength[] = { 14, 10 };
-static int cThumbMinLength[] = { 26, 20 };
-
-#ifdef DEBUG_ALL
-SOFT_LINK_DEBUG_LIBRARY(SafariTheme)
-#else
-SOFT_LINK_LIBRARY(SafariTheme)
-#endif
-
-SOFT_LINK(SafariTheme, paintThemePart, void, __stdcall, 
-            (ThemePart part, CGContextRef context, const CGRect&amp; rect, NSControlSize size, ThemeControlState state),
-            (part, context, rect, size, state))
-
-static ScrollbarControlState scrollbarControlStateFromThemeState(ThemeControlState state)
-{
-    ScrollbarControlState s = 0;
-    if (state &amp; ActiveState)
-        s |= ActiveScrollbarState;
-    if (state &amp; EnabledState)
-        s |= EnabledScrollbarState;
-    if (state &amp; PressedState)
-        s |= PressedScrollbarState;
-    return s;
-}
-
-ScrollbarThemeSafari::~ScrollbarThemeSafari()
-{
-}
-
-int ScrollbarThemeSafari::scrollbarThickness(ScrollbarControlSize controlSize)
-{
-    return cScrollbarThickness[controlSize];
-}
-
-bool ScrollbarThemeSafari::hasButtons(Scrollbar&amp; scrollbar)
-{
-    return scrollbar.enabled() &amp;&amp; (scrollbar.orientation() == HorizontalScrollbar ? 
-             scrollbar.width() : 
-             scrollbar.height()) &gt;= 2 * (cRealButtonLength[scrollbar.controlSize()] - cButtonHitInset[scrollbar.controlSize()]);
-}
-
-bool ScrollbarThemeSafari::hasThumb(Scrollbar&amp; scrollbar)
-{
-    return scrollbar.enabled() &amp;&amp; (scrollbar.orientation() == HorizontalScrollbar ? 
-             scrollbar.width() : 
-             scrollbar.height()) &gt;= 2 * cButtonInset[scrollbar.controlSize()] + cThumbMinLength[scrollbar.controlSize()] + 1;
-}
-
-static IntRect buttonRepaintRect(const IntRect&amp; buttonRect, ScrollbarOrientation orientation, ScrollbarControlSize controlSize, bool start)
-{
-    IntRect paintRect(buttonRect);
-    if (orientation == HorizontalScrollbar) {
-        paintRect.setWidth(cRealButtonLength[controlSize]);
-        if (!start)
-            paintRect.setX(buttonRect.x() - (cRealButtonLength[controlSize] - buttonRect.width()));
-    } else {
-        paintRect.setHeight(cRealButtonLength[controlSize]);
-        if (!start)
-            paintRect.setY(buttonRect.y() - (cRealButtonLength[controlSize] - buttonRect.height()));
-    }
-
-    return paintRect;
-}
-
-IntRect ScrollbarThemeSafari::backButtonRect(Scrollbar&amp; scrollbar, ScrollbarPart part, bool painting)
-{
-    IntRect result;
-
-    // Windows just has single arrows.
-    if (part == BackButtonEndPart)
-        return result;
-
-    int thickness = scrollbarThickness(scrollbar.controlSize());
-    if (scrollbar.orientation() == HorizontalScrollbar)
-        result = IntRect(scrollbar.x(), scrollbar.y(), cButtonLength[scrollbar.controlSize()], thickness);
-    else
-        result = IntRect(scrollbar.x(), scrollbar.y(), thickness, cButtonLength[scrollbar.controlSize()]);
-    if (painting)
-        return buttonRepaintRect(result, scrollbar.orientation(), scrollbar.controlSize(), true);
-    return result;
-}
-
-IntRect ScrollbarThemeSafari::forwardButtonRect(Scrollbar&amp; scrollbar, ScrollbarPart part, bool painting)
-{
-    IntRect result;
-    
-    // Windows just has single arrows.
-    if (part == ForwardButtonStartPart)
-        return result;
-
-    int thickness = scrollbarThickness(scrollbar.controlSize());
-    if (scrollbar.orientation() == HorizontalScrollbar)
-        result = IntRect(scrollbar.x() + scrollbar.width() - cButtonLength[scrollbar.controlSize()], scrollbar.y(), cButtonLength[scrollbar.controlSize()], thickness);
-    else
-        result = IntRect(scrollbar.x(), scrollbar.y() + scrollbar.height() - cButtonLength[scrollbar.controlSize()], thickness, cButtonLength[scrollbar.controlSize()]);
-    if (painting)
-        return buttonRepaintRect(result, scrollbar.orientation(), scrollbar.controlSize(), false);
-    return result;
-}
-
-static IntRect trackRepaintRect(const IntRect&amp; trackRect, ScrollbarOrientation orientation, ScrollbarControlSize controlSize)
-{
-    IntRect paintRect(trackRect);
-    if (orientation == HorizontalScrollbar)
-        paintRect.inflateX(cButtonLength[controlSize]);
-    else
-        paintRect.inflateY(cButtonLength[controlSize]);
-
-    return paintRect;
-}
-
-IntRect ScrollbarThemeSafari::trackRect(Scrollbar&amp; scrollbar, bool painting)
-{
-    if (painting || !hasButtons(scrollbar))
-        return scrollbar.frameRect();
-    
-    IntRect result;
-    int thickness = scrollbarThickness(scrollbar.controlSize());
-    if (scrollbar.orientation() == HorizontalScrollbar) 
-        return IntRect(scrollbar.x() + cButtonLength[scrollbar.controlSize()], scrollbar.y(), scrollbar.width() - 2 * cButtonLength[scrollbar.controlSize()], thickness);
-    return IntRect(scrollbar.x(), scrollbar.y() + cButtonLength[scrollbar.controlSize()], thickness, scrollbar.height() - 2 * cButtonLength[scrollbar.controlSize()]);
-}
-
-int ScrollbarThemeSafari::minimumThumbLength(Scrollbar&amp; scrollbar)
-{
-    return cThumbMinLength[scrollbar.controlSize()];
-}
-
-bool ScrollbarThemeSafari::shouldCenterOnThumb(Scrollbar&amp;, const PlatformMouseEvent&amp; evt)
-{
-    return evt.shiftKey() &amp;&amp; evt.button() == LeftButton;
-}
-
-void ScrollbarThemeSafari::paintTrackBackground(GraphicsContext&amp; graphicsContext, Scrollbar&amp; scrollbar, const IntRect&amp; trackRect)
-{
-    if (!SafariThemeLibrary())
-        return;
-    NSControlSize size = scrollbar.controlSize() == SmallScrollbar ? NSSmallControlSize : NSRegularControlSize;
-    ThemeControlState state = 0;
-    if (scrollbar.isScrollableAreaActive())
-        state |= ActiveState;
-    if (hasButtons(scrollbar))
-        state |= EnabledState;
-    paintThemePart(scrollbar.orientation() == VerticalScrollbar ? VScrollTrackPart : HScrollTrackPart, graphicsContext.platformContext(), trackRect, size, state); 
-}
-
-void ScrollbarThemeSafari::paintButton(GraphicsContext&amp; graphicsContext, Scrollbar&amp; scrollbar, const IntRect&amp; buttonRect, ScrollbarPart part)
-{
-    if (!SafariThemeLibrary())
-        return;
-    NSControlSize size = scrollbar.controlSize() == SmallScrollbar ? NSSmallControlSize : NSRegularControlSize;
-    ThemeControlState state = 0;
-    if (scrollbar.isScrollableAreaActive())
-        state |= ActiveState;
-    if (hasButtons(scrollbar))
-        state |= EnabledState;
-    if (scrollbar.pressedPart() == part)
-        state |= PressedState;
-    if (part == BackButtonStartPart)
-        paintThemePart(scrollbar.orientation() == VerticalScrollbar ? ScrollUpArrowPart : ScrollLeftArrowPart, graphicsContext.platformContext(),
-                       buttonRect, size, state);
-    else if (part == ForwardButtonEndPart)
-        paintThemePart(scrollbar.orientation() == VerticalScrollbar ? ScrollDownArrowPart : ScrollRightArrowPart, graphicsContext.platformContext(),
-                       buttonRect, size, state);
-}
-
-void ScrollbarThemeSafari::paintThumb(GraphicsContext&amp; graphicsContext, Scrollbar&amp; scrollbar, const IntRect&amp; thumbRect)
-{
-    if (!SafariThemeLibrary())
-        return;
-    NSControlSize size = scrollbar.controlSize() == SmallScrollbar ? NSSmallControlSize : NSRegularControlSize;
-    ThemeControlState state = 0;
-    if (scrollbar.isScrollableAreaActive())
-        state |= ActiveState;
-    if (hasThumb(scrollbar))
-        state |= EnabledState;
-    if (scrollbar.pressedPart() == ThumbPart)
-        state |= PressedState;
-    paintThemePart(scrollbar.orientation() == VerticalScrollbar ? VScrollThumbPart : HScrollThumbPart, graphicsContext.platformContext(), 
-                   thumbRect, size, state);
-}
-
-}
-
-#endif
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformwinScrollbarThemeSafarih"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/platform/win/ScrollbarThemeSafari.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -1,63 +0,0 @@
</span><del>-/*
- * Copyright (C) 2008 Apple Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#ifndef ScrollbarThemeSafari_h
-#define ScrollbarThemeSafari_h
-
-#if USE(SAFARI_THEME)
-
-#include &quot;ScrollbarThemeComposite.h&quot;
-
-namespace WebCore {
-
-class ScrollbarThemeSafari : public ScrollbarThemeComposite {
-public:
-    virtual ~ScrollbarThemeSafari();
-
-    virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar);
-    
-    virtual bool supportsControlTints() const { return true; }
-
-protected:
-    virtual bool hasButtons(Scrollbar&amp;);
-    virtual bool hasThumb(Scrollbar&amp;);
-
-    virtual IntRect backButtonRect(Scrollbar&amp;, ScrollbarPart, bool painting = false);
-    virtual IntRect forwardButtonRect(Scrollbar&amp;, ScrollbarPart, bool painting = false);
-    virtual IntRect trackRect(Scrollbar&amp;, bool painting = false);
-
-    virtual int minimumThumbLength(Scrollbar&amp;);
-    
-    virtual bool shouldCenterOnThumb(Scrollbar&amp;, const PlatformMouseEvent&amp;);
-
-    virtual void paintTrackBackground(GraphicsContext&amp;, Scrollbar&amp;, const IntRect&amp;);
-    virtual void paintButton(GraphicsContext&amp;, Scrollbar&amp;, const IntRect&amp;, ScrollbarPart);
-    virtual void paintThumb(GraphicsContext&amp;, Scrollbar&amp;, const IntRect&amp;);
-};
-
-}
-#endif
-
-#endif
</del></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeMac.mm (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeMac.mm        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/rendering/RenderThemeMac.mm        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -114,8 +114,6 @@
</span><span class="cx"> 
</span><span class="cx"> // The methods in this file are specific to the Mac OS X platform.
</span><span class="cx"> 
</span><del>-// FIXME: The platform-independent code in this class should be factored out and merged with RenderThemeSafari.
-
</del><span class="cx"> // We estimate the animation rate of a Mac OS X progress bar is 33 fps.
</span><span class="cx"> // Hard code the value here because we haven't found API for it.
</span><span class="cx"> const double progressAnimationFrameRate = 0.033;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeSafaricpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/rendering/RenderThemeSafari.cpp (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeSafari.cpp        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/rendering/RenderThemeSafari.cpp        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -1,1211 +0,0 @@
</span><del>-/*
- * Copyright (C) 2007, 2008, 2009, 2013 Apple Inc.
- * Copyright (C) 2009 Kenneth Rohde Christiansen
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#include &quot;config.h&quot;
-#include &quot;RenderThemeSafari.h&quot;
-#include &quot;RenderThemeWin.h&quot;
-#include &quot;Settings.h&quot;
-
-#if USE(SAFARI_THEME)
-
-#include &quot;CSSFontSelector.h&quot;
-#include &quot;CSSValueKeywords.h&quot;
-#include &quot;Document.h&quot;
-#include &quot;Element.h&quot;
-#include &quot;FloatRoundedRect.h&quot;
-#include &quot;Frame.h&quot;
-#include &quot;FrameView.h&quot;
-#include &quot;GraphicsContextCG.h&quot;
-#include &quot;HTMLInputElement.h&quot;
-#include &quot;HTMLMediaElement.h&quot;
-#include &quot;HTMLMeterElement.h&quot;
-#include &quot;HTMLNames.h&quot;
-#include &quot;PaintInfo.h&quot;
-#include &quot;RenderMediaControls.h&quot;
-#include &quot;RenderMeter.h&quot;
-#include &quot;RenderSlider.h&quot;
-#include &quot;RenderView.h&quot;
-#include &quot;SoftLinking.h&quot;
-#include &quot;StyleResolver.h&quot;
-#include &quot;UserAgentStyleSheets.h&quot;
-#include &quot;WebCoreBundleWin.h&quot;
-#include &lt;CoreGraphics/CoreGraphics.h&gt;
-#include &lt;wtf/RetainPtr.h&gt;
-
-using std::min;
-
-// FIXME: The platform-independent code in this class should be factored out and merged with RenderThemeMac. 

-namespace WebCore {
-
-using namespace HTMLNames;
-using namespace SafariTheme;
-
-enum {
-    topMargin,
-    rightMargin,
-    bottomMargin,
-    leftMargin
-};
-
-enum {
-    topPadding,
-    rightPadding,
-    bottomPadding,
-    leftPadding
-};
-
-Ref&lt;RenderTheme&gt; RenderThemeSafari::create()
-{
-    return adoptRef(*new RenderThemeSafari);
-}
-
-PassRefPtr&lt;RenderTheme&gt; RenderTheme::themeForPage(Page* page)
-{
-    static RenderTheme&amp; safariTheme = RenderThemeSafari::create().leakRef();
-    static RenderTheme&amp; windowsTheme = RenderThemeWin::create().leakRef();
-
-    // FIXME: This is called before Settings has been initialized by WebKit, so will return a
-    // potentially wrong answer the very first time it's called (see
-    // &lt;https://bugs.webkit.org/show_bug.cgi?id=26493&gt;).
-    if (Settings::shouldPaintNativeControls()) {
-        RenderTheme::setCustomFocusRingColor(safariTheme-&gt;platformFocusRingColor());
-        return &amp;windowsTheme;
-    }
-    return &amp;safariTheme;
-}
-
-#ifdef DEBUG_ALL
-SOFT_LINK_DEBUG_LIBRARY(SafariTheme)
-#else
-SOFT_LINK_LIBRARY(SafariTheme)
-#endif
-
-SOFT_LINK(SafariTheme, paintThemePart, void, __stdcall, (ThemePart part, CGContextRef context, const CGRect&amp; rect, NSControlSize size, ThemeControlState state), (part, context, rect, size, state))
-#if defined(SAFARI_THEME_VERSION) &amp;&amp; SAFARI_THEME_VERSION &gt;= 2
-SOFT_LINK(SafariTheme, STPaintProgressIndicator, void, APIENTRY, (ProgressIndicatorType type, CGContextRef context, const CGRect&amp; rect, NSControlSize size, ThemeControlState state, float value), (type, context, rect, size, state, value))
-#endif
-SOFT_LINK_OPTIONAL(SafariTheme, STCopyThemeColor, CGColorRef, APIENTRY, (unsigned color, SafariTheme::ThemeControlState));
-
-static const unsigned stFocusRingColorID = 4;
-
-static const unsigned aquaFocusRingColor = 0xFF7DADD9;
-
-static RGBA32 makeRGBAFromCGColor(CGColorRef color)
-{
-    const CGFloat* components = CGColorGetComponents(color);
-    return makeRGBA(255 * components[0], 255 * components[1], 255 * components[2], 255 * components[3]);
-}
-
-ThemeControlState RenderThemeSafari::determineState(const RenderObject&amp; o) const
-{
-    ThemeControlState result = 0;
-    if (isActive(o))
-        result |= SafariTheme::ActiveState;
-    if (isEnabled(o) &amp;&amp; !isReadOnlyControl(o))
-        result |= SafariTheme::EnabledState;
-    if (isPressed(o))
-        result |= SafariTheme::PressedState;
-    if (isChecked(o))
-        result |= SafariTheme::CheckedState;
-    if (isIndeterminate(o))
-        result |= SafariTheme::IndeterminateCheckedState;
-    if (isFocused(o))
-        result |= SafariTheme::FocusedState;
-    if (isDefault(o))
-        result |= SafariTheme::DefaultState;
-    return result;
-}
-
-static NSControlSize controlSizeFromRect(const IntRect&amp; rect, const IntSize sizes[])
-{
-    if (sizes[NSRegularControlSize].height() == rect.height())
-        return NSRegularControlSize;
-    else if (sizes[NSMiniControlSize].height() == rect.height())
-        return NSMiniControlSize;
-    
-    return NSSmallControlSize;
-}
-
-RenderThemeSafari::RenderThemeSafari()
-{
-}
-
-RenderThemeSafari::~RenderThemeSafari()
-{
-}
-
-Color RenderThemeSafari::platformActiveSelectionBackgroundColor() const
-{
-    return Color(181, 213, 255);
-}
-
-Color RenderThemeSafari::platformInactiveSelectionBackgroundColor() const
-{
-    return Color(212, 212, 212);
-}
-
-Color RenderThemeSafari::activeListBoxSelectionBackgroundColor() const
-{
-    // FIXME: This should probably just be a darker version of the platformActiveSelectionBackgroundColor
-    return Color(56, 117, 215);
-}
-
-Color RenderThemeSafari::platformFocusRingColor() const
-{
-    static Color focusRingColor;
-
-    if (!focusRingColor.isValid()) {
-        if (STCopyThemeColorPtr()) {
-            RetainPtr&lt;CGColorRef&gt; color = adoptCF(STCopyThemeColorPtr()(stFocusRingColorID, SafariTheme::ActiveState));
-            focusRingColor = makeRGBAFromCGColor(color.get());
-        }
-        if (!focusRingColor.isValid())
-            focusRingColor = aquaFocusRingColor;
-    }
-
-    return focusRingColor;
-}
-
-static float systemFontSizeForControlSize(NSControlSize controlSize)
-{
-    static float sizes[] = { 13.0f, 11.0f, 9.0f };
-    
-    return sizes[controlSize];
-}
-
-void RenderThemeSafari::updateCachedSystemFontDescription(CSSValueID valueID, FontCascadeDescription&amp; fontDescription) const
-{
-    float fontSize;
-    switch (valueID) {
-    case CSSValueSmallCaption:
-        fontSize = systemFontSizeForControlSize(NSSmallControlSize);
-        break;
-    case CSSValueMenu:
-        fontSize = systemFontSizeForControlSize(NSRegularControlSize);
-        break;
-    case CSSValueStatusBar:
-        fontSize = 10.0f;
-        break;
-    case CSSValueWebkitMiniControl:
-        fontSize = systemFontSizeForControlSize(NSMiniControlSize);
-        break;
-    case CSSValueWebkitSmallControl:
-        fontSize = systemFontSizeForControlSize(NSSmallControlSize);
-        break;
-    case CSSValueWebkitControl:
-        fontSize = systemFontSizeForControlSize(NSRegularControlSize);
-        break;
-    default:
-        fontSize = 13.0f;
-    }
-
-    if (!fontSize)
-        return;
-
-    fontDescription.setIsAbsoluteSize(true);
-    fontDescription.setOneFamily(&quot;Lucida Grande&quot;);
-    fontDescription.setSpecifiedSize(fontSize);
-    fontDescription.setWeight(FontWeightNormal);
-    fontDescription.setItalic(FontItalicOff);
-}
-
-bool RenderThemeSafari::isControlStyled(const RenderStyle&amp; style, const BorderData&amp; border,
-                                     const FillLayer&amp; background, const Color&amp; backgroundColor) const
-{
-    // If we didn't find SafariTheme.dll we won't be able to paint any themed controls.
-    if (!SafariThemeLibrary())
-        return true;
-
-    if (style.appearance() == TextFieldPart || style.appearance() == TextAreaPart || style.appearance() == ListboxPart)
-        return style.border() != border;
-    return RenderTheme::isControlStyled(style, border, background, backgroundColor);
-}
-
-void RenderThemeSafari::adjustRepaintRect(const RenderObject&amp; o, IntRect&amp; r)
-{
-    NSControlSize controlSize = controlSizeForFont(o.style());
-
-    switch (o.style().appearance()) {
-        case CheckboxPart: {
-            // We inflate the rect as needed to account for padding included in the cell to accommodate the checkbox
-            // shadow&quot; and the check.  We don't consider this part of the bounds of the control in WebKit.
-            r = inflateRect(r, checkboxSizes()[controlSize], checkboxMargins(controlSize));
-            break;
-        }
-        case RadioPart: {
-            // We inflate the rect as needed to account for padding included in the cell to accommodate the checkbox
-            // shadow&quot; and the check.  We don't consider this part of the bounds of the control in WebKit.
-            r = inflateRect(r, radioSizes()[controlSize], radioMargins(controlSize));
-            break;
-        }
-        case PushButtonPart:
-        case DefaultButtonPart:
-        case ButtonPart: {
-            // We inflate the rect as needed to account for padding included in the cell to accommodate the checkbox
-            // shadow&quot; and the check.  We don't consider this part of the bounds of the control in WebKit.
-            if (r.height() &lt;= buttonSizes()[NSRegularControlSize].height())
-                r = inflateRect(r, buttonSizes()[controlSize], buttonMargins(controlSize));
-            break;
-        }
-        case MenulistPart: {
-            r = inflateRect(r, popupButtonSizes()[controlSize], popupButtonMargins(controlSize));
-            break;
-        }
-        default:
-            break;
-    }
-}
-
-IntRect RenderThemeSafari::inflateRect(const IntRect&amp; r, const IntSize&amp; size, const int* margins) const
-{
-    // Only do the inflation if the available width/height are too small.  Otherwise try to
-    // fit the glow/check space into the available box's width/height.
-    int widthDelta = r.width() - (size.width() + margins[leftMargin] + margins[rightMargin]);
-    int heightDelta = r.height() - (size.height() + margins[topMargin] + margins[bottomMargin]);
-    IntRect result(r);
-    if (widthDelta &lt; 0) {
-        result.setX(result.x() - margins[leftMargin]);
-        result.setWidth(result.width() - widthDelta);
-    }
-    if (heightDelta &lt; 0) {
-        result.setY(result.y() - margins[topMargin]);
-        result.setHeight(result.height() - heightDelta);
-    }
-    return result;
-}
-
-int RenderThemeSafari::baselinePosition(const RenderBox&amp; box) const
-{
-    if (box.style().appearance() == CheckboxPart || box.style().appearance() == RadioPart)
-        return box.marginTop() + box.height() - 2; // The baseline is 2px up from the bottom of the checkbox/radio in AppKit.
-    return RenderTheme::baselinePosition(box);
-}
-
-bool RenderThemeSafari::controlSupportsTints(const RenderObject&amp; o) const
-{
-    if (!isEnabled(o))
-        return false;
-
-    // Checkboxes only have tint when checked.
-    if (o.style().appearance() == CheckboxPart)
-        return isChecked(o);
-
-    // For now assume other controls have tint if enabled.
-    return true;
-}
-
-NSControlSize RenderThemeSafari::controlSizeForFont(RenderStyle&amp; style) const
-{
-    int fontSize = style.fontSize();
-    if (fontSize &gt;= 16)
-        return NSRegularControlSize;
-    if (fontSize &gt;= 11)
-        return NSSmallControlSize;
-    return NSMiniControlSize;
-}
-/*
-void RenderThemeSafari::setControlSize(NSCell* cell, const IntSize* sizes, const IntSize&amp; minSize)
-{
-    NSControlSize size;
-    if (minSize.width() &gt;= sizes[NSRegularControlSize].width() &amp;&amp;
-        minSize.height() &gt;= sizes[NSRegularControlSize].height())
-        size = NSRegularControlSize;
-    else if (minSize.width() &gt;= sizes[NSSmallControlSize].width() &amp;&amp;
-             minSize.height() &gt;= sizes[NSSmallControlSize].height())
-        size = NSSmallControlSize;
-    else
-        size = NSMiniControlSize;
-    if (size != [cell controlSize]) // Only update if we have to, since AppKit does work even if the size is the same.
-        [cell setControlSize:size];
-}
-*/
-IntSize RenderThemeSafari::sizeForFont(RenderStyle&amp; style, const IntSize* sizes) const
-{
-    return sizes[controlSizeForFont(style)];
-}
-
-IntSize RenderThemeSafari::sizeForSystemFont(RenderStyle&amp; style, const IntSize* sizes) const
-{
-    return sizes[controlSizeForSystemFont(style)];
-}
-
-void RenderThemeSafari::setSizeFromFont(RenderStyle&amp; style, const IntSize* sizes) const
-{
-    // FIXME: Check is flawed, since it doesn't take min-width/max-width into account.
-    IntSize size = sizeForFont(style, sizes);
-    if (style.width().isIntrinsicOrAuto() &amp;&amp; size.width() &gt; 0)
-        style.setWidth(Length(size.width(), Fixed));
-    if (style.height().isAuto() &amp;&amp; size.height() &gt; 0)
-        style.setHeight(Length(size.height(), Fixed));
-}
-
-void RenderThemeSafari::setFontFromControlSize(StyleResolver&amp; styleResolver, RenderStyle&amp; style, NSControlSize controlSize) const
-{
-    FontCascadeDescription fontDescription;
-    fontDescription.setIsAbsoluteSize(true);
-
-    float fontSize = systemFontSizeForControlSize(controlSize);
-    fontDescription.setOneFamily(&quot;Lucida Grande&quot;);
-    fontDescription.setComputedSize(fontSize);
-    fontDescription.setSpecifiedSize(fontSize);
-
-    // Reset line height
-    style.setLineHeight(RenderStyle::initialLineHeight());
-
-    if (style.setFontDescription(fontDescription))
-        style.fontCascade().update(&amp;styleResolver.document().fontSelector());
-}
-
-NSControlSize RenderThemeSafari::controlSizeForSystemFont(RenderStyle&amp; style) const
-{
-    int fontSize = style.fontSize();
-    if (fontSize &gt;= 13)
-        return NSRegularControlSize;
-    if (fontSize &gt;= 11)
-        return NSSmallControlSize;
-    return NSMiniControlSize;
-}
-
-bool RenderThemeSafari::paintCheckbox(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-
-    NSControlSize controlSize = controlSizeForFont(o.style());
-
-    IntRect inflatedRect = inflateRect(r, checkboxSizes()[controlSize], checkboxMargins(controlSize));  
-    paintThemePart(SafariTheme::CheckboxPart, paintInfo.context().platformContext(), inflatedRect, controlSize, determineState(o));
-
-    return false;
-}
-
-const IntSize* RenderThemeSafari::checkboxSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(14, 14), IntSize(12, 12), IntSize(10, 10) };
-    return sizes;
-}
-
-const int* RenderThemeSafari::checkboxMargins(NSControlSize controlSize) const
-{
-    static const int margins[3][4] =
-    {
-        { 2, 2, 2, 2 },
-        { 2, 2, 2, 1 },
-        { 1, 0, 0, 0 },
-    };
-    return margins[controlSize];
-}
-
-void RenderThemeSafari::setCheckboxSize(RenderStyle&amp; style) const
-{
-    // If the width and height are both specified, then we have nothing to do.
-    if (!style.width().isIntrinsicOrAuto() &amp;&amp; !style.height().isAuto())
-        return;
-
-    // Use the font size to determine the intrinsic width of the control.
-    setSizeFromFont(style, checkboxSizes());
-}
-
-bool RenderThemeSafari::paintRadio(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-
-    NSControlSize controlSize = controlSizeForFont(o.style());

-    IntRect inflatedRect = inflateRect(r, radioSizes()[controlSize], radioMargins(controlSize));    
-    paintThemePart(RadioButtonPart, paintInfo.context().platformContext(), inflatedRect, controlSize, determineState(o));
-
-    return false;
-}
-
-const IntSize* RenderThemeSafari::radioSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(14, 15), IntSize(12, 13), IntSize(10, 10) };
-    return sizes;
-}
-
-const int* RenderThemeSafari::radioMargins(NSControlSize controlSize) const
-{
-    static const int margins[3][4] =
-    {
-        { 1, 2, 2, 2 },
-        { 0, 1, 2, 1 },
-        { 0, 0, 1, 0 },
-     };
-    return margins[controlSize];
-}
-
-void RenderThemeSafari::setRadioSize(RenderStyle&amp; style) const
-{
-    // If the width and height are both specified, then we have nothing to do.
-    if (!style.width().isIntrinsicOrAuto() &amp;&amp; !style.height().isAuto())
-        return;
-
-    // Use the font size to determine the intrinsic width of the control.
-    setSizeFromFont(style, radioSizes());
-}
-
-void RenderThemeSafari::setButtonPaddingFromControlSize(RenderStyle&amp; style, NSControlSize size) const
-{
-    // Just use 8px.  AppKit wants to use 11px for mini buttons, but that padding is just too large
-    // for real-world Web sites (creating a huge necessary minimum width for buttons whose space is
-    // by definition constrained, since we select mini only for small cramped environments.
-    // This also guarantees the HTML4 &lt;button&gt; will match our rendering by default, since we're using a consistent
-    // padding.
-    const int padding = 8;
-    style.setPaddingLeft(Length(padding, Fixed));
-    style.setPaddingRight(Length(padding, Fixed));
-    style.setPaddingTop(Length(0, Fixed));
-    style.setPaddingBottom(Length(0, Fixed));
-}
-
-void RenderThemeSafari::adjustButtonStyle(StyleResolver&amp; styleResolver, RenderStyle&amp; style, Element*) const
-{
-    // There are three appearance constants for buttons.
-    // (1) Push-button is the constant for the default Aqua system button.  Push buttons will not scale vertically and will not allow
-    // custom fonts or colors.  &lt;input&gt;s use this constant.  This button will allow custom colors and font weights/variants but won't
-    // scale vertically.
-    // (2) square-button is the constant for the square button.  This button will allow custom fonts and colors and will scale vertically.
-    // (3) Button is the constant that means &quot;pick the best button as appropriate.&quot;  &lt;button&gt;s use this constant.  This button will
-    // also scale vertically and allow custom fonts and colors.  It will attempt to use Aqua if possible and will make this determination
-    // solely on the rectangle of the control.
-
-    // Determine our control size based off our font.
-    NSControlSize controlSize = controlSizeForFont(style);
-
-    if (style.appearance() == PushButtonPart) {
-        // Ditch the border.
-        style.resetBorder();
-
-        // Height is locked to auto.
-        style.setHeight(Length(Auto));
-
-        // White-space is locked to pre
-        style.setWhiteSpace(PRE);
-
-        // Set the button's vertical size.
-        setButtonSize(style);
-
-        // Add in the padding that we'd like to use.
-        setButtonPaddingFromControlSize(style, controlSize);
-
-        // Our font is locked to the appropriate system font size for the control.  To clarify, we first use the CSS-specified font to figure out
-        // a reasonable control size, but once that control size is determined, we throw that font away and use the appropriate
-        // system font for the control size instead.
-        setFontFromControlSize(styleResolver, style, controlSize);
-    } else {
-        // Set a min-height so that we can't get smaller than the mini button.
-        style.setMinHeight(Length(15, Fixed));
-
-        // Reset the top and bottom borders.
-        style.resetBorderTop();
-        style.resetBorderBottom();
-    }
-}
-
-const IntSize* RenderThemeSafari::buttonSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(0, 21), IntSize(0, 18), IntSize(0, 15) };
-    return sizes;
-}
-
-const int* RenderThemeSafari::buttonMargins(NSControlSize controlSize) const
-{
-    static const int margins[3][4] =
-    {
-        { 4, 6, 7, 6 },
-        { 4, 5, 6, 5 },
-        { 0, 1, 1, 1 },
-    };
-    return margins[controlSize];
-}
-
-void RenderThemeSafari::setButtonSize(RenderStyle&amp; style) const
-{
-    // If the width and height are both specified, then we have nothing to do.
-    if (!style.width().isIntrinsicOrAuto() &amp;&amp; !style.height().isAuto())
-        return;
-
-    // Use the font size to determine the intrinsic width of the control.
-    setSizeFromFont(style, buttonSizes());
-}
-
-bool RenderThemeSafari::paintButton(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-
-    // We inflate the rect as needed to account for padding included in the cell to accommodate the button
-    // shadow.  We don't consider this part of the bounds of the control in WebKit.
-
-    NSControlSize controlSize = controlSizeFromRect(r, buttonSizes());
-    IntRect inflatedRect = r;
-
-    ThemePart part;
-    if (r.height() &lt;= buttonSizes()[NSRegularControlSize].height()) {
-        // Push button
-        part = SafariTheme::PushButtonPart;
-
-        IntSize size = buttonSizes()[controlSize];
-        size.setWidth(r.width());
-
-        // Center the button within the available space.
-        if (inflatedRect.height() &gt; size.height()) {
-            inflatedRect.setY(inflatedRect.y() + (inflatedRect.height() - size.height()) / 2);
-            inflatedRect.setHeight(size.height());
-        }
-
-        // Now inflate it to account for the shadow.
-        inflatedRect = inflateRect(inflatedRect, size, buttonMargins(controlSize));
-    } else
-        part = SafariTheme::SquareButtonPart;
-
-    paintThemePart(part, paintInfo.context().platformContext(), inflatedRect, controlSize, determineState(o));
-    return false;
-}
-
-bool RenderThemeSafari::paintTextField(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-
-    paintThemePart(SafariTheme::TextFieldPart, paintInfo.context().platformContext(), r, (NSControlSize)0, determineState(o) &amp; ~FocusedState);
-    return false;
-}
-
-void RenderThemeSafari::adjustTextFieldStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const
-{
-}
-
-bool RenderThemeSafari::paintCapsLockIndicator(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{    
-#if defined(SAFARI_THEME_VERSION) &amp;&amp; SAFARI_THEME_VERSION &gt;= 1
-    ASSERT(SafariThemeLibrary());
-
-    if (paintInfo.context().paintingDisabled())
-        return true;
-
-    paintThemePart(CapsLockPart, paintInfo.context().platformContext(), r, (NSControlSize)0, (ThemeControlState)0);
-
-    return false;
-#else
-    return true;
-#endif
-}
-
-bool RenderThemeSafari::paintTextArea(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-
-    paintThemePart(SafariTheme::TextAreaPart, paintInfo.context().platformContext(), r, (NSControlSize)0, determineState(o) &amp; ~FocusedState);
-    return false;
-}
-
-void RenderThemeSafari::adjustTextAreaStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const
-{
-}
-
-const int* RenderThemeSafari::popupButtonMargins(NSControlSize size) const
-{
-    static const int margins[3][4] =
-    {
-        { 2, 3, 3, 3 },
-        { 1, 3, 3, 3 },
-        { 0, 1, 0, 1 }
-    };
-    return margins[size];
-}
-
-const IntSize* RenderThemeSafari::popupButtonSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(0, 21), IntSize(0, 18), IntSize(0, 15) };
-    return sizes;
-}
-
-const int* RenderThemeSafari::popupButtonPadding(NSControlSize size) const
-{
-    static const int padding[3][4] =
-    {
-        { 2, 26, 3, 8 },
-        { 2, 23, 3, 8 },
-        { 2, 22, 3, 10 }
-    };
-    return padding[size];
-}
-
-bool RenderThemeSafari::paintMenuList(const RenderObject&amp; o, const PaintInfo&amp; info, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-
-    NSControlSize controlSize = controlSizeFromRect(r, popupButtonSizes());
-    IntRect inflatedRect = r;
-    IntSize size = popupButtonSizes()[controlSize];
-    size.setWidth(r.width());
-
-    // Now inflate it to account for the shadow.
-    if (r.width() &gt;= minimumMenuListSize(o.style()))
-        inflatedRect = inflateRect(inflatedRect, size, popupButtonMargins(controlSize));
-
-    paintThemePart(DropDownButtonPart, info.context().platformContext(), inflatedRect, controlSize, determineState(o));
-
-    return false;
-}
-
-const float baseFontSize = 11.0f;
-const float baseArrowHeight = 5.0f;
-const float baseArrowWidth = 7.0f;
-const int arrowPaddingLeft = 5;
-const int arrowPaddingRight = 5;
-const int paddingBeforeSeparator = 4;
-const int baseBorderRadius = 5;
-const int styledPopupPaddingLeft = 8;
-const int styledPopupPaddingTop = 1;
-const int styledPopupPaddingBottom = 2;
-
-static void TopGradientInterpolate(void* info, const CGFloat* inData, CGFloat* outData)
-{
-    static float dark[4] = { 1.0f, 1.0f, 1.0f, 0.4f };
-    static float light[4] = { 1.0f, 1.0f, 1.0f, 0.15f };
-    float a = inData[0];
-    int i = 0;
-    for (i = 0; i &lt; 4; i++)
-        outData[i] = (1.0f - a) * dark[i] + a * light[i];
-}
-
-static void BottomGradientInterpolate(void* info, const CGFloat* inData, CGFloat* outData)
-{
-    static float dark[4] = { 1.0f, 1.0f, 1.0f, 0.0f };
-    static float light[4] = { 1.0f, 1.0f, 1.0f, 0.3f };
-    float a = inData[0];
-    int i = 0;
-    for (i = 0; i &lt; 4; i++)
-        outData[i] = (1.0f - a) * dark[i] + a * light[i];
-}
-
-static void MainGradientInterpolate(void* info, const CGFloat* inData, CGFloat* outData)
-{
-    static float dark[4] = { 0.0f, 0.0f, 0.0f, 0.15f };
-    static float light[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
-    float a = inData[0];
-    int i = 0;
-    for (i = 0; i &lt; 4; i++)
-        outData[i] = (1.0f - a) * dark[i] + a * light[i];
-}
-
-static void TrackGradientInterpolate(void* info, const CGFloat* inData, CGFloat* outData)
-{
-    static float dark[4] = { 0.0f, 0.0f, 0.0f, 0.678f };
-    static float light[4] = { 0.0f, 0.0f, 0.0f, 0.13f };
-    float a = inData[0];
-    int i = 0;
-    for (i = 0; i &lt; 4; i++)
-        outData[i] = (1.0f - a) * dark[i] + a * light[i];
-}
-
-void RenderThemeSafari::paintMenuListButtonGradients(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    if (r.isEmpty())
-        return;
-
-    CGContextRef context = paintInfo.context().platformContext();
-
-    paintInfo.context().save();
-
-    FloatRoundedRect bound = FloatRoundedRect(o.style().getRoundedBorderFor(r));
-    int radius = bound.radii().topLeft().width();
-
-    CGColorSpaceRef cspace = deviceRGBColorSpaceRef();
-
-    FloatRect topGradient(r.x(), r.y(), r.width(), r.height() / 2.0f);
-    struct CGFunctionCallbacks topCallbacks = { 0, TopGradientInterpolate, NULL };
-    RetainPtr&lt;CGFunctionRef&gt; topFunction = adoptCF(CGFunctionCreate(NULL, 1, NULL, 4, NULL, &amp;topCallbacks));
-    RetainPtr&lt;CGShadingRef&gt; topShading = adoptCF(CGShadingCreateAxial(cspace, CGPointMake(topGradient.x(), topGradient.y()), CGPointMake(topGradient.x(), topGradient.maxY()), topFunction.get(), false, false));
-
-    FloatRect bottomGradient(r.x() + radius, r.y() + r.height() / 2.0f, r.width() - 2.0f * radius, r.height() / 2.0f);
-    struct CGFunctionCallbacks bottomCallbacks = { 0, BottomGradientInterpolate, NULL };
-    RetainPtr&lt;CGFunctionRef&gt; bottomFunction = adoptCF(CGFunctionCreate(NULL, 1, NULL, 4, NULL, &amp;bottomCallbacks));
-    RetainPtr&lt;CGShadingRef&gt; bottomShading = adoptCF(CGShadingCreateAxial(cspace, CGPointMake(bottomGradient.x(),  bottomGradient.y()), CGPointMake(bottomGradient.x(), bottomGradient.maxY()), bottomFunction.get(), false, false));
-
-    struct CGFunctionCallbacks mainCallbacks = { 0, MainGradientInterpolate, NULL };
-    RetainPtr&lt;CGFunctionRef&gt; mainFunction = adoptCF(CGFunctionCreate(NULL, 1, NULL, 4, NULL, &amp;mainCallbacks));
-    RetainPtr&lt;CGShadingRef&gt; mainShading = adoptCF(CGShadingCreateAxial(cspace, CGPointMake(r.x(),  r.y()), CGPointMake(r.x(), r.maxY()), mainFunction.get(), false, false));
-
-    RetainPtr&lt;CGShadingRef&gt; leftShading = adoptCF(CGShadingCreateAxial(cspace, CGPointMake(r.x(),  r.y()), CGPointMake(r.x() + radius, r.y()), mainFunction.get(), false, false));
-
-    RetainPtr&lt;CGShadingRef&gt; rightShading = adoptCF(CGShadingCreateAxial(cspace, CGPointMake(r.maxX(),  r.y()), CGPointMake(r.maxX() - radius, r.y()), mainFunction.get(), false, false));
-    paintInfo.context().save();
-    CGContextClipToRect(context, r);
-    paintInfo.context().clipRoundedRect(bound);
-    CGContextDrawShading(context, mainShading.get());
-    paintInfo.context().restore();
-
-    paintInfo.context().save();
-    CGContextClipToRect(context, topGradient);
-    paintInfo.context().clipRoundedRect(FloatRoundedRect(enclosingIntRect(topGradient), bound.radii().topLeft(), bound.radii().topRight(), IntSize(), IntSize()));
-    CGContextDrawShading(context, topShading.get());
-    paintInfo.context().restore();
-
-    if (!bottomGradient.isEmpty()) {
-        paintInfo.context().save();
-        CGContextClipToRect(context, bottomGradient);
-        paintInfo.context().clipRoundedRect(FloatRoundedRect(enclosingIntRect(bottomGradient), IntSize(), IntSize(), bound.radii().bottomLeft(), bound.radii().bottomRight()));
-        CGContextDrawShading(context, bottomShading.get());
-        paintInfo.context().restore();
-    }
-
-    paintInfo.context().save();
-    CGContextClipToRect(context, r);
-    paintInfo.context().clipRoundedRect(bound);
-    CGContextDrawShading(context, leftShading.get());
-    CGContextDrawShading(context, rightShading.get());
-    paintInfo.context().restore();
-
-    paintInfo.context().restore();
-}
-
-bool RenderThemeSafari::paintMenuListButtonDecorations(const RenderObject&amp; renderer, const PaintInfo&amp; paintInfo, const FloatRect&amp; rect)
-{
-    IntRect bounds = IntRect(rect.x() + renderer.style().borderLeftWidth(),
-        rect.y() + renderer.style().borderTopWidth(),
-        rect.width() - renderer.style().borderLeftWidth() - renderer.style().borderRightWidth(),
-        rect.height() - renderer.style().borderTopWidth() - renderer.style().borderBottomWidth());
-    // Draw the gradients to give the styled popup menu a button appearance
-    paintMenuListButtonGradients(renderer, paintInfo, bounds);
-
-    // Since we actually know the size of the control here, we restrict the font scale to make sure the arrow will fit vertically in the bounds
-    float fontScale = min(renderer.style().fontSize() / baseFontSize, bounds.height() / baseArrowHeight);
-    float centerY = bounds.y() + bounds.height() / 2.0f;
-    float arrowHeight = baseArrowHeight * fontScale;
-    float arrowWidth = baseArrowWidth * fontScale;
-    float leftEdge = bounds.maxX() - arrowPaddingRight - arrowWidth;
-
-    if (bounds.width() &lt; arrowWidth + arrowPaddingLeft)
-        return false;
-
-    paintInfo.context().save();
-
-    paintInfo.context().setFillColor(renderer.style().visitedDependentColor(CSSPropertyColor), ColorSpaceDeviceRGB);
-    paintInfo.context().setStrokeColor(NoStroke, ColorSpaceDeviceRGB);
-
-    FloatPoint arrow[3];
-    arrow[0] = FloatPoint(leftEdge, centerY - arrowHeight / 2.0f);
-    arrow[1] = FloatPoint(leftEdge + arrowWidth, centerY - arrowHeight / 2.0f);
-    arrow[2] = FloatPoint(leftEdge + arrowWidth / 2.0f, centerY + arrowHeight / 2.0f);
-
-    // Draw the arrow
-    paintInfo.context().drawConvexPolygon(3, arrow, true);
-
-    Color leftSeparatorColor(0, 0, 0, 40);
-    Color rightSeparatorColor(255, 255, 255, 40);
-
-    // FIXME: Should the separator thickness and space be scaled up by fontScale?
-    int separatorSpace = 2;
-    int leftEdgeOfSeparator = static_cast&lt;int&gt;(leftEdge - arrowPaddingLeft); // FIXME: Round?
-
-    // Draw the separator to the left of the arrows
-    paintInfo.context().setStrokeThickness(1);
-    paintInfo.context().setStrokeStyle(SolidStroke);
-    paintInfo.context().setStrokeColor(leftSeparatorColor, ColorSpaceDeviceRGB);
-    paintInfo.context().drawLine(IntPoint(leftEdgeOfSeparator, bounds.y()),
-                                IntPoint(leftEdgeOfSeparator, bounds.maxY()));
-
-    paintInfo.context().setStrokeColor(rightSeparatorColor, ColorSpaceDeviceRGB);
-    paintInfo.context().drawLine(IntPoint(leftEdgeOfSeparator + separatorSpace, bounds.y()),
-                                IntPoint(leftEdgeOfSeparator + separatorSpace, bounds.maxY()));
-
-    paintInfo.context().restore();
-    return false;
-}
-
-void RenderThemeSafari::adjustMenuListStyle(StyleResolver&amp; styleResolver, RenderStyle&amp; style, Element* e) const
-{
-    NSControlSize controlSize = controlSizeForFont(style);
-
-    style.resetBorder();
-    style.resetPadding();
-    
-    // Height is locked to auto.
-    style.setHeight(Length(Auto));
-
-    // White-space is locked to pre
-    style.setWhiteSpace(PRE);
-
-    // Set the foreground color to black or gray when we have the aqua look.
-    // Cast to RGB32 is to work around a compiler bug.
-    style.setColor(e &amp;&amp; !e-&gt;isDisabledFormControl() ? static_cast&lt;RGBA32&gt;(Color::black) : Color::darkGray);
-
-    // Set the button's vertical size.
-    setButtonSize(style);
-
-    // Our font is locked to the appropriate system font size for the control.  To clarify, we first use the CSS-specified font to figure out
-    // a reasonable control size, but once that control size is determined, we throw that font away and use the appropriate
-    // system font for the control size instead.
-    setFontFromControlSize(styleResolver, style, controlSize);
-}
-
-int RenderThemeSafari::popupInternalPaddingLeft(RenderStyle&amp; style) const
-{
-    if (style.appearance() == MenulistPart)
-        return popupButtonPadding(controlSizeForFont(style))[leftPadding];
-    if (style.appearance() == MenulistButtonPart)
-        return styledPopupPaddingLeft;
-    return 0;
-}
-
-int RenderThemeSafari::popupInternalPaddingRight(RenderStyle&amp; style) const
-{
-    if (style.appearance() == MenulistPart)
-        return popupButtonPadding(controlSizeForFont(style))[rightPadding];
-    if (style.appearance() == MenulistButtonPart) {
-        float fontScale = style.fontSize() / baseFontSize;
-        float arrowWidth = baseArrowWidth * fontScale;
-        return static_cast&lt;int&gt;(ceilf(arrowWidth + arrowPaddingLeft + arrowPaddingRight + paddingBeforeSeparator));
-    }
-    return 0;
-}
-
-int RenderThemeSafari::popupInternalPaddingTop(RenderStyle&amp; style) const
-{
-    if (style.appearance() == MenulistPart)
-        return popupButtonPadding(controlSizeForFont(style))[topPadding];
-    if (style.appearance() == MenulistButtonPart)
-        return styledPopupPaddingTop;
-    return 0;
-}
-
-int RenderThemeSafari::popupInternalPaddingBottom(RenderStyle&amp; style) const
-{
-    if (style.appearance() == MenulistPart)
-        return popupButtonPadding(controlSizeForFont(style))[bottomPadding];
-    if (style.appearance() == MenulistButtonPart)
-        return styledPopupPaddingBottom;
-    return 0;
-}
-
-void RenderThemeSafari::adjustMenuListButtonStyle(StyleResolver&amp;, RenderStyle&amp; style, Element*) const
-{
-    float fontScale = style.fontSize() / baseFontSize;
-    
-    style.resetPadding();
-    style.setBorderRadius(IntSize(int(baseBorderRadius + fontScale - 1), int(baseBorderRadius + fontScale - 1))); // FIXME: Round up?
-
-    const int minHeight = 15;
-    style.setMinHeight(Length(minHeight, Fixed));
-    
-    style.setLineHeight(RenderStyle::initialLineHeight());
-}
-
-const IntSize* RenderThemeSafari::menuListSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(9, 0), IntSize(5, 0), IntSize(0, 0) };
-    return sizes;
-}
-
-int RenderThemeSafari::minimumMenuListSize(RenderStyle&amp; style) const
-{
-    return sizeForSystemFont(style, menuListSizes()).width();
-}
-
-const int trackWidth = 5;
-const int trackRadius = 2;
-
-bool RenderThemeSafari::paintSliderTrack(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    IntSize radius(trackRadius, trackRadius);
-    FloatRoundedRect bounds(r, radius, radius, radius, radius);
-
-    if (o.style().appearance() ==  SliderHorizontalPart)
-        bounds.setRect(IntRect(r.x(), r.y() + r.height() / 2 - trackWidth / 2, r.width(), trackWidth));
-    else if (o.style().appearance() == SliderVerticalPart)
-        bounds.setRect(IntRect(r.x() + r.width() / 2 - trackWidth / 2, r.y(), trackWidth, r.height()));
-
-    CGContextRef context = paintInfo.context().platformContext();
-    CGColorSpaceRef cspace = deviceRGBColorSpaceRef();
-
-    paintInfo.context().save();
-    CGContextClipToRect(context, bounds.rect());
-
-    struct CGFunctionCallbacks mainCallbacks = { 0, TrackGradientInterpolate, NULL };
-    RetainPtr&lt;CGFunctionRef&gt; mainFunction = adoptCF(CGFunctionCreate(NULL, 1, NULL, 4, NULL, &amp;mainCallbacks));
-    RetainPtr&lt;CGShadingRef&gt; mainShading;
-    if (o.style().appearance() == SliderVerticalPart)
-        mainShading = adoptCF(CGShadingCreateAxial(cspace, CGPointMake(bounds.rect().x(),  bounds.rect().maxY()), CGPointMake(bounds.rect().maxX(), bounds.rect().maxY()), mainFunction.get(), false, false));
-    else
-        mainShading = adoptCF(CGShadingCreateAxial(cspace, CGPointMake(bounds.rect().x(),  bounds.rect().y()), CGPointMake(bounds.rect().x(), bounds.rect().maxY()), mainFunction.get(), false, false));
-
-    paintInfo.context().clipRoundedRect(bounds);
-    CGContextDrawShading(context, mainShading.get());
-    paintInfo.context().restore();
-    
-    return false;
-}
-
-void RenderThemeSafari::adjustSliderThumbStyle(StyleResolver&amp; styleResolver, RenderStyle&amp; style, Element* e) const 
-{ 
-    RenderTheme::adjustSliderThumbStyle(styleResolver, style, e);
-    style.setBoxShadow(nullptr); 
-} 
-
-const float verticalSliderHeightPadding = 0.1f;
-
-bool RenderThemeSafari::paintSliderThumb(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-    paintThemePart(SliderThumbPart, paintInfo.context().platformContext(), r, NSSmallControlSize, determineState(o));
-    return false;
-}
-
-const int sliderThumbWidth = 15;
-const int sliderThumbHeight = 15;
-
-void RenderThemeSafari::adjustSliderThumbSize(RenderStyle&amp; style, Element*) const
-{
-    if (style.appearance() == SliderThumbHorizontalPart || style.appearance() == SliderThumbVerticalPart) {
-        style.setWidth(Length(sliderThumbWidth, Fixed));
-        style.setHeight(Length(sliderThumbHeight, Fixed));
-    } 
-#if ENABLE(VIDEO)
-    else if (style.appearance() == MediaSliderThumbPart) 
-        RenderMediaControls::adjustMediaSliderThumbSize(style);
-#endif
-}
-
-bool RenderThemeSafari::paintSearchField(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp; r)
-{
-    ASSERT(SafariThemeLibrary());
-
-    paintThemePart(SafariTheme::SearchFieldPart, paintInfo.context().platformContext(), r, controlSizeFromRect(r, searchFieldSizes()), determineState(o));
-    return false;
-}
-
-const IntSize* RenderThemeSafari::searchFieldSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(0, 22), IntSize(0, 19), IntSize(0, 15) };
-    return sizes;
-}
-
-void RenderThemeSafari::setSearchFieldSize(RenderStyle&amp; style) const
-{
-    // If the width and height are both specified, then we have nothing to do.
-    if (!style.width().isIntrinsicOrAuto() &amp;&amp; !style.height().isAuto())
-        return;
-    
-    // Use the font size to determine the intrinsic width of the control.
-    setSizeFromFont(style, searchFieldSizes());
-}
-
-void RenderThemeSafari::adjustSearchFieldStyle(StyleResolver&amp; styleResolver, RenderStyle&amp; style, Element*) const
-{
-    // Override border.
-    style.resetBorder();
-    const short borderWidth = 2;
-    style.setBorderLeftWidth(borderWidth);
-    style.setBorderLeftStyle(INSET);
-    style.setBorderRightWidth(borderWidth);
-    style.setBorderRightStyle(INSET);
-    style.setBorderBottomWidth(borderWidth);
-    style.setBorderBottomStyle(INSET);
-    style.setBorderTopWidth(borderWidth);
-    style.setBorderTopStyle(INSET);
-
-    // Override height.
-    style.setHeight(Length(Auto));
-    setSearchFieldSize(style);
-
-    // Override padding size to match AppKit text positioning.
-    const int padding = 1;
-    style.setPaddingLeft(Length(padding, Fixed));
-    style.setPaddingRight(Length(padding, Fixed));
-    style.setPaddingTop(Length(padding, Fixed));
-    style.setPaddingBottom(Length(padding, Fixed));
-
-    NSControlSize controlSize = controlSizeForFont(style);
-    setFontFromControlSize(styleResolver, style, controlSize);
-}
-
-bool RenderThemeSafari::paintSearchFieldCancelButton(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp;)
-{
-    ASSERT(SafariThemeLibrary());
-
-    Node* input = o.node()-&gt;shadowHost();
-    if (!input)
-        input = o.node();
-    RenderObject* renderer = input-&gt;renderer();
-    ASSERT(renderer);
-
-    IntRect searchRect = renderer-&gt;absoluteBoundingBoxRectIgnoringTransforms();
-
-    paintThemePart(SafariTheme::SearchFieldCancelButtonPart, paintInfo.context().platformContext(), searchRect, controlSizeFromRect(searchRect, searchFieldSizes()), determineState(o));
-    return false;
-}
-
-const IntSize* RenderThemeSafari::cancelButtonSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(16, 13), IntSize(13, 11), IntSize(13, 9) };
-    return sizes;
-}
-
-void RenderThemeSafari::adjustSearchFieldCancelButtonStyle(StyleResolver&amp;, RenderStyle&amp; style, Element*) const
-{
-    IntSize size = sizeForSystemFont(style, cancelButtonSizes());
-    style.setWidth(Length(size.width(), Fixed));
-    style.setHeight(Length(size.height(), Fixed));
-}
-
-const IntSize* RenderThemeSafari::resultsButtonSizes() const
-{
-    static const IntSize sizes[3] = { IntSize(19, 13), IntSize(17, 11), IntSize(17, 9) };
-    return sizes;
-}
-
-const int emptyResultsOffset = 9;
-void RenderThemeSafari::adjustSearchFieldDecorationPartStyle(StyleResolver&amp;, RenderStyle&amp; style, Element*) const
-{
-    IntSize size = sizeForSystemFont(style, resultsButtonSizes());
-    style.setWidth(Length(size.width() - emptyResultsOffset, Fixed));
-    style.setHeight(Length(size.height(), Fixed));
-}
-
-bool RenderThemeSafari::paintSearchFieldDecorationPart(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;)
-{
-    return false;
-}
-
-void RenderThemeSafari::adjustSearchFieldResultsDecorationPartStyle(StyleResolver&amp;, RenderStyle&amp; style, Element*) const
-{
-    IntSize size = sizeForSystemFont(style, resultsButtonSizes());
-    style.setWidth(Length(size.width(), Fixed));
-    style.setHeight(Length(size.height(), Fixed));
-}
-
-bool RenderThemeSafari::paintSearchFieldResultsDecorationPart(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp;)
-{
-    ASSERT(SafariThemeLibrary());
-
-    Node* input = o.node()-&gt;shadowHost();
-    if (!input)
-        input = o.node();
-    RenderObject* renderer = input-&gt;renderer();
-    ASSERT(renderer);
-
-    IntRect searchRect = renderer-&gt;absoluteBoundingBoxRectIgnoringTransforms();
-
-    paintThemePart(SafariTheme::SearchFieldResultsDecorationPart, paintInfo.context().platformContext(), searchRect, controlSizeFromRect(searchRect, searchFieldSizes()), determineState(o));
-    return false;
-}
-
-const int resultsArrowWidth = 5;
-void RenderThemeSafari::adjustSearchFieldResultsButtonStyle(StyleResolver&amp;, RenderStyle&amp; style, Element*) const
-{
-    IntSize size = sizeForSystemFont(style, resultsButtonSizes());
-    style.setWidth(Length(size.width() + resultsArrowWidth, Fixed));
-    style.setHeight(Length(size.height(), Fixed));
-}
-
-bool RenderThemeSafari::paintSearchFieldResultsButton(const RenderObject&amp; o, const PaintInfo&amp; paintInfo, const IntRect&amp;)
-{
-    ASSERT(SafariThemeLibrary());
-
-    Node* input = o.node()-&gt;shadowHost();
-    if (!input)
-        input = o.node();
-    RenderObject* renderer = input-&gt;renderer();
-    ASSERT(renderer);
-
-    IntRect searchRect = renderer-&gt;absoluteBoundingBoxRectIgnoringTransforms();
-
-    paintThemePart(SafariTheme::SearchFieldResultsButtonPart, paintInfo.context().platformContext(), searchRect, controlSizeFromRect(searchRect, searchFieldSizes()), determineState(o));
-    return false;
-}
-
-#if ENABLE(VIDEO)
-String RenderThemeSafari::mediaControlsStyleSheet()
-{
-#if ENABLE(MEDIA_CONTROLS_SCRIPT)
-    if (m_mediaControlsStyleSheet.isEmpty())
-        m_mediaControlsStyleSheet = RenderThemeWin::stringWithContentsOfFile(CFSTR(&quot;mediaControlsApple&quot;), CFSTR(&quot;css&quot;));
-    return m_mediaControlsStyleSheet;
-#else
-    return emptyString();
-#endif
-}
-
-String RenderThemeSafari::mediaControlsScript()
-{
-#if ENABLE(MEDIA_CONTROLS_SCRIPT)
-    StringBuilder scriptBuilder;
-    scriptBuilder.append(RenderThemeWin::stringWithContentsOfFile(CFSTR(&quot;mediaControlsLocalizedStrings&quot;), CFSTR(&quot;js&quot;)));
-    scriptBuilder.append(RenderThemeWin::stringWithContentsOfFile(CFSTR(&quot;mediaControlsApple&quot;), CFSTR(&quot;js&quot;)));
-    m_mediaControlsScript = scriptBuilder.toString();
-    return m_mediaControlsScript;
-#else
-    return emptyString();
-#endif
-}
-#endif
-
-#if ENABLE(METER_ELEMENT)
-void RenderThemeSafari::adjustMeterStyle(StyleResolver&amp;, RenderStyle&amp; style, Element*) const
-{
-    style.setBoxShadow(nullptr);
-}
-
-bool RenderThemeSafari::supportsMeter(ControlPart part) const
-{
-    switch (part) {
-    case MeterPart:
-        return true;
-    default:
-        return false;
-    }
-}
-
-IntSize RenderThemeSafari::meterSizeForBounds(const RenderMeter&amp;, const IntRect&amp; bounds) const
-{
-    return bounds.size();
-}
-
-bool RenderThemeSafari::paintMeter(const RenderObject&amp; renderObject, const PaintInfo&amp; paintInfo, const IntRect&amp; rect)
-{
-    // NOTE: This routine is for testing only. It should be fleshed out with a real CG-based implementation.
-    // Right now it uses a slider, with the thumb positioned at the meter point.
-    if (!is&lt;RenderMeter&gt;(renderObject))
-        return true;
-
-    HTMLMeterElement* element = downcast&lt;RenderMeter&gt;(renderObject).meterElement();
-
-    int remaining = static_cast&lt;int&gt;((1.0 - element-&gt;valueRatio()) * static_cast&lt;double&gt;(rect.size().width()));
-
-    // Draw the background
-    paintSliderTrack(renderObject, paintInfo, rect);
-
-    // Draw the progress portion
-    IntRect completedRect(rect);
-    completedRect.contract(remaining, 0);
-
-    paintSliderThumb(renderObject, paintInfo, completedRect);
-
-    return true;
-}
-
-#endif
-
-} // namespace WebCore
-
-#endif // #if USE(SAFARI_THEME)
</del></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeSafarih"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/rendering/RenderThemeSafari.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeSafari.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/rendering/RenderThemeSafari.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -1,191 +0,0 @@
</span><del>-/*
- * Copyright (C) 2007, 2008, 2013, 2014 Apple Inc.
- * Copyright (C) 2009 Kenneth Rohde Christiansen
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef RenderThemeSafari_h
-#define RenderThemeSafari_h
-
-#if USE(SAFARI_THEME)
-
-#include &quot;RenderTheme.h&quot;
-
-// If you have an empty placeholder SafariThemeConstants.h, then include SafariTheme.h
-// This is a workaround until a version of WebKitSupportLibrary is released with an updated SafariThemeConstants.h 
-#include &lt;SafariTheme/SafariThemeConstants.h&gt;
-#ifndef SafariThemeConstants_h
-#include &lt;SafariTheme/SafariTheme.h&gt;
-#endif
-
-#if PLATFORM(WIN)
-typedef void* HANDLE;
-typedef struct HINSTANCE__* HINSTANCE;
-typedef HINSTANCE HMODULE;
-#endif
-
-namespace WebCore {
-
-using namespace SafariTheme;
-
-class RenderStyle;
-
-class RenderThemeSafari : public RenderTheme {
-public:
-    static Ref&lt;RenderTheme&gt; create();
-
-    // A method to obtain the baseline position for a &quot;leaf&quot; control.  This will only be used if a baseline
-    // position cannot be determined by examining child content. Checkboxes and radio buttons are examples of
-    // controls that need to do this.
-    virtual int baselinePosition(const RenderBox&amp;) const;
-
-    // A method asking if the control changes its tint when the window has focus or not.
-    virtual bool controlSupportsTints(const RenderObject&amp;) const;
-
-    // A general method asking if any control tinting is supported at all.
-    virtual bool supportsControlTints() const { return true; }
-
-    virtual void adjustRepaintRect(const RenderObject&amp;, IntRect&amp;);
-
-    virtual bool isControlStyled(const RenderStyle&amp;, const BorderData&amp;,
-                                 const FillLayer&amp;, const Color&amp; backgroundColor) const;
-
-    virtual Color platformActiveSelectionBackgroundColor() const;
-    virtual Color platformInactiveSelectionBackgroundColor() const;
-    virtual Color activeListBoxSelectionBackgroundColor() const;
-
-    virtual Color platformFocusRingColor() const;
-
-    virtual int minimumMenuListSize(RenderStyle&amp;) const;
-
-    virtual void adjustSliderThumbSize(RenderStyle&amp;, Element*) const;
-    virtual void adjustSliderThumbStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-    
-    virtual int popupInternalPaddingLeft(RenderStyle&amp;) const;
-    virtual int popupInternalPaddingRight(RenderStyle&amp;) const;
-    virtual int popupInternalPaddingTop(RenderStyle&amp;) const;
-    virtual int popupInternalPaddingBottom(RenderStyle&amp;) const;
-
-protected:
-    // System fonts.
-    virtual void updateCachedSystemFontDescription(CSSValueID, FontCascadeDescription&amp;) const override;
-
-    // Methods for each appearance value.
-    virtual bool paintCheckbox(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual void setCheckboxSize(RenderStyle&amp;) const;
-
-    virtual bool paintRadio(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual void setRadioSize(RenderStyle&amp;) const;
-
-    virtual void adjustButtonStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-    virtual bool paintButton(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual void setButtonSize(RenderStyle&amp;) const;
-
-    virtual bool paintTextField(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual void adjustTextFieldStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-
-    virtual bool paintTextArea(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual void adjustTextAreaStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-
-    virtual bool paintMenuList(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual void adjustMenuListStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-
-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;);
-    virtual void adjustMenuListButtonStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-
-    virtual bool paintSliderTrack(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual bool paintSliderThumb(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-
-    virtual bool paintSearchField(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    virtual void adjustSearchFieldStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-
-    virtual void adjustSearchFieldCancelButtonStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-    virtual bool paintSearchFieldCancelButton(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-
-    virtual void adjustSearchFieldDecorationPartStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-    virtual bool paintSearchFieldDecorationPart(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-
-    virtual void adjustSearchFieldResultsDecorationPartStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-    virtual bool paintSearchFieldResultsDecorationPart(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-
-    virtual void adjustSearchFieldResultsButtonStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const;
-    virtual bool paintSearchFieldResultsButton(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);

-    virtual bool paintCapsLockIndicator(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-
-#if ENABLE(VIDEO)
-    virtual String mediaControlsStyleSheet() override;
-    virtual String mediaControlsScript() override;
-#endif
-
-#if ENABLE(METER_ELEMENT)
-    virtual IntSize meterSizeForBounds(const RenderMeter&amp;, const IntRect&amp;) const override;
-    virtual bool supportsMeter(ControlPart) const override;
-    virtual void adjustMeterStyle(StyleResolver&amp;, RenderStyle&amp;, Element*) const override;
-    virtual bool paintMeter(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;) override;
-#endif
-
-private:
-    RenderThemeSafari();
-    virtual ~RenderThemeSafari();
-
-    IntRect inflateRect(const IntRect&amp;, const IntSize&amp;, const int* margins) const;
-
-    // Get the control size based off the font.  Used by some of the controls (like buttons).
-
-    NSControlSize controlSizeForFont(RenderStyle&amp;) const;
-    NSControlSize controlSizeForSystemFont(RenderStyle&amp;) const;
-    //void setControlSize(NSCell*, const IntSize* sizes, const IntSize&amp; minSize);
-    void setSizeFromFont(RenderStyle&amp;, const IntSize* sizes) const;
-    IntSize sizeForFont(RenderStyle&amp;, const IntSize* sizes) const;
-    IntSize sizeForSystemFont(RenderStyle&amp;, const IntSize* sizes) const;
-    void setFontFromControlSize(StyleResolver&amp;, RenderStyle&amp;, NSControlSize) const;
-
-    // Helpers for adjusting appearance and for painting
-    const IntSize* checkboxSizes() const;
-    const int* checkboxMargins(NSControlSize) const;
-
-    const IntSize* radioSizes() const;
-    const int* radioMargins(NSControlSize) const;
-
-    void setButtonPaddingFromControlSize(RenderStyle&amp;, NSControlSize) const;
-    const IntSize* buttonSizes() const;
-    const int* buttonMargins(NSControlSize) const;
-
-    const IntSize* popupButtonSizes() const;
-    const int* popupButtonMargins(NSControlSize) const;
-    const int* popupButtonPadding(NSControlSize) const;
-    void paintMenuListButtonGradients(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
-    const IntSize* menuListSizes() const;
-
-    const IntSize* searchFieldSizes() const;
-    const IntSize* cancelButtonSizes() const;
-    const IntSize* resultsButtonSizes() const;
-    void setSearchFieldSize(RenderStyle&amp;) const;
-
-    ThemeControlState determineState(const RenderObject&amp;) const;
-
-    String m_mediaControlsScript;
-    String m_mediaControlsStyleSheet;
-};
-
-} // namespace WebCore
-
-#endif // #if USE(SAFARI_THEME)
-
-#endif // RenderThemeSafari_h
</del></span></pre></div>
<a id="trunkSourceWebCoresvggraphicsfiltersSVGFEImageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h (191866 => 191867)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h        2015-11-02 00:10:21 UTC (rev 191866)
+++ trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h        2015-11-02 00:16:36 UTC (rev 191867)
</span><span class="lines">@@ -38,9 +38,6 @@
</span><span class="cx">     static Ref&lt;FEImage&gt; createWithIRIReference(Filter&amp;, Document&amp;, const String&amp;, const SVGPreserveAspectRatio&amp;);
</span><span class="cx"> 
</span><span class="cx">     virtual void platformApplySoftware() override;
</span><del>-#if ENABLE(OPENCL)
-    virtual bool platformApplyOpenCL();
-#endif
</del><span class="cx">     virtual void dump() override;
</span><span class="cx"> 
</span><span class="cx">     virtual void determineAbsolutePaintRect() override;
</span></span></pre>
</div>
</div>

</body>
</html>