<!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>[200789] 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/200789">200789</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-05-12 14:13:13 -0700 (Thu, 12 May 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Drop toJS() overload taking a PassRefPtr&lt;&gt; parameter
https://bugs.webkit.org/show_bug.cgi?id=157627

Reviewed by Alex Christensen.

Update our implementation stop stop returning PassRefPtrs to the
JS bindings and drop the toJS() overload taking a PassRefPtr&lt;&gt;
parameter

* Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::buffered):
* Modules/mediasource/SourceBuffer.h:
* Modules/webaudio/AudioBuffer.cpp:
(WebCore::AudioBuffer::getChannelData):
* Modules/webaudio/AudioBuffer.h:
* animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::create):
* animation/DocumentTimeline.h:
* bindings/js/JSDOMBinding.h:
(WebCore::toJS): Deleted.
(WebCore::toJSNewlyCreated): Deleted.
* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::getRGBColorValue):
* css/CSSPrimitiveValue.h:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::error):
* html/HTMLMediaElement.h:
* html/LabelableElement.cpp:
(WebCore::LabelableElement::labels):
* html/LabelableElement.h:
* html/canvas/WebGLGetInfo.cpp:
(WebCore::WebGLGetInfo::getWebGLBuffer):
(WebCore::WebGLGetInfo::getWebGLFloatArray):
(WebCore::WebGLGetInfo::getWebGLFramebuffer):
(WebCore::WebGLGetInfo::getWebGLIntArray):
(WebCore::WebGLGetInfo::getWebGLProgram):
(WebCore::WebGLGetInfo::getWebGLRenderbuffer):
(WebCore::WebGLGetInfo::getWebGLTexture):
(WebCore::WebGLGetInfo::getWebGLUnsignedByteArray):
(WebCore::WebGLGetInfo::getWebGLUnsignedIntArray):
(WebCore::WebGLGetInfo::getWebGLVertexArrayObjectOES):
(WebCore::WebGLGetInfo::getWebGLVertexArrayObject):
* html/canvas/WebGLGetInfo.h:
* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::paintRenderingResultsToImageData):
(WebCore::WebGLRenderingContextBase::createBuffer):
(WebCore::WebGLRenderingContextBase::createFramebuffer):
(WebCore::WebGLRenderingContextBase::createTexture):
(WebCore::WebGLRenderingContextBase::createProgram):
(WebCore::WebGLRenderingContextBase::createRenderbuffer):
(WebCore::WebGLRenderingContextBase::createShader):
(WebCore::WebGLRenderingContextBase::getActiveAttrib):
(WebCore::WebGLRenderingContextBase::getActiveUniform):
(WebCore::WebGLRenderingContextBase::getShaderPrecisionFormat):
(WebCore::WebGLRenderingContextBase::getUniformLocation):
(WebCore::WebGLRenderingContextBase::drawImageIntoBuffer):
(WebCore::WebGLRenderingContextBase::videoFrameToImage):
* html/canvas/WebGLRenderingContextBase.h:
* html/track/TextTrackCue.cpp:
(WebCore::TextTrackCue::create):
* html/track/TextTrackCue.h:
* html/track/VTTCue.cpp:
(WebCore::VTTCueBox::create):
* html/track/VTTCue.h:
* page/DOMSelection.cpp:
(WebCore::DOMSelection::getRangeAt):
* page/DOMSelection.h:
* page/DOMWindow.cpp:
(WebCore::DOMWindow::matchMedia):
(WebCore::DOMWindow::styleMedia):
(WebCore::DOMWindow::getComputedStyle):
(WebCore::DOMWindow::getMatchedCSSRules):
(WebCore::DOMWindow::webkitConvertPointFromNodeToPage):
(WebCore::DOMWindow::webkitConvertPointFromPageToNode):
(WebCore::DOMWindow::open):
* page/DOMWindow.h:
* page/Location.cpp:
(WebCore::Location::ancestorOrigins):
* page/Location.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceSourceBuffercpp">trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceSourceBufferh">trunk/Source/WebCore/Modules/mediasource/SourceBuffer.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsReportcpp">trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCStatsReporth">trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioAudioBuffercpp">trunk/Source/WebCore/Modules/webaudio/AudioBuffer.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioAudioBufferh">trunk/Source/WebCore/Modules/webaudio/AudioBuffer.h</a></li>
<li><a href="#trunkSourceWebCoreanimationDocumentTimelinecpp">trunk/Source/WebCore/animation/DocumentTimeline.cpp</a></li>
<li><a href="#trunkSourceWebCoreanimationDocumentTimelineh">trunk/Source/WebCore/animation/DocumentTimeline.h</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMBindingh">trunk/Source/WebCore/bindings/js/JSDOMBinding.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSPrimitiveValuecpp">trunk/Source/WebCore/css/CSSPrimitiveValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSPrimitiveValueh">trunk/Source/WebCore/css/CSSPrimitiveValue.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementh">trunk/Source/WebCore/html/HTMLMediaElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlLabelableElementcpp">trunk/Source/WebCore/html/LabelableElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlLabelableElementh">trunk/Source/WebCore/html/LabelableElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLGetInfocpp">trunk/Source/WebCore/html/canvas/WebGLGetInfo.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLGetInfoh">trunk/Source/WebCore/html/canvas/WebGLGetInfo.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLRenderingContextBasecpp">trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLRenderingContextBaseh">trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.h</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTextTrackCuecpp">trunk/Source/WebCore/html/track/TextTrackCue.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTextTrackCueh">trunk/Source/WebCore/html/track/TextTrackCue.h</a></li>
<li><a href="#trunkSourceWebCorehtmltrackVTTCuecpp">trunk/Source/WebCore/html/track/VTTCue.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackVTTCueh">trunk/Source/WebCore/html/track/VTTCue.h</a></li>
<li><a href="#trunkSourceWebCorepageDOMSelectioncpp">trunk/Source/WebCore/page/DOMSelection.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDOMSelectionh">trunk/Source/WebCore/page/DOMSelection.h</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowcpp">trunk/Source/WebCore/page/DOMWindow.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowh">trunk/Source/WebCore/page/DOMWindow.h</a></li>
<li><a href="#trunkSourceWebCorepageLocationcpp">trunk/Source/WebCore/page/Location.cpp</a></li>
<li><a href="#trunkSourceWebCorepageLocationh">trunk/Source/WebCore/page/Location.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/ChangeLog        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -1,3 +1,85 @@
</span><ins>+2016-05-12  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Drop toJS() overload taking a PassRefPtr&lt;&gt; parameter
+        https://bugs.webkit.org/show_bug.cgi?id=157627
+
+        Reviewed by Alex Christensen.
+
+        Update our implementation stop stop returning PassRefPtrs to the
+        JS bindings and drop the toJS() overload taking a PassRefPtr&lt;&gt;
+        parameter
+
+        * Modules/mediasource/SourceBuffer.cpp:
+        (WebCore::SourceBuffer::buffered):
+        * Modules/mediasource/SourceBuffer.h:
+        * Modules/webaudio/AudioBuffer.cpp:
+        (WebCore::AudioBuffer::getChannelData):
+        * Modules/webaudio/AudioBuffer.h:
+        * animation/DocumentTimeline.cpp:
+        (WebCore::DocumentTimeline::create):
+        * animation/DocumentTimeline.h:
+        * bindings/js/JSDOMBinding.h:
+        (WebCore::toJS): Deleted.
+        (WebCore::toJSNewlyCreated): Deleted.
+        * css/CSSPrimitiveValue.cpp:
+        (WebCore::CSSPrimitiveValue::getRGBColorValue):
+        * css/CSSPrimitiveValue.h:
+        * html/HTMLMediaElement.cpp:
+        (WebCore::HTMLMediaElement::error):
+        * html/HTMLMediaElement.h:
+        * html/LabelableElement.cpp:
+        (WebCore::LabelableElement::labels):
+        * html/LabelableElement.h:
+        * html/canvas/WebGLGetInfo.cpp:
+        (WebCore::WebGLGetInfo::getWebGLBuffer):
+        (WebCore::WebGLGetInfo::getWebGLFloatArray):
+        (WebCore::WebGLGetInfo::getWebGLFramebuffer):
+        (WebCore::WebGLGetInfo::getWebGLIntArray):
+        (WebCore::WebGLGetInfo::getWebGLProgram):
+        (WebCore::WebGLGetInfo::getWebGLRenderbuffer):
+        (WebCore::WebGLGetInfo::getWebGLTexture):
+        (WebCore::WebGLGetInfo::getWebGLUnsignedByteArray):
+        (WebCore::WebGLGetInfo::getWebGLUnsignedIntArray):
+        (WebCore::WebGLGetInfo::getWebGLVertexArrayObjectOES):
+        (WebCore::WebGLGetInfo::getWebGLVertexArrayObject):
+        * html/canvas/WebGLGetInfo.h:
+        * html/canvas/WebGLRenderingContextBase.cpp:
+        (WebCore::WebGLRenderingContextBase::paintRenderingResultsToImageData):
+        (WebCore::WebGLRenderingContextBase::createBuffer):
+        (WebCore::WebGLRenderingContextBase::createFramebuffer):
+        (WebCore::WebGLRenderingContextBase::createTexture):
+        (WebCore::WebGLRenderingContextBase::createProgram):
+        (WebCore::WebGLRenderingContextBase::createRenderbuffer):
+        (WebCore::WebGLRenderingContextBase::createShader):
+        (WebCore::WebGLRenderingContextBase::getActiveAttrib):
+        (WebCore::WebGLRenderingContextBase::getActiveUniform):
+        (WebCore::WebGLRenderingContextBase::getShaderPrecisionFormat):
+        (WebCore::WebGLRenderingContextBase::getUniformLocation):
+        (WebCore::WebGLRenderingContextBase::drawImageIntoBuffer):
+        (WebCore::WebGLRenderingContextBase::videoFrameToImage):
+        * html/canvas/WebGLRenderingContextBase.h:
+        * html/track/TextTrackCue.cpp:
+        (WebCore::TextTrackCue::create):
+        * html/track/TextTrackCue.h:
+        * html/track/VTTCue.cpp:
+        (WebCore::VTTCueBox::create):
+        * html/track/VTTCue.h:
+        * page/DOMSelection.cpp:
+        (WebCore::DOMSelection::getRangeAt):
+        * page/DOMSelection.h:
+        * page/DOMWindow.cpp:
+        (WebCore::DOMWindow::matchMedia):
+        (WebCore::DOMWindow::styleMedia):
+        (WebCore::DOMWindow::getComputedStyle):
+        (WebCore::DOMWindow::getMatchedCSSRules):
+        (WebCore::DOMWindow::webkitConvertPointFromNodeToPage):
+        (WebCore::DOMWindow::webkitConvertPointFromPageToNode):
+        (WebCore::DOMWindow::open):
+        * page/DOMWindow.h:
+        * page/Location.cpp:
+        (WebCore::Location::ancestorOrigins):
+        * page/Location.h:
+
</ins><span class="cx"> 2016-05-12  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Touch.prototype is undefined on iOS
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceSourceBuffercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx">     m_private-&gt;setClient(nullptr);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TimeRanges&gt; SourceBuffer::buffered(ExceptionCode&amp; ec) const
</del><ins>+RefPtr&lt;TimeRanges&gt; SourceBuffer::buffered(ExceptionCode&amp; ec) const
</ins><span class="cx"> {
</span><span class="cx">     // Section 3.1 buffered attribute steps.
</span><span class="cx">     // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#attributes-1
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceSourceBufferh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/SourceBuffer.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/SourceBuffer.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/Modules/mediasource/SourceBuffer.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> 
</span><span class="cx">     // SourceBuffer.idl methods
</span><span class="cx">     bool updating() const { return m_updating; }
</span><del>-    PassRefPtr&lt;TimeRanges&gt; buffered(ExceptionCode&amp;) const;
</del><ins>+    RefPtr&lt;TimeRanges&gt; buffered(ExceptionCode&amp;) const;
</ins><span class="cx">     const RefPtr&lt;TimeRanges&gt;&amp; buffered() const;
</span><span class="cx">     double timestampOffset() const;
</span><span class="cx">     void setTimestampOffset(double, ExceptionCode&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsReportcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -53,14 +53,14 @@
</span><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-const PassRefPtr&lt;RTCStatsReport&gt; RTCStatsReport::local()
</del><ins>+RTCStatsReport&amp; RTCStatsReport::local()
</ins><span class="cx"> {
</span><del>-    return this;
</del><ins>+    return *this;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-const PassRefPtr&lt;RTCStatsReport&gt; RTCStatsReport::remote()
</del><ins>+RTCStatsReport&amp; RTCStatsReport::remote()
</ins><span class="cx"> {
</span><del>-    return this;
</del><ins>+    return *this;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void RTCStatsReport::addStatistic(const String&amp; name, const String&amp; value)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCStatsReporth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -45,9 +45,9 @@
</span><span class="cx">     Vector&lt;String&gt; names() const;
</span><span class="cx"> 
</span><span class="cx">     // DEPRECATED
</span><del>-    const PassRefPtr&lt;RTCStatsReport&gt; local();
</del><ins>+    RTCStatsReport&amp; local();
</ins><span class="cx">     // DEPRECATED
</span><del>-    const PassRefPtr&lt;RTCStatsReport&gt; remote();
</del><ins>+    RTCStatsReport&amp; remote();
</ins><span class="cx"> 
</span><span class="cx">     void addStatistic(const String&amp; name, const String&amp; value);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioBuffercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioBuffer.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioBuffer.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/Modules/webaudio/AudioBuffer.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx">     m_channels.clear();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Float32Array&gt; AudioBuffer::getChannelData(unsigned channelIndex, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;Float32Array&gt; AudioBuffer::getChannelData(unsigned channelIndex, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (channelIndex &gt;= m_channels.size()) {
</span><span class="cx">         ec = SYNTAX_ERR;
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioBufferh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioBuffer.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioBuffer.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/Modules/webaudio/AudioBuffer.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx"> 
</span><span class="cx">     // Channel data access
</span><span class="cx">     unsigned numberOfChannels() const { return m_channels.size(); }
</span><del>-    PassRefPtr&lt;Float32Array&gt; getChannelData(unsigned channelIndex, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;Float32Array&gt; getChannelData(unsigned channelIndex, ExceptionCode&amp;);
</ins><span class="cx">     Float32Array* getChannelData(unsigned channelIndex);
</span><span class="cx">     void zero();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationDocumentTimelinecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/DocumentTimeline.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/DocumentTimeline.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/animation/DocumentTimeline.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -33,9 +33,9 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;DocumentTimeline&gt; DocumentTimeline::create(double originTime)
</del><ins>+Ref&lt;DocumentTimeline&gt; DocumentTimeline::create(double originTime)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new DocumentTimeline(originTime));
</del><ins>+    return adoptRef(*new DocumentTimeline(originTime));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> DocumentTimeline::DocumentTimeline(double originTime)
</span></span></pre></div>
<a id="trunkSourceWebCoreanimationDocumentTimelineh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/animation/DocumentTimeline.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/animation/DocumentTimeline.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/animation/DocumentTimeline.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> 
</span><span class="cx"> class DocumentTimeline final : public AnimationTimeline {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;DocumentTimeline&gt; create(double);
</del><ins>+    static Ref&lt;DocumentTimeline&gt; create(double);
</ins><span class="cx">     ~DocumentTimeline();
</span><span class="cx"> 
</span><span class="cx"> protected:
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMBindingh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMBinding.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMBinding.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/bindings/js/JSDOMBinding.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -252,10 +252,8 @@
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, JSC::ArrayBufferView*);
</span><span class="cx"> JSC::JSValue toJS(JSC::ExecState*, JSC::JSGlobalObject*, JSC::ArrayBufferView*);
</span><span class="cx"> template&lt;typename T&gt; JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const RefPtr&lt;T&gt;&amp;);
</span><del>-template&lt;typename T&gt; JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const PassRefPtr&lt;T&gt;&amp;);
</del><span class="cx"> template&lt;typename T&gt; JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const Ref&lt;T&gt;&amp;);
</span><span class="cx"> template&lt;typename T&gt; JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, const RefPtr&lt;T&gt;&amp;);
</span><del>-template&lt;typename T&gt; JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, const PassRefPtr&lt;T&gt;&amp;);
</del><span class="cx"> template&lt;typename T&gt; JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, const Ref&lt;T&gt;&amp;);
</span><span class="cx"> template&lt;typename T&gt; JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const Vector&lt;T&gt;&amp;);
</span><span class="cx"> template&lt;typename T&gt; JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const Vector&lt;RefPtr&lt;T&gt;&gt;&amp;);
</span><span class="lines">@@ -549,11 +547,6 @@
</span><span class="cx">     return toJS(exec, globalObject, ptr.get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-template&lt;typename T&gt; inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const PassRefPtr&lt;T&gt;&amp; ptr)
-{
-    return toJS(exec, globalObject, ptr.get());
-}
-
</del><span class="cx"> template&lt;typename T&gt; inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const Ref&lt;T&gt;&amp; ptr)
</span><span class="cx"> {
</span><span class="cx">     return toJS(exec, globalObject, const_cast&lt;T&amp;&gt;(ptr.get()));
</span><span class="lines">@@ -564,11 +557,6 @@
</span><span class="cx">     return toJSNewlyCreated(exec, globalObject, ptr.get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-template&lt;typename T&gt; inline JSC::JSValue toJSNewlyCreated(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const PassRefPtr&lt;T&gt;&amp; ptr)
-{
-    return toJSNewlyCreated(exec, globalObject, ptr.get());
-}
-
</del><span class="cx"> template&lt;typename T&gt; inline JSC::JSValue toJSNewlyCreated(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const Ref&lt;T&gt;&amp; ptr)
</span><span class="cx"> {
</span><span class="cx">     return toJSNewlyCreated(exec, globalObject, const_cast&lt;T&amp;&gt;(ptr.get()));
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSPrimitiveValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSPrimitiveValue.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -940,12 +940,11 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RGBColor&gt; CSSPrimitiveValue::getRGBColorValue(ExceptionCode&amp; ec) const
</del><ins>+RefPtr&lt;RGBColor&gt; CSSPrimitiveValue::getRGBColorValue(ExceptionCode&amp; ec) const
</ins><span class="cx"> {
</span><del>-    ec = 0;
</del><span class="cx">     if (m_primitiveUnitType != CSS_RGBCOLOR) {
</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">     // FIMXE: This should not return a new object for each invocation.
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSPrimitiveValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSPrimitiveValue.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -347,7 +347,7 @@
</span><span class="cx">     LengthRepeat* getLengthRepeatValue() const { return m_primitiveUnitType != CSS_LENGTH_REPEAT ? 0 : m_value.lengthRepeat; }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;RGBColor&gt; getRGBColorValue(ExceptionCode&amp;) const;
</del><ins>+    RefPtr&lt;RGBColor&gt; getRGBColorValue(ExceptionCode&amp;) const;
</ins><span class="cx">     RGBA32 getRGBA32Value() const { return m_primitiveUnitType != CSS_RGBCOLOR ? 0 : m_value.rgbcolor; }
</span><span class="cx"> 
</span><span class="cx">     Pair* getPairValue(ExceptionCode&amp;) const;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -967,9 +967,9 @@
</span><span class="cx">         mediaEngineWasUpdated();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaError&gt; HTMLMediaElement::error() const 
</del><ins>+MediaError* HTMLMediaElement::error() const
</ins><span class="cx"> {
</span><del>-    return m_error;
</del><ins>+    return m_error.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setSrc(const String&amp; url)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/HTMLMediaElement.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -157,7 +157,7 @@
</span><span class="cx"> 
</span><span class="cx"> // DOM API
</span><span class="cx"> // error state
</span><del>-    PassRefPtr&lt;MediaError&gt; error() const;
</del><ins>+    MediaError* error() const;
</ins><span class="cx"> 
</span><span class="cx">     void setSrc(const String&amp;);
</span><span class="cx">     const URL&amp; currentSrc() const { return m_currentSrc; }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlLabelableElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/LabelableElement.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/LabelableElement.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/LabelableElement.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -40,10 +40,10 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;NodeList&gt; LabelableElement::labels()
</del><ins>+RefPtr&lt;NodeList&gt; LabelableElement::labels()
</ins><span class="cx"> {
</span><span class="cx">     if (!supportLabels())
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     return ensureRareData().ensureNodeLists().addCacheWithAtomicName&lt;LabelsNodeList&gt;(*this, starAtom);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlLabelableElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/LabelableElement.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/LabelableElement.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/LabelableElement.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~LabelableElement();
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;NodeList&gt; labels();
</del><ins>+    RefPtr&lt;NodeList&gt; labels();
</ins><span class="cx">     virtual bool supportLabels() const { return false; }
</span><span class="cx"> 
</span><span class="cx"> protected:
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLGetInfocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLGetInfo.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLGetInfo.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/canvas/WebGLGetInfo.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -298,71 +298,71 @@
</span><span class="cx">     return m_int64;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLBuffer&gt; WebGLGetInfo::getWebGLBuffer() const
</del><ins>+WebGLBuffer* WebGLGetInfo::getWebGLBuffer() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLBuffer);
</span><del>-    return m_webglBuffer;
</del><ins>+    return m_webglBuffer.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Float32Array&gt; WebGLGetInfo::getWebGLFloatArray() const
</del><ins>+Float32Array* WebGLGetInfo::getWebGLFloatArray() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLFloatArray);
</span><del>-    return m_webglFloatArray;
</del><ins>+    return m_webglFloatArray.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLFramebuffer&gt; WebGLGetInfo::getWebGLFramebuffer() const
</del><ins>+WebGLFramebuffer* WebGLGetInfo::getWebGLFramebuffer() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLFramebuffer);
</span><del>-    return m_webglFramebuffer;
</del><ins>+    return m_webglFramebuffer.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Int32Array&gt; WebGLGetInfo::getWebGLIntArray() const
</del><ins>+Int32Array* WebGLGetInfo::getWebGLIntArray() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLIntArray);
</span><del>-    return m_webglIntArray;
</del><ins>+    return m_webglIntArray.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLProgram&gt; WebGLGetInfo::getWebGLProgram() const
</del><ins>+WebGLProgram* WebGLGetInfo::getWebGLProgram() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLProgram);
</span><del>-    return m_webglProgram;
</del><ins>+    return m_webglProgram.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLRenderbuffer&gt; WebGLGetInfo::getWebGLRenderbuffer() const
</del><ins>+WebGLRenderbuffer* WebGLGetInfo::getWebGLRenderbuffer() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLRenderbuffer);
</span><del>-    return m_webglRenderbuffer;
</del><ins>+    return m_webglRenderbuffer.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLTexture&gt; WebGLGetInfo::getWebGLTexture() const
</del><ins>+WebGLTexture* WebGLGetInfo::getWebGLTexture() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLTexture);
</span><del>-    return m_webglTexture;
</del><ins>+    return m_webglTexture.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Uint8Array&gt; WebGLGetInfo::getWebGLUnsignedByteArray() const
</del><ins>+Uint8Array* WebGLGetInfo::getWebGLUnsignedByteArray() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLUnsignedByteArray);
</span><del>-    return m_webglUnsignedByteArray;
</del><ins>+    return m_webglUnsignedByteArray.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Uint32Array&gt; WebGLGetInfo::getWebGLUnsignedIntArray() const
</del><ins>+Uint32Array* WebGLGetInfo::getWebGLUnsignedIntArray() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLUnsignedIntArray);
</span><del>-    return m_webglUnsignedIntArray;
</del><ins>+    return m_webglUnsignedIntArray.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLVertexArrayObjectOES&gt; WebGLGetInfo::getWebGLVertexArrayObjectOES() const
</del><ins>+WebGLVertexArrayObjectOES* WebGLGetInfo::getWebGLVertexArrayObjectOES() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLVertexArrayObjectOES);
</span><del>-    return m_webglVertexArrayObjectOES;
</del><ins>+    return m_webglVertexArrayObjectOES.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(WEBGL2)
</span><del>-PassRefPtr&lt;WebGLVertexArrayObject&gt; WebGLGetInfo::getWebGLVertexArrayObject() const
</del><ins>+WebGLVertexArrayObject* WebGLGetInfo::getWebGLVertexArrayObject() const
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(getType() == kTypeWebGLVertexArrayObject);
</span><del>-    return m_webglVertexArrayObject;
</del><ins>+    return m_webglVertexArrayObject.get();
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLGetInfoh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLGetInfo.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLGetInfo.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/canvas/WebGLGetInfo.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -112,20 +112,20 @@
</span><span class="cx">     const String&amp; getString() const;
</span><span class="cx">     unsigned int getUnsignedInt() const;
</span><span class="cx">     long long getInt64() const;
</span><del>-    PassRefPtr&lt;WebGLBuffer&gt; getWebGLBuffer() const;
-    PassRefPtr&lt;Float32Array&gt; getWebGLFloatArray() const;
-    PassRefPtr&lt;WebGLFramebuffer&gt; getWebGLFramebuffer() const;
-    PassRefPtr&lt;Int32Array&gt; getWebGLIntArray() const;
</del><ins>+    WebGLBuffer* getWebGLBuffer() const;
+    Float32Array* getWebGLFloatArray() const;
+    WebGLFramebuffer* getWebGLFramebuffer() const;
+    Int32Array* getWebGLIntArray() const;
</ins><span class="cx">     // FIXME: implement WebGLObjectArray
</span><del>-    // PassRefPtr&lt;WebGLObjectArray&gt; getWebGLObjectArray() const;
-    PassRefPtr&lt;WebGLProgram&gt; getWebGLProgram() const;
-    PassRefPtr&lt;WebGLRenderbuffer&gt; getWebGLRenderbuffer() const;
-    PassRefPtr&lt;WebGLTexture&gt; getWebGLTexture() const;
-    PassRefPtr&lt;Uint8Array&gt; getWebGLUnsignedByteArray() const;
-    PassRefPtr&lt;Uint32Array&gt; getWebGLUnsignedIntArray() const;
-    PassRefPtr&lt;WebGLVertexArrayObjectOES&gt; getWebGLVertexArrayObjectOES() const;
</del><ins>+    // WebGLObjectArray* getWebGLObjectArray() const;
+    WebGLProgram* getWebGLProgram() const;
+    WebGLRenderbuffer* getWebGLRenderbuffer() const;
+    WebGLTexture* getWebGLTexture() const;
+    Uint8Array* getWebGLUnsignedByteArray() const;
+    Uint32Array* getWebGLUnsignedIntArray() const;
+    WebGLVertexArrayObjectOES* getWebGLVertexArrayObjectOES() const;
</ins><span class="cx"> #if ENABLE(WEBGL2)
</span><del>-    PassRefPtr&lt;WebGLVertexArrayObject&gt; getWebGLVertexArrayObject() const;
</del><ins>+    WebGLVertexArrayObject* getWebGLVertexArrayObject() const;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLRenderingContextBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -752,7 +752,7 @@
</span><span class="cx">     m_context-&gt;paintRenderingResultsToCanvas(canvas()-&gt;buffer());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ImageData&gt; WebGLRenderingContextBase::paintRenderingResultsToImageData()
</del><ins>+RefPtr&lt;ImageData&gt; WebGLRenderingContextBase::paintRenderingResultsToImageData()
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -1386,52 +1386,52 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLBuffer&gt; WebGLRenderingContextBase::createBuffer()
</del><ins>+RefPtr&lt;WebGLBuffer&gt; WebGLRenderingContextBase::createBuffer()
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><del>-    RefPtr&lt;WebGLBuffer&gt; o = WebGLBuffer::create(this);
-    addSharedObject(o.get());
-    return o;
</del><ins>+    auto buffer = WebGLBuffer::create(this);
+    addSharedObject(buffer.ptr());
+    return WTFMove(buffer);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLFramebuffer&gt; WebGLRenderingContextBase::createFramebuffer()
</del><ins>+RefPtr&lt;WebGLFramebuffer&gt; WebGLRenderingContextBase::createFramebuffer()
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><del>-    RefPtr&lt;WebGLFramebuffer&gt; o = WebGLFramebuffer::create(this);
-    addContextObject(o.get());
-    return o;
</del><ins>+    auto buffer = WebGLFramebuffer::create(this);
+    addContextObject(buffer.ptr());
+    return WTFMove(buffer);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLTexture&gt; WebGLRenderingContextBase::createTexture()
</del><ins>+RefPtr&lt;WebGLTexture&gt; WebGLRenderingContextBase::createTexture()
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><del>-    RefPtr&lt;WebGLTexture&gt; o = WebGLTexture::create(this);
-    addSharedObject(o.get());
-    return o;
</del><ins>+    auto texture = WebGLTexture::create(this);
+    addSharedObject(texture.ptr());
+    return WTFMove(texture);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLProgram&gt; WebGLRenderingContextBase::createProgram()
</del><ins>+RefPtr&lt;WebGLProgram&gt; WebGLRenderingContextBase::createProgram()
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><del>-    RefPtr&lt;WebGLProgram&gt; o = WebGLProgram::create(this);
-    addSharedObject(o.get());
-    return o;
</del><ins>+    auto program = WebGLProgram::create(this);
+    addSharedObject(program.ptr());
+    return WTFMove(program);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLRenderbuffer&gt; WebGLRenderingContextBase::createRenderbuffer()
</del><ins>+RefPtr&lt;WebGLRenderbuffer&gt; WebGLRenderingContextBase::createRenderbuffer()
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><del>-    RefPtr&lt;WebGLRenderbuffer&gt; o = WebGLRenderbuffer::create(this);
-    addSharedObject(o.get());
-    return o;
</del><ins>+    auto buffer = WebGLRenderbuffer::create(this);
+    addSharedObject(buffer.ptr());
+    return WTFMove(buffer);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLShader&gt; WebGLRenderingContextBase::createShader(GC3Denum type, ExceptionCode&amp;)
</del><ins>+RefPtr&lt;WebGLShader&gt; WebGLRenderingContextBase::createShader(GC3Denum type, ExceptionCode&amp;)
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -1440,9 +1440,9 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebGLShader&gt; o = WebGLShader::create(this, type);
-    addSharedObject(o.get());
-    return o;
</del><ins>+    auto shader = WebGLShader::create(this, type);
+    addSharedObject(shader.ptr());
+    return WTFMove(shader);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebGLRenderingContextBase::cullFace(GC3Denum mode)
</span><span class="lines">@@ -2116,7 +2116,7 @@
</span><span class="cx">     tex-&gt;generateMipmapLevelInfo();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLActiveInfo&gt; WebGLRenderingContextBase::getActiveAttrib(WebGLProgram* program, GC3Duint index, ExceptionCode&amp;)
</del><ins>+RefPtr&lt;WebGLActiveInfo&gt; WebGLRenderingContextBase::getActiveAttrib(WebGLProgram* program, GC3Duint index, ExceptionCode&amp;)
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending() || !validateWebGLObject(&quot;getActiveAttrib&quot;, program))
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -2129,10 +2129,10 @@
</span><span class="cx">     return WebGLActiveInfo::create(info.name, info.type, info.size);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLActiveInfo&gt; WebGLRenderingContextBase::getActiveUniform(WebGLProgram* program, GC3Duint index, ExceptionCode&amp;)
</del><ins>+RefPtr&lt;WebGLActiveInfo&gt; WebGLRenderingContextBase::getActiveUniform(WebGLProgram* program, GC3Duint index, ExceptionCode&amp;)
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending() || !validateWebGLObject(&quot;getActiveUniform&quot;, program))
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     ActiveInfo info;
</span><span class="cx">     if (!m_context-&gt;getActiveUniform(objectOrZero(program), index, info))
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -2352,7 +2352,7 @@
</span><span class="cx">     return ensureNotNull(m_context-&gt;getShaderInfoLog(objectOrZero(shader)));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLShaderPrecisionFormat&gt; WebGLRenderingContextBase::getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&amp;)
</del><ins>+RefPtr&lt;WebGLShaderPrecisionFormat&gt; WebGLRenderingContextBase::getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&amp;)
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending())
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -2545,7 +2545,7 @@
</span><span class="cx">     return WebGLGetInfo();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebGLUniformLocation&gt; WebGLRenderingContextBase::getUniformLocation(WebGLProgram* program, const String&amp; name, ExceptionCode&amp;)
</del><ins>+RefPtr&lt;WebGLUniformLocation&gt; WebGLRenderingContextBase::getUniformLocation(WebGLProgram* program, const String&amp; name, ExceptionCode&amp;)
</ins><span class="cx"> {
</span><span class="cx">     if (isContextLostOrPending() || !validateWebGLObject(&quot;getUniformLocation&quot;, program))
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -3152,7 +3152,7 @@
</span><span class="cx">         m_context-&gt;pixelStorei(GraphicsContext3D::UNPACK_ALIGNMENT, m_unpackAlignment);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Image&gt; WebGLRenderingContextBase::drawImageIntoBuffer(Image&amp; image, int width, int height, int deviceScaleFactor)
</del><ins>+RefPtr&lt;Image&gt; WebGLRenderingContextBase::drawImageIntoBuffer(Image&amp; image, int width, int height, int deviceScaleFactor)
</ins><span class="cx"> {
</span><span class="cx">     IntSize size(width, height);
</span><span class="cx">     size.scale(deviceScaleFactor);
</span><span class="lines">@@ -3220,7 +3220,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>-PassRefPtr&lt;Image&gt; WebGLRenderingContextBase::videoFrameToImage(HTMLVideoElement* video, BackingStoreCopy backingStoreCopy, ExceptionCode&amp;)
</del><ins>+RefPtr&lt;Image&gt; WebGLRenderingContextBase::videoFrameToImage(HTMLVideoElement* video, BackingStoreCopy backingStoreCopy, ExceptionCode&amp;)
</ins><span class="cx"> {
</span><span class="cx">     IntSize size(video-&gt;videoWidth(), video-&gt;videoHeight());
</span><span class="cx">     ImageBuffer* buf = m_generatedImageCache.imageBuffer(size);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLRenderingContextBaseh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -158,12 +158,12 @@
</span><span class="cx">     virtual void copyTexImage2D(GC3Denum target, GC3Dint level, GC3Denum internalformat, GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height, GC3Dint border) = 0;
</span><span class="cx">     void copyTexSubImage2D(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset, GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height);
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;WebGLBuffer&gt; createBuffer();
-    PassRefPtr&lt;WebGLFramebuffer&gt; createFramebuffer();
-    PassRefPtr&lt;WebGLProgram&gt; createProgram();
-    PassRefPtr&lt;WebGLRenderbuffer&gt; createRenderbuffer();
-    PassRefPtr&lt;WebGLShader&gt; createShader(GC3Denum type, ExceptionCode&amp;);
-    PassRefPtr&lt;WebGLTexture&gt; createTexture();
</del><ins>+    RefPtr&lt;WebGLBuffer&gt; createBuffer();
+    RefPtr&lt;WebGLFramebuffer&gt; createFramebuffer();
+    RefPtr&lt;WebGLProgram&gt; createProgram();
+    RefPtr&lt;WebGLRenderbuffer&gt; createRenderbuffer();
+    RefPtr&lt;WebGLShader&gt; createShader(GC3Denum type, ExceptionCode&amp;);
+    RefPtr&lt;WebGLTexture&gt; createTexture();
</ins><span class="cx"> 
</span><span class="cx">     void cullFace(GC3Denum mode);
</span><span class="cx"> 
</span><span class="lines">@@ -192,8 +192,8 @@
</span><span class="cx">     void frontFace(GC3Denum mode);
</span><span class="cx">     void generateMipmap(GC3Denum target);
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;WebGLActiveInfo&gt; getActiveAttrib(WebGLProgram*, GC3Duint index, ExceptionCode&amp;);
-    PassRefPtr&lt;WebGLActiveInfo&gt; getActiveUniform(WebGLProgram*, GC3Duint index, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;WebGLActiveInfo&gt; getActiveAttrib(WebGLProgram*, GC3Duint index, ExceptionCode&amp;);
+    RefPtr&lt;WebGLActiveInfo&gt; getActiveUniform(WebGLProgram*, GC3Duint index, ExceptionCode&amp;);
</ins><span class="cx">     bool getAttachedShaders(WebGLProgram*, Vector&lt;RefPtr&lt;WebGLShader&gt;&gt;&amp;, ExceptionCode&amp;);
</span><span class="cx">     GC3Dint getAttribLocation(WebGLProgram*, const String&amp; name);
</span><span class="cx">     WebGLGetInfo getBufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&amp;);
</span><span class="lines">@@ -207,12 +207,12 @@
</span><span class="cx">     WebGLGetInfo getRenderbufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&amp;);
</span><span class="cx">     WebGLGetInfo getShaderParameter(WebGLShader*, GC3Denum pname, ExceptionCode&amp;);
</span><span class="cx">     String getShaderInfoLog(WebGLShader*, ExceptionCode&amp;);
</span><del>-    PassRefPtr&lt;WebGLShaderPrecisionFormat&gt; getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;WebGLShaderPrecisionFormat&gt; getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&amp;);
</ins><span class="cx">     String getShaderSource(WebGLShader*, ExceptionCode&amp;);
</span><span class="cx">     virtual Vector&lt;String&gt; getSupportedExtensions() = 0;
</span><span class="cx">     WebGLGetInfo getTexParameter(GC3Denum target, GC3Denum pname, ExceptionCode&amp;);
</span><span class="cx">     WebGLGetInfo getUniform(WebGLProgram*, const WebGLUniformLocation*, ExceptionCode&amp;);
</span><del>-    PassRefPtr&lt;WebGLUniformLocation&gt; getUniformLocation(WebGLProgram*, const String&amp;, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;WebGLUniformLocation&gt; getUniformLocation(WebGLProgram*, const String&amp;, ExceptionCode&amp;);
</ins><span class="cx">     WebGLGetInfo getVertexAttrib(GC3Duint index, GC3Denum pname, ExceptionCode&amp;);
</span><span class="cx">     long long getVertexAttribOffset(GC3Duint index, GC3Denum pname);
</span><span class="cx"> 
</span><span class="lines">@@ -346,7 +346,7 @@
</span><span class="cx"> 
</span><span class="cx">     void markLayerComposited();
</span><span class="cx">     void paintRenderingResultsToCanvas() override;
</span><del>-    PassRefPtr&lt;ImageData&gt; paintRenderingResultsToImageData();
</del><ins>+    RefPtr&lt;ImageData&gt; paintRenderingResultsToImageData();
</ins><span class="cx"> 
</span><span class="cx">     void removeSharedObject(WebGLSharedObject*);
</span><span class="cx">     void removeContextObject(WebGLContextObject*);
</span><span class="lines">@@ -426,10 +426,10 @@
</span><span class="cx">     // Adds a compressed texture format.
</span><span class="cx">     void addCompressedTextureFormat(GC3Denum);
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;Image&gt; drawImageIntoBuffer(Image&amp;, int width, int height, int deviceScaleFactor);
</del><ins>+    RefPtr&lt;Image&gt; drawImageIntoBuffer(Image&amp;, int width, int height, int deviceScaleFactor);
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>-    PassRefPtr&lt;Image&gt; videoFrameToImage(HTMLVideoElement*, BackingStoreCopy, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;Image&gt; videoFrameToImage(HTMLVideoElement*, BackingStoreCopy, ExceptionCode&amp;);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     WebGLTexture::TextureExtensionFlag textureExtensionFlags() const;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTextTrackCuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TextTrackCue.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TextTrackCue.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/track/TextTrackCue.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -55,12 +55,12 @@
</span><span class="cx"> 
</span><span class="cx"> static const int invalidCueIndex = -1;
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextTrackCue&gt; TextTrackCue::create(ScriptExecutionContext&amp; context, double start, double end, const String&amp; content)
</del><ins>+Ref&lt;TextTrackCue&gt; TextTrackCue::create(ScriptExecutionContext&amp; context, double start, double end, const String&amp; content)
</ins><span class="cx"> {
</span><span class="cx">     return create(context, MediaTime::createWithDouble(start), MediaTime::createWithDouble(end), content);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextTrackCue&gt; TextTrackCue::create(ScriptExecutionContext&amp; context, const MediaTime&amp; start, const MediaTime&amp; end, const String&amp; content)
</del><ins>+Ref&lt;TextTrackCue&gt; TextTrackCue::create(ScriptExecutionContext&amp; context, const MediaTime&amp; start, const MediaTime&amp; end, const String&amp; content)
</ins><span class="cx"> {
</span><span class="cx">     return VTTCue::create(context, start, end, content);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTextTrackCueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TextTrackCue.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TextTrackCue.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/track/TextTrackCue.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -46,8 +46,8 @@
</span><span class="cx"> 
</span><span class="cx"> class TextTrackCue : public RefCounted&lt;TextTrackCue&gt;, public EventTargetWithInlineData {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;TextTrackCue&gt; create(ScriptExecutionContext&amp;, double start, double end, const String&amp; content);
-    static PassRefPtr&lt;TextTrackCue&gt; create(ScriptExecutionContext&amp;, const MediaTime&amp; start, const MediaTime&amp; end, const String&amp; content);
</del><ins>+    static Ref&lt;TextTrackCue&gt; create(ScriptExecutionContext&amp;, double start, double end, const String&amp; content);
+    static Ref&lt;TextTrackCue&gt; create(ScriptExecutionContext&amp;, const MediaTime&amp; start, const MediaTime&amp; end, const String&amp; content);
</ins><span class="cx"> 
</span><span class="cx">     static const AtomicString&amp; cueShadowPseudoId()
</span><span class="cx">     {
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackVTTCuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/VTTCue.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/VTTCue.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/track/VTTCue.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -119,10 +119,10 @@
</span><span class="cx"> 
</span><span class="cx"> // ----------------------------
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;VTTCueBox&gt; VTTCueBox::create(Document&amp; document, VTTCue&amp; cue)
</del><ins>+Ref&lt;VTTCueBox&gt; VTTCueBox::create(Document&amp; document, VTTCue&amp; cue)
</ins><span class="cx"> {
</span><del>-    VTTCueBox* cueBox = new VTTCueBox(document, cue);
-    cueBox-&gt;setPseudo(VTTCueBox::vttCueBoxShadowPseudoId());
</del><ins>+    VTTCueBox&amp; cueBox = *new VTTCueBox(document, cue);
+    cueBox.setPseudo(VTTCueBox::vttCueBoxShadowPseudoId());
</ins><span class="cx">     return adoptRef(cueBox);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackVTTCueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/VTTCue.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/VTTCue.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/html/track/VTTCue.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> 
</span><span class="cx"> class VTTCueBox : public HTMLElement {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;VTTCueBox&gt; create(Document&amp;, VTTCue&amp;);
</del><ins>+    static Ref&lt;VTTCueBox&gt; create(Document&amp;, VTTCue&amp;);
</ins><span class="cx"> 
</span><span class="cx">     VTTCue* getCue() const;
</span><span class="cx">     virtual void applyCSSProperties(const IntSize&amp; videoSize);
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMSelectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMSelection.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMSelection.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/page/DOMSelection.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -344,14 +344,14 @@
</span><span class="cx">     m_frame-&gt;selection().setExtent(createLegacyEditingPosition(&amp;node, offset), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Range&gt; DOMSelection::getRangeAt(int index, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;Range&gt; DOMSelection::getRangeAt(int index, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!m_frame)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     if (index &lt; 0 || index &gt;= rangeCount()) {
</span><span class="cx">         ec = INDEX_SIZE_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // If you're hitting this, you've added broken multi-range selection support
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMSelectionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMSelection.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMSelection.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/page/DOMSelection.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx">         void collapseToEnd(ExceptionCode&amp;);
</span><span class="cx">         void collapseToStart(ExceptionCode&amp;);
</span><span class="cx">         void extend(Node&amp;, int offset, ExceptionCode&amp;);
</span><del>-        PassRefPtr&lt;Range&gt; getRangeAt(int, ExceptionCode&amp;);
</del><ins>+        RefPtr&lt;Range&gt; getRangeAt(int, ExceptionCode&amp;);
</ins><span class="cx">         void removeAllRanges();
</span><span class="cx">         void addRange(Range*);
</span><span class="cx">         void deleteFromDocument();
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/page/DOMWindow.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -463,9 +463,9 @@
</span><span class="cx">     return this;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaQueryList&gt; DOMWindow::matchMedia(const String&amp; media)
</del><ins>+RefPtr&lt;MediaQueryList&gt; DOMWindow::matchMedia(const String&amp; media)
</ins><span class="cx"> {
</span><del>-    return document() ? document()-&gt;mediaQueryMatcher().matchMedia(media) : 0;
</del><ins>+    return document() ? document()-&gt;mediaQueryMatcher().matchMedia(media) : nullptr;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Page* DOMWindow::page()
</span><span class="lines">@@ -1405,16 +1405,16 @@
</span><span class="cx">     return downcast&lt;Document&gt;(context);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;StyleMedia&gt; DOMWindow::styleMedia() const
</del><ins>+RefPtr&lt;StyleMedia&gt; DOMWindow::styleMedia() const
</ins><span class="cx"> {
</span><span class="cx">     if (!isCurrentlyDisplayedInFrame())
</span><span class="cx">         return nullptr;
</span><span class="cx">     if (!m_media)
</span><span class="cx">         m_media = StyleMedia::create(m_frame);
</span><del>-    return m_media.get();
</del><ins>+    return m_media;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;CSSStyleDeclaration&gt; DOMWindow::getComputedStyle(Element* element, const String&amp; pseudoElt) const
</del><ins>+RefPtr&lt;CSSStyleDeclaration&gt; DOMWindow::getComputedStyle(Element* element, const String&amp; pseudoElt) const
</ins><span class="cx"> {
</span><span class="cx">     if (!element)
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -1422,15 +1422,15 @@
</span><span class="cx">     return CSSComputedStyleDeclaration::create(element, false, pseudoElt);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;CSSRuleList&gt; DOMWindow::getMatchedCSSRules(Element* element, const String&amp; pseudoElement, bool authorOnly) const
</del><ins>+RefPtr&lt;CSSRuleList&gt; DOMWindow::getMatchedCSSRules(Element* element, const String&amp; pseudoElement, bool authorOnly) const
</ins><span class="cx"> {
</span><span class="cx">     if (!isCurrentlyDisplayedInFrame())
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     unsigned colonStart = pseudoElement[0] == ':' ? (pseudoElement[1] == ':' ? 2 : 1) : 0;
</span><span class="cx">     CSSSelector::PseudoElementType pseudoType = CSSSelector::parsePseudoElementType(pseudoElement.substringSharingImpl(colonStart));
</span><span class="cx">     if (pseudoType == CSSSelector::PseudoElementUnknown &amp;&amp; !pseudoElement.isEmpty())
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     unsigned rulesToInclude = StyleResolver::AuthorCSSRules;
</span><span class="cx">     if (!authorOnly)
</span><span class="lines">@@ -1442,22 +1442,22 @@
</span><span class="cx"> 
</span><span class="cx">     auto matchedRules = m_frame-&gt;document()-&gt;ensureStyleResolver().pseudoStyleRulesForElement(element, pseudoId, rulesToInclude);
</span><span class="cx">     if (matchedRules.isEmpty())
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;StaticCSSRuleList&gt; ruleList = StaticCSSRuleList::create();
</span><span class="cx">     for (auto&amp; rule : matchedRules)
</span><span class="cx">         ruleList-&gt;rules().append(rule-&gt;createCSSOMWrapper());
</span><span class="cx"> 
</span><del>-    return ruleList.release();
</del><ins>+    return ruleList;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebKitPoint&gt; DOMWindow::webkitConvertPointFromNodeToPage(Node* node, const WebKitPoint* p) const
</del><ins>+RefPtr&lt;WebKitPoint&gt; DOMWindow::webkitConvertPointFromNodeToPage(Node* node, const WebKitPoint* p) const
</ins><span class="cx"> {
</span><span class="cx">     if (!node || !p)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     if (!document())
</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">@@ -1466,13 +1466,13 @@
</span><span class="cx">     return WebKitPoint::create(pagePoint.x(), pagePoint.y());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebKitPoint&gt; DOMWindow::webkitConvertPointFromPageToNode(Node* node, const WebKitPoint* p) const
</del><ins>+RefPtr&lt;WebKitPoint&gt; DOMWindow::webkitConvertPointFromPageToNode(Node* node, const WebKitPoint* p) const
</ins><span class="cx"> {
</span><span class="cx">     if (!node || !p)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     if (!document())
</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">@@ -2140,7 +2140,7 @@
</span><span class="cx">     return newFrame;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;DOMWindow&gt; DOMWindow::open(const String&amp; urlString, const AtomicString&amp; frameName, const String&amp; windowFeaturesString,
</del><ins>+RefPtr&lt;DOMWindow&gt; DOMWindow::open(const String&amp; urlString, const AtomicString&amp; frameName, const String&amp; windowFeaturesString,
</ins><span class="cx">     DOMWindow&amp; activeWindow, DOMWindow&amp; firstWindow)
</span><span class="cx"> {
</span><span class="cx">     if (!isCurrentlyDisplayedInFrame())
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/page/DOMWindow.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -123,7 +123,7 @@
</span><span class="cx">         void suspendForDocumentSuspension();
</span><span class="cx">         void resumeFromDocumentSuspension();
</span><span class="cx"> 
</span><del>-        PassRefPtr&lt;MediaQueryList&gt; matchMedia(const String&amp;);
</del><ins>+        RefPtr&lt;MediaQueryList&gt; matchMedia(const String&amp;);
</ins><span class="cx"> 
</span><span class="cx">         WEBCORE_EXPORT unsigned pendingUnloadEventListeners() const;
</span><span class="cx"> 
</span><span class="lines">@@ -167,7 +167,7 @@
</span><span class="cx">         void print();
</span><span class="cx">         void stop();
</span><span class="cx"> 
</span><del>-        WEBCORE_EXPORT PassRefPtr&lt;DOMWindow&gt; open(const String&amp; urlString, const AtomicString&amp; frameName, const String&amp; windowFeaturesString,
</del><ins>+        WEBCORE_EXPORT RefPtr&lt;DOMWindow&gt; open(const String&amp; urlString, const AtomicString&amp; frameName, const String&amp; windowFeaturesString,
</ins><span class="cx">             DOMWindow&amp; activeWindow, DOMWindow&amp; firstWindow);
</span><span class="cx"> 
</span><span class="cx">         void showModalDialog(const String&amp; urlString, const String&amp; dialogFeaturesString, DOMWindow&amp; activeWindow, DOMWindow&amp; firstWindow, std::function&lt;void (DOMWindow&amp;)&gt; prepareDialogFunction);
</span><span class="lines">@@ -223,19 +223,19 @@
</span><span class="cx"> 
</span><span class="cx">         // CSSOM View Module
</span><span class="cx"> 
</span><del>-        PassRefPtr&lt;StyleMedia&gt; styleMedia() const;
</del><ins>+        RefPtr&lt;StyleMedia&gt; styleMedia() const;
</ins><span class="cx"> 
</span><span class="cx">         // DOM Level 2 Style Interface
</span><span class="cx"> 
</span><del>-        PassRefPtr&lt;CSSStyleDeclaration&gt; getComputedStyle(Element*, const String&amp; pseudoElt) const;
</del><ins>+        RefPtr&lt;CSSStyleDeclaration&gt; getComputedStyle(Element*, const String&amp; pseudoElt) const;
</ins><span class="cx"> 
</span><span class="cx">         // WebKit extensions
</span><span class="cx"> 
</span><del>-        PassRefPtr&lt;CSSRuleList&gt; getMatchedCSSRules(Element*, const String&amp; pseudoElt, bool authorOnly = true) const;
</del><ins>+        RefPtr&lt;CSSRuleList&gt; getMatchedCSSRules(Element*, const String&amp; pseudoElt, bool authorOnly = true) const;
</ins><span class="cx">         double devicePixelRatio() const;
</span><span class="cx"> 
</span><del>-        PassRefPtr&lt;WebKitPoint&gt; webkitConvertPointFromPageToNode(Node*, const WebKitPoint*) const;
-        PassRefPtr&lt;WebKitPoint&gt; webkitConvertPointFromNodeToPage(Node*, const WebKitPoint*) const;
</del><ins>+        RefPtr&lt;WebKitPoint&gt; webkitConvertPointFromPageToNode(Node*, const WebKitPoint*) const;
+        RefPtr&lt;WebKitPoint&gt; webkitConvertPointFromNodeToPage(Node*, const WebKitPoint*) const;
</ins><span class="cx"> 
</span><span class="cx">         PageConsoleClient* console() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageLocationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Location.cpp (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Location.cpp        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/page/Location.cpp        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -124,14 +124,14 @@
</span><span class="cx">     return SecurityOrigin::create(url())-&gt;toString();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;DOMStringList&gt; Location::ancestorOrigins() const
</del><ins>+Ref&lt;DOMStringList&gt; Location::ancestorOrigins() const
</ins><span class="cx"> {
</span><del>-    RefPtr&lt;DOMStringList&gt; origins = DOMStringList::create();
</del><ins>+    auto origins = DOMStringList::create();
</ins><span class="cx">     if (!m_frame)
</span><del>-        return origins.release();
</del><ins>+        return origins;
</ins><span class="cx">     for (Frame* frame = m_frame-&gt;tree().parent(); frame; frame = frame-&gt;tree().parent())
</span><span class="cx">         origins-&gt;append(frame-&gt;document()-&gt;securityOrigin()-&gt;toString());
</span><del>-    return origins.release();
</del><ins>+    return origins;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String Location::hash() const
</span></span></pre></div>
<a id="trunkSourceWebCorepageLocationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Location.h (200788 => 200789)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Location.h        2016-05-12 19:54:51 UTC (rev 200788)
+++ trunk/Source/WebCore/page/Location.h        2016-05-12 21:13:13 UTC (rev 200789)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx"> 
</span><span class="cx">     String toString() const { return href(); }
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;DOMStringList&gt; ancestorOrigins() const;
</del><ins>+    Ref&lt;DOMStringList&gt; ancestorOrigins() const;
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     explicit Location(Frame*);
</span></span></pre>
</div>
</div>

</body>
</html>