<!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>[189776] 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/189776">189776</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2015-09-14 23:00:54 -0700 (Mon, 14 Sep 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>Remove all uses of PassRefPtr in WebCore/xml
https://bugs.webkit.org/show_bug.cgi?id=149114
Reviewed by Darin Adler.
* dom/DecodedDataDocumentParser.h:
* dom/DocumentParser.h:
* dom/RawDataDocumentParser.h:
* html/FTPDirectoryDocument.cpp:
(WebCore::FTPDirectoryDocumentParser::append):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::append):
* html/parser/HTMLDocumentParser.h:
* html/parser/TextDocumentParser.cpp:
(WebCore::TextDocumentParser::append):
* html/parser/TextDocumentParser.h:
* xml/NativeXPathNSResolver.cpp:
(WebCore::NativeXPathNSResolver::NativeXPathNSResolver):
* xml/NativeXPathNSResolver.h:
(WebCore::NativeXPathNSResolver::create):
* xml/XMLErrors.cpp:
(WebCore::createXHTMLParserErrorHeader):
* xml/XMLHttpRequestProgressEventThrottle.cpp:
(WebCore::XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent):
(WebCore::XMLHttpRequestProgressEventThrottle::dispatchEvent):
(WebCore::XMLHttpRequestProgressEventThrottle::dispatchDeferredEvents):
* xml/XMLHttpRequestProgressEventThrottle.h:
* xml/XMLSerializer.h:
* xml/XPathEvaluator.cpp:
(WebCore::XPathEvaluator::createExpression):
(WebCore::XPathEvaluator::createNSResolver):
(WebCore::XPathEvaluator::evaluate):
* xml/XPathEvaluator.h:
* xml/XPathNodeSet.h: Fix style errors.
(WebCore::XPath::NodeSet::NodeSet):
(WebCore::XPath::NodeSet::append):
* xml/XPathPath.cpp:
(WebCore::XPath::Filter::evaluate):
(WebCore::XPath::LocationPath::evaluate):
* xml/XPathValue.h: ditto.
(WebCore::XPath::Value::Value):
(WebCore::XPath::Value::Data::create):
(WebCore::XPath::Value::Data::Data):
* xml/XSLTProcessor.cpp:
(WebCore::XSLTProcessor::transformToDocument):
(WebCore::XSLTProcessor::transformToFragment):
* xml/XSLTProcessor.h:
(WebCore::XSLTProcessor::setXSLStyleSheet):
(WebCore::XSLTProcessor::importStylesheet):
* xml/parser/XMLDocumentParser.cpp:
(WebCore::XMLDocumentParser::append):
* xml/parser/XMLDocumentParser.h:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomDecodedDataDocumentParserh">trunk/Source/WebCore/dom/DecodedDataDocumentParser.h</a></li>
<li><a href="#trunkSourceWebCoredomDocumentParserh">trunk/Source/WebCore/dom/DocumentParser.h</a></li>
<li><a href="#trunkSourceWebCoredomRawDataDocumentParserh">trunk/Source/WebCore/dom/RawDataDocumentParser.h</a></li>
<li><a href="#trunkSourceWebCorehtmlFTPDirectoryDocumentcpp">trunk/Source/WebCore/html/FTPDirectoryDocument.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLDocumentParsercpp">trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLDocumentParserh">trunk/Source/WebCore/html/parser/HTMLDocumentParser.h</a></li>
<li><a href="#trunkSourceWebCorehtmlparserTextDocumentParsercpp">trunk/Source/WebCore/html/parser/TextDocumentParser.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserTextDocumentParserh">trunk/Source/WebCore/html/parser/TextDocumentParser.h</a></li>
<li><a href="#trunkSourceWebCorexmlNativeXPathNSResolvercpp">trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlNativeXPathNSResolverh">trunk/Source/WebCore/xml/NativeXPathNSResolver.h</a></li>
<li><a href="#trunkSourceWebCorexmlXMLErrorscpp">trunk/Source/WebCore/xml/XMLErrors.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXMLHttpRequestProgressEventThrottlecpp">trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXMLHttpRequestProgressEventThrottleh">trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.h</a></li>
<li><a href="#trunkSourceWebCorexmlXMLSerializerh">trunk/Source/WebCore/xml/XMLSerializer.h</a></li>
<li><a href="#trunkSourceWebCorexmlXPathEvaluatorcpp">trunk/Source/WebCore/xml/XPathEvaluator.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXPathEvaluatorh">trunk/Source/WebCore/xml/XPathEvaluator.h</a></li>
<li><a href="#trunkSourceWebCorexmlXPathNodeSeth">trunk/Source/WebCore/xml/XPathNodeSet.h</a></li>
<li><a href="#trunkSourceWebCorexmlXPathPathcpp">trunk/Source/WebCore/xml/XPathPath.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXPathValueh">trunk/Source/WebCore/xml/XPathValue.h</a></li>
<li><a href="#trunkSourceWebCorexmlXSLTProcessorcpp">trunk/Source/WebCore/xml/XSLTProcessor.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXSLTProcessorh">trunk/Source/WebCore/xml/XSLTProcessor.h</a></li>
<li><a href="#trunkSourceWebCorexmlparserXMLDocumentParsercpp">trunk/Source/WebCore/xml/parser/XMLDocumentParser.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlparserXMLDocumentParserh">trunk/Source/WebCore/xml/parser/XMLDocumentParser.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/ChangeLog        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -1,3 +1,58 @@
</span><ins>+2015-09-14 Gyuyoung Kim <gyuyoung.kim@webkit.org>
+
+ Remove all uses of PassRefPtr in WebCore/xml
+ https://bugs.webkit.org/show_bug.cgi?id=149114
+
+ Reviewed by Darin Adler.
+
+ * dom/DecodedDataDocumentParser.h:
+ * dom/DocumentParser.h:
+ * dom/RawDataDocumentParser.h:
+ * html/FTPDirectoryDocument.cpp:
+ (WebCore::FTPDirectoryDocumentParser::append):
+ * html/parser/HTMLDocumentParser.cpp:
+ (WebCore::HTMLDocumentParser::append):
+ * html/parser/HTMLDocumentParser.h:
+ * html/parser/TextDocumentParser.cpp:
+ (WebCore::TextDocumentParser::append):
+ * html/parser/TextDocumentParser.h:
+ * xml/NativeXPathNSResolver.cpp:
+ (WebCore::NativeXPathNSResolver::NativeXPathNSResolver):
+ * xml/NativeXPathNSResolver.h:
+ (WebCore::NativeXPathNSResolver::create):
+ * xml/XMLErrors.cpp:
+ (WebCore::createXHTMLParserErrorHeader):
+ * xml/XMLHttpRequestProgressEventThrottle.cpp:
+ (WebCore::XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent):
+ (WebCore::XMLHttpRequestProgressEventThrottle::dispatchEvent):
+ (WebCore::XMLHttpRequestProgressEventThrottle::dispatchDeferredEvents):
+ * xml/XMLHttpRequestProgressEventThrottle.h:
+ * xml/XMLSerializer.h:
+ * xml/XPathEvaluator.cpp:
+ (WebCore::XPathEvaluator::createExpression):
+ (WebCore::XPathEvaluator::createNSResolver):
+ (WebCore::XPathEvaluator::evaluate):
+ * xml/XPathEvaluator.h:
+ * xml/XPathNodeSet.h: Fix style errors.
+ (WebCore::XPath::NodeSet::NodeSet):
+ (WebCore::XPath::NodeSet::append):
+ * xml/XPathPath.cpp:
+ (WebCore::XPath::Filter::evaluate):
+ (WebCore::XPath::LocationPath::evaluate):
+ * xml/XPathValue.h: ditto.
+ (WebCore::XPath::Value::Value):
+ (WebCore::XPath::Value::Data::create):
+ (WebCore::XPath::Value::Data::Data):
+ * xml/XSLTProcessor.cpp:
+ (WebCore::XSLTProcessor::transformToDocument):
+ (WebCore::XSLTProcessor::transformToFragment):
+ * xml/XSLTProcessor.h:
+ (WebCore::XSLTProcessor::setXSLStyleSheet):
+ (WebCore::XSLTProcessor::importStylesheet):
+ * xml/parser/XMLDocumentParser.cpp:
+ (WebCore::XMLDocumentParser::append):
+ * xml/parser/XMLDocumentParser.h:
+
</ins><span class="cx"> 2015-09-14 Dewei Zhu <dewei_zhu@apple.com>
</span><span class="cx">
</span><span class="cx"> Polish code for r189579.
</span></span></pre></div>
<a id="trunkSourceWebCoredomDecodedDataDocumentParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DecodedDataDocumentParser.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DecodedDataDocumentParser.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/dom/DecodedDataDocumentParser.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> // append is used by DocumentWriter::replaceDocument.
</span><del>- virtual void append(PassRefPtr<StringImpl>) override = 0;
</del><ins>+ virtual void append(RefPtr<StringImpl>&&) override = 0;
</ins><span class="cx">
</span><span class="cx"> // appendBytes and flush are used by DocumentWriter (the loader).
</span><span class="cx"> virtual void appendBytes(DocumentWriter&, const char* bytes, size_t length) override;
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DocumentParser.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DocumentParser.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/dom/DocumentParser.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> // FIXME: append() should be private, but DocumentWriter::replaceDocument uses it for now.
</span><span class="cx"> // FIXME: This really should take a std::unique_ptr to signify that it expects to take
</span><span class="cx"> // ownership of the buffer. The parser expects the PassRefPtr to hold the only ref of the StringImpl.
</span><del>- virtual void append(PassRefPtr<StringImpl>) = 0;
</del><ins>+ virtual void append(RefPtr<StringImpl>&&) = 0;
</ins><span class="cx">
</span><span class="cx"> virtual void finish() = 0;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomRawDataDocumentParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/RawDataDocumentParser.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/RawDataDocumentParser.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/dom/RawDataDocumentParser.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx"> ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- virtual void append(PassRefPtr<StringImpl>) override
</del><ins>+ virtual void append(RefPtr<StringImpl>&&) override
</ins><span class="cx"> {
</span><span class="cx"> ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlFTPDirectoryDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/FTPDirectoryDocument.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- virtual void append(PassRefPtr<StringImpl>) override;
</del><ins>+ virtual void append(RefPtr<StringImpl>&&) override;
</ins><span class="cx"> virtual void finish() override;
</span><span class="cx">
</span><span class="cx"> // FIXME: Why do we need this?
</span><span class="lines">@@ -339,9 +339,9 @@
</span><span class="cx"> document()->processViewport("width=device-width", ViewportArguments::ViewportMeta);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void FTPDirectoryDocumentParser::append(PassRefPtr<StringImpl> inputSource)
</del><ins>+void FTPDirectoryDocumentParser::append(RefPtr<StringImpl>&& inputSource)
</ins><span class="cx"> {
</span><del>- String source(inputSource);
</del><ins>+ String source(WTF::move(inputSource));
</ins><span class="cx">
</span><span class="cx"> // Make sure we have the table element to append to by loading the template set in the pref, or
</span><span class="cx"> // creating a very basic document with the appropriate table
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLDocumentParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -356,7 +356,7 @@
</span><span class="cx"> endIfDelayed();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void HTMLDocumentParser::append(PassRefPtr<StringImpl> inputSource)
</del><ins>+void HTMLDocumentParser::append(RefPtr<StringImpl>&& inputSource)
</ins><span class="cx"> {
</span><span class="cx"> if (isStopped())
</span><span class="cx"> return;
</span><span class="lines">@@ -365,7 +365,7 @@
</span><span class="cx"> // but we need to ensure it isn't deleted yet.
</span><span class="cx"> Ref<HTMLDocumentParser> protect(*this);
</span><span class="cx">
</span><del>- String source(inputSource);
</del><ins>+ String source(WTF::move(inputSource));
</ins><span class="cx">
</span><span class="cx"> if (m_preloadScanner) {
</span><span class="cx"> if (m_input.current().isEmpty() && !isWaitingForScripts()) {
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLDocumentParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLDocumentParser.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLDocumentParser.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/html/parser/HTMLDocumentParser.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> explicit HTMLDocumentParser(HTMLDocument&);
</span><span class="cx">
</span><span class="cx"> virtual void insert(const SegmentedString&) override final;
</span><del>- virtual void append(PassRefPtr<StringImpl>) override;
</del><ins>+ virtual void append(RefPtr<StringImpl>&&) override;
</ins><span class="cx"> virtual void finish() override;
</span><span class="cx">
</span><span class="cx"> HTMLTreeBuilder& treeBuilder();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserTextDocumentParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/TextDocumentParser.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/TextDocumentParser.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/html/parser/TextDocumentParser.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -36,11 +36,11 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void TextDocumentParser::append(PassRefPtr<StringImpl> text)
</del><ins>+void TextDocumentParser::append(RefPtr<StringImpl>&& text)
</ins><span class="cx"> {
</span><span class="cx"> if (!m_haveInsertedFakePreElement)
</span><span class="cx"> insertFakePreElement();
</span><del>- HTMLDocumentParser::append(text);
</del><ins>+ HTMLDocumentParser::append(WTF::move(text));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void TextDocumentParser::insertFakePreElement()
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserTextDocumentParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/TextDocumentParser.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/TextDocumentParser.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/html/parser/TextDocumentParser.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -39,7 +39,7 @@
</span><span class="cx"> private:
</span><span class="cx"> explicit TextDocumentParser(HTMLDocument&);
</span><span class="cx">
</span><del>- virtual void append(PassRefPtr<StringImpl>) override;
</del><ins>+ virtual void append(RefPtr<StringImpl>&&) override;
</ins><span class="cx">
</span><span class="cx"> void insertFakePreElement();
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorexmlNativeXPathNSResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -32,8 +32,8 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-NativeXPathNSResolver::NativeXPathNSResolver(PassRefPtr<Node> node)
- : m_node(node)
</del><ins>+NativeXPathNSResolver::NativeXPathNSResolver(RefPtr<Node>&& node)
+ : m_node(WTF::move(node))
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorexmlNativeXPathNSResolverh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/NativeXPathNSResolver.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/NativeXPathNSResolver.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/NativeXPathNSResolver.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -35,13 +35,13 @@
</span><span class="cx">
</span><span class="cx"> class NativeXPathNSResolver : public XPathNSResolver {
</span><span class="cx"> public:
</span><del>- static Ref<NativeXPathNSResolver> create(PassRefPtr<Node> node) { return adoptRef(*new NativeXPathNSResolver(node)); }
</del><ins>+ static Ref<NativeXPathNSResolver> create(RefPtr<Node>&& node) { return adoptRef(*new NativeXPathNSResolver(WTF::move(node))); }
</ins><span class="cx"> virtual ~NativeXPathNSResolver();
</span><span class="cx">
</span><span class="cx"> virtual String lookupNamespaceURI(const String& prefix);
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- explicit NativeXPathNSResolver(PassRefPtr<Node>);
</del><ins>+ explicit NativeXPathNSResolver(RefPtr<Node>&&);
</ins><span class="cx"> RefPtr<Node> m_node;
</span><span class="cx"> };
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXMLErrorscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XMLErrors.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XMLErrors.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XMLErrors.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx"> m_errorMessages.append(message);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static inline PassRefPtr<Element> createXHTMLParserErrorHeader(Document* doc, const String& errorMessages)
</del><ins>+static inline RefPtr<Element> createXHTMLParserErrorHeader(Document* doc, const String& errorMessages)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<Element> reportElement = doc->createElement(QualifiedName(nullAtom, "parsererror", xhtmlNamespaceURI), true);
</span><span class="cx">
</span><span class="lines">@@ -108,7 +108,7 @@
</span><span class="cx"> reportElement->parserAppendChild(h3.get());
</span><span class="cx"> h3->parserAppendChild(doc->createTextNode("Below is a rendering of the page up to the first error."));
</span><span class="cx">
</span><del>- return reportElement.release();
</del><ins>+ return reportElement;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void XMLErrors::insertErrorMessageBlock()
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXMLHttpRequestProgressEventThrottlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -81,15 +81,15 @@
</span><span class="cx"> m_hasThrottledProgressEvent = true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent(PassRefPtr<Event> event, ProgressEventAction progressEventAction)
</del><ins>+void XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent(RefPtr<Event>&& event, ProgressEventAction progressEventAction)
</ins><span class="cx"> {
</span><span class="cx"> if (progressEventAction == FlushProgressEvent)
</span><span class="cx"> flushProgressEvent();
</span><span class="cx">
</span><del>- dispatchEvent(event);
</del><ins>+ dispatchEvent(WTF::move(event));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-void XMLHttpRequestProgressEventThrottle::dispatchEvent(PassRefPtr<Event> event)
</del><ins>+void XMLHttpRequestProgressEventThrottle::dispatchEvent(RefPtr<Event>&& event)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(event);
</span><span class="cx"> if (m_deferEvents) {
</span><span class="lines">@@ -97,9 +97,9 @@
</span><span class="cx"> // Readystatechange events are state-less so avoid repeating two identical events in a row on resume.
</span><span class="cx"> return;
</span><span class="cx"> }
</span><del>- m_deferredEvents.append(event);
</del><ins>+ m_deferredEvents.append(WTF::move(event));
</ins><span class="cx"> } else
</span><del>- m_target->dispatchEvent(event);
</del><ins>+ m_target->dispatchEvent(WTF::move(event));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void XMLHttpRequestProgressEventThrottle::dispatchProgressEvent(const AtomicString& type)
</span><span class="lines">@@ -153,7 +153,7 @@
</span><span class="cx"> // The progress event will be in the m_deferredEvents vector if the load was finished while suspended.
</span><span class="cx"> // If not, just send the most up-to-date progress on resume.
</span><span class="cx"> if (deferredProgressEvent)
</span><del>- dispatchEvent(deferredProgressEvent);
</del><ins>+ dispatchEvent(WTF::move(deferredProgressEvent));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void XMLHttpRequestProgressEventThrottle::fired()
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXMLHttpRequestProgressEventThrottleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> #define XMLHttpRequestProgressEventThrottle_h
</span><span class="cx">
</span><span class="cx"> #include "Timer.h"
</span><del>-#include "wtf/PassRefPtr.h"
</del><span class="cx"> #include "wtf/Vector.h"
</span><span class="cx"> #include <wtf/Forward.h>
</span><span class="cx">
</span><span class="lines">@@ -50,7 +49,7 @@
</span><span class="cx"> virtual ~XMLHttpRequestProgressEventThrottle();
</span><span class="cx">
</span><span class="cx"> void dispatchThrottledProgressEvent(bool lengthComputable, unsigned long long loaded, unsigned long long total);
</span><del>- void dispatchReadyStateChangeEvent(PassRefPtr<Event>, ProgressEventAction = DoNotFlushProgressEvent);
</del><ins>+ void dispatchReadyStateChangeEvent(RefPtr<Event>&&, ProgressEventAction = DoNotFlushProgressEvent);
</ins><span class="cx"> void dispatchProgressEvent(const AtomicString&);
</span><span class="cx">
</span><span class="cx"> void suspend();
</span><span class="lines">@@ -62,7 +61,7 @@
</span><span class="cx"> virtual void fired();
</span><span class="cx"> void dispatchDeferredEvents();
</span><span class="cx"> void flushProgressEvent();
</span><del>- void dispatchEvent(PassRefPtr<Event>);
</del><ins>+ void dispatchEvent(RefPtr<Event>&&);
</ins><span class="cx">
</span><span class="cx"> bool hasEventToDispatch() const;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXMLSerializerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XMLSerializer.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XMLSerializer.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XMLSerializer.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -21,7 +21,7 @@
</span><span class="cx"> #define XMLSerializer_h
</span><span class="cx">
</span><span class="cx"> #include <wtf/Forward.h>
</span><del>-#include <wtf/PassRefPtr.h>
</del><ins>+#include <wtf/Ref.h>
</ins><span class="cx"> #include <wtf/RefCounted.h>
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathEvaluatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathEvaluator.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathEvaluator.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XPathEvaluator.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -37,19 +37,19 @@
</span><span class="cx">
</span><span class="cx"> using namespace XPath;
</span><span class="cx">
</span><del>-PassRefPtr<XPathExpression> XPathEvaluator::createExpression(const String& expression,
</del><ins>+RefPtr<XPathExpression> XPathEvaluator::createExpression(const String& expression,
</ins><span class="cx"> XPathNSResolver* resolver,
</span><span class="cx"> ExceptionCode& ec)
</span><span class="cx"> {
</span><span class="cx"> return XPathExpression::createExpression(expression, resolver, ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<XPathNSResolver> XPathEvaluator::createNSResolver(Node* nodeResolver)
</del><ins>+Ref<XPathNSResolver> XPathEvaluator::createNSResolver(Node* nodeResolver)
</ins><span class="cx"> {
</span><span class="cx"> return NativeXPathNSResolver::create(nodeResolver);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<XPathResult> XPathEvaluator::evaluate(const String& expression,
</del><ins>+RefPtr<XPathResult> XPathEvaluator::evaluate(const String& expression,
</ins><span class="cx"> Node* contextNode,
</span><span class="cx"> XPathNSResolver* resolver,
</span><span class="cx"> unsigned short type,
</span><span class="lines">@@ -58,13 +58,13 @@
</span><span class="cx"> {
</span><span class="cx"> if (!isValidContextNode(contextNode)) {
</span><span class="cx"> ec = NOT_SUPPORTED_ERR;
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ec = 0;
</span><span class="cx"> RefPtr<XPathExpression> expr = createExpression(expression, resolver, ec);
</span><span class="cx"> if (ec)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><span class="cx"> return expr->evaluate(contextNode, type, result, ec);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathEvaluatorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathEvaluator.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathEvaluator.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XPathEvaluator.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -28,8 +28,8 @@
</span><span class="cx"> #define XPathEvaluator_h
</span><span class="cx">
</span><span class="cx"> #include <wtf/Forward.h>
</span><ins>+#include <wtf/Ref.h>
</ins><span class="cx"> #include <wtf/RefCounted.h>
</span><del>-#include <wtf/PassRefPtr.h>
</del><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="lines">@@ -44,9 +44,9 @@
</span><span class="cx"> public:
</span><span class="cx"> static Ref<XPathEvaluator> create() { return adoptRef(*new XPathEvaluator); }
</span><span class="cx">
</span><del>- PassRefPtr<XPathExpression> createExpression(const String& expression, XPathNSResolver*, ExceptionCode&);
- PassRefPtr<XPathNSResolver> createNSResolver(Node* nodeResolver);
- PassRefPtr<XPathResult> evaluate(const String& expression, Node* contextNode,
</del><ins>+ RefPtr<XPathExpression> createExpression(const String& expression, XPathNSResolver*, ExceptionCode&);
+ Ref<XPathNSResolver> createNSResolver(Node* nodeResolver);
+ RefPtr<XPathResult> evaluate(const String& expression, Node* contextNode,
</ins><span class="cx"> XPathNSResolver*, unsigned short type, XPathResult*, ExceptionCode&);
</span><span class="cx">
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathNodeSeth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathNodeSet.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathNodeSet.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XPathNodeSet.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -36,7 +36,9 @@
</span><span class="cx"> class NodeSet {
</span><span class="cx"> public:
</span><span class="cx"> NodeSet() : m_isSorted(true), m_subtreesAreDisjoint(false) { }
</span><del>- explicit NodeSet(PassRefPtr<Node> node) : m_isSorted(true), m_subtreesAreDisjoint(false), m_nodes(1, node) { }
</del><ins>+ explicit NodeSet(RefPtr<Node>&& node)
+ : m_isSorted(true), m_subtreesAreDisjoint(false), m_nodes(1, WTF::move(node))
+ { }
</ins><span class="cx">
</span><span class="cx"> size_t size() const { return m_nodes.size(); }
</span><span class="cx"> bool isEmpty() const { return m_nodes.isEmpty(); }
</span><span class="lines">@@ -45,7 +47,7 @@
</span><span class="cx"> void clear() { m_nodes.clear(); }
</span><span class="cx">
</span><span class="cx"> // NodeSet itself does not verify that nodes in it are unique.
</span><del>- void append(PassRefPtr<Node> node) { m_nodes.append(node); }
</del><ins>+ void append(RefPtr<Node>&& node) { m_nodes.append(WTF::move(node)); }
</ins><span class="cx"> void append(const NodeSet& nodeSet) { m_nodes.appendVector(nodeSet.m_nodes); }
</span><span class="cx">
</span><span class="cx"> // Returns the set's first node in document order, or nullptr if the set is empty.
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathPathcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathPath.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathPath.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XPathPath.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx"> ++evaluationContext.position;
</span><span class="cx">
</span><span class="cx"> if (evaluatePredicate(*predicate))
</span><del>- newNodes.append(node);
</del><ins>+ newNodes.append(node.copyRef());
</ins><span class="cx"> }
</span><span class="cx"> nodes = WTF::move(newNodes);
</span><span class="cx"> }
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx">
</span><span class="cx"> for (auto& match : matches) {
</span><span class="cx"> if (!needToCheckForDuplicateNodes || newNodesSet.add(match.get()).isNewEntry)
</span><del>- newNodes.append(match);
</del><ins>+ newNodes.append(match.copyRef());
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathValue.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathValue.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XPathValue.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -44,9 +44,15 @@
</span><span class="cx"> Value(const String& value) : m_type(StringValue), m_data(Data::create(value)) { }
</span><span class="cx"> Value(const char* value) : m_type(StringValue), m_data(Data::create(value)) { }
</span><span class="cx">
</span><del>- explicit Value(NodeSet value) : m_type(NodeSetValue), m_data(Data::create(WTF::move(value))) { }
- explicit Value(Node* value) : m_type(NodeSetValue), m_data(Data::create(value)) { }
- explicit Value(PassRefPtr<Node> value) : m_type(NodeSetValue), m_data(Data::create(value)) { }
</del><ins>+ explicit Value(NodeSet&& value)
+ : m_type(NodeSetValue), m_data(Data::create(WTF::move(value)))
+ { }
+ explicit Value(Node* value)
+ : m_type(NodeSetValue), m_data(Data::create(value))
+ { }
+ explicit Value(RefPtr<Node>&& value)
+ : m_type(NodeSetValue), m_data(Data::create(WTF::move(value)))
+ { }
</ins><span class="cx">
</span><span class="cx"> Type type() const { return m_type; }
</span><span class="cx">
</span><span class="lines">@@ -68,19 +74,25 @@
</span><span class="cx"> Value(void*) = delete;
</span><span class="cx">
</span><span class="cx"> struct Data : public RefCounted<Data> {
</span><del>- static PassRefPtr<Data> create() { return adoptRef(new Data); }
- static PassRefPtr<Data> create(const String& string) { return adoptRef(new Data(string)); }
- static PassRefPtr<Data> create(NodeSet nodeSet) { return adoptRef(new Data(WTF::move(nodeSet))); }
- static PassRefPtr<Data> create(PassRefPtr<Node> node) { return adoptRef(new Data(node)); }
</del><ins>+ static Ref<Data> create() { return adoptRef(*new Data); }
+ static Ref<Data> create(const String& string) { return adoptRef(*new Data(string)); }
+ static Ref<Data> create(NodeSet&& nodeSet) { return adoptRef(*new Data(WTF::move(nodeSet))); }
+ static Ref<Data> create(RefPtr<Node>&& node) { return adoptRef(*new Data(WTF::move(node))); }
</ins><span class="cx">
</span><span class="cx"> String string;
</span><span class="cx"> NodeSet nodeSet;
</span><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> Data() { }
</span><del>- explicit Data(const String& string) : string(string) { }
- explicit Data(NodeSet nodeSet) : nodeSet(WTF::move(nodeSet)) { }
- explicit Data(PassRefPtr<Node> node) : nodeSet(node) { }
</del><ins>+ explicit Data(const String& string)
+ : string(string)
+ { }
+ explicit Data(NodeSet&& nodeSet)
+ : nodeSet(WTF::move(nodeSet))
+ { }
+ explicit Data(RefPtr<Node>&& node)
+ : nodeSet(WTF::move(node))
+ { }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> Type m_type;
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXSLTProcessorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XSLTProcessor.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XSLTProcessor.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XSLTProcessor.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -109,23 +109,23 @@
</span><span class="cx"> return result.releaseNonNull();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<Document> XSLTProcessor::transformToDocument(Node* sourceNode)
</del><ins>+RefPtr<Document> XSLTProcessor::transformToDocument(Node* sourceNode)
</ins><span class="cx"> {
</span><span class="cx"> if (!sourceNode)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><span class="cx"> String resultMIMEType;
</span><span class="cx"> String resultString;
</span><span class="cx"> String resultEncoding;
</span><span class="cx"> if (!transformToString(*sourceNode, resultMIMEType, resultString, resultEncoding))
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> return createDocumentFromSource(resultString, resultEncoding, resultMIMEType, sourceNode, 0);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<DocumentFragment> XSLTProcessor::transformToFragment(Node* sourceNode, Document* outputDoc)
</del><ins>+RefPtr<DocumentFragment> XSLTProcessor::transformToFragment(Node* sourceNode, Document* outputDoc)
</ins><span class="cx"> {
</span><span class="cx"> if (!sourceNode || !outputDoc)
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><span class="cx"> String resultMIMEType;
</span><span class="cx"> String resultString;
</span><span class="lines">@@ -136,7 +136,7 @@
</span><span class="cx"> resultMIMEType = "text/html";
</span><span class="cx">
</span><span class="cx"> if (!transformToString(*sourceNode, resultMIMEType, resultString, resultEncoding))
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx"> return createFragmentForTransformToFragment(resultString, resultMIMEType, outputDoc);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXSLTProcessorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XSLTProcessor.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XSLTProcessor.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/XSLTProcessor.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -44,18 +44,18 @@
</span><span class="cx"> static Ref<XSLTProcessor> create() { return adoptRef(*new XSLTProcessor); }
</span><span class="cx"> ~XSLTProcessor();
</span><span class="cx">
</span><del>- void setXSLStyleSheet(PassRefPtr<XSLStyleSheet> styleSheet) { m_stylesheet = styleSheet; }
</del><ins>+ void setXSLStyleSheet(RefPtr<XSLStyleSheet>&& styleSheet) { m_stylesheet = WTF::move(styleSheet); }
</ins><span class="cx"> bool transformToString(Node& source, String& resultMIMEType, String& resultString, String& resultEncoding);
</span><span class="cx"> Ref<Document> createDocumentFromSource(const String& source, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame);
</span><span class="cx">
</span><span class="cx"> // DOM methods
</span><del>- void importStylesheet(PassRefPtr<Node> style)
</del><ins>+ void importStylesheet(RefPtr<Node>&& style)
</ins><span class="cx"> {
</span><span class="cx"> if (style)
</span><del>- m_stylesheetRootNode = style;
</del><ins>+ m_stylesheetRootNode = WTF::move(style);
</ins><span class="cx"> }
</span><del>- PassRefPtr<DocumentFragment> transformToFragment(Node* source, Document* ouputDoc);
- PassRefPtr<Document> transformToDocument(Node* source);
</del><ins>+ RefPtr<DocumentFragment> transformToFragment(Node* source, Document* ouputDoc);
+ RefPtr<Document> transformToDocument(Node* source);
</ins><span class="cx">
</span><span class="cx"> void setParameter(const String& namespaceURI, const String& localName, const String& value);
</span><span class="cx"> String getParameter(const String& namespaceURI, const String& localName) const;
</span></span></pre></div>
<a id="trunkSourceWebCorexmlparserXMLDocumentParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/parser/XMLDocumentParser.cpp (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/parser/XMLDocumentParser.cpp        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/parser/XMLDocumentParser.cpp        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -105,9 +105,9 @@
</span><span class="cx"> ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void XMLDocumentParser::append(PassRefPtr<StringImpl> inputSource)
</del><ins>+void XMLDocumentParser::append(RefPtr<StringImpl>&& inputSource)
</ins><span class="cx"> {
</span><del>- SegmentedString source(inputSource);
</del><ins>+ SegmentedString source(WTF::move(inputSource));
</ins><span class="cx"> if (m_sawXSLTransform || !m_sawFirstElement)
</span><span class="cx"> m_originalSourceForTransform.append(source);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorexmlparserXMLDocumentParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/parser/XMLDocumentParser.h (189775 => 189776)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/parser/XMLDocumentParser.h        2015-09-15 04:05:10 UTC (rev 189775)
+++ trunk/Source/WebCore/xml/parser/XMLDocumentParser.h        2015-09-15 06:00:54 UTC (rev 189776)
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">
</span><span class="cx"> // From DocumentParser
</span><span class="cx"> virtual void insert(const SegmentedString&) override;
</span><del>- virtual void append(PassRefPtr<StringImpl>) override;
</del><ins>+ virtual void append(RefPtr<StringImpl>&&) override;
</ins><span class="cx"> virtual void finish() override;
</span><span class="cx"> virtual bool isWaitingForScripts() const override;
</span><span class="cx"> virtual void stopParsing() override;
</span></span></pre>
</div>
</div>
</body>
</html>