<!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>[183265] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/183265">183265</a></dd>
<dt>Author</dt> <dd>darin@apple.com</dd>
<dt>Date</dt> <dd>2015-04-24 09:38:28 -0700 (Fri, 24 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Convert OwnPtr and PassOwnPtr uses to std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=128007

Reviewed by Anders Carlsson.

Source/WebCore:

* PlatformEfl.cmake: Removed OwnPtrCairo source files.
* PlatformGTK.cmake: Ditto.
* PlatformWinCairo.cmake: Ditto.
* WebCore.vcxproj/WebCore.vcxproj: Ditto.
* WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.

* platform/CrossThreadCopier.cpp: Removed OwnPtr specialization.
* platform/CrossThreadCopier.h: Ditto.

* platform/ScrollAnimatorNone.cpp: Removed unneeded include.
* platform/ThreadGlobalData.cpp: Ditto.
* platform/ThreadGlobalData.h: Ditto.
* platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h: Ditto.

* platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
(WebCore::AVFWrapper::processNotification): Use unique_ptr.
(WebCore::AVFWrapper::notificationCallback): Use make_unique.
(WebCore::AVFWrapper::platformLayer): Ditto.

* platform/graphics/cairo/CairoUtilities.cpp:
(WebCore::appendPathToCairoContext): Use cairo_path_destroy directly
instead of a smart pointer; the code path is simple enough that it is
clear this way.

* platform/graphics/cairo/ImageBufferCairo.cpp:
(WebCore::ImageBuffer::ImageBuffer): Use make_unique.
* platform/graphics/cairo/ImageBufferDataCairo.h: Use unique_ptr.

* platform/graphics/cairo/OwnPtrCairo.cpp: Removed.
* platform/graphics/cairo/OwnPtrCairo.h: Removed.

* platform/graphics/cairo/PathCairo.cpp:
(WebCore::Path::Path): Use cairo_path_destroy directly instead of a
smart pointer; the code path is simple enough that it is clear this way.
(WebCore::Path::operator=): Ditto.
(WebCore::Path::addPath): Ditto.
(WebCore::Path::apply): Ditto.
* platform/graphics/cairo/PlatformContextCairo.cpp:
(WebCore::PlatformContextCairo::clipForPatternFilling): Ditto.

* platform/graphics/freetype/FontCacheFreeType.cpp: Removed unneeded include.
* platform/graphics/glx/GLContextGLX.cpp: Ditto.

* platform/graphics/surfaces/egl/EGLSurface.cpp:
(WebCore::EGLOffScreenSurface::EGLOffScreenSurface): Use make_unique.

* platform/graphics/surfaces/glx/GLXConfigSelector.h:
(WebCore::GLXConfigSelector::findMatchingConfig): Use unique_ptr with X11Deleter.
(WebCore::GLXConfigSelector::findMatchingConfigWithVisualId): Ditto.
* platform/graphics/surfaces/glx/GLXSurface.cpp:
(WebCore::GLXTransportSurface::GLXTransportSurface): Ditto.
(WebCore::GLXOffScreenSurface::initialize): Ditto.

* platform/graphics/surfaces/glx/OwnPtrX11.h: Removed.

* platform/graphics/surfaces/glx/X11Helper.cpp:
(WebCore::X11Helper::createOffScreenWindow): Use unique_ptr with X11Deleter.
(WebCore::X11Helper::createPixmap): Ditto.

* platform/graphics/surfaces/glx/X11Helper.h: Added X11Deleter,
which can be used with unique_ptr to make it call XFree instead of delete.

* platform/graphics/win/FullScreenController.cpp: Use unique_ptr.
(FullScreenController::FullScreenController): Use make_unique.
(FullScreenController::enterFullScreen): Ditto.
* platform/graphics/win/FullScreenController.h: Use unique_ptr.

* platform/graphics/win/GraphicsContext3DWin.cpp: Removed unneeded includes.

* platform/graphics/win/WKCAImageQueue.cpp:
(WebCore::WKCAImageQueue::WKCAImageQueue): Use make_unique.
* platform/graphics/win/WKCAImageQueue.h: Use unique_ptr.

* platform/network/NetworkStorageSessionStub.cpp: Removed unneeded include.

* platform/network/ResourceHandleInternal.h: Use unique_ptr.

* platform/network/curl/MultipartHandle.cpp:
(WebCore::MultipartHandle::create): Deleted.
* platform/network/curl/MultipartHandle.h: Deleted the create function.

* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::headerCallback): Use make_unique.

Source/WebKit2:

* NetworkProcess/cache/NetworkCacheEncoder.h: Added an include now
needed that was inherited from OwnPtr.h before.

Source/WTF:

* WTF.vcxproj/WTF.vcxproj: Removed OwnPtr source files.
* WTF.vcxproj/WTF.vcxproj.filters: Ditto.
* WTF.xcodeproj/project.pbxproj: Ditto.
* wtf/CMakeLists.txt: Ditto.

* wtf/Forward.h: Removed OwnPtr and PassOwnPtr.
* wtf/HashTraits.h: Ditto.

* wtf/OwnPtr.h: Removed.
* wtf/OwnPtrCommon.h: Removed.
* wtf/PassOwnPtr.h: Removed.

* wtf/SizeLimits.cpp: Removed OwnPtr.
* wtf/VectorTraits.h: Removed OwnPtr specialization.

Tools:

* DumpRenderTree/win/HistoryDelegate.h: Removed unneeded include.
* DumpRenderTree/win/UIDelegate.h: Ditto.

* TestWebKitAPI/Tests/WTF/HashMap.cpp: Removed OwnPtr-specific test cases.
* TestWebKitAPI/Tests/WTF/HashSet.cpp: Ditto.

* TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp: Removed unneeded include.

* TestWebKitAPI/Tests/WebKit2/UserMessage.cpp: Use unique_ptr.
(TestWebKitAPI::WebKit2UserMessageRoundTripTest::SetUp): Use make_unique.
* TestWebKitAPI/Tests/WebKit2/WillLoad.cpp: Ditto.
(TestWebKitAPI::WebKit2WillLoadTest::SetUp): Ditto.
* TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp:
(WebKitDOMDOMWindowTest::create): Ditto.
* TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
(documentLoadedCallback): Use a queue of DelayedSignal objects instead
of smart pointers to DelayedSIgnal objects.
(uriChangedCallback): Ditto.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFWTFvcxprojWTFvcxproj">trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj</a></li>
<li><a href="#trunkSourceWTFWTFvcxprojWTFvcxprojfilters">trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters</a></li>
<li><a href="#trunkSourceWTFWTFxcodeprojprojectpbxproj">trunk/Source/WTF/WTF.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWTFwtfCMakeListstxt">trunk/Source/WTF/wtf/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWTFwtfForwardh">trunk/Source/WTF/wtf/Forward.h</a></li>
<li><a href="#trunkSourceWTFwtfHashTraitsh">trunk/Source/WTF/wtf/HashTraits.h</a></li>
<li><a href="#trunkSourceWTFwtfSizeLimitscpp">trunk/Source/WTF/wtf/SizeLimits.cpp</a></li>
<li><a href="#trunkSourceWTFwtfVectorTraitsh">trunk/Source/WTF/wtf/VectorTraits.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorePlatformEflcmake">trunk/Source/WebCore/PlatformEfl.cmake</a></li>
<li><a href="#trunkSourceWebCorePlatformGTKcmake">trunk/Source/WebCore/PlatformGTK.cmake</a></li>
<li><a href="#trunkSourceWebCorePlatformWinCairocmake">trunk/Source/WebCore/PlatformWinCairo.cmake</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxproj">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters</a></li>
<li><a href="#trunkSourceWebCoreplatformCrossThreadCopiercpp">trunk/Source/WebCore/platform/CrossThreadCopier.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformCrossThreadCopierh">trunk/Source/WebCore/platform/CrossThreadCopier.h</a></li>
<li><a href="#trunkSourceWebCoreplatformScrollAnimatorNonecpp">trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformThreadGlobalDatacpp">trunk/Source/WebCore/platform/ThreadGlobalData.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformThreadGlobalDatah">trunk/Source/WebCore/platform/ThreadGlobalData.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationcfCDMSessionAVFoundationCFh">trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationcfMediaPlayerPrivateAVFoundationCFcpp">trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoCairoUtilitiescpp">trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoImageBufferCairocpp">trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoImageBufferDataCairoh">trunk/Source/WebCore/platform/graphics/cairo/ImageBufferDataCairo.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoPathCairocpp">trunk/Source/WebCore/platform/graphics/cairo/PathCairo.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoPlatformContextCairocpp">trunk/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfreetypeFontCacheFreeTypecpp">trunk/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsglxGLContextGLXcpp">trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicssurfaceseglEGLSurfacecpp">trunk/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicssurfacesglxGLXConfigSelectorh">trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXConfigSelector.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicssurfacesglxGLXSurfacecpp">trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXSurface.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicssurfacesglxX11Helpercpp">trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicssurfacesglxX11Helperh">trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinFullScreenControllercpp">trunk/Source/WebCore/platform/graphics/win/FullScreenController.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinFullScreenControllerh">trunk/Source/WebCore/platform/graphics/win/FullScreenController.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinGraphicsContext3DWincpp">trunk/Source/WebCore/platform/graphics/win/GraphicsContext3DWin.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinWKCAImageQueuecpp">trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinWKCAImageQueueh">trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.h</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkNetworkStorageSessionStubcpp">trunk/Source/WebCore/platform/network/NetworkStorageSessionStub.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkResourceHandleInternalh">trunk/Source/WebCore/platform/network/ResourceHandleInternal.h</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkcurlMultipartHandlecpp">trunk/Source/WebCore/platform/network/curl/MultipartHandle.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkcurlMultipartHandleh">trunk/Source/WebCore/platform/network/curl/MultipartHandle.h</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkcurlResourceHandleManagercpp">trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcesscacheNetworkCacheEncoderh">trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEncoder.h</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsDumpRenderTreewinHistoryDelegateh">trunk/Tools/DumpRenderTree/win/HistoryDelegate.h</a></li>
<li><a href="#trunkToolsDumpRenderTreewinUIDelegateh">trunk/Tools/DumpRenderTree/win/UIDelegate.h</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWTFHashMapcpp">trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWTFHashSetcpp">trunk/Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKitwinWebViewDestructioncpp">trunk/Tools/TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKit2UserMessagecpp">trunk/Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKit2WillLoadcpp">trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillLoad.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKit2GtkDOMDOMWindowTestcpp">trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKit2GtkWebExtensionTestcpp">trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWTFwtfOwnPtrh">trunk/Source/WTF/wtf/OwnPtr.h</a></li>
<li><a href="#trunkSourceWTFwtfOwnPtrCommonh">trunk/Source/WTF/wtf/OwnPtrCommon.h</a></li>
<li><a href="#trunkSourceWTFwtfPassOwnPtrh">trunk/Source/WTF/wtf/PassOwnPtr.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoOwnPtrCairocpp">trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscairoOwnPtrCairoh">trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicssurfacesglxOwnPtrX11h">trunk/Source/WebCore/platform/graphics/surfaces/glx/OwnPtrX11.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/ChangeLog        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2015-04-24  Darin Adler  &lt;darin@apple.com&gt;
+
+        Convert OwnPtr and PassOwnPtr uses to std::unique_ptr
+        https://bugs.webkit.org/show_bug.cgi?id=128007
+
+        Reviewed by Anders Carlsson.
+
+        * WTF.vcxproj/WTF.vcxproj: Removed OwnPtr source files.
+        * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
+        * WTF.xcodeproj/project.pbxproj: Ditto.
+        * wtf/CMakeLists.txt: Ditto.
+
+        * wtf/Forward.h: Removed OwnPtr and PassOwnPtr.
+        * wtf/HashTraits.h: Ditto.
+
+        * wtf/OwnPtr.h: Removed.
+        * wtf/OwnPtrCommon.h: Removed.
+        * wtf/PassOwnPtr.h: Removed.
+
+        * wtf/SizeLimits.cpp: Removed OwnPtr.
+        * wtf/VectorTraits.h: Removed OwnPtr specialization.
+
</ins><span class="cx"> 2015-04-23  Jer Noble  &lt;jer.noble@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Disable HAVE_AVKIT on AppleTV
</span></span></pre></div>
<a id="trunkSourceWTFWTFvcxprojWTFvcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -237,8 +237,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\Noncopyable.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\NumberOfCores.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\OSRandomSource.h&quot; /&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\wtf\OwnPtr.h&quot; /&gt;
-    &lt;ClInclude Include=&quot;..\wtf\OwnPtrCommon.h&quot; /&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\PackedIntVector.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\PageAllocation.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\PageBlock.h&quot; /&gt;
</span><span class="lines">@@ -247,7 +245,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\ParallelJobsGeneric.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\ParallelJobsLibdispatch.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\ParallelJobsOpenMP.h&quot; /&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\wtf\PassOwnPtr.h&quot; /&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\PassRefPtr.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\Platform.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\PrintStream.h&quot; /&gt;
</span></span></pre></div>
<a id="trunkSourceWTFWTFvcxprojWTFvcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -528,12 +528,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\OSRandomSource.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;wtf&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\wtf\OwnPtr.h&quot;&gt;
-      &lt;Filter&gt;wtf&lt;/Filter&gt;
-    &lt;/ClInclude&gt;
-    &lt;ClInclude Include=&quot;..\wtf\OwnPtrCommon.h&quot;&gt;
-      &lt;Filter&gt;wtf&lt;/Filter&gt;
-    &lt;/ClInclude&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\PackedIntVector.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;wtf&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><span class="lines">@@ -558,9 +552,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\ParallelJobsOpenMP.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;wtf&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\wtf\PassOwnPtr.h&quot;&gt;
-      &lt;Filter&gt;wtf&lt;/Filter&gt;
-    &lt;/ClInclude&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\PassRefPtr.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;wtf&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span></span></pre></div>
<a id="trunkSourceWTFWTFxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.xcodeproj/project.pbxproj (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -185,8 +185,6 @@
</span><span class="cx">                 A8A473F7151A825B004123FF /* OSAllocatorPosix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A472D8151A825B004123FF /* OSAllocatorPosix.cpp */; };
</span><span class="cx">                 A8A473F9151A825B004123FF /* OSRandomSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A472DA151A825B004123FF /* OSRandomSource.cpp */; };
</span><span class="cx">                 A8A473FA151A825B004123FF /* OSRandomSource.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472DB151A825B004123FF /* OSRandomSource.h */; };
</span><del>-                A8A473FC151A825B004123FF /* OwnPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472DD151A825B004123FF /* OwnPtr.h */; };
-                A8A473FD151A825B004123FF /* OwnPtrCommon.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472DE151A825B004123FF /* OwnPtrCommon.h */; };
</del><span class="cx">                 A8A473FE151A825B004123FF /* PackedIntVector.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472DF151A825B004123FF /* PackedIntVector.h */; };
</span><span class="cx">                 A8A473FF151A825B004123FF /* PageAllocation.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472E0151A825B004123FF /* PageAllocation.h */; };
</span><span class="cx">                 A8A47402151A825B004123FF /* PageBlock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A472E3151A825B004123FF /* PageBlock.cpp */; };
</span><span class="lines">@@ -194,7 +192,6 @@
</span><span class="cx">                 A8A47404151A825B004123FF /* PageReservation.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472E5151A825B004123FF /* PageReservation.h */; };
</span><span class="cx">                 A8A47405151A825B004123FF /* ParallelJobs.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472E6151A825B004123FF /* ParallelJobs.h */; };
</span><span class="cx">                 A8A47408151A825B004123FF /* ParallelJobsLibdispatch.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472E9151A825B004123FF /* ParallelJobsLibdispatch.h */; };
</span><del>-                A8A4740B151A825B004123FF /* PassOwnPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472EC151A825B004123FF /* PassOwnPtr.h */; };
</del><span class="cx">                 A8A4740C151A825B004123FF /* PassRefPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472ED151A825B004123FF /* PassRefPtr.h */; };
</span><span class="cx">                 A8A47414151A825B004123FF /* RandomNumber.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A472FB151A825B004123FF /* RandomNumber.cpp */; };
</span><span class="cx">                 A8A47415151A825B004123FF /* RandomNumber.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472FC151A825B004123FF /* RandomNumber.h */; };
</span><span class="lines">@@ -476,8 +473,6 @@
</span><span class="cx">                 A8A472D8151A825B004123FF /* OSAllocatorPosix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OSAllocatorPosix.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472DA151A825B004123FF /* OSRandomSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OSRandomSource.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472DB151A825B004123FF /* OSRandomSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OSRandomSource.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                A8A472DD151A825B004123FF /* OwnPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OwnPtr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                A8A472DE151A825B004123FF /* OwnPtrCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OwnPtrCommon.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 A8A472DF151A825B004123FF /* PackedIntVector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PackedIntVector.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472E0151A825B004123FF /* PageAllocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageAllocation.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472E3151A825B004123FF /* PageBlock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PageBlock.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -485,7 +480,6 @@
</span><span class="cx">                 A8A472E5151A825B004123FF /* PageReservation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageReservation.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472E6151A825B004123FF /* ParallelJobs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ParallelJobs.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472E9151A825B004123FF /* ParallelJobsLibdispatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ParallelJobsLibdispatch.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                A8A472EC151A825B004123FF /* PassOwnPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PassOwnPtr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 A8A472ED151A825B004123FF /* PassRefPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PassRefPtr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472FB151A825B004123FF /* RandomNumber.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RandomNumber.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472FC151A825B004123FF /* RandomNumber.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RandomNumber.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -795,8 +789,6 @@
</span><span class="cx">                                 A8A472DA151A825B004123FF /* OSRandomSource.cpp */,
</span><span class="cx">                                 A8A472DB151A825B004123FF /* OSRandomSource.h */,
</span><span class="cx">                                 1AFDE6521953B23D00C48FFA /* Optional.h */,
</span><del>-                                A8A472DD151A825B004123FF /* OwnPtr.h */,
-                                A8A472DE151A825B004123FF /* OwnPtrCommon.h */,
</del><span class="cx">                                 A8A472DF151A825B004123FF /* PackedIntVector.h */,
</span><span class="cx">                                 A8A472E0151A825B004123FF /* PageAllocation.h */,
</span><span class="cx">                                 A8A472E3151A825B004123FF /* PageBlock.cpp */,
</span><span class="lines">@@ -804,7 +796,6 @@
</span><span class="cx">                                 A8A472E5151A825B004123FF /* PageReservation.h */,
</span><span class="cx">                                 A8A472E6151A825B004123FF /* ParallelJobs.h */,
</span><span class="cx">                                 A8A472E9151A825B004123FF /* ParallelJobsLibdispatch.h */,
</span><del>-                                A8A472EC151A825B004123FF /* PassOwnPtr.h */,
</del><span class="cx">                                 A8A472ED151A825B004123FF /* PassRefPtr.h */,
</span><span class="cx">                                 A876DBD7151816E500DADB95 /* Platform.h */,
</span><span class="cx">                                 0F9D335D165DBA73005AD387 /* PrintStream.cpp */,
</span><span class="lines">@@ -1131,8 +1122,6 @@
</span><span class="cx">                                 7E29C33E15FFD79B00516D61 /* ObjcRuntimeExtras.h in Headers */,
</span><span class="cx">                                 A8A473F6151A825B004123FF /* OSAllocator.h in Headers */,
</span><span class="cx">                                 A8A473FA151A825B004123FF /* OSRandomSource.h in Headers */,
</span><del>-                                A8A473FC151A825B004123FF /* OwnPtr.h in Headers */,
-                                A8A473FD151A825B004123FF /* OwnPtrCommon.h in Headers */,
</del><span class="cx">                                 0FB14E1B1810E1DC009B6B4D /* BagToHashMap.h in Headers */,
</span><span class="cx">                                 A8A473FE151A825B004123FF /* PackedIntVector.h in Headers */,
</span><span class="cx">                                 A8A473FF151A825B004123FF /* PageAllocation.h in Headers */,
</span><span class="lines">@@ -1140,7 +1129,6 @@
</span><span class="cx">                                 A8A47404151A825B004123FF /* PageReservation.h in Headers */,
</span><span class="cx">                                 A8A47405151A825B004123FF /* ParallelJobs.h in Headers */,
</span><span class="cx">                                 A8A47408151A825B004123FF /* ParallelJobsLibdispatch.h in Headers */,
</span><del>-                                A8A4740B151A825B004123FF /* PassOwnPtr.h in Headers */,
</del><span class="cx">                                 A8A4740C151A825B004123FF /* PassRefPtr.h in Headers */,
</span><span class="cx">                                 A876DBD8151816E500DADB95 /* Platform.h in Headers */,
</span><span class="cx">                                 0FB14E19180FA218009B6B4D /* Bag.h in Headers */,
</span></span></pre></div>
<a id="trunkSourceWTFwtfCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/CMakeLists.txt (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/CMakeLists.txt        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/CMakeLists.txt        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -55,8 +55,6 @@
</span><span class="cx">     NumberOfCores.h
</span><span class="cx">     OSAllocator.h
</span><span class="cx">     OSRandomSource.h
</span><del>-    OwnPtr.h
-    OwnPtrCommon.h
</del><span class="cx">     PageAllocation.h
</span><span class="cx">     PageBlock.h
</span><span class="cx">     PageReservation.h
</span><span class="lines">@@ -64,7 +62,6 @@
</span><span class="cx">     ParallelJobsGeneric.h
</span><span class="cx">     ParallelJobsLibdispatch.h
</span><span class="cx">     ParallelJobsOpenMP.h
</span><del>-    PassOwnPtr.h
</del><span class="cx">     PassRefPtr.h
</span><span class="cx">     Platform.h
</span><span class="cx">     PrintStream.h
</span></span></pre></div>
<a id="trunkSourceWTFwtfForwardh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Forward.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Forward.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/Forward.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -28,8 +28,6 @@
</span><span class="cx"> template&lt;typename T&gt; class Function;
</span><span class="cx"> template&lt;typename T&gt; class LazyNeverDestroyed;
</span><span class="cx"> template&lt;typename T&gt; class NeverDestroyed;
</span><del>-template&lt;typename T&gt; class OwnPtr;
-template&lt;typename T&gt; class PassOwnPtr;
</del><span class="cx"> template&lt;typename T&gt; class PassRefPtr;
</span><span class="cx"> template&lt;typename T&gt; class RefPtr;
</span><span class="cx"> template&lt;typename T&gt; class Ref;
</span><span class="lines">@@ -65,8 +63,6 @@
</span><span class="cx"> using WTF::LazyNeverDestroyed;
</span><span class="cx"> using WTF::NeverDestroyed;
</span><span class="cx"> using WTF::OrdinalNumber;
</span><del>-using WTF::OwnPtr;
-using WTF::PassOwnPtr;
</del><span class="cx"> using WTF::PassRefPtr;
</span><span class="cx"> using WTF::PrintStream;
</span><span class="cx"> using WTF::Ref;
</span></span></pre></div>
<a id="trunkSourceWTFwtfHashTraitsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/HashTraits.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/HashTraits.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/HashTraits.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -30,8 +30,6 @@
</span><span class="cx"> 
</span><span class="cx"> class String;
</span><span class="cx"> 
</span><del>-template&lt;typename T&gt; class OwnPtr;
-
</del><span class="cx"> template&lt;typename T&gt; struct HashTraits;
</span><span class="cx"> 
</span><span class="cx"> template&lt;bool isInteger, typename T&gt; struct GenericHashTraitsBase;
</span><span class="lines">@@ -120,17 +118,8 @@
</span><span class="cx">     static T* peek(std::nullptr_t) { return nullptr; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-template&lt;typename T&gt; struct HashTraits&lt;OwnPtr&lt;T&gt;&gt; : SimpleClassHashTraits&lt;OwnPtr&lt;T&gt;&gt; {
-    typedef std::nullptr_t EmptyValueType;
-    static EmptyValueType emptyValue() { return nullptr; }
-
-    typedef T* PeekType;
-    static T* peek(const OwnPtr&lt;T&gt;&amp; value) { return value.get(); }
-    static T* peek(std::nullptr_t) { return nullptr; }
-};
-
</del><span class="cx"> template&lt;typename P&gt; struct HashTraits&lt;RefPtr&lt;P&gt;&gt; : SimpleClassHashTraits&lt;RefPtr&lt;P&gt;&gt; {
</span><del>-    static P* emptyValue() { return 0; }
</del><ins>+    static P* emptyValue() { return nullptr; }
</ins><span class="cx"> 
</span><span class="cx">     typedef P* PeekType;
</span><span class="cx">     static PeekType peek(const RefPtr&lt;P&gt;&amp; value) { return value.get(); }
</span></span></pre></div>
<a id="trunkSourceWTFwtfOwnPtrh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WTF/wtf/OwnPtr.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/OwnPtr.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/OwnPtr.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,230 +0,0 @@
</span><del>-/*
- *  Copyright (C) 2006, 2007, 2008, 2009, 2010, 2014 Apple Inc. All rights reserved.
- *
- *  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 WTF_OwnPtr_h
-#define WTF_OwnPtr_h
-
-#include &lt;algorithm&gt;
-#include &lt;cstddef&gt;
-#include &lt;memory&gt;
-#include &lt;wtf/Assertions.h&gt;
-#include &lt;wtf/Atomics.h&gt;
-#include &lt;wtf/GetPtr.h&gt;
-#include &lt;wtf/HashTraits.h&gt;
-#include &lt;wtf/Noncopyable.h&gt;
-#include &lt;wtf/OwnPtrCommon.h&gt;
-
-namespace WTF {
-
-    template&lt;typename T&gt; class PassOwnPtr;
-    template&lt;typename T&gt; PassOwnPtr&lt;T&gt; adoptPtr(T*);
-
-    template&lt;typename T&gt; class OwnPtr {
-    public:
-        typedef T ValueType;
-        typedef ValueType* PtrType;
-
-        OwnPtr() : m_ptr(0) { }
-        OwnPtr(std::nullptr_t) : m_ptr(0) { }
-
-        // See comment in PassOwnPtr.h for why this takes a const reference.
-        template&lt;typename U&gt; OwnPtr(const PassOwnPtr&lt;U&gt;&amp; o);
-
-        ~OwnPtr() { deleteOwnedPtr(m_ptr); }
-
-        PtrType get() const { return m_ptr; }
-
-        void clear();
-        PassOwnPtr&lt;T&gt; release();
-        PtrType leakPtr() WARN_UNUSED_RETURN;
-
-        ValueType&amp; operator*() const { ASSERT(m_ptr); return *m_ptr; }
-        PtrType operator-&gt;() const { ASSERT(m_ptr); return m_ptr; }
-
-        bool operator!() const { return !m_ptr; }
-
-        // This conversion operator allows implicit conversion to bool but not to other integer types.
-        typedef PtrType OwnPtr::*UnspecifiedBoolType;
-        operator UnspecifiedBoolType() const { return m_ptr ? &amp;OwnPtr::m_ptr : 0; }
-
-        OwnPtr&amp; operator=(const PassOwnPtr&lt;T&gt;&amp;);
-        OwnPtr&amp; operator=(std::nullptr_t) { clear(); return *this; }
-        template&lt;typename U&gt; OwnPtr&amp; operator=(const PassOwnPtr&lt;U&gt;&amp;);
-
-        OwnPtr(OwnPtr&amp;&amp;);
-        template&lt;typename U&gt; OwnPtr(OwnPtr&lt;U&gt;&amp;&amp;);
-
-        OwnPtr&amp; operator=(OwnPtr&amp;&amp;);
-        template&lt;typename U&gt; OwnPtr&amp; operator=(OwnPtr&lt;U&gt;&amp;&amp;);
-
-        // Hash table deleted values, which are only constructed and never copied or destroyed.
-        OwnPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { }
-        bool isHashTableDeletedValue() const { return m_ptr == hashTableDeletedValue(); }
-
-        void swap(OwnPtr&amp; o) { std::swap(m_ptr, o.m_ptr); }
-        
-        // Construct an object to store into this OwnPtr, but only so long as this OwnPtr
-        // doesn't already point to an object. This will ensure that after you call this,
-        // the OwnPtr will point to an instance of T, even if called concurrently. This
-        // instance may or may not have been created by this call. Moreover, this call uses
-        // an opportunistic transaction, in that we may create an instance of T and then
-        // immediately throw it away, if in the process of creating that instance some
-        // other thread was doing the same thing and stored its instance into this pointer
-        // before we had a chance to do so.
-        template&lt;typename... Args&gt;
-        void createTransactionally(Args...);
-
-    private:
-        explicit OwnPtr(PtrType ptr) : m_ptr(ptr) { }
-
-        static PtrType hashTableDeletedValue() { return reinterpret_cast&lt;PtrType&gt;(-1); }
-
-        // We should never have two OwnPtrs for the same underlying object (otherwise we'll get
-        // double-destruction), so these equality operators should never be needed.
-        template&lt;typename U&gt; bool operator==(const OwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-        template&lt;typename U&gt; bool operator!=(const OwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-        template&lt;typename U&gt; bool operator==(const PassOwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-        template&lt;typename U&gt; bool operator!=(const PassOwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-
-        PtrType m_ptr;
-    };
-
-    template&lt;typename T&gt; template&lt;typename U&gt; inline OwnPtr&lt;T&gt;::OwnPtr(const PassOwnPtr&lt;U&gt;&amp; o)
-        : m_ptr(o.leakPtr())
-    {
-    }
-
-    template&lt;typename T&gt; inline void OwnPtr&lt;T&gt;::clear()
-    {
-        deleteOwnedPtr(std::exchange(m_ptr, nullptr));
-    }
-
-    template&lt;typename T&gt; inline PassOwnPtr&lt;T&gt; OwnPtr&lt;T&gt;::release()
-    {
-        return adoptPtr(std::exchange(m_ptr, nullptr));
-    }
-
-    template&lt;typename T&gt; inline typename OwnPtr&lt;T&gt;::PtrType OwnPtr&lt;T&gt;::leakPtr()
-    {
-        return std::exchange(m_ptr, nullptr);
-    }
-
-    template&lt;typename T&gt; inline OwnPtr&lt;T&gt;&amp; OwnPtr&lt;T&gt;::operator=(const PassOwnPtr&lt;T&gt;&amp; o)
-    {
-        PtrType ptr = std::exchange(m_ptr, o.leakPtr());
-        ASSERT(!ptr || m_ptr != ptr);
-        deleteOwnedPtr(ptr);
-        return *this;
-    }
-
-    template&lt;typename T&gt; template&lt;typename U&gt; inline OwnPtr&lt;T&gt;&amp; OwnPtr&lt;T&gt;::operator=(const PassOwnPtr&lt;U&gt;&amp; o)
-    {
-        PtrType ptr = std::exchange(m_ptr, o.leakPtr());
-        ASSERT(!ptr || m_ptr != ptr);
-        deleteOwnedPtr(ptr);
-        return *this;
-    }
-
-    template&lt;typename T&gt; inline OwnPtr&lt;T&gt;::OwnPtr(OwnPtr&lt;T&gt;&amp;&amp; o)
-        : m_ptr(o.leakPtr())
-    {
-    }
-
-    template&lt;typename T&gt; template&lt;typename U&gt; inline OwnPtr&lt;T&gt;::OwnPtr(OwnPtr&lt;U&gt;&amp;&amp; o)
-        : m_ptr(o.leakPtr())
-    {
-    }
-
-    template&lt;typename T&gt; inline auto OwnPtr&lt;T&gt;::operator=(OwnPtr&amp;&amp; o) -&gt; OwnPtr&amp;
-    {
-        ASSERT(!o || o != m_ptr);
-        OwnPtr ptr = WTF::move(o);
-        swap(ptr);
-        return *this;
-    }
-
-    template&lt;typename T&gt; template&lt;typename U&gt; inline auto OwnPtr&lt;T&gt;::operator=(OwnPtr&lt;U&gt;&amp;&amp; o) -&gt; OwnPtr&amp;
-    {
-        ASSERT(!o || o != m_ptr);
-        OwnPtr ptr = WTF::move(o);
-        swap(ptr);
-        return *this;
-    }
-
-    template&lt;typename T&gt; inline void swap(OwnPtr&lt;T&gt;&amp; a, OwnPtr&lt;T&gt;&amp; b)
-    {
-        a.swap(b);
-    }
-
-    template&lt;typename T, typename U&gt; inline bool operator==(const OwnPtr&lt;T&gt;&amp; a, U* b)
-    {
-        return a.get() == b; 
-    }
-
-    template&lt;typename T, typename U&gt; inline bool operator==(T* a, const OwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a == b.get(); 
-    }
-
-    template&lt;typename T, typename U&gt; inline bool operator!=(const OwnPtr&lt;T&gt;&amp; a, U* b)
-    {
-        return a.get() != b; 
-    }
-
-    template&lt;typename T, typename U&gt; inline bool operator!=(T* a, const OwnPtr&lt;U&gt;&amp; b)
-    {
-        return a != b.get(); 
-    }
-
-    template&lt;typename T&gt; template&lt;typename... Args&gt; inline void OwnPtr&lt;T&gt;::createTransactionally(Args... args)
-    {
-        if (m_ptr) {
-            WTF::loadLoadFence();
-            return;
-        }
-        
-        T* newObject = new T(args...);
-        WTF::storeStoreFence();
-#if ENABLE(COMPARE_AND_SWAP)
-        do {
-            if (m_ptr) {
-                delete newObject;
-                WTF::loadLoadFence();
-                return;
-            }
-        } while (!WTF::weakCompareAndSwap(bitwise_cast&lt;void*volatile*&gt;(&amp;m_ptr), nullptr, newObject));
-#else
-        m_ptr = newObject;
-#endif
-    }
-
-    template &lt;typename T&gt; struct IsSmartPtr&lt;OwnPtr&lt;T&gt;&gt; {
-        static const bool value = true;
-    };
-
-    template&lt;typename P&gt; struct DefaultHash&lt;OwnPtr&lt;P&gt;&gt; {
-        typedef PtrHash&lt;OwnPtr&lt;P&gt;&gt; Hash;
-    };
-
-} // namespace WTF
-
-using WTF::OwnPtr;
-
-#endif // WTF_OwnPtr_h
</del></span></pre></div>
<a id="trunkSourceWTFwtfOwnPtrCommonh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WTF/wtf/OwnPtrCommon.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/OwnPtrCommon.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/OwnPtrCommon.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,42 +0,0 @@
</span><del>-/*
- * Copyright (C) 2009, 2013 Apple Inc. All rights reserved.
- * Copyright (C) 2009 Torch Mobile, Inc.
- * Copyright (C) 2010 Company 100 Inc.
- *
- * 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 WTF_OwnPtrCommon_h
-#define WTF_OwnPtrCommon_h
-
-namespace WTF {
-
-    template &lt;typename T&gt; inline void deleteOwnedPtr(T* ptr)
-    {
-        typedef char known[sizeof(T) ? 1 : -1];
-        if (sizeof(known))
-            delete ptr;
-    }
-
-} // namespace WTF
-
-#endif // WTF_OwnPtrCommon_h
</del></span></pre></div>
<a id="trunkSourceWTFwtfPassOwnPtrh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WTF/wtf/PassOwnPtr.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/PassOwnPtr.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/PassOwnPtr.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,168 +0,0 @@
</span><del>-/*
- * Copyright (C) 2009, 2010 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 WTF_PassOwnPtr_h
-#define WTF_PassOwnPtr_h
-
-#include &lt;cstddef&gt;
-#include &lt;wtf/Assertions.h&gt;
-#include &lt;wtf/GetPtr.h&gt;
-#include &lt;wtf/OwnPtrCommon.h&gt;
-#include &lt;type_traits&gt;
-
-namespace WTF {
-
-    template&lt;typename T&gt; class OwnPtr;
-    template&lt;typename T&gt; class PassOwnPtr;
-    template&lt;typename T&gt; PassOwnPtr&lt;T&gt; adoptPtr(T*);
-
-    class RefCountedBase;
-    class ThreadSafeRefCountedBase;
-
-    template&lt;typename T&gt; class PassOwnPtr {
-    public:
-        typedef T ValueType;
-        typedef ValueType* PtrType;
-
-        PassOwnPtr() : m_ptr(0) { }
-        PassOwnPtr(std::nullptr_t) : m_ptr(0) { }
-
-        // It somewhat breaks the type system to allow transfer of ownership out of
-        // a const PassOwnPtr. However, it makes it much easier to work with PassOwnPtr
-        // temporaries, and we don't have a need to use real const PassOwnPtrs anyway.
-        PassOwnPtr(const PassOwnPtr&amp; o) : m_ptr(o.leakPtr()) { }
-        template&lt;typename U&gt; PassOwnPtr(const PassOwnPtr&lt;U&gt;&amp; o) : m_ptr(o.leakPtr()) { }
-
-        ~PassOwnPtr() { deleteOwnedPtr(m_ptr); }
-
-        PtrType get() const { return m_ptr; }
-
-        PtrType leakPtr() const WARN_UNUSED_RETURN;
-
-        ValueType&amp; operator*() const { ASSERT(m_ptr); return *m_ptr; }
-        PtrType operator-&gt;() const { ASSERT(m_ptr); return m_ptr; }
-
-        bool operator!() const { return !m_ptr; }
-
-        // This conversion operator allows implicit conversion to bool but not to other integer types.
-        typedef PtrType PassOwnPtr::*UnspecifiedBoolType;
-        operator UnspecifiedBoolType() const { return m_ptr ? &amp;PassOwnPtr::m_ptr : 0; }
-
-        PassOwnPtr&amp; operator=(const PassOwnPtr&amp;) { COMPILE_ASSERT(!sizeof(T*), PassOwnPtr_should_never_be_assigned_to); return *this; }
-
-        template&lt;typename U&gt; friend PassOwnPtr&lt;U&gt; adoptPtr(U*);
-
-    private:
-        explicit PassOwnPtr(PtrType ptr) : m_ptr(ptr) { }
-
-        // We should never have two OwnPtrs for the same underlying object (otherwise we'll get
-        // double-destruction), so these equality operators should never be needed.
-        template&lt;typename U&gt; bool operator==(const PassOwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-        template&lt;typename U&gt; bool operator!=(const PassOwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-        template&lt;typename U&gt; bool operator==(const OwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-        template&lt;typename U&gt; bool operator!=(const OwnPtr&lt;U&gt;&amp;) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
-
-        mutable PtrType m_ptr;
-    };
-
-    template&lt;typename T&gt; inline typename PassOwnPtr&lt;T&gt;::PtrType PassOwnPtr&lt;T&gt;::leakPtr() const
-    {
-        return std::exchange(m_ptr, nullptr);
-    }
-
-    template&lt;typename T, typename U&gt; inline bool operator==(const PassOwnPtr&lt;T&gt;&amp; a, const PassOwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a.get() == b.get(); 
-    }
-
-    template&lt;typename T, typename U&gt; inline bool operator==(const PassOwnPtr&lt;T&gt;&amp; a, const OwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a.get() == b.get(); 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator==(const OwnPtr&lt;T&gt;&amp; a, const PassOwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a.get() == b.get(); 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator==(const PassOwnPtr&lt;T&gt;&amp; a, U* b) 
-    {
-        return a.get() == b; 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator==(T* a, const PassOwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a == b.get(); 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator!=(const PassOwnPtr&lt;T&gt;&amp; a, const PassOwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a.get() != b.get(); 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator!=(const PassOwnPtr&lt;T&gt;&amp; a, const OwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a.get() != b.get(); 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator!=(const OwnPtr&lt;T&gt;&amp; a, const PassOwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a.get() != b.get(); 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator!=(const PassOwnPtr&lt;T&gt;&amp; a, U* b)
-    {
-        return a.get() != b; 
-    }
-    
-    template&lt;typename T, typename U&gt; inline bool operator!=(T* a, const PassOwnPtr&lt;U&gt;&amp; b) 
-    {
-        return a != b.get(); 
-    }
-
-    template&lt;typename T&gt; inline PassOwnPtr&lt;T&gt; adoptPtr(T* ptr)
-    {
-        static_assert(!std::is_convertible&lt;T*, RefCountedBase*&gt;::value, &quot;Do not use adoptPtr with RefCounted, use adoptRef!&quot;);
-        static_assert(!std::is_convertible&lt;T*, ThreadSafeRefCountedBase*&gt;::value, &quot;Do not use adoptPtr with ThreadSafeRefCounted, use adoptRef!&quot;);
-
-        return PassOwnPtr&lt;T&gt;(ptr);
-    }
-
-    template&lt;typename T, typename U&gt; inline PassOwnPtr&lt;T&gt; static_pointer_cast(const PassOwnPtr&lt;U&gt;&amp; p) 
-    {
-        return adoptPtr(static_cast&lt;T*&gt;(p.leakPtr()));
-    }
-
-    template &lt;typename T&gt; struct IsSmartPtr&lt;PassOwnPtr&lt;T&gt;&gt; {
-        static const bool value = true;
-    };
-
-} // namespace WTF
-
-using WTF::PassOwnPtr;
-using WTF::adoptPtr;
-using WTF::static_pointer_cast;
-
-#endif // WTF_PassOwnPtr_h
</del></span></pre></div>
<a id="trunkSourceWTFwtfSizeLimitscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/SizeLimits.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/SizeLimits.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/SizeLimits.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #include &lt;type_traits&gt;
</span><span class="cx"> #include &lt;utility&gt;
</span><span class="cx"> #include &lt;wtf/Assertions.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="lines">@@ -55,7 +54,6 @@
</span><span class="cx"> };
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-static_assert(sizeof(OwnPtr&lt;int&gt;) == sizeof(int*), &quot;OwnPtr should stay small!&quot;);
</del><span class="cx"> static_assert(sizeof(PassRefPtr&lt;RefCounted&lt;int&gt;&gt;) == sizeof(int*), &quot;PassRefPtr should stay small!&quot;);
</span><span class="cx"> static_assert(sizeof(RefCounted&lt;int&gt;) == sizeof(SameSizeAsRefCounted), &quot;RefCounted should stay small!&quot;);
</span><span class="cx"> static_assert(sizeof(RefPtr&lt;RefCounted&lt;int&gt;&gt;) == sizeof(int*), &quot;RefPtr should stay small!&quot;);
</span></span></pre></div>
<a id="trunkSourceWTFwtfVectorTraitsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/VectorTraits.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/VectorTraits.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WTF/wtf/VectorTraits.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -21,7 +21,6 @@
</span><span class="cx"> #ifndef WTF_VectorTraits_h
</span><span class="cx"> #define WTF_VectorTraits_h
</span><span class="cx"> 
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Ref.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;utility&gt;
</span><span class="lines">@@ -66,23 +65,14 @@
</span><span class="cx">         static const bool canCompareWithMemcmp = true;
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    // We know OwnPtr and RefPtr are simple enough that initializing to 0 and moving with memcpy
-    // (and then not destructing the original) will totally work
-    template&lt;typename P&gt;
-    struct VectorTraits&lt;RefPtr&lt;P&gt;&gt; : SimpleClassVectorTraits { };
</del><ins>+    // We know smart pointers are simple enough that initializing to 0 and moving with memcpy
+    // (and then not destructing the original) will work.
</ins><span class="cx"> 
</span><del>-    template&lt;typename P&gt;
-    struct VectorTraits&lt;OwnPtr&lt;P&gt;&gt; : SimpleClassVectorTraits { };
</del><ins>+    template&lt;typename P&gt; struct VectorTraits&lt;RefPtr&lt;P&gt;&gt; : SimpleClassVectorTraits { };
+    template&lt;typename P&gt; struct VectorTraits&lt;std::unique_ptr&lt;P&gt;&gt; : SimpleClassVectorTraits { };
+    template&lt;typename P&gt; struct VectorTraits&lt;Ref&lt;P&gt;&gt; : SimpleClassVectorTraits { };
+    template&lt;&gt; struct VectorTraits&lt;AtomicString&gt; : SimpleClassVectorTraits { };
</ins><span class="cx"> 
</span><del>-    template&lt;typename P&gt;
-    struct VectorTraits&lt;std::unique_ptr&lt;P&gt;&gt; : SimpleClassVectorTraits { };
-
-    template&lt;typename P&gt;
-    struct VectorTraits&lt;Ref&lt;P&gt;&gt; : SimpleClassVectorTraits { };
-
-    template&lt;&gt;
-    struct VectorTraits&lt;AtomicString&gt; : SimpleClassVectorTraits { };
-
</del><span class="cx">     template&lt;typename First, typename Second&gt;
</span><span class="cx">     struct VectorTraits&lt;std::pair&lt;First, Second&gt;&gt;
</span><span class="cx">     {
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/ChangeLog        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,3 +1,94 @@
</span><ins>+2015-04-24  Darin Adler  &lt;darin@apple.com&gt;
+
+        Convert OwnPtr and PassOwnPtr uses to std::unique_ptr
+        https://bugs.webkit.org/show_bug.cgi?id=128007
+
+        Reviewed by Anders Carlsson.
+
+        * PlatformEfl.cmake: Removed OwnPtrCairo source files.
+        * PlatformGTK.cmake: Ditto.
+        * PlatformWinCairo.cmake: Ditto.
+        * WebCore.vcxproj/WebCore.vcxproj: Ditto.
+        * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
+
+        * platform/CrossThreadCopier.cpp: Removed OwnPtr specialization.
+        * platform/CrossThreadCopier.h: Ditto.
+
+        * platform/ScrollAnimatorNone.cpp: Removed unneeded include.
+        * platform/ThreadGlobalData.cpp: Ditto.
+        * platform/ThreadGlobalData.h: Ditto.
+        * platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h: Ditto.
+
+        * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
+        (WebCore::AVFWrapper::processNotification): Use unique_ptr.
+        (WebCore::AVFWrapper::notificationCallback): Use make_unique.
+        (WebCore::AVFWrapper::platformLayer): Ditto.
+
+        * platform/graphics/cairo/CairoUtilities.cpp:
+        (WebCore::appendPathToCairoContext): Use cairo_path_destroy directly
+        instead of a smart pointer; the code path is simple enough that it is
+        clear this way.
+
+        * platform/graphics/cairo/ImageBufferCairo.cpp:
+        (WebCore::ImageBuffer::ImageBuffer): Use make_unique.
+        * platform/graphics/cairo/ImageBufferDataCairo.h: Use unique_ptr.
+
+        * platform/graphics/cairo/OwnPtrCairo.cpp: Removed.
+        * platform/graphics/cairo/OwnPtrCairo.h: Removed.
+
+        * platform/graphics/cairo/PathCairo.cpp:
+        (WebCore::Path::Path): Use cairo_path_destroy directly instead of a
+        smart pointer; the code path is simple enough that it is clear this way.
+        (WebCore::Path::operator=): Ditto.
+        (WebCore::Path::addPath): Ditto.
+        (WebCore::Path::apply): Ditto.
+        * platform/graphics/cairo/PlatformContextCairo.cpp:
+        (WebCore::PlatformContextCairo::clipForPatternFilling): Ditto.
+
+        * platform/graphics/freetype/FontCacheFreeType.cpp: Removed unneeded include.
+        * platform/graphics/glx/GLContextGLX.cpp: Ditto.
+
+        * platform/graphics/surfaces/egl/EGLSurface.cpp:
+        (WebCore::EGLOffScreenSurface::EGLOffScreenSurface): Use make_unique.
+
+        * platform/graphics/surfaces/glx/GLXConfigSelector.h:
+        (WebCore::GLXConfigSelector::findMatchingConfig): Use unique_ptr with X11Deleter.
+        (WebCore::GLXConfigSelector::findMatchingConfigWithVisualId): Ditto.
+        * platform/graphics/surfaces/glx/GLXSurface.cpp:
+        (WebCore::GLXTransportSurface::GLXTransportSurface): Ditto.
+        (WebCore::GLXOffScreenSurface::initialize): Ditto.
+
+        * platform/graphics/surfaces/glx/OwnPtrX11.h: Removed.
+
+        * platform/graphics/surfaces/glx/X11Helper.cpp:
+        (WebCore::X11Helper::createOffScreenWindow): Use unique_ptr with X11Deleter.
+        (WebCore::X11Helper::createPixmap): Ditto.
+
+        * platform/graphics/surfaces/glx/X11Helper.h: Added X11Deleter,
+        which can be used with unique_ptr to make it call XFree instead of delete.
+
+        * platform/graphics/win/FullScreenController.cpp: Use unique_ptr.
+        (FullScreenController::FullScreenController): Use make_unique.
+        (FullScreenController::enterFullScreen): Ditto.
+        * platform/graphics/win/FullScreenController.h: Use unique_ptr.
+
+        * platform/graphics/win/GraphicsContext3DWin.cpp: Removed unneeded includes.
+
+        * platform/graphics/win/WKCAImageQueue.cpp:
+        (WebCore::WKCAImageQueue::WKCAImageQueue): Use make_unique.
+        * platform/graphics/win/WKCAImageQueue.h: Use unique_ptr.
+
+        * platform/network/NetworkStorageSessionStub.cpp: Removed unneeded include.
+
+        * platform/network/ResourceHandleInternal.h: Use unique_ptr.
+
+        * platform/network/curl/MultipartHandle.cpp:
+        (WebCore::MultipartHandle::create): Deleted.
+        * platform/network/curl/MultipartHandle.h: Deleted the create function.
+
+        * platform/network/curl/ResourceHandleManager.cpp:
+        (WebCore::headerCallback): Use make_unique.
+
</ins><span class="cx"> 2015-04-24  Per Arne Vollan  &lt;peavo@outlook.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Win] Popup menu is not accessible.
</span></span></pre></div>
<a id="trunkSourceWebCorePlatformEflcmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/PlatformEfl.cmake (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/PlatformEfl.cmake        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/PlatformEfl.cmake        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -119,7 +119,6 @@
</span><span class="cx">     platform/graphics/cairo/ImageBufferCairo.cpp
</span><span class="cx">     platform/graphics/cairo/ImageCairo.cpp
</span><span class="cx">     platform/graphics/cairo/IntRectCairo.cpp
</span><del>-    platform/graphics/cairo/OwnPtrCairo.cpp
</del><span class="cx">     platform/graphics/cairo/PathCairo.cpp
</span><span class="cx">     platform/graphics/cairo/PatternCairo.cpp
</span><span class="cx">     platform/graphics/cairo/PlatformContextCairo.cpp
</span></span></pre></div>
<a id="trunkSourceWebCorePlatformGTKcmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/PlatformGTK.cmake (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/PlatformGTK.cmake        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/PlatformGTK.cmake        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -78,7 +78,6 @@
</span><span class="cx">     platform/graphics/cairo/ImageBufferCairo.cpp
</span><span class="cx">     platform/graphics/cairo/ImageCairo.cpp
</span><span class="cx">     platform/graphics/cairo/IntRectCairo.cpp
</span><del>-    platform/graphics/cairo/OwnPtrCairo.cpp
</del><span class="cx">     platform/graphics/cairo/PathCairo.cpp
</span><span class="cx">     platform/graphics/cairo/PatternCairo.cpp
</span><span class="cx">     platform/graphics/cairo/PlatformContextCairo.cpp
</span></span></pre></div>
<a id="trunkSourceWebCorePlatformWinCairocmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/PlatformWinCairo.cmake (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/PlatformWinCairo.cmake        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/PlatformWinCairo.cmake        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -50,7 +50,6 @@
</span><span class="cx">     platform/graphics/cairo/ImageBufferCairo.cpp
</span><span class="cx">     platform/graphics/cairo/ImageCairo.cpp
</span><span class="cx">     platform/graphics/cairo/IntRectCairo.cpp
</span><del>-    platform/graphics/cairo/OwnPtrCairo.cpp
</del><span class="cx">     platform/graphics/cairo/PathCairo.cpp
</span><span class="cx">     platform/graphics/cairo/PatternCairo.cpp
</span><span class="cx">     platform/graphics/cairo/PlatformContextCairo.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -8582,16 +8582,6 @@
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><del>-    &lt;ClCompile Include=&quot;..\platform\graphics\cairo\OwnPtrCairo.cpp&quot;&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-    &lt;/ClCompile&gt;
</del><span class="cx">     &lt;ClCompile Include=&quot;..\platform\graphics\cairo\PathCairo.cpp&quot;&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="lines">@@ -20118,16 +20108,6 @@
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">     &lt;/CustomBuildStep&gt;
</span><del>-    &lt;CustomBuildStep Include=&quot;..\platform\graphics\cairo\OwnPtrCairo.h&quot;&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='DebugSuffix|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
-    &lt;/CustomBuildStep&gt;
</del><span class="cx">     &lt;CustomBuildStep Include=&quot;..\platform\graphics\cairo\PlatformPathCairo.h&quot;&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1584,9 +1584,6 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\platform\graphics\cairo\IntRectCairo.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform\graphics\cairo&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><del>-    &lt;ClCompile Include=&quot;..\platform\graphics\cairo\OwnPtrCairo.cpp&quot;&gt;
-      &lt;Filter&gt;platform\graphics\cairo&lt;/Filter&gt;
-    &lt;/ClCompile&gt;
</del><span class="cx">     &lt;ClCompile Include=&quot;..\platform\graphics\cairo\PathCairo.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform\graphics\cairo&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><span class="lines">@@ -15371,9 +15368,6 @@
</span><span class="cx">     &lt;CustomBuildStep Include=&quot;..\platform\graphics\cairo\GraphicsContextPlatformPrivateCairo.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform\graphics\cairo&lt;/Filter&gt;
</span><span class="cx">     &lt;/CustomBuildStep&gt;
</span><del>-    &lt;CustomBuildStep Include=&quot;..\platform\graphics\cairo\OwnPtrCairo.h&quot;&gt;
-      &lt;Filter&gt;platform\graphics\cairo&lt;/Filter&gt;
-    &lt;/CustomBuildStep&gt;
</del><span class="cx">     &lt;CustomBuildStep Include=&quot;..\platform\graphics\cairo\PlatformPathCairo.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;platform\graphics\cairo&lt;/Filter&gt;
</span><span class="cx">     &lt;/CustomBuildStep&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformCrossThreadCopiercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/CrossThreadCopier.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/CrossThreadCopier.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/CrossThreadCopier.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -179,18 +179,4 @@
</span><span class="cx">                   &gt;::value),
</span><span class="cx">                RawPointerRefCountedTest);
</span><span class="cx"> 
</span><del>-// Verify that PassOwnPtr gets passed through.
-COMPILE_ASSERT((std::is_same&lt;
-                  PassOwnPtr&lt;float&gt;,
-                  CrossThreadCopier&lt;PassOwnPtr&lt;float&gt;&gt;::Type
-                  &gt;::value),
-               PassOwnPtrTest);
-
-// Verify that PassOwnPtr does not get passed through.
-COMPILE_ASSERT((std::is_same&lt;
-                  int,
-                  CrossThreadCopier&lt;OwnPtr&lt;float&gt;&gt;::Type
-                  &gt;::value),
-               OwnPtrTest);
-
</del><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformCrossThreadCopierh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/CrossThreadCopier.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/CrossThreadCopier.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/CrossThreadCopier.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/Assertions.h&gt;
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/Threading.h&gt;
</span><span class="lines">@@ -110,14 +109,6 @@
</span><span class="cx">         }
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    template&lt;typename T&gt; struct CrossThreadCopierBase&lt;false, false, PassOwnPtr&lt;T&gt;&gt; {
-        typedef PassOwnPtr&lt;T&gt; Type;
-        static Type copy(Type ownPtr)
-        {
-            return ownPtr;
-        }
-    };
-
</del><span class="cx">     template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, URL&gt; {
</span><span class="cx">         typedef URL Type;
</span><span class="cx">         static Type copy(const URL&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScrollAnimatorNonecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -41,7 +41,6 @@
</span><span class="cx"> #include &quot;ScrollbarTheme.h&quot;
</span><span class="cx"> #include &lt;algorithm&gt;
</span><span class="cx"> #include &lt;wtf/CurrentTime.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> using namespace std;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformThreadGlobalDatacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ThreadGlobalData.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ThreadGlobalData.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/ThreadGlobalData.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -32,7 +32,6 @@
</span><span class="cx"> #include &quot;TextCodecICU.h&quot;
</span><span class="cx"> #include &quot;ThreadTimers.h&quot;
</span><span class="cx"> #include &lt;wtf/MainThread.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/ThreadSpecific.h&gt;
</span><span class="cx"> #include &lt;wtf/Threading.h&gt;
</span><span class="cx"> #include &lt;wtf/WTFThreadData.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformThreadGlobalDatah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ThreadGlobalData.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ThreadGlobalData.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/ThreadGlobalData.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -30,7 +30,6 @@
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/StringHash.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/ThreadSpecific.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationcfCDMSessionAVFoundationCFh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define CDMSessionAVFoundationCF_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;CDMSession.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if HAVE(AVFOUNDATION_LOADER_DELEGATE) &amp;&amp; ENABLE(ENCRYPTED_MEDIA_V2)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationcfMediaPlayerPrivateAVFoundationCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -189,7 +189,7 @@
</span><span class="cx">     mutable RetainPtr&lt;CACFLayerRef&gt; m_caVideoLayer;
</span><span class="cx">     RefPtr&lt;PlatformCALayer&gt; m_videoLayerWrapper;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;LayerClient&gt; m_layerClient;
</del><ins>+    std::unique_ptr&lt;LayerClient&gt; m_layerClient;
</ins><span class="cx">     COMPtr&lt;IDirect3DDevice9Ex&gt; m_d3dDevice;
</span><span class="cx"> 
</span><span class="cx">     InbandTextTrackPrivateAVF* m_currentTextTrack;
</span><span class="lines">@@ -1623,7 +1623,7 @@
</span><span class="cx">     if (!context)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;NotificationCallbackData&gt; notificationData = adoptPtr(reinterpret_cast&lt;NotificationCallbackData*&gt;(context));
</del><ins>+    std::unique_ptr&lt;NotificationCallbackData&gt; notificationData { static_cast&lt;NotificationCallbackData*&gt;(context) };
</ins><span class="cx"> 
</span><span class="cx">     MutexLocker locker(mapLock());
</span><span class="cx">     AVFWrapper* self = avfWrapperForCallbackContext(notificationData-&gt;m_context);
</span><span class="lines">@@ -1673,9 +1673,9 @@
</span><span class="cx">     LOG(Media, &quot;AVFWrapper::notificationCallback(if=%d) %s&quot;, reinterpret_cast&lt;uintptr_t&gt;(observer), notificationName);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;NotificationCallbackData&gt; notificationData = adoptPtr(new NotificationCallbackData(propertyName, observer));
</del><ins>+    auto notificationData = std::make_unique&lt;NotificationCallbackData&gt;(propertyName, observer);
</ins><span class="cx"> 
</span><del>-    dispatch_async_f(dispatch_get_main_queue(), notificationData.leakPtr(), processNotification);
</del><ins>+    dispatch_async_f(dispatch_get_main_queue(), notificationData.release(), processNotification);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void AVFWrapper::loadPlayableCompletionCallback(AVCFAssetRef, void* context)
</span><span class="lines">@@ -1917,7 +1917,7 @@
</span><span class="cx">         return 0;
</span><span class="cx"> 
</span><span class="cx">     // Create a PlatformCALayer so we can resize the video layer to match the element size.
</span><del>-    m_layerClient = adoptPtr(new LayerClient(this));
</del><ins>+    m_layerClient = std::make_unique&lt;LayerClient&gt;(this);
</ins><span class="cx">     if (!m_layerClient)
</span><span class="cx">         return 0;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoCairoUtilitiescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -34,7 +34,6 @@
</span><span class="cx"> #include &quot;FloatPoint.h&quot;
</span><span class="cx"> #include &quot;FloatRect.h&quot;
</span><span class="cx"> #include &quot;IntRect.h&quot;
</span><del>-#include &quot;OwnPtrCairo.h&quot;
</del><span class="cx"> #include &quot;Path.h&quot;
</span><span class="cx"> #include &quot;PlatformPathCairo.h&quot;
</span><span class="cx"> #include &quot;RefPtrCairo.h&quot;
</span><span class="lines">@@ -73,8 +72,9 @@
</span><span class="cx"> 
</span><span class="cx"> void appendPathToCairoContext(cairo_t* to, cairo_t* from)
</span><span class="cx"> {
</span><del>-    OwnPtr&lt;cairo_path_t&gt; cairoPath = adoptPtr(cairo_copy_path(from));
-    cairo_append_path(to, cairoPath.get());
</del><ins>+    auto cairoPath = cairo_copy_path(from);
+    cairo_append_path(to, cairoPath);
+    cairo_path_destroy(cairoPath);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void setPathOnCairoContext(cairo_t* to, cairo_t* from)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoImageBufferCairocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -43,7 +43,6 @@
</span><span class="cx"> #include &lt;cairo.h&gt;
</span><span class="cx"> #include &lt;runtime/JSCInlines.h&gt;
</span><span class="cx"> #include &lt;runtime/TypedArrayInlines.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/Base64.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="lines">@@ -119,7 +118,7 @@
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;cairo_t&gt; cr = adoptRef(cairo_create(m_data.m_surface.get()));
</span><span class="cx">     m_data.m_platformContext.setCr(cr.get());
</span><del>-    m_data.m_context = adoptPtr(new GraphicsContext(&amp;m_data.m_platformContext));
</del><ins>+    m_data.m_context = std::make_unique&lt;GraphicsContext&gt;(&amp;m_data.m_platformContext);
</ins><span class="cx">     success = true;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoImageBufferDataCairoh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cairo/ImageBufferDataCairo.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/ImageBufferDataCairo.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/cairo/ImageBufferDataCairo.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;cairo_surface_t&gt; m_surface;
</span><span class="cx">     PlatformContextCairo m_platformContext;
</span><del>-    OwnPtr&lt;GraphicsContext&gt; m_context;
</del><ins>+    std::unique_ptr&lt;GraphicsContext&gt; m_context;
</ins><span class="cx">     IntSize m_size;
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(ACCELERATED_2D_CANVAS)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoOwnPtrCairocpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,50 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Collabora Ltd.
- *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser 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
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this library; 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;OwnPtrCairo.h&quot;
-
-#if USE(CAIRO)
-
-#if USE(FREETYPE)
-#include &lt;cairo-ft.h&gt;
-#include &lt;fontconfig/fcfreetype.h&gt;
-#endif
-
-#include &lt;cairo.h&gt;
-
-namespace WTF {
-
-#if USE(FREETYPE)
-template &lt;&gt; void deleteOwnedPtr&lt;FcObjectSet&gt;(FcObjectSet* ptr)
-{
-    if (ptr)
-        FcObjectSetDestroy(ptr);
-}
-
-template &lt;&gt; void deleteOwnedPtr&lt;FcFontSet&gt;(FcFontSet* ptr)
-{
-    if (ptr)
-        FcFontSetDestroy(ptr);
-}
-#endif
-
-} // namespace WTF
-
-#endif // USE(CAIRO)
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoOwnPtrCairoh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/cairo/OwnPtrCairo.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,46 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Collabora Ltd.
- *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser 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
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this library; if not, write to the Free
- *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- *  Boston, MA 02110-1301 USA
- */
-
-#ifndef OwnPtrCairo_h
-#define OwnPtrCairo_h
-
-#if USE(CAIRO)
-
-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
-
-#if USE(FREETYPE)
-typedef struct _FcObjectSet FcObjectSet;
-typedef struct _FcFontSet FcFontSet;
-#endif
-
-typedef struct cairo_path cairo_path_t;
-
-namespace WTF {
-
-#if USE(FREETYPE)
-template &lt;&gt; void deleteOwnedPtr&lt;FcObjectSet&gt;(FcObjectSet*);
-template &lt;&gt; void deleteOwnedPtr&lt;FcFontSet&gt;(FcFontSet*);
-#endif
-
-} // namespace WTF
-
-#endif // USE(CAIRO)
-
-#endif // OwnPtrCairo_h
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoPathCairocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cairo/PathCairo.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/PathCairo.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/cairo/PathCairo.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -31,7 +31,6 @@
</span><span class="cx"> #include &quot;AffineTransform.h&quot;
</span><span class="cx"> #include &quot;FloatRect.h&quot;
</span><span class="cx"> #include &quot;GraphicsContext.h&quot;
</span><del>-#include &quot;OwnPtrCairo.h&quot;
</del><span class="cx"> #include &quot;PlatformPathCairo.h&quot;
</span><span class="cx"> #include &quot;StrokeStyleApplier.h&quot;
</span><span class="cx"> #include &lt;cairo.h&gt;
</span><span class="lines">@@ -59,8 +58,9 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     cairo_t* cr = ensurePlatformPath()-&gt;context();
</span><del>-    OwnPtr&lt;cairo_path_t&gt; pathCopy = adoptPtr(cairo_copy_path(other.platformPath()-&gt;context()));
-    cairo_append_path(cr, pathCopy.get());
</del><ins>+    auto pathCopy = cairo_copy_path(other.platformPath()-&gt;context());
+    cairo_append_path(cr, pathCopy);
+    cairo_path_destroy(pathCopy);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> PlatformPathPtr Path::ensurePlatformPath()
</span><span class="lines">@@ -83,8 +83,9 @@
</span><span class="cx">     } else {
</span><span class="cx">         clear();
</span><span class="cx">         cairo_t* cr = ensurePlatformPath()-&gt;context();
</span><del>-        OwnPtr&lt;cairo_path_t&gt; pathCopy = adoptPtr(cairo_copy_path(other.platformPath()-&gt;context()));
-        cairo_append_path(cr, pathCopy.get());
</del><ins>+        auto pathCopy = cairo_copy_path(other.platformPath()-&gt;context());
+        cairo_append_path(cr, pathCopy);
+        cairo_path_destroy(pathCopy);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return *this;
</span><span class="lines">@@ -323,11 +324,10 @@
</span><span class="cx">     cairo_t* cr = path.platformPath()-&gt;context();
</span><span class="cx">     cairo_save(cr);
</span><span class="cx">     cairo_transform(cr, &amp;matrix);
</span><del>-    std::unique_ptr&lt;cairo_path_t, void(*)(cairo_path_t*)&gt; pathCopy(cairo_copy_path(cr), [](cairo_path_t* path) {
-        cairo_path_destroy(path);
-    });
</del><ins>+    auto pathCopy = cairo_copy_path(cr);
</ins><span class="cx">     cairo_restore(cr);
</span><del>-    cairo_append_path(ensurePlatformPath()-&gt;context(), pathCopy.get());
</del><ins>+    cairo_append_path(ensurePlatformPath()-&gt;context(), pathCopy);
+    cairo_path_destroy(pathCopy);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void Path::closeSubpath()
</span><span class="lines">@@ -396,7 +396,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     cairo_t* cr = platformPath()-&gt;context();
</span><del>-    OwnPtr&lt;cairo_path_t&gt; pathCopy = adoptPtr(cairo_copy_path(cr));
</del><ins>+    auto pathCopy = cairo_copy_path(cr);
</ins><span class="cx">     cairo_path_data_t* data;
</span><span class="cx">     PathElement pelement;
</span><span class="cx">     FloatPoint points[3];
</span><span class="lines">@@ -428,6 +428,7 @@
</span><span class="cx">             break;
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+    cairo_path_destroy(pathCopy);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void Path::transform(const AffineTransform&amp; trans)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscairoPlatformContextCairocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #include &quot;CairoUtilities.h&quot;
</span><span class="cx"> #include &quot;Gradient.h&quot;
</span><span class="cx"> #include &quot;GraphicsContext.h&quot;
</span><del>-#include &quot;OwnPtrCairo.h&quot;
</del><span class="cx"> #include &quot;Pattern.h&quot;
</span><span class="cx"> #include &lt;cairo.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -306,7 +305,7 @@
</span><span class="cx">     ASSERT(state.fillPattern);
</span><span class="cx"> 
</span><span class="cx">     // Hold current cairo path in a variable for restoring it after configuring the pattern clip rectangle.
</span><del>-    OwnPtr&lt;cairo_path_t&gt; currentPath = adoptPtr(cairo_copy_path(m_cr.get()));
</del><ins>+    auto currentPath = cairo_copy_path(m_cr.get());
</ins><span class="cx">     cairo_new_path(m_cr.get());
</span><span class="cx"> 
</span><span class="cx">     // Initialize clipping extent from current cairo clip extents, then shrink if needed according to pattern.
</span><span class="lines">@@ -337,7 +336,8 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // Restoring cairo path.
</span><del>-    cairo_append_path(m_cr.get(), currentPath.get());
</del><ins>+    cairo_append_path(m_cr.get(), currentPath);
+    cairo_path_destroy(currentPath);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfreetypeFontCacheFreeTypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -23,7 +23,6 @@
</span><span class="cx"> #include &quot;FontCache.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;Font.h&quot;
</span><del>-#include &quot;OwnPtrCairo.h&quot;
</del><span class="cx"> #include &quot;RefPtrCairo.h&quot;
</span><span class="cx"> #include &quot;UTF16UChar32Iterator.h&quot;
</span><span class="cx"> #include &lt;cairo-ft.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsglxGLContextGLXcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -24,7 +24,6 @@
</span><span class="cx"> #include &quot;OpenGLShims.h&quot;
</span><span class="cx"> #include &lt;GL/glx.h&gt;
</span><span class="cx"> #include &lt;cairo.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> #if ENABLE(ACCELERATED_2D_CANVAS)
</span><span class="cx"> #include &lt;cairo-gl.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicssurfaceseglEGLSurfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx">     if (m_sharedDisplay == EGL_NO_DISPLAY)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    m_configSelector = adoptPtr(new EGLConfigSelector(surfaceAttributes));
</del><ins>+    m_configSelector = std::make_unique&lt;EGLConfigSelector&gt;(surfaceAttributes);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> EGLOffScreenSurface::~EGLOffScreenSurface()
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicssurfacesglxGLXConfigSelectorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXConfigSelector.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXConfigSelector.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXConfigSelector.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -140,14 +140,13 @@
</span><span class="cx">     GLXFBConfig findMatchingConfig(const int attributes[], int depth = 32)
</span><span class="cx">     {
</span><span class="cx">         int numAvailableConfigs;
</span><del>-        OwnPtrX11&lt;GLXFBConfig&gt; temp(glXChooseFBConfig(X11Helper::nativeDisplay(), DefaultScreen(X11Helper::nativeDisplay()), attributes, &amp;numAvailableConfigs));
</del><ins>+        std::unique_ptr&lt;GLXFBConfig[], X11Deleter&gt; temp(glXChooseFBConfig(X11Helper::nativeDisplay(), DefaultScreen(X11Helper::nativeDisplay()), attributes, &amp;numAvailableConfigs));
</ins><span class="cx"> 
</span><span class="cx">         if (!numAvailableConfigs || !temp.get())
</span><span class="cx">             return 0;
</span><span class="cx"> 
</span><del>-        OwnPtrX11&lt;XVisualInfo&gt; scopedVisualInfo;
</del><span class="cx">         for (int i = 0; i &lt; numAvailableConfigs; ++i) {
</span><del>-            scopedVisualInfo = glXGetVisualFromFBConfig(X11Helper::nativeDisplay(), temp[i]);
</del><ins>+            std::unique_ptr&lt;XVisualInfo, X11Deleter&gt; scopedVisualInfo { glXGetVisualFromFBConfig(X11Helper::nativeDisplay(), temp[i]) };
</ins><span class="cx">             if (!scopedVisualInfo.get())
</span><span class="cx">                 continue;
</span><span class="cx"> 
</span><span class="lines">@@ -169,7 +168,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // Did not find any visual supporting alpha, select the first available config.
</span><del>-        scopedVisualInfo = glXGetVisualFromFBConfig(X11Helper::nativeDisplay(), temp[0]);
</del><ins>+        std::unique_ptr&lt;XVisualInfo, X11Deleter&gt; scopedVisualInfo { glXGetVisualFromFBConfig(X11Helper::nativeDisplay(), temp[0]) };
</ins><span class="cx"> 
</span><span class="cx">         if ((m_attributes &amp; GLPlatformSurface::SupportAlpha) &amp;&amp; (scopedVisualInfo-&gt;depth != 32))
</span><span class="cx">             m_attributes &amp;= ~GLPlatformSurface::SupportAlpha;
</span><span class="lines">@@ -180,14 +179,13 @@
</span><span class="cx">     GLXFBConfig findMatchingConfigWithVisualId(const int attributes[], int depth, VisualID id)
</span><span class="cx">     {
</span><span class="cx">         int numAvailableConfigs;
</span><del>-        OwnPtrX11&lt;GLXFBConfig&gt; temp(glXChooseFBConfig(X11Helper::nativeDisplay(), DefaultScreen(X11Helper::nativeDisplay()), attributes, &amp;numAvailableConfigs));
</del><ins>+        std::unique_ptr&lt;GLXFBConfig[], X11Deleter&gt; temp(glXChooseFBConfig(X11Helper::nativeDisplay(), DefaultScreen(X11Helper::nativeDisplay()), attributes, &amp;numAvailableConfigs));
</ins><span class="cx"> 
</span><span class="cx">         if (!numAvailableConfigs || !temp.get())
</span><span class="cx">             return 0;
</span><span class="cx"> 
</span><del>-        OwnPtrX11&lt;XVisualInfo&gt; scopedVisualInfo;
</del><span class="cx">         for (int i = 0; i &lt; numAvailableConfigs; ++i) {
</span><del>-            scopedVisualInfo = glXGetVisualFromFBConfig(X11Helper::nativeDisplay(), temp[i]);
</del><ins>+            std::unique_ptr&lt;XVisualInfo, X11Deleter&gt; scopedVisualInfo { glXGetVisualFromFBConfig(X11Helper::nativeDisplay(), temp[i]) };
</ins><span class="cx">             if (!scopedVisualInfo.get())
</span><span class="cx">                 continue;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicssurfacesglxGLXSurfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXSurface.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXSurface.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/surfaces/glx/GLXSurface.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">     m_sharedDisplay = X11Helper::nativeDisplay();
</span><span class="cx">     attributes |= GLPlatformSurface::DoubleBuffered;
</span><span class="cx">     m_configSelector = std::make_unique&lt;GLXConfigSelector&gt;(attributes);
</span><del>-    OwnPtrX11&lt;XVisualInfo&gt; visInfo(m_configSelector-&gt;visualInfo(m_configSelector-&gt;surfaceContextConfig()));
</del><ins>+    std::unique_ptr&lt;XVisualInfo, X11Deleter&gt; visInfo(m_configSelector-&gt;visualInfo(m_configSelector-&gt;surfaceContextConfig()));
</ins><span class="cx"> 
</span><span class="cx">     if (!visInfo.get()) {
</span><span class="cx">         destroy();
</span><span class="lines">@@ -145,7 +145,7 @@
</span><span class="cx"> 
</span><span class="cx">     m_configSelector = std::make_unique&lt;GLXConfigSelector&gt;(attributes);
</span><span class="cx"> 
</span><del>-    OwnPtrX11&lt;XVisualInfo&gt; visualInfo(m_configSelector-&gt;visualInfo(m_configSelector-&gt;pixmapContextConfig()));
</del><ins>+    std::unique_ptr&lt;XVisualInfo, X11Deleter&gt; visualInfo(m_configSelector-&gt;visualInfo(m_configSelector-&gt;pixmapContextConfig()));
</ins><span class="cx">     X11Helper::createPixmap(&amp;m_pixmap, *visualInfo.get());
</span><span class="cx"> 
</span><span class="cx">     if (!m_pixmap) {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicssurfacesglxOwnPtrX11h"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/graphics/surfaces/glx/OwnPtrX11.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/surfaces/glx/OwnPtrX11.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/surfaces/glx/OwnPtrX11.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,66 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Intel Corporation. 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. AND ITS CONTRIBUTORS ``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 ITS 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 OwnPtrX11_h
-#define OwnPtrX11_h
-
-namespace WebCore {
-
-template&lt;typename T&gt;
-struct OwnPtrX11 {
-
-    OwnPtrX11() : m_xResource(0) { }
-    OwnPtrX11(T* xResource) : m_xResource(xResource) { }
-
-    ~OwnPtrX11()
-    {
-        if (m_xResource)
-            XFree(m_xResource);
-    }
-
-    OwnPtrX11&amp; operator=(T* xResource)
-    {
-        if (m_xResource)
-            XFree(m_xResource);
-
-        m_xResource = xResource;
-        return *this;
-    }
-
-    operator T*() const { return m_xResource; }
-    T* operator-&gt;() const { return m_xResource; }
-    T* get() const { return m_xResource; }
-
-private:
-    OwnPtrX11(const OwnPtrX11&amp;);
-    OwnPtrX11&amp; operator=(const OwnPtrX11&amp;);
-    static void* operator new (size_t);
-    static void operator delete (void*);
-    T* m_xResource;
-};
-
-}
-
-#endif
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicssurfacesglxX11Helpercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -240,7 +240,7 @@
</span><span class="cx">     memset(&amp;visualInfoTemplate, 0, sizeof(XVisualInfo));
</span><span class="cx">     visualInfoTemplate.visualid = visualId;
</span><span class="cx">     int matchingCount = 0;
</span><del>-    OwnPtrX11&lt;XVisualInfo&gt; matchingVisuals(XGetVisualInfo(nativeDisplay(), VisualIDMask, &amp;visualInfoTemplate, &amp;matchingCount));
</del><ins>+    std::unique_ptr&lt;XVisualInfo, X11Deleter&gt; matchingVisuals(XGetVisualInfo(nativeDisplay(), VisualIDMask, &amp;visualInfoTemplate, &amp;matchingCount));
</ins><span class="cx">     XVisualInfo* foundVisual = 0;
</span><span class="cx"> 
</span><span class="cx">     if (matchingVisuals) {
</span><span class="lines">@@ -277,7 +277,7 @@
</span><span class="cx">     memset(&amp;visualInfoTemplate, 0, sizeof(XVisualInfo));
</span><span class="cx">     visualInfoTemplate.visualid = visualId;
</span><span class="cx">     int matchingCount = 0;
</span><del>-    OwnPtrX11&lt;XVisualInfo&gt; matchingVisuals(XGetVisualInfo(nativeDisplay(), VisualIDMask, &amp;visualInfoTemplate, &amp;matchingCount));
</del><ins>+    std::unique_ptr&lt;XVisualInfo, X11Deleter&gt; matchingVisuals(XGetVisualInfo(nativeDisplay(), VisualIDMask, &amp;visualInfoTemplate, &amp;matchingCount));
</ins><span class="cx">     XVisualInfo* foundVisual = 0;
</span><span class="cx">     int requiredDepth = hasAlpha ? 32 : 24;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicssurfacesglxX11Helperh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/surfaces/glx/X11Helper.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define X11Helper_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;IntRect.h&quot;
</span><del>-#include &quot;OwnPtrX11.h&quot;
</del><span class="cx"> 
</span><span class="cx"> #if USE(EGL)
</span><span class="cx"> #include &lt;opengl/GLDefs.h&gt;
</span><span class="lines">@@ -43,8 +42,16 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><ins>+class X11Deleter {
+public:
+    template&lt;typename T&gt; void operator()(T* resource)
+    {
+        if (resource)
+            XFree(resource);
+    }
+};
+
</ins><span class="cx"> class X11Helper {
</span><del>-
</del><span class="cx"> public:
</span><span class="cx">     static void createPixmap(Pixmap*, const XVisualInfo&amp;, const IntSize&amp; = IntSize(1, 1));
</span><span class="cx">     static void createOffScreenWindow(uint32_t*, const XVisualInfo&amp;, const IntSize&amp; = IntSize(1, 1));
</span><span class="lines">@@ -61,7 +68,6 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> class ScopedXPixmapCreationErrorHandler {
</span><del>-
</del><span class="cx"> public:
</span><span class="cx">     ScopedXPixmapCreationErrorHandler();
</span><span class="cx">     ~ScopedXPixmapCreationErrorHandler();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinFullScreenControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/FullScreenController.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/FullScreenController.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/win/FullScreenController.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -36,7 +36,6 @@
</span><span class="cx"> #include &quot;MediaPlayerPrivateFullscreenWindow.h&quot;
</span><span class="cx"> #include &quot;Timer.h&quot;
</span><span class="cx"> #include &quot;WebCoreInstanceHandle.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="lines">@@ -60,8 +59,8 @@
</span><span class="cx">     
</span><span class="cx">     FullScreenController* m_controller;
</span><span class="cx">     FullScreenControllerClient* m_client;
</span><del>-    OwnPtr&lt;MediaPlayerPrivateFullscreenWindow&gt; m_fullScreenWindow;
-    OwnPtr&lt;MediaPlayerPrivateFullscreenWindow&gt; m_backgroundWindow;
</del><ins>+    std::unique_ptr&lt;MediaPlayerPrivateFullscreenWindow&gt; m_fullScreenWindow;
+    std::unique_ptr&lt;MediaPlayerPrivateFullscreenWindow&gt; m_backgroundWindow;
</ins><span class="cx">     IntRect m_fullScreenFrame;
</span><span class="cx">     IntRect m_originalFrame;
</span><span class="cx">     HWND m_originalHost;
</span><span class="lines">@@ -104,7 +103,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> FullScreenController::FullScreenController(FullScreenControllerClient* client)
</span><del>-    : m_private(adoptPtr(new FullScreenController::Private(this, client)))
</del><ins>+    : m_private(std::make_unique&lt;Private&gt;(this, client))
</ins><span class="cx"> {
</span><span class="cx">     ASSERT_ARG(client, client);
</span><span class="cx"> }
</span><span class="lines">@@ -134,13 +133,13 @@
</span><span class="cx">     m_private-&gt;m_originalFrame = originalFrame;
</span><span class="cx"> 
</span><span class="cx">     ASSERT(!m_private-&gt;m_backgroundWindow);
</span><del>-    m_private-&gt;m_backgroundWindow = adoptPtr(new MediaPlayerPrivateFullscreenWindow(m_private.get()));
</del><ins>+    m_private-&gt;m_backgroundWindow = std::make_unique&lt;MediaPlayerPrivateFullscreenWindow&gt;(m_private.get());
</ins><span class="cx">     m_private-&gt;m_backgroundWindow-&gt;createWindow(0);
</span><span class="cx">     ::AnimateWindow(m_private-&gt;m_backgroundWindow-&gt;hwnd(), kFullScreenAnimationDuration, AW_BLEND | AW_ACTIVATE);
</span><span class="cx"> 
</span><span class="cx">     m_private-&gt;m_client-&gt;fullScreenClientWillEnterFullScreen();
</span><span class="cx">     ASSERT(!m_private-&gt;m_fullScreenWindow);
</span><del>-    m_private-&gt;m_fullScreenWindow = adoptPtr(new MediaPlayerPrivateFullscreenWindow(m_private.get()));
</del><ins>+    m_private-&gt;m_fullScreenWindow = std::make_unique&lt;MediaPlayerPrivateFullscreenWindow&gt;(m_private.get());
</ins><span class="cx">     ASSERT(m_private-&gt;m_fullScreenWindow);
</span><span class="cx">     m_private-&gt;m_fullScreenWindow-&gt;createWindow(0);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinFullScreenControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/FullScreenController.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/FullScreenController.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/win/FullScreenController.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(FULLSCREEN_API)
</span><span class="cx"> 
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><ins>+#include &lt;memory&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx">     class Private;
</span><span class="cx">     friend class Private;
</span><del>-    OwnPtr&lt;FullScreenController::Private&gt; m_private;
</del><ins>+    std::unique_ptr&lt;FullScreenController::Private&gt; m_private;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinGraphicsContext3DWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/GraphicsContext3DWin.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/GraphicsContext3DWin.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/win/GraphicsContext3DWin.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -29,8 +29,6 @@
</span><span class="cx"> #include &quot;GraphicsContext3D.h&quot;
</span><span class="cx"> #include &quot;GraphicsContext3DPrivate.h&quot;
</span><span class="cx"> #include &lt;WebCore/PlatformCALayerWin.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> #if PLATFORM(WIN)
</span><span class="cx"> #include &lt;GLSLANG/ShaderLang.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinWKCAImageQueuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &lt;CoreFoundation/CoreFoundation.h&gt;
</span><span class="cx"> #include &lt;WebKitSystemInterface/WebKitSystemInterface.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -52,13 +51,13 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WKCAImageQueue::WKCAImageQueue(uint32_t width, uint32_t height, uint32_t capacity)
</span><del>-    : m_private(adoptPtr(new WKCAImageQueuePrivate()))
</del><ins>+    : m_private(std::make_unique&lt;WKCAImageQueuePrivate&gt;())
</ins><span class="cx"> {
</span><span class="cx">     m_private-&gt;m_imageQueue = adoptCF(wkCAImageQueueCreate(width, height, capacity));
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WKCAImageQueue::WKCAImageQueue(const WKCAImageQueue&amp; o)
</span><del>-    : m_private(adoptPtr(new WKCAImageQueuePrivate()))
</del><ins>+    : m_private(std::make_unique&lt;WKCAImageQueuePrivate&gt;())
</ins><span class="cx"> {
</span><span class="cx">     m_private-&gt;m_imageQueue = o.m_private-&gt;m_imageQueue;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinWKCAImageQueueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/graphics/win/WKCAImageQueue.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -29,8 +29,8 @@
</span><span class="cx"> typedef const void * CFTypeRef;
</span><span class="cx"> typedef const struct __CFDictionary * CFDictionaryRef;
</span><span class="cx"> 
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;stdint.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> private:
</span><span class="cx">     WKCAImageQueue(const WKCAImageQueue&amp;);
</span><span class="cx">     WKCAImageQueue&amp; operator=(const WKCAImageQueue&amp;);
</span><del>-    OwnPtr&lt;WKCAImageQueuePrivate&gt; m_private;
</del><ins>+    std::unique_ptr&lt;WKCAImageQueuePrivate&gt; m_private;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkNetworkStorageSessionStubcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/NetworkStorageSessionStub.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/NetworkStorageSessionStub.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/network/NetworkStorageSessionStub.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -30,7 +30,6 @@
</span><span class="cx"> #include &quot;NetworkStorageSession.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;NetworkingContext.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkResourceHandleInternalh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/ResourceHandleInternal.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/ResourceHandleInternal.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/network/ResourceHandleInternal.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -31,7 +31,6 @@
</span><span class="cx"> #include &quot;ResourceRequest.h&quot;
</span><span class="cx"> #include &quot;AuthenticationChallenge.h&quot;
</span><span class="cx"> #include &quot;Timer.h&quot;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> #if USE(CFNETWORK)
</span><span class="cx"> #include &quot;ResourceHandleCFURLConnectionDelegate.h&quot;
</span><span class="lines">@@ -163,7 +162,7 @@
</span><span class="cx">         unsigned m_sslErrors;
</span><span class="cx">         Vector&lt;char&gt; m_postBytes;
</span><span class="cx"> 
</span><del>-        OwnPtr&lt;MultipartHandle&gt; m_multipartHandle;
</del><ins>+        std::unique_ptr&lt;MultipartHandle&gt; m_multipartHandle;
</ins><span class="cx"> #endif
</span><span class="cx"> #if USE(SOUP)
</span><span class="cx">         GRefPtr&lt;SoupMessage&gt; m_soupMessage;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkcurlMultipartHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/curl/MultipartHandle.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/curl/MultipartHandle.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/network/curl/MultipartHandle.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -37,11 +37,6 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;MultipartHandle&gt; MultipartHandle::create(ResourceHandle* handle, const String&amp; boundary)
-{
-    return adoptPtr(new MultipartHandle(handle, boundary));
-}
-
</del><span class="cx"> bool MultipartHandle::extractBoundary(const String&amp; contentType, String&amp; boundary)
</span><span class="cx"> {
</span><span class="cx">     static const size_t length = strlen(&quot;boundary=&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkcurlMultipartHandleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/curl/MultipartHandle.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/curl/MultipartHandle.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/network/curl/MultipartHandle.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -28,17 +28,13 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;HTTPHeaderMap.h&quot;
</span><span class="cx"> #include &quot;ResourceHandle.h&quot;
</span><del>-
-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class MultipartHandle {
</span><del>-
</del><span class="cx"> public:
</span><del>-    static PassOwnPtr&lt;MultipartHandle&gt; create(ResourceHandle* handle, const String&amp; boundary);
</del><span class="cx">     static bool extractBoundary(const String&amp; contentType, String&amp; boundary);
</span><span class="cx"> 
</span><span class="cx">     MultipartHandle(ResourceHandle* handle, const String&amp; boundary)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkcurlResourceHandleManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -515,7 +515,7 @@
</span><span class="cx">             String boundary;
</span><span class="cx">             bool parsed = MultipartHandle::extractBoundary(d-&gt;m_response.httpHeaderField(HTTPHeaderName::ContentType), boundary);
</span><span class="cx">             if (parsed)
</span><del>-                d-&gt;m_multipartHandle = MultipartHandle::create(job, boundary);
</del><ins>+                d-&gt;m_multipartHandle = std::make_unique&lt;MultipartHandle&gt;(job, boundary);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(WEB_TIMING)
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebKit2/ChangeLog        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2015-04-24  Darin Adler  &lt;darin@apple.com&gt;
+
+        Convert OwnPtr and PassOwnPtr uses to std::unique_ptr
+        https://bugs.webkit.org/show_bug.cgi?id=128007
+
+        Reviewed by Anders Carlsson.
+
+        * NetworkProcess/cache/NetworkCacheEncoder.h: Added an include now
+        needed that was inherited from OwnPtr.h before.
+
</ins><span class="cx"> 2015-04-24  Antti Koivisto  &lt;antti@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Network Cache: Make path functions members
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcesscacheNetworkCacheEncoderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEncoder.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEncoder.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEncoder.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> #if ENABLE(NETWORK_CACHE)
</span><span class="cx"> 
</span><span class="cx"> #include &quot;NetworkCacheCoder.h&quot;
</span><del>-
</del><ins>+#include &lt;wtf/HashFunctions.h&gt;
</ins><span class="cx"> #include &lt;wtf/StringHasher.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/ChangeLog        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -1,3 +1,29 @@
</span><ins>+2015-04-24  Darin Adler  &lt;darin@apple.com&gt;
+
+        Convert OwnPtr and PassOwnPtr uses to std::unique_ptr
+        https://bugs.webkit.org/show_bug.cgi?id=128007
+
+        Reviewed by Anders Carlsson.
+
+        * DumpRenderTree/win/HistoryDelegate.h: Removed unneeded include.
+        * DumpRenderTree/win/UIDelegate.h: Ditto.
+
+        * TestWebKitAPI/Tests/WTF/HashMap.cpp: Removed OwnPtr-specific test cases.
+        * TestWebKitAPI/Tests/WTF/HashSet.cpp: Ditto.
+
+        * TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp: Removed unneeded include.
+
+        * TestWebKitAPI/Tests/WebKit2/UserMessage.cpp: Use unique_ptr.
+        (TestWebKitAPI::WebKit2UserMessageRoundTripTest::SetUp): Use make_unique.
+        * TestWebKitAPI/Tests/WebKit2/WillLoad.cpp: Ditto.
+        (TestWebKitAPI::WebKit2WillLoadTest::SetUp): Ditto.
+        * TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp:
+        (WebKitDOMDOMWindowTest::create): Ditto.
+        * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
+        (documentLoadedCallback): Use a queue of DelayedSignal objects instead
+        of smart pointers to DelayedSIgnal objects.
+        (uriChangedCallback): Ditto.
+
</ins><span class="cx"> 2015-04-24  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Mac] Unreviewed test fix.
</span></span></pre></div>
<a id="trunkToolsDumpRenderTreewinHistoryDelegateh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/DumpRenderTree/win/HistoryDelegate.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/DumpRenderTree/win/HistoryDelegate.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/DumpRenderTree/win/HistoryDelegate.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define HistoryDelegate_h
</span><span class="cx"> 
</span><span class="cx"> #include &lt;WebKit/WebKit.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> class HistoryDelegate : public IWebHistoryDelegate {
</span><span class="cx"> public:
</span></span></pre></div>
<a id="trunkToolsDumpRenderTreewinUIDelegateh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/DumpRenderTree/win/UIDelegate.h (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/DumpRenderTree/win/UIDelegate.h        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/DumpRenderTree/win/UIDelegate.h        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -31,7 +31,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &lt;WebCore/COMPtr.h&gt;
</span><span class="cx"> #include &lt;WebKit/WebKit.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;windef.h&gt;
</span><span class="cx"> 
</span><span class="cx"> class DRTUndoManager;
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWTFHashMapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -30,8 +30,6 @@
</span><span class="cx"> #include &quot;RefLogger.h&quot;
</span><span class="cx"> #include &lt;string&gt;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/StringHash.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace TestWebKitAPI {
</span><span class="lines">@@ -174,101 +172,6 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-TEST(WTF_HashMap, OwnPtrKey)
-{
-    ConstructorDestructorCounter::TestingScope scope;
-
-    HashMap&lt;OwnPtr&lt;ConstructorDestructorCounter&gt;, int&gt; map;
-
-    OwnPtr&lt;ConstructorDestructorCounter&gt; ownPtr = adoptPtr(new ConstructorDestructorCounter);
-    map.add(WTF::move(ownPtr), 2);
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(0u, ConstructorDestructorCounter::destructionCount);
-
-    map.clear();
-    
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(1u, ConstructorDestructorCounter::destructionCount);
-}
-
-TEST(WTF_HashMap, OwnPtrKey_FindUsingRawPointer)
-{
-    HashMap&lt;OwnPtr&lt;int&gt;, int&gt; map;
-
-    OwnPtr&lt;int&gt; ownPtr = adoptPtr(new int(5));
-    int* ptr = ownPtr.get();
-    map.add(WTF::move(ownPtr), 2);
-
-    auto it = map.find(ptr);
-    ASSERT_TRUE(it != map.end());
-    EXPECT_EQ(ptr, it-&gt;key.get());
-    EXPECT_EQ(2, it-&gt;value);
-}
-
-TEST(WTF_HashMap, OwnPtrKey_ContainsUsingRawPointer)
-{
-    HashMap&lt;OwnPtr&lt;int&gt;, int&gt; map;
-
-    OwnPtr&lt;int&gt; ownPtr = adoptPtr(new int(5));
-    int* ptr = ownPtr.get();
-    map.add(WTF::move(ownPtr), 2);
-
-    EXPECT_EQ(true, map.contains(ptr));
-}
-
-TEST(WTF_HashMap, OwnPtrKey_GetUsingRawPointer)
-{
-    HashMap&lt;OwnPtr&lt;int&gt;, int&gt; map;
-
-    OwnPtr&lt;int&gt; ownPtr = adoptPtr(new int(5));
-    int* ptr = ownPtr.get();
-    map.add(WTF::move(ownPtr), 2);
-
-    int value = map.get(ptr);
-    EXPECT_EQ(2, value);
-}
-
-TEST(WTF_HashMap, OwnPtrKey_RemoveUsingRawPointer)
-{
-    ConstructorDestructorCounter::TestingScope scope;
-
-    HashMap&lt;OwnPtr&lt;ConstructorDestructorCounter&gt;, int&gt; map;
-
-    OwnPtr&lt;ConstructorDestructorCounter&gt; ownPtr = adoptPtr(new ConstructorDestructorCounter);
-    ConstructorDestructorCounter* ptr = ownPtr.get();
-    map.add(WTF::move(ownPtr), 2);
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(0u, ConstructorDestructorCounter::destructionCount);
-
-    bool result = map.remove(ptr);
-    EXPECT_EQ(true, result);
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(1u, ConstructorDestructorCounter::destructionCount);
-}
-
-TEST(WTF_HashMap, OwnPtrKey_TakeUsingRawPointer)
-{
-    ConstructorDestructorCounter::TestingScope scope;
-
-    HashMap&lt;OwnPtr&lt;ConstructorDestructorCounter&gt;, int&gt; map;
-
-    OwnPtr&lt;ConstructorDestructorCounter&gt; ownPtr = adoptPtr(new ConstructorDestructorCounter);
-    ConstructorDestructorCounter* ptr = ownPtr.get();
-    map.add(WTF::move(ownPtr), 2);
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(0u, ConstructorDestructorCounter::destructionCount);
-
-    int result = map.take(ptr);
-    EXPECT_EQ(2, result);
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(1u, ConstructorDestructorCounter::destructionCount);
-}
-
</del><span class="cx"> TEST(WTF_HashMap, UniquePtrKey)
</span><span class="cx"> {
</span><span class="cx">     ConstructorDestructorCounter::TestingScope scope;
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWTFHashSetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -28,8 +28,6 @@
</span><span class="cx"> #include &quot;Counters.h&quot;
</span><span class="cx"> #include &quot;MoveOnly.h&quot;
</span><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace TestWebKitAPI {
</span><span class="cx"> 
</span><span class="lines">@@ -119,94 +117,7 @@
</span><span class="cx">         EXPECT_TRUE(secondSet.contains(MoveOnly(i + 1)));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-TEST(WTF_HashSet, OwnPtrKey)
-{
-    ConstructorDestructorCounter::TestingScope scope;
</del><span class="cx"> 
</span><del>-    HashSet&lt;OwnPtr&lt;ConstructorDestructorCounter&gt;&gt; set;
-
-    OwnPtr&lt;ConstructorDestructorCounter&gt; ownPtr = adoptPtr(new ConstructorDestructorCounter);
-    set.add(WTF::move(ownPtr));
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(0u, ConstructorDestructorCounter::destructionCount);
-
-    set.clear();
-    
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(1u, ConstructorDestructorCounter::destructionCount);
-}
-
-TEST(WTF_HashSet, OwnPtrKey_FindUsingRawPointer)
-{
-    HashSet&lt;OwnPtr&lt;int&gt;&gt; set;
-
-    OwnPtr&lt;int&gt; ownPtr = adoptPtr(new int(5));
-    int* ptr = ownPtr.get();
-    set.add(WTF::move(ownPtr));
-
-    auto it = set.find(ptr);
-    ASSERT_TRUE(it != set.end());
-    EXPECT_EQ(ptr, it-&gt;get());
-    EXPECT_EQ(5, *it-&gt;get());
-}
-
-TEST(WTF_HashSet, OwnPtrKey_ContainsUsingRawPointer)
-{
-    HashSet&lt;OwnPtr&lt;int&gt;&gt; set;
-
-    OwnPtr&lt;int&gt; ownPtr = adoptPtr(new int(5));
-    int* ptr = ownPtr.get();
-    set.add(WTF::move(ownPtr));
-
-    EXPECT_EQ(true, set.contains(ptr));
-}
-
-TEST(WTF_HashSet, OwnPtrKey_RemoveUsingRawPointer)
-{
-    ConstructorDestructorCounter::TestingScope scope;
-
-    HashSet&lt;OwnPtr&lt;ConstructorDestructorCounter&gt;&gt; set;
-
-    OwnPtr&lt;ConstructorDestructorCounter&gt; ownPtr = adoptPtr(new ConstructorDestructorCounter);
-    ConstructorDestructorCounter* ptr = ownPtr.get();
-    set.add(WTF::move(ownPtr));
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(0u, ConstructorDestructorCounter::destructionCount);
-
-    bool result = set.remove(ptr);
-    EXPECT_EQ(true, result);
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(1u, ConstructorDestructorCounter::destructionCount);
-}
-
-TEST(WTF_HashSet, OwnPtrKey_TakeUsingRawPointer)
-{
-    ConstructorDestructorCounter::TestingScope scope;
-
-    HashSet&lt;OwnPtr&lt;ConstructorDestructorCounter&gt;&gt; set;
-
-    OwnPtr&lt;ConstructorDestructorCounter&gt; ownPtr = adoptPtr(new ConstructorDestructorCounter);
-    ConstructorDestructorCounter* ptr = ownPtr.get();
-    set.add(WTF::move(ownPtr));
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(0u, ConstructorDestructorCounter::destructionCount);
-
-    auto result = set.take(ptr);
-    EXPECT_EQ(ptr, result.get());
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(0u, ConstructorDestructorCounter::destructionCount);
-
-    result = nullptr;
-
-    EXPECT_EQ(1u, ConstructorDestructorCounter::constructionCount);
-    EXPECT_EQ(1u, ConstructorDestructorCounter::destructionCount);
-}
-
</del><span class="cx"> TEST(WTF_HashSet, UniquePtrKey)
</span><span class="cx"> {
</span><span class="cx">     ConstructorDestructorCounter::TestingScope scope;
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKitwinWebViewDestructioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -29,7 +29,6 @@
</span><span class="cx"> #include &lt;WebCore/COMPtr.h&gt;
</span><span class="cx"> #include &lt;WebKit/WebKit.h&gt;
</span><span class="cx"> #include &lt;WebKit/WebKitCOMAPI.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace TestWebKitAPI {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2UserMessagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -31,8 +31,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;PlatformUtilities.h&quot;
</span><span class="cx"> #include &quot;PlatformWebView.h&quot;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace TestWebKitAPI {
</span><span class="cx"> 
</span><span class="lines">@@ -45,7 +43,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     WKRetainPtr&lt;WKContextRef&gt; context;
</span><del>-    OwnPtr&lt;PlatformWebView&gt; webView;
</del><ins>+    std::unique_ptr&lt;PlatformWebView&gt; webView;
</ins><span class="cx"> 
</span><span class="cx">     WKRetainPtr&lt;WKTypeRef&gt; recievedBody;
</span><span class="cx"> 
</span><span class="lines">@@ -95,7 +93,7 @@
</span><span class="cx">         context = adoptWK(Util::createContextForInjectedBundleTest(&quot;UserMessageTest&quot;));
</span><span class="cx">         setInjectedBundleClient(context.get(), this);
</span><span class="cx"> 
</span><del>-        webView = adoptPtr(new PlatformWebView(context.get()));
</del><ins>+        webView = std::make_unique&lt;PlatformWebView&gt;(context.get());
</ins><span class="cx">         setPageLoaderClient(webView-&gt;page(), this);
</span><span class="cx"> 
</span><span class="cx">         didFinishLoad = false;
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2WillLoadcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillLoad.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillLoad.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillLoad.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -31,8 +31,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;PlatformUtilities.h&quot;
</span><span class="cx"> #include &quot;PlatformWebView.h&quot;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace TestWebKitAPI {
</span><span class="cx"> 
</span><span class="lines">@@ -44,7 +42,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     WKRetainPtr&lt;WKContextRef&gt; context;
</span><del>-    OwnPtr&lt;PlatformWebView&gt; webView;
</del><ins>+    std::unique_ptr&lt;PlatformWebView&gt; webView;
</ins><span class="cx"> 
</span><span class="cx">     WKRetainPtr&lt;WKStringRef&gt; messageName;
</span><span class="cx">     WKRetainPtr&lt;WKTypeRef&gt; messageBody;
</span><span class="lines">@@ -74,7 +72,7 @@
</span><span class="cx">         context = adoptWK(Util::createContextForInjectedBundleTest(&quot;WillLoadTest&quot;));
</span><span class="cx">         setInjectedBundleClient(context.get(), this);
</span><span class="cx"> 
</span><del>-        webView = adoptPtr(new PlatformWebView(context.get()));
</del><ins>+        webView = std::make_unique&lt;PlatformWebView&gt;(context.get());
</ins><span class="cx"> 
</span><span class="cx">         didReceiveMessage = false;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2GtkDOMDOMWindowTestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/DOMDOMWindowTest.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> 
</span><span class="cx"> class WebKitDOMDOMWindowTest : public WebProcessTest {
</span><span class="cx"> public:
</span><del>-    static PassOwnPtr&lt;WebProcessTest&gt; create() { return adoptPtr(new WebKitDOMDOMWindowTest()); }
</del><ins>+    static std::unique_ptr&lt;WebProcessTest&gt; create() { return std::make_unique&lt;WebKitDOMDOMWindowTest&gt;(); }
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     guint64 webPageFromArgs(GVariant* args)
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2GtkWebExtensionTestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp (183264 => 183265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp        2015-04-24 15:44:16 UTC (rev 183264)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp        2015-04-24 16:38:28 UTC (rev 183265)
</span><span class="lines">@@ -26,8 +26,6 @@
</span><span class="cx"> #include &lt;string.h&gt;
</span><span class="cx"> #include &lt;webkit2/webkit-web-extension.h&gt;
</span><span class="cx"> #include &lt;wtf/Deque.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/ProcessID.h&gt;
</span><span class="cx"> #include &lt;wtf/gobject/GRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/gobject/GUniquePtr.h&gt;
</span><span class="lines">@@ -83,7 +81,7 @@
</span><span class="cx">     CString uri;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-Deque&lt;OwnPtr&lt;DelayedSignal&gt;&gt; delayedSignalsQueue;
</del><ins>+Deque&lt;DelayedSignal&gt; delayedSignalsQueue;
</ins><span class="cx"> 
</span><span class="cx"> static void emitDocumentLoaded(GDBusConnection* connection)
</span><span class="cx"> {
</span><span class="lines">@@ -115,7 +113,7 @@
</span><span class="cx">     if (data)
</span><span class="cx">         emitDocumentLoaded(G_DBUS_CONNECTION(data));
</span><span class="cx">     else
</span><del>-        delayedSignalsQueue.append(adoptPtr(new DelayedSignal(DocumentLoadedSignal)));
</del><ins>+        delayedSignalsQueue.append(DelayedSignal(DocumentLoadedSignal));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void emitURIChanged(GDBusConnection* connection, const char* uri)
</span><span class="lines">@@ -137,7 +135,7 @@
</span><span class="cx">     if (data)
</span><span class="cx">         emitURIChanged(G_DBUS_CONNECTION(data), webkit_web_page_get_uri(webPage));
</span><span class="cx">     else
</span><del>-        delayedSignalsQueue.append(adoptPtr(new DelayedSignal(URIChangedSignal, webkit_web_page_get_uri(webPage))));
</del><ins>+        delayedSignalsQueue.append(DelayedSignal(URIChangedSignal, webkit_web_page_get_uri(webPage)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static gboolean sendRequestCallback(WebKitWebPage*, WebKitURIRequest* request, WebKitURIResponse* redirectResponse, gpointer)
</span><span class="lines">@@ -330,13 +328,13 @@
</span><span class="cx"> 
</span><span class="cx">     g_object_set_data(G_OBJECT(userData), &quot;dbus-connection&quot;, connection);
</span><span class="cx">     while (delayedSignalsQueue.size()) {
</span><del>-        OwnPtr&lt;DelayedSignal&gt; delayedSignal = delayedSignalsQueue.takeFirst();
-        switch (delayedSignal-&gt;type) {
</del><ins>+        DelayedSignal delayedSignal = delayedSignalsQueue.takeFirst();
+        switch (delayedSignal.type) {
</ins><span class="cx">         case DocumentLoadedSignal:
</span><span class="cx">             emitDocumentLoaded(connection);
</span><span class="cx">             break;
</span><span class="cx">         case URIChangedSignal:
</span><del>-            emitURIChanged(connection, delayedSignal-&gt;uri.data());
</del><ins>+            emitURIChanged(connection, delayedSignal.uri.data());
</ins><span class="cx">             break;
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre>
</div>
</div>

</body>
</html>