<!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>[190202] trunk/Source/WebCore</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/190202">190202</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2015-09-24 07:56:52 -0700 (Thu, 24 Sep 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Reduce almost uses of PassRefPtr in Webcore/testing
https://bugs.webkit.org/show_bug.cgi?id=149449

Reviewed by Darin Adler.

This patch removes all uses of PassRefPtr except for Internals::serializeObject() and Internals::deserializeObject().
It will be removed by upcoming patch.

* Modules/encryptedmedia/CDMSessionClearKey.cpp:
(WebCore::CDMSessionClearKey::generateKeyRequest):
* Modules/encryptedmedia/CDMSessionClearKey.h:
* bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
(WebCore::jsTestOverrideBuiltinsPrototypeFunctionNamedItem):
* platform/graphics/CDMSession.h:
* platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp:
(WebCore::CDMSessionAVFoundationCF::generateKeyRequest):
* platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h:
* platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h:
* platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:
(WebCore::CDMSessionAVFoundationObjC::generateKeyRequest):
* platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h:
* platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
(WebCore::CDMSessionMediaSourceAVFObjC::generateKeyRequest):
* testing/InternalSettings.h:
(WebCore::InternalSettings::create):
* testing/Internals.cpp:
(WebCore::Internals::create):
(WebCore::Internals::computedStyleIncludingVisitedInfo):
(WebCore::Internals::markerRangeForNode):
(WebCore::Internals::rangeFromLocationAndLength):
(WebCore::Internals::subrange):
(WebCore::Internals::nodesFromRect):
(WebCore::Internals::mallocStatistics):
(WebCore::Internals::typeConversions):
(WebCore::Internals::memoryInfo):
(WebCore::Internals::serializeObject):
(WebCore::Internals::deserializeBuffer):
(WebCore::Internals::createTimeRanges):
* testing/Internals.h:
* testing/MallocStatistics.h:
(WebCore::MallocStatistics::create):
* testing/MemoryInfo.h:
(WebCore::MemoryInfo::create):
* testing/MockCDM.cpp:
(WebCore::MockCDMSession::generateKeyRequest):
* testing/TypeConversions.h:
(WebCore::TypeConversions::create):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaCDMSessionClearKeycpp">trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaCDMSessionClearKeyh">trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsCDMSessionh">trunk/Source/WebCore/platform/graphics/CDMSession.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationcfCDMSessionAVFoundationCFcpp">trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationcfCDMSessionAVFoundationCFh">trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionAVFoundationObjCh">trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionAVFoundationObjCmm">trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionMediaSourceAVFObjCh">trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionMediaSourceAVFObjCmm">trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm</a></li>
<li><a href="#trunkSourceWebCoretestingInternalSettingsh">trunk/Source/WebCore/testing/InternalSettings.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsh">trunk/Source/WebCore/testing/Internals.h</a></li>
<li><a href="#trunkSourceWebCoretestingMallocStatisticsh">trunk/Source/WebCore/testing/MallocStatistics.h</a></li>
<li><a href="#trunkSourceWebCoretestingMemoryInfoh">trunk/Source/WebCore/testing/MemoryInfo.h</a></li>
<li><a href="#trunkSourceWebCoretestingMockCDMcpp">trunk/Source/WebCore/testing/MockCDM.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingTypeConversionsh">trunk/Source/WebCore/testing/TypeConversions.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/ChangeLog        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -1,3 +1,53 @@
</span><ins>+2015-09-24  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
+
+        Reduce almost uses of PassRefPtr in Webcore/testing
+        https://bugs.webkit.org/show_bug.cgi?id=149449
+
+        Reviewed by Darin Adler.
+
+        This patch removes all uses of PassRefPtr except for Internals::serializeObject() and Internals::deserializeObject().
+        It will be removed by upcoming patch.
+
+        * Modules/encryptedmedia/CDMSessionClearKey.cpp:
+        (WebCore::CDMSessionClearKey::generateKeyRequest):
+        * Modules/encryptedmedia/CDMSessionClearKey.h:
+        * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
+        (WebCore::jsTestOverrideBuiltinsPrototypeFunctionNamedItem):
+        * platform/graphics/CDMSession.h:
+        * platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp:
+        (WebCore::CDMSessionAVFoundationCF::generateKeyRequest):
+        * platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h:
+        * platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h:
+        * platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:
+        (WebCore::CDMSessionAVFoundationObjC::generateKeyRequest):
+        * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h:
+        * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
+        (WebCore::CDMSessionMediaSourceAVFObjC::generateKeyRequest):
+        * testing/InternalSettings.h:
+        (WebCore::InternalSettings::create):
+        * testing/Internals.cpp:
+        (WebCore::Internals::create):
+        (WebCore::Internals::computedStyleIncludingVisitedInfo):
+        (WebCore::Internals::markerRangeForNode):
+        (WebCore::Internals::rangeFromLocationAndLength):
+        (WebCore::Internals::subrange):
+        (WebCore::Internals::nodesFromRect):
+        (WebCore::Internals::mallocStatistics):
+        (WebCore::Internals::typeConversions):
+        (WebCore::Internals::memoryInfo):
+        (WebCore::Internals::serializeObject):
+        (WebCore::Internals::deserializeBuffer):
+        (WebCore::Internals::createTimeRanges):
+        * testing/Internals.h:
+        * testing/MallocStatistics.h:
+        (WebCore::MallocStatistics::create):
+        * testing/MemoryInfo.h:
+        (WebCore::MemoryInfo::create):
+        * testing/MockCDM.cpp:
+        (WebCore::MockCDMSession::generateKeyRequest):
+        * testing/TypeConversions.h:
+        (WebCore::TypeConversions::create):
+
</ins><span class="cx"> 2015-09-24  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Ran sort-Xcode-project-file.
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaCDMSessionClearKeycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.cpp (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.cpp        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.cpp        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Uint8Array&gt; CDMSessionClearKey::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</del><ins>+RefPtr&lt;Uint8Array&gt; CDMSessionClearKey::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</ins><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(mimeType);
</span><span class="cx">     UNUSED_PARAM(destinationURL);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaCDMSessionClearKeyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">     virtual CDMSessionType type() override { return CDMSessionTypeClearKey; }
</span><span class="cx">     virtual void setClient(CDMSessionClient* client) override { m_client = client; }
</span><span class="cx">     virtual const String&amp; sessionId() const override { return m_sessionId; }
</span><del>-    virtual PassRefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array*, String&amp;, unsigned short&amp;, unsigned long&amp;) override;
</del><ins>+    virtual RefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array*, String&amp;, unsigned short&amp;, unsigned long&amp;) override;
</ins><span class="cx">     virtual void releaseKeys() override;
</span><span class="cx">     virtual bool update(Uint8Array*, RefPtr&lt;Uint8Array&gt;&amp;, unsigned short&amp;, unsigned long&amp;) override;
</span><span class="cx">     virtual RefPtr&lt;ArrayBuffer&gt; cachedKeyForKeyID(const String&amp;) const override;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsCDMSessionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/CDMSession.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/CDMSession.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/platform/graphics/CDMSession.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">     virtual CDMSessionType type() { return CDMSessionTypeUnknown; }
</span><span class="cx">     virtual void setClient(CDMSessionClient*) = 0;
</span><span class="cx">     virtual const String&amp; sessionId() const = 0;
</span><del>-    virtual PassRefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) = 0;
</del><ins>+    virtual RefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) = 0;
</ins><span class="cx">     virtual void releaseKeys() = 0;
</span><span class="cx">     virtual bool update(Uint8Array*, RefPtr&lt;Uint8Array&gt;&amp; nextMessage, unsigned short&amp; errorCode, unsigned long&amp; systemCode) = 0;
</span><span class="cx">     virtual RefPtr&lt;ArrayBuffer&gt; cachedKeyForKeyID(const String&amp;) const { return nullptr; }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationcfCDMSessionAVFoundationCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Uint8Array&gt; CDMSessionAVFoundationCF::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</del><ins>+RefPtr&lt;Uint8Array&gt; CDMSessionAVFoundationCF::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</ins><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(mimeType);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationcfCDMSessionAVFoundationCFh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> 
</span><span class="cx">     virtual void setClient(CDMSessionClient* client) override { m_client = client; }
</span><span class="cx">     virtual const String&amp; sessionId() const override { return m_sessionId; }
</span><del>-    virtual PassRefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</del><ins>+    virtual RefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</ins><span class="cx">     virtual void releaseKeys() override;
</span><span class="cx">     virtual bool update(Uint8Array*, RefPtr&lt;Uint8Array&gt;&amp; nextMessage, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionAVFoundationObjCh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">     virtual CDMSessionType type() override { return CDMSessionTypeAVFoundationObjC; }
</span><span class="cx">     virtual void setClient(CDMSessionClient* client) override { m_client = client; }
</span><span class="cx">     virtual const String&amp; sessionId() const override { return m_sessionId; }
</span><del>-    virtual PassRefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</del><ins>+    virtual RefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</ins><span class="cx">     virtual void releaseKeys() override;
</span><span class="cx">     virtual bool update(Uint8Array*, RefPtr&lt;Uint8Array&gt;&amp; nextMessage, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionAVFoundationObjCmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Uint8Array&gt; CDMSessionAVFoundationObjC::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</del><ins>+RefPtr&lt;Uint8Array&gt; CDMSessionAVFoundationObjC::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</ins><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(mimeType);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionMediaSourceAVFObjCh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">     virtual CDMSessionType type() override { return CDMSessionTypeMediaSourceAVFObjC; }
</span><span class="cx">     virtual void setClient(CDMSessionClient* client) override { m_client = client; }
</span><span class="cx">     virtual const String&amp; sessionId() const override { return m_sessionId; }
</span><del>-    virtual PassRefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</del><ins>+    virtual RefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</ins><span class="cx">     virtual void releaseKeys() override;
</span><span class="cx">     virtual bool update(Uint8Array*, RefPtr&lt;Uint8Array&gt;&amp; nextMessage, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationobjcCDMSessionMediaSourceAVFObjCmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">     setStreamSession(nullptr);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Uint8Array&gt; CDMSessionMediaSourceAVFObjC::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</del><ins>+RefPtr&lt;Uint8Array&gt; CDMSessionMediaSourceAVFObjC::generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode)
</ins><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(mimeType);
</span><span class="cx">     UNUSED_PARAM(destinationURL);
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalSettingsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/InternalSettings.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/InternalSettings.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/testing/InternalSettings.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> #include &quot;IntSize.h&quot;
</span><span class="cx"> #include &quot;InternalSettingsGenerated.h&quot;
</span><span class="cx"> #include &quot;SecurityOrigin.h&quot;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -103,9 +102,9 @@
</span><span class="cx">         bool m_inlineMediaPlaybackRequiresPlaysInlineAttribute;
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;InternalSettings&gt; create(Page* page)
</del><ins>+    static Ref&lt;InternalSettings&gt; create(Page* page)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new InternalSettings(page));
</del><ins>+        return adoptRef(*new InternalSettings(page));
</ins><span class="cx">     }
</span><span class="cx">     static InternalSettings* from(Page*);
</span><span class="cx">     void hostDestroyed() { m_page = 0; }
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/testing/Internals.cpp        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -317,9 +317,9 @@
</span><span class="cx"> 
</span><span class="cx"> const char* Internals::internalsId = &quot;internals&quot;;
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Internals&gt; Internals::create(Document* document)
</del><ins>+Ref&lt;Internals&gt; Internals::create(Document* document)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new Internals(document));
</del><ins>+    return adoptRef(*new Internals(document));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Internals::~Internals()
</span><span class="lines">@@ -739,11 +739,11 @@
</span><span class="cx">     return element-&gt;renderer() &amp;&amp; element-&gt;renderer()-&gt;hasPausedImageAnimations();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;CSSComputedStyleDeclaration&gt; Internals::computedStyleIncludingVisitedInfo(Node* node, ExceptionCode&amp; ec) const
</del><ins>+RefPtr&lt;CSSComputedStyleDeclaration&gt; Internals::computedStyleIncludingVisitedInfo(Node* node, ExceptionCode&amp; ec) const
</ins><span class="cx"> {
</span><span class="cx">     if (!node) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     bool allowVisitedStyle = true;
</span><span class="lines">@@ -1029,7 +1029,7 @@
</span><span class="cx">     return markers[index];
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Range&gt; Internals::markerRangeForNode(Node* node, const String&amp; markerType, unsigned index, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;Range&gt; Internals::markerRangeForNode(Node* node, const String&amp; markerType, unsigned index, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     RenderedDocumentMarker* marker = markerAt(node, markerType, index, ec);
</span><span class="cx">     if (!marker)
</span><span class="lines">@@ -1235,11 +1235,11 @@
</span><span class="cx">     frameView-&gt;paintControlTints();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Range&gt; Internals::rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;Range&gt; Internals::rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!scope) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return TextIterator::rangeFromLocationAndLength(scope, rangeLocation, rangeLength);
</span><span class="lines">@@ -1281,11 +1281,11 @@
</span><span class="cx">     return range-&gt;text();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Range&gt; Internals::subrange(Range* range, int rangeLocation, int rangeLength, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;Range&gt; Internals::subrange(Range* range, int rangeLocation, int rangeLength, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!range) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     return TextIterator::subrange(range, rangeLocation, rangeLength);
</span><span class="lines">@@ -1407,19 +1407,19 @@
</span><span class="cx"> // contextDocument(), with the exception of a few tests that pass a
</span><span class="cx"> // different document, and could just make the call through another Internals
</span><span class="cx"> // instance instead.
</span><del>-PassRefPtr&lt;NodeList&gt; Internals::nodesFromRect(Document* document, int centerX, int centerY, unsigned topPadding, unsigned rightPadding,
</del><ins>+RefPtr&lt;NodeList&gt; Internals::nodesFromRect(Document* document, int centerX, int centerY, unsigned topPadding, unsigned rightPadding,
</ins><span class="cx">     unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionCode&amp; ec) const
</span><span class="cx"> {
</span><span class="cx">     if (!document || !document-&gt;frame() || !document-&gt;frame()-&gt;view()) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     Frame* frame = document-&gt;frame();
</span><span class="cx">     FrameView* frameView = document-&gt;view();
</span><span class="cx">     RenderView* renderView = document-&gt;renderView();
</span><span class="cx">     if (!renderView)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     document-&gt;updateLayoutIgnorePendingStylesheets();
</span><span class="cx"> 
</span><span class="lines">@@ -1438,7 +1438,7 @@
</span><span class="cx"> 
</span><span class="cx">     // When ignoreClipping is false, this method returns null for coordinates outside of the viewport.
</span><span class="cx">     if (!request.ignoreClipping() &amp;&amp; !frameView-&gt;visibleContentRect().intersects(HitTestLocation::rectForPoint(point, topPadding, rightPadding, bottomPadding, leftPadding)))
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     Vector&lt;Ref&lt;Node&gt;&gt; matches;
</span><span class="cx"> 
</span><span class="lines">@@ -2152,17 +2152,17 @@
</span><span class="cx">     SchemeRegistry::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(scheme);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MallocStatistics&gt; Internals::mallocStatistics() const
</del><ins>+Ref&lt;MallocStatistics&gt; Internals::mallocStatistics() const
</ins><span class="cx"> {
</span><span class="cx">     return MallocStatistics::create();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TypeConversions&gt; Internals::typeConversions() const
</del><ins>+Ref&lt;TypeConversions&gt; Internals::typeConversions() const
</ins><span class="cx"> {
</span><span class="cx">     return TypeConversions::create();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MemoryInfo&gt; Internals::memoryInfo() const
</del><ins>+Ref&lt;MemoryInfo&gt; Internals::memoryInfo() const
</ins><span class="cx"> {
</span><span class="cx">     return MemoryInfo::create();
</span><span class="cx"> }
</span><span class="lines">@@ -2385,13 +2385,13 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ArrayBuffer&gt; Internals::serializeObject(PassRefPtr&lt;SerializedScriptValue&gt; value) const
</del><ins>+RefPtr&lt;ArrayBuffer&gt; Internals::serializeObject(PassRefPtr&lt;SerializedScriptValue&gt; value) const
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;uint8_t&gt; bytes = value-&gt;data();
</span><span class="cx">     return ArrayBuffer::create(bytes.data(), bytes.size());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;SerializedScriptValue&gt; Internals::deserializeBuffer(PassRefPtr&lt;ArrayBuffer&gt; buffer) const
</del><ins>+RefPtr&lt;SerializedScriptValue&gt; Internals::deserializeBuffer(PassRefPtr&lt;ArrayBuffer&gt; buffer) const
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;uint8_t&gt; bytes;
</span><span class="cx">     bytes.append(static_cast&lt;const uint8_t*&gt;(buffer-&gt;data()), buffer-&gt;byteLength());
</span><span class="lines">@@ -2575,11 +2575,11 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>-PassRefPtr&lt;TimeRanges&gt; Internals::createTimeRanges(Float32Array* startTimes, Float32Array* endTimes)
</del><ins>+Ref&lt;TimeRanges&gt; Internals::createTimeRanges(Float32Array* startTimes, Float32Array* endTimes)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(startTimes &amp;&amp; endTimes);
</span><span class="cx">     ASSERT(startTimes-&gt;length() == endTimes-&gt;length());
</span><del>-    RefPtr&lt;TimeRanges&gt; ranges = TimeRanges::create();
</del><ins>+    Ref&lt;TimeRanges&gt; ranges = TimeRanges::create();
</ins><span class="cx"> 
</span><span class="cx">     unsigned count = std::min(startTimes-&gt;length(), endTimes-&gt;length());
</span><span class="cx">     for (unsigned i = 0; i &lt; count; ++i)
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/testing/Internals.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> #include &lt;bindings/ScriptValue.h&gt;
</span><span class="cx"> #include &lt;runtime/ArrayBuffer.h&gt;
</span><span class="cx"> #include &lt;runtime/Float32Array.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -78,7 +77,7 @@
</span><span class="cx"> class Internals : public RefCounted&lt;Internals&gt;
</span><span class="cx">                 , public ContextDestructionObserver {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;Internals&gt; create(Document*);
</del><ins>+    static Ref&lt;Internals&gt; create(Document*);
</ins><span class="cx">     virtual ~Internals();
</span><span class="cx"> 
</span><span class="cx">     static void resetToConsistentState(Page*);
</span><span class="lines">@@ -106,7 +105,7 @@
</span><span class="cx">     void clearPageCache();
</span><span class="cx">     unsigned pageCacheSize() const;
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;CSSComputedStyleDeclaration&gt; computedStyleIncludingVisitedInfo(Node*, ExceptionCode&amp;) const;
</del><ins>+    RefPtr&lt;CSSComputedStyleDeclaration&gt; computedStyleIncludingVisitedInfo(Node*, ExceptionCode&amp;) const;
</ins><span class="cx"> 
</span><span class="cx">     Node* ensureShadowRoot(Element* host, ExceptionCode&amp;);
</span><span class="cx">     Node* ensureUserAgentShadowRoot(Element* host, ExceptionCode&amp;);
</span><span class="lines">@@ -157,7 +156,7 @@
</span><span class="cx">     String inspectorHighlightObject(ExceptionCode&amp;);
</span><span class="cx"> 
</span><span class="cx">     unsigned markerCountForNode(Node*, const String&amp;, ExceptionCode&amp;);
</span><del>-    PassRefPtr&lt;Range&gt; markerRangeForNode(Node*, const String&amp; markerType, unsigned index, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;Range&gt; markerRangeForNode(Node*, const String&amp; markerType, unsigned index, ExceptionCode&amp;);
</ins><span class="cx">     String markerDescriptionForNode(Node*, const String&amp; markerType, unsigned index, ExceptionCode&amp;);
</span><span class="cx">     void addTextMatchMarker(const Range*, bool isActive);
</span><span class="cx">     void setMarkedTextMatchesAreHighlighted(bool, ExceptionCode&amp;);
</span><span class="lines">@@ -180,11 +179,11 @@
</span><span class="cx"> 
</span><span class="cx">     void paintControlTints(ExceptionCode&amp;);
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;Range&gt; rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;Range&gt; rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength, ExceptionCode&amp;);
</ins><span class="cx">     unsigned locationFromRange(Element* scope, const Range*, ExceptionCode&amp;);
</span><span class="cx">     unsigned lengthFromRange(Element* scope, const Range*, ExceptionCode&amp;);
</span><span class="cx">     String rangeAsText(const Range*, ExceptionCode&amp;);
</span><del>-    PassRefPtr&lt;Range&gt; subrange(Range* range, int rangeLocation, int rangeLength, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;Range&gt; subrange(Range*, int rangeLocation, int rangeLength, ExceptionCode&amp;);
</ins><span class="cx">     RefPtr&lt;Range&gt; rangeForDictionaryLookupAtLocation(int x, int y, ExceptionCode&amp;);
</span><span class="cx"> 
</span><span class="cx">     void setDelegatesScrolling(bool enabled, ExceptionCode&amp;);
</span><span class="lines">@@ -201,7 +200,7 @@
</span><span class="cx">     unsigned wheelEventHandlerCount(ExceptionCode&amp;);
</span><span class="cx">     unsigned touchEventHandlerCount(ExceptionCode&amp;);
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;NodeList&gt; nodesFromRect(Document*, int x, int y, unsigned topPadding, unsigned rightPadding,
</del><ins>+    RefPtr&lt;NodeList&gt; nodesFromRect(Document*, int x, int y, unsigned topPadding, unsigned rightPadding,
</ins><span class="cx">         unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionCode&amp;) const;
</span><span class="cx"> 
</span><span class="cx">     String parserMetaData(Deprecated::ScriptValue = Deprecated::ScriptValue());
</span><span class="lines">@@ -302,9 +301,9 @@
</span><span class="cx">     void registerURLSchemeAsBypassingContentSecurityPolicy(const String&amp; scheme);
</span><span class="cx">     void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String&amp; scheme);
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;MallocStatistics&gt; mallocStatistics() const;
-    PassRefPtr&lt;TypeConversions&gt; typeConversions() const;
-    PassRefPtr&lt;MemoryInfo&gt; memoryInfo() const;
</del><ins>+    Ref&lt;MallocStatistics&gt; mallocStatistics() const;
+    Ref&lt;TypeConversions&gt; typeConversions() const;
+    Ref&lt;MemoryInfo&gt; memoryInfo() const;
</ins><span class="cx"> 
</span><span class="cx">     Vector&lt;String&gt; getReferencedFilePaths() const;
</span><span class="cx"> 
</span><span class="lines">@@ -324,8 +323,8 @@
</span><span class="cx">     void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, ExceptionCode&amp;);
</span><span class="cx">     unsigned layoutCount() const;
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;ArrayBuffer&gt; serializeObject(PassRefPtr&lt;SerializedScriptValue&gt;) const;
-    PassRefPtr&lt;SerializedScriptValue&gt; deserializeBuffer(PassRefPtr&lt;ArrayBuffer&gt;) const;
</del><ins>+    RefPtr&lt;ArrayBuffer&gt; serializeObject(PassRefPtr&lt;SerializedScriptValue&gt;) const;
+    RefPtr&lt;SerializedScriptValue&gt; deserializeBuffer(PassRefPtr&lt;ArrayBuffer&gt;) const;
</ins><span class="cx"> 
</span><span class="cx">     bool isFromCurrentWorld(Deprecated::ScriptValue) const;
</span><span class="cx"> 
</span><span class="lines">@@ -366,7 +365,7 @@
</span><span class="cx">     void setCaptionDisplayMode(const String&amp;, ExceptionCode&amp;);
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>-    PassRefPtr&lt;TimeRanges&gt; createTimeRanges(Float32Array* startTimes, Float32Array* endTimes);
</del><ins>+    Ref&lt;TimeRanges&gt; createTimeRanges(Float32Array* startTimes, Float32Array* endTimes);
</ins><span class="cx">     double closestTimeToTimeRanges(double time, TimeRanges*);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoretestingMallocStatisticsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/MallocStatistics.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/MallocStatistics.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/testing/MallocStatistics.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -27,14 +27,13 @@
</span><span class="cx"> #define MallocStatistics_h
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/FastMalloc.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class MallocStatistics : public RefCounted&lt;MallocStatistics&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;MallocStatistics&gt; create() { return adoptRef(new MallocStatistics()); }
</del><ins>+    static Ref&lt;MallocStatistics&gt; create() { return adoptRef(*new MallocStatistics); }
</ins><span class="cx"> 
</span><span class="cx">     size_t reservedVMBytes() const { return m_stats.reservedVMBytes; }
</span><span class="cx">     size_t committedVMBytes() const { return m_stats.committedVMBytes; }
</span></span></pre></div>
<a id="trunkSourceWebCoretestingMemoryInfoh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/MemoryInfo.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/MemoryInfo.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/testing/MemoryInfo.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -32,14 +32,13 @@
</span><span class="cx"> #define MemoryInfo_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWindow.h&quot;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class MemoryInfo : public RefCounted&lt;MemoryInfo&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;MemoryInfo&gt; create() { return adoptRef(new MemoryInfo); }
</del><ins>+    static Ref&lt;MemoryInfo&gt; create() { return adoptRef(*new MemoryInfo); }
</ins><span class="cx"> 
</span><span class="cx">     size_t usedJSHeapSize() const { return m_usedJSHeapSize; }
</span><span class="cx">     size_t totalJSHeapSize() const { return m_totalJSHeapSize; }
</span></span></pre></div>
<a id="trunkSourceWebCoretestingMockCDMcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/MockCDM.cpp (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/MockCDM.cpp        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/testing/MockCDM.cpp        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> 
</span><span class="cx">     virtual void setClient(CDMSessionClient* client) override { m_client = client; }
</span><span class="cx">     virtual const String&amp; sessionId() const override { return m_sessionId; }
</span><del>-    virtual PassRefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</del><ins>+    virtual RefPtr&lt;Uint8Array&gt; generateKeyRequest(const String&amp; mimeType, Uint8Array* initData, String&amp; destinationURL, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</ins><span class="cx">     virtual void releaseKeys() override;
</span><span class="cx">     virtual bool update(Uint8Array*, RefPtr&lt;Uint8Array&gt;&amp; nextMessage, unsigned short&amp; errorCode, unsigned long&amp; systemCode) override;
</span><span class="cx"> 
</span><span class="lines">@@ -111,12 +111,12 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Uint8Array&gt; MockCDMSession::generateKeyRequest(const String&amp;, Uint8Array* initData, String&amp;, unsigned short&amp; errorCode, unsigned long&amp;)
</del><ins>+RefPtr&lt;Uint8Array&gt; MockCDMSession::generateKeyRequest(const String&amp;, Uint8Array* initData, String&amp;, unsigned short&amp; errorCode, unsigned long&amp;)
</ins><span class="cx"> {
</span><span class="cx">     for (unsigned i = 0; i &lt; initDataPrefix()-&gt;length(); ++i) {
</span><span class="cx">         if (!initData || i &gt;= initData-&gt;length() || initData-&gt;item(i) != initDataPrefix()-&gt;item(i)) {
</span><span class="cx">             errorCode = MediaKeyError::MEDIA_KEYERR_UNKNOWN;
</span><del>-            return 0;
</del><ins>+            return nullptr;
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     return keyRequest();
</span></span></pre></div>
<a id="trunkSourceWebCoretestingTypeConversionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/TypeConversions.h (190201 => 190202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/TypeConversions.h        2015-09-24 14:26:50 UTC (rev 190201)
+++ trunk/Source/WebCore/testing/TypeConversions.h        2015-09-24 14:56:52 UTC (rev 190202)
</span><span class="lines">@@ -27,14 +27,13 @@
</span><span class="cx"> #define TypeConversions_h
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/FastMalloc.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class TypeConversions : public RefCounted&lt;TypeConversions&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;TypeConversions&gt; create() { return adoptRef(new TypeConversions()); }
</del><ins>+    static Ref&lt;TypeConversions&gt; create() { return adoptRef(*new TypeConversions()); }
</ins><span class="cx"> 
</span><span class="cx">     long testLong() { return m_long; }
</span><span class="cx">     void setTestLong(long value) { m_long = value; }
</span></span></pre>
</div>
</div>

</body>
</html>