<!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<> 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<>
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 <cdumez@apple.com>
+
+ Drop toJS() overload taking a PassRefPtr<> 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<>
+ 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 <rniwa@webkit.org>
</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->setClient(nullptr);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<TimeRanges> SourceBuffer::buffered(ExceptionCode& ec) const
</del><ins>+RefPtr<TimeRanges> SourceBuffer::buffered(ExceptionCode& 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<TimeRanges> buffered(ExceptionCode&) const;
</del><ins>+ RefPtr<TimeRanges> buffered(ExceptionCode&) const;
</ins><span class="cx"> const RefPtr<TimeRanges>& buffered() const;
</span><span class="cx"> double timestampOffset() const;
</span><span class="cx"> void setTimestampOffset(double, ExceptionCode&);
</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<RTCStatsReport> RTCStatsReport::local()
</del><ins>+RTCStatsReport& 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<RTCStatsReport> RTCStatsReport::remote()
</del><ins>+RTCStatsReport& 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& name, const String& 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<String> names() const;
</span><span class="cx">
</span><span class="cx"> // DEPRECATED
</span><del>- const PassRefPtr<RTCStatsReport> local();
</del><ins>+ RTCStatsReport& local();
</ins><span class="cx"> // DEPRECATED
</span><del>- const PassRefPtr<RTCStatsReport> remote();
</del><ins>+ RTCStatsReport& remote();
</ins><span class="cx">
</span><span class="cx"> void addStatistic(const String& name, const String& 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<Float32Array> AudioBuffer::getChannelData(unsigned channelIndex, ExceptionCode& ec)
</del><ins>+RefPtr<Float32Array> AudioBuffer::getChannelData(unsigned channelIndex, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> if (channelIndex >= 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<Float32Array> getChannelData(unsigned channelIndex, ExceptionCode&);
</del><ins>+ RefPtr<Float32Array> getChannelData(unsigned channelIndex, ExceptionCode&);
</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<DocumentTimeline> DocumentTimeline::create(double originTime)
</del><ins>+Ref<DocumentTimeline> 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<DocumentTimeline> create(double);
</del><ins>+ static Ref<DocumentTimeline> 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<typename T> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const RefPtr<T>&);
</span><del>-template<typename T> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const PassRefPtr<T>&);
</del><span class="cx"> template<typename T> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const Ref<T>&);
</span><span class="cx"> template<typename T> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, const RefPtr<T>&);
</span><del>-template<typename T> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, const PassRefPtr<T>&);
</del><span class="cx"> template<typename T> JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, const Ref<T>&);
</span><span class="cx"> template<typename T> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const Vector<T>&);
</span><span class="cx"> template<typename T> JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, const Vector<RefPtr<T>>&);
</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<typename T> inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const PassRefPtr<T>& ptr)
-{
- return toJS(exec, globalObject, ptr.get());
-}
-
</del><span class="cx"> template<typename T> inline JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const Ref<T>& ptr)
</span><span class="cx"> {
</span><span class="cx"> return toJS(exec, globalObject, const_cast<T&>(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<typename T> inline JSC::JSValue toJSNewlyCreated(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const PassRefPtr<T>& ptr)
-{
- return toJSNewlyCreated(exec, globalObject, ptr.get());
-}
-
</del><span class="cx"> template<typename T> inline JSC::JSValue toJSNewlyCreated(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, const Ref<T>& ptr)
</span><span class="cx"> {
</span><span class="cx"> return toJSNewlyCreated(exec, globalObject, const_cast<T&>(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<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionCode& ec) const
</del><ins>+RefPtr<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionCode& 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<RGBColor> getRGBColorValue(ExceptionCode&) const;
</del><ins>+ RefPtr<RGBColor> getRGBColorValue(ExceptionCode&) 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&) 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<MediaError> 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& 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<MediaError> error() const;
</del><ins>+ MediaError* error() const;
</ins><span class="cx">
</span><span class="cx"> void setSrc(const String&);
</span><span class="cx"> const URL& 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<NodeList> LabelableElement::labels()
</del><ins>+RefPtr<NodeList> 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<LabelsNodeList>(*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<NodeList> labels();
</del><ins>+ RefPtr<NodeList> 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<WebGLBuffer> 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<Float32Array> 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<WebGLFramebuffer> 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<Int32Array> 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<WebGLProgram> 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<WebGLRenderbuffer> 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<WebGLTexture> 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<Uint8Array> 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<Uint32Array> 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<WebGLVertexArrayObjectOES> 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<WebGLVertexArrayObject> 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& getString() const;
</span><span class="cx"> unsigned int getUnsignedInt() const;
</span><span class="cx"> long long getInt64() const;
</span><del>- PassRefPtr<WebGLBuffer> getWebGLBuffer() const;
- PassRefPtr<Float32Array> getWebGLFloatArray() const;
- PassRefPtr<WebGLFramebuffer> getWebGLFramebuffer() const;
- PassRefPtr<Int32Array> 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<WebGLObjectArray> getWebGLObjectArray() const;
- PassRefPtr<WebGLProgram> getWebGLProgram() const;
- PassRefPtr<WebGLRenderbuffer> getWebGLRenderbuffer() const;
- PassRefPtr<WebGLTexture> getWebGLTexture() const;
- PassRefPtr<Uint8Array> getWebGLUnsignedByteArray() const;
- PassRefPtr<Uint32Array> getWebGLUnsignedIntArray() const;
- PassRefPtr<WebGLVertexArrayObjectOES> 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<WebGLVertexArrayObject> 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->paintRenderingResultsToCanvas(canvas()->buffer());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<ImageData> WebGLRenderingContextBase::paintRenderingResultsToImageData()
</del><ins>+RefPtr<ImageData> 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<WebGLBuffer> WebGLRenderingContextBase::createBuffer()
</del><ins>+RefPtr<WebGLBuffer> WebGLRenderingContextBase::createBuffer()
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending())
</span><span class="cx"> return nullptr;
</span><del>- RefPtr<WebGLBuffer> 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<WebGLFramebuffer> WebGLRenderingContextBase::createFramebuffer()
</del><ins>+RefPtr<WebGLFramebuffer> WebGLRenderingContextBase::createFramebuffer()
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending())
</span><span class="cx"> return nullptr;
</span><del>- RefPtr<WebGLFramebuffer> 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<WebGLTexture> WebGLRenderingContextBase::createTexture()
</del><ins>+RefPtr<WebGLTexture> WebGLRenderingContextBase::createTexture()
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending())
</span><span class="cx"> return nullptr;
</span><del>- RefPtr<WebGLTexture> 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<WebGLProgram> WebGLRenderingContextBase::createProgram()
</del><ins>+RefPtr<WebGLProgram> WebGLRenderingContextBase::createProgram()
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending())
</span><span class="cx"> return nullptr;
</span><del>- RefPtr<WebGLProgram> 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<WebGLRenderbuffer> WebGLRenderingContextBase::createRenderbuffer()
</del><ins>+RefPtr<WebGLRenderbuffer> WebGLRenderingContextBase::createRenderbuffer()
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending())
</span><span class="cx"> return nullptr;
</span><del>- RefPtr<WebGLRenderbuffer> 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<WebGLShader> WebGLRenderingContextBase::createShader(GC3Denum type, ExceptionCode&)
</del><ins>+RefPtr<WebGLShader> WebGLRenderingContextBase::createShader(GC3Denum type, ExceptionCode&)
</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<WebGLShader> 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->generateMipmapLevelInfo();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebGLActiveInfo> WebGLRenderingContextBase::getActiveAttrib(WebGLProgram* program, GC3Duint index, ExceptionCode&)
</del><ins>+RefPtr<WebGLActiveInfo> WebGLRenderingContextBase::getActiveAttrib(WebGLProgram* program, GC3Duint index, ExceptionCode&)
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending() || !validateWebGLObject("getActiveAttrib", 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<WebGLActiveInfo> WebGLRenderingContextBase::getActiveUniform(WebGLProgram* program, GC3Duint index, ExceptionCode&)
</del><ins>+RefPtr<WebGLActiveInfo> WebGLRenderingContextBase::getActiveUniform(WebGLProgram* program, GC3Duint index, ExceptionCode&)
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending() || !validateWebGLObject("getActiveUniform", program))
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> ActiveInfo info;
</span><span class="cx"> if (!m_context->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->getShaderInfoLog(objectOrZero(shader)));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<WebGLShaderPrecisionFormat> WebGLRenderingContextBase::getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&)
</del><ins>+RefPtr<WebGLShaderPrecisionFormat> WebGLRenderingContextBase::getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&)
</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<WebGLUniformLocation> WebGLRenderingContextBase::getUniformLocation(WebGLProgram* program, const String& name, ExceptionCode&)
</del><ins>+RefPtr<WebGLUniformLocation> WebGLRenderingContextBase::getUniformLocation(WebGLProgram* program, const String& name, ExceptionCode&)
</ins><span class="cx"> {
</span><span class="cx"> if (isContextLostOrPending() || !validateWebGLObject("getUniformLocation", program))
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -3152,7 +3152,7 @@
</span><span class="cx"> m_context->pixelStorei(GraphicsContext3D::UNPACK_ALIGNMENT, m_unpackAlignment);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<Image> WebGLRenderingContextBase::drawImageIntoBuffer(Image& image, int width, int height, int deviceScaleFactor)
</del><ins>+RefPtr<Image> WebGLRenderingContextBase::drawImageIntoBuffer(Image& 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<Image> WebGLRenderingContextBase::videoFrameToImage(HTMLVideoElement* video, BackingStoreCopy backingStoreCopy, ExceptionCode&)
</del><ins>+RefPtr<Image> WebGLRenderingContextBase::videoFrameToImage(HTMLVideoElement* video, BackingStoreCopy backingStoreCopy, ExceptionCode&)
</ins><span class="cx"> {
</span><span class="cx"> IntSize size(video->videoWidth(), video->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<WebGLBuffer> createBuffer();
- PassRefPtr<WebGLFramebuffer> createFramebuffer();
- PassRefPtr<WebGLProgram> createProgram();
- PassRefPtr<WebGLRenderbuffer> createRenderbuffer();
- PassRefPtr<WebGLShader> createShader(GC3Denum type, ExceptionCode&);
- PassRefPtr<WebGLTexture> createTexture();
</del><ins>+ RefPtr<WebGLBuffer> createBuffer();
+ RefPtr<WebGLFramebuffer> createFramebuffer();
+ RefPtr<WebGLProgram> createProgram();
+ RefPtr<WebGLRenderbuffer> createRenderbuffer();
+ RefPtr<WebGLShader> createShader(GC3Denum type, ExceptionCode&);
+ RefPtr<WebGLTexture> 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<WebGLActiveInfo> getActiveAttrib(WebGLProgram*, GC3Duint index, ExceptionCode&);
- PassRefPtr<WebGLActiveInfo> getActiveUniform(WebGLProgram*, GC3Duint index, ExceptionCode&);
</del><ins>+ RefPtr<WebGLActiveInfo> getActiveAttrib(WebGLProgram*, GC3Duint index, ExceptionCode&);
+ RefPtr<WebGLActiveInfo> getActiveUniform(WebGLProgram*, GC3Duint index, ExceptionCode&);
</ins><span class="cx"> bool getAttachedShaders(WebGLProgram*, Vector<RefPtr<WebGLShader>>&, ExceptionCode&);
</span><span class="cx"> GC3Dint getAttribLocation(WebGLProgram*, const String& name);
</span><span class="cx"> WebGLGetInfo getBufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&);
</span><span class="lines">@@ -207,12 +207,12 @@
</span><span class="cx"> WebGLGetInfo getRenderbufferParameter(GC3Denum target, GC3Denum pname, ExceptionCode&);
</span><span class="cx"> WebGLGetInfo getShaderParameter(WebGLShader*, GC3Denum pname, ExceptionCode&);
</span><span class="cx"> String getShaderInfoLog(WebGLShader*, ExceptionCode&);
</span><del>- PassRefPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&);
</del><ins>+ RefPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat(GC3Denum shaderType, GC3Denum precisionType, ExceptionCode&);
</ins><span class="cx"> String getShaderSource(WebGLShader*, ExceptionCode&);
</span><span class="cx"> virtual Vector<String> getSupportedExtensions() = 0;
</span><span class="cx"> WebGLGetInfo getTexParameter(GC3Denum target, GC3Denum pname, ExceptionCode&);
</span><span class="cx"> WebGLGetInfo getUniform(WebGLProgram*, const WebGLUniformLocation*, ExceptionCode&);
</span><del>- PassRefPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram*, const String&, ExceptionCode&);
</del><ins>+ RefPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram*, const String&, ExceptionCode&);
</ins><span class="cx"> WebGLGetInfo getVertexAttrib(GC3Duint index, GC3Denum pname, ExceptionCode&);
</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<ImageData> paintRenderingResultsToImageData();
</del><ins>+ RefPtr<ImageData> 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<Image> drawImageIntoBuffer(Image&, int width, int height, int deviceScaleFactor);
</del><ins>+ RefPtr<Image> drawImageIntoBuffer(Image&, int width, int height, int deviceScaleFactor);
</ins><span class="cx">
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>- PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy, ExceptionCode&);
</del><ins>+ RefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy, ExceptionCode&);
</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<TextTrackCue> TextTrackCue::create(ScriptExecutionContext& context, double start, double end, const String& content)
</del><ins>+Ref<TextTrackCue> TextTrackCue::create(ScriptExecutionContext& context, double start, double end, const String& 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<TextTrackCue> TextTrackCue::create(ScriptExecutionContext& context, const MediaTime& start, const MediaTime& end, const String& content)
</del><ins>+Ref<TextTrackCue> TextTrackCue::create(ScriptExecutionContext& context, const MediaTime& start, const MediaTime& end, const String& 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<TextTrackCue>, public EventTargetWithInlineData {
</span><span class="cx"> public:
</span><del>- static PassRefPtr<TextTrackCue> create(ScriptExecutionContext&, double start, double end, const String& content);
- static PassRefPtr<TextTrackCue> create(ScriptExecutionContext&, const MediaTime& start, const MediaTime& end, const String& content);
</del><ins>+ static Ref<TextTrackCue> create(ScriptExecutionContext&, double start, double end, const String& content);
+ static Ref<TextTrackCue> create(ScriptExecutionContext&, const MediaTime& start, const MediaTime& end, const String& content);
</ins><span class="cx">
</span><span class="cx"> static const AtomicString& 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<VTTCueBox> VTTCueBox::create(Document& document, VTTCue& cue)
</del><ins>+Ref<VTTCueBox> VTTCueBox::create(Document& document, VTTCue& cue)
</ins><span class="cx"> {
</span><del>- VTTCueBox* cueBox = new VTTCueBox(document, cue);
- cueBox->setPseudo(VTTCueBox::vttCueBoxShadowPseudoId());
</del><ins>+ VTTCueBox& 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<VTTCueBox> create(Document&, VTTCue&);
</del><ins>+ static Ref<VTTCueBox> create(Document&, VTTCue&);
</ins><span class="cx">
</span><span class="cx"> VTTCue* getCue() const;
</span><span class="cx"> virtual void applyCSSProperties(const IntSize& 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->selection().setExtent(createLegacyEditingPosition(&node, offset), DOWNSTREAM);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<Range> DOMSelection::getRangeAt(int index, ExceptionCode& ec)
</del><ins>+RefPtr<Range> DOMSelection::getRangeAt(int index, ExceptionCode& 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 < 0 || index >= 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&);
</span><span class="cx"> void collapseToStart(ExceptionCode&);
</span><span class="cx"> void extend(Node&, int offset, ExceptionCode&);
</span><del>- PassRefPtr<Range> getRangeAt(int, ExceptionCode&);
</del><ins>+ RefPtr<Range> getRangeAt(int, ExceptionCode&);
</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<MediaQueryList> DOMWindow::matchMedia(const String& media)
</del><ins>+RefPtr<MediaQueryList> DOMWindow::matchMedia(const String& media)
</ins><span class="cx"> {
</span><del>- return document() ? document()->mediaQueryMatcher().matchMedia(media) : 0;
</del><ins>+ return document() ? document()->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<Document>(context);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<StyleMedia> DOMWindow::styleMedia() const
</del><ins>+RefPtr<StyleMedia> 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<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* element, const String& pseudoElt) const
</del><ins>+RefPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* element, const String& 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<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* element, const String& pseudoElement, bool authorOnly) const
</del><ins>+RefPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* element, const String& 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 && !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->document()->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<StaticCSSRuleList> ruleList = StaticCSSRuleList::create();
</span><span class="cx"> for (auto& rule : matchedRules)
</span><span class="cx"> ruleList->rules().append(rule->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<WebKitPoint> DOMWindow::webkitConvertPointFromNodeToPage(Node* node, const WebKitPoint* p) const
</del><ins>+RefPtr<WebKitPoint> 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()->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<WebKitPoint> DOMWindow::webkitConvertPointFromPageToNode(Node* node, const WebKitPoint* p) const
</del><ins>+RefPtr<WebKitPoint> 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()->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<DOMWindow> DOMWindow::open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString,
</del><ins>+RefPtr<DOMWindow> DOMWindow::open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString,
</ins><span class="cx"> DOMWindow& activeWindow, DOMWindow& 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<MediaQueryList> matchMedia(const String&);
</del><ins>+ RefPtr<MediaQueryList> matchMedia(const String&);
</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<DOMWindow> open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString,
</del><ins>+ WEBCORE_EXPORT RefPtr<DOMWindow> open(const String& urlString, const AtomicString& frameName, const String& windowFeaturesString,
</ins><span class="cx"> DOMWindow& activeWindow, DOMWindow& firstWindow);
</span><span class="cx">
</span><span class="cx"> void showModalDialog(const String& urlString, const String& dialogFeaturesString, DOMWindow& activeWindow, DOMWindow& firstWindow, std::function<void (DOMWindow&)> 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<StyleMedia> styleMedia() const;
</del><ins>+ RefPtr<StyleMedia> styleMedia() const;
</ins><span class="cx">
</span><span class="cx"> // DOM Level 2 Style Interface
</span><span class="cx">
</span><del>- PassRefPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoElt) const;
</del><ins>+ RefPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoElt) const;
</ins><span class="cx">
</span><span class="cx"> // WebKit extensions
</span><span class="cx">
</span><del>- PassRefPtr<CSSRuleList> getMatchedCSSRules(Element*, const String& pseudoElt, bool authorOnly = true) const;
</del><ins>+ RefPtr<CSSRuleList> getMatchedCSSRules(Element*, const String& pseudoElt, bool authorOnly = true) const;
</ins><span class="cx"> double devicePixelRatio() const;
</span><span class="cx">
</span><del>- PassRefPtr<WebKitPoint> webkitConvertPointFromPageToNode(Node*, const WebKitPoint*) const;
- PassRefPtr<WebKitPoint> webkitConvertPointFromNodeToPage(Node*, const WebKitPoint*) const;
</del><ins>+ RefPtr<WebKitPoint> webkitConvertPointFromPageToNode(Node*, const WebKitPoint*) const;
+ RefPtr<WebKitPoint> 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())->toString();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<DOMStringList> Location::ancestorOrigins() const
</del><ins>+Ref<DOMStringList> Location::ancestorOrigins() const
</ins><span class="cx"> {
</span><del>- RefPtr<DOMStringList> 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->tree().parent(); frame; frame = frame->tree().parent())
</span><span class="cx"> origins->append(frame->document()->securityOrigin()->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<DOMStringList> ancestorOrigins() const;
</del><ins>+ Ref<DOMStringList> 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>