<!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>[195927] trunk/Source</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/195927">195927</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2016-01-31 04:08:32 -0800 (Sun, 31 Jan 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Reduce PassRefPtr uses in dom - 5
https://bugs.webkit.org/show_bug.cgi?id=153470

Reviewed by Darin Adler.

As a step to remove PassRefPtr, this patch reduces uses of PassRefPtr in WebCore/dom.

* dom/Document.cpp:
(WebCore::Document::adoptNode):
(WebCore::Document::implicitClose):
(WebCore::Document::enqueuePopstateEvent):
(WebCore::Document::setInputCursor):
* dom/Document.h:
* dom/DocumentMarker.cpp:
(WebCore::DocumentMarkerTextMatch::instanceFor):
* dom/Event.cpp:
(WebCore::Event::setUnderlyingEvent):
* dom/Event.h:
* dom/EventDispatcher.h:
* dom/GenericEventQueue.cpp:
(WebCore::GenericEventQueue::enqueueEvent):
* dom/GenericEventQueue.h:
* dom/MouseEvent.cpp:
(WebCore::SimulatedMouseEvent::SimulatedMouseEvent):
* dom/Node.cpp:
(WebCore::Node::dispatchDOMActivateEvent):
* dom/NodeIterator.h:
* dom/PendingScript.h:
* dom/PopStateEvent.cpp:
(WebCore::PopStateEvent::create):
* dom/PopStateEvent.h:
* dom/ProcessingInstruction.cpp:
(WebCore::ProcessingInstruction::setCSSStyleSheet): Deleted. Nobody calls this function.
* dom/ProcessingInstruction.h:
* dom/RangeBoundaryPoint.h:
(WebCore::RangeBoundaryPoint::RangeBoundaryPoint):
* dom/TextEvent.cpp:
(WebCore::TextEvent::createForFragmentPaste):
(WebCore::TextEvent::TextEvent):
* dom/TextEvent.h:
* editing/Editor.cpp:
(WebCore::Editor::pasteAsFragment):
* editing/Editor.h:
* editing/mac/EditorMac.mm:
(WebCore::Editor::replaceNodeFromPasteboard):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumenth">trunk/Source/WebCore/dom/Document.h</a></li>
<li><a href="#trunkSourceWebCoredomDocumentMarkercpp">trunk/Source/WebCore/dom/DocumentMarker.cpp</a></li>
<li><a href="#trunkSourceWebCoredomEventcpp">trunk/Source/WebCore/dom/Event.cpp</a></li>
<li><a href="#trunkSourceWebCoredomEventh">trunk/Source/WebCore/dom/Event.h</a></li>
<li><a href="#trunkSourceWebCoredomEventDispatcherh">trunk/Source/WebCore/dom/EventDispatcher.h</a></li>
<li><a href="#trunkSourceWebCoredomGenericEventQueuecpp">trunk/Source/WebCore/dom/GenericEventQueue.cpp</a></li>
<li><a href="#trunkSourceWebCoredomGenericEventQueueh">trunk/Source/WebCore/dom/GenericEventQueue.h</a></li>
<li><a href="#trunkSourceWebCoredomMouseEventcpp">trunk/Source/WebCore/dom/MouseEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomNodecpp">trunk/Source/WebCore/dom/Node.cpp</a></li>
<li><a href="#trunkSourceWebCoredomNodeIteratorh">trunk/Source/WebCore/dom/NodeIterator.h</a></li>
<li><a href="#trunkSourceWebCoredomPendingScripth">trunk/Source/WebCore/dom/PendingScript.h</a></li>
<li><a href="#trunkSourceWebCoredomPopStateEventcpp">trunk/Source/WebCore/dom/PopStateEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomPopStateEventh">trunk/Source/WebCore/dom/PopStateEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomProcessingInstructioncpp">trunk/Source/WebCore/dom/ProcessingInstruction.cpp</a></li>
<li><a href="#trunkSourceWebCoredomProcessingInstructionh">trunk/Source/WebCore/dom/ProcessingInstruction.h</a></li>
<li><a href="#trunkSourceWebCoredomRangeBoundaryPointh">trunk/Source/WebCore/dom/RangeBoundaryPoint.h</a></li>
<li><a href="#trunkSourceWebCoredomTextEventcpp">trunk/Source/WebCore/dom/TextEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomTextEventh">trunk/Source/WebCore/dom/TextEvent.h</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorcpp">trunk/Source/WebCore/editing/Editor.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorh">trunk/Source/WebCore/editing/Editor.h</a></li>
<li><a href="#trunkSourceWebCoreeditinggtkEditorGtkcpp">trunk/Source/WebCore/editing/gtk/EditorGtk.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingiosEditorIOSmm">trunk/Source/WebCore/editing/ios/EditorIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreeditingmacEditorMacmm">trunk/Source/WebCore/editing/mac/EditorMac.mm</a></li>
<li><a href="#trunkSourceWebCoreeditingwinEditorWincpp">trunk/Source/WebCore/editing/win/EditorWin.cpp</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebHTMLViewmm">trunk/Source/WebKit/mac/WebView/WebHTMLView.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/ChangeLog        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -1,5 +1,53 @@
</span><span class="cx"> 2016-01-31  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
</span><span class="cx"> 
</span><ins>+        Reduce PassRefPtr uses in dom - 5
+        https://bugs.webkit.org/show_bug.cgi?id=153470
+
+        Reviewed by Darin Adler.
+
+        As a step to remove PassRefPtr, this patch reduces uses of PassRefPtr in WebCore/dom. 
+
+        * dom/Document.cpp:
+        (WebCore::Document::adoptNode):
+        (WebCore::Document::implicitClose):
+        (WebCore::Document::enqueuePopstateEvent):
+        (WebCore::Document::setInputCursor):
+        * dom/Document.h:
+        * dom/DocumentMarker.cpp:
+        (WebCore::DocumentMarkerTextMatch::instanceFor):
+        * dom/Event.cpp:
+        (WebCore::Event::setUnderlyingEvent):
+        * dom/Event.h:
+        * dom/EventDispatcher.h:
+        * dom/GenericEventQueue.cpp:
+        (WebCore::GenericEventQueue::enqueueEvent):
+        * dom/GenericEventQueue.h:
+        * dom/MouseEvent.cpp:
+        (WebCore::SimulatedMouseEvent::SimulatedMouseEvent):
+        * dom/Node.cpp:
+        (WebCore::Node::dispatchDOMActivateEvent):
+        * dom/NodeIterator.h:
+        * dom/PendingScript.h:
+        * dom/PopStateEvent.cpp:
+        (WebCore::PopStateEvent::create):
+        * dom/PopStateEvent.h:
+        * dom/ProcessingInstruction.cpp:
+        (WebCore::ProcessingInstruction::setCSSStyleSheet): Deleted. Nobody calls this function.
+        * dom/ProcessingInstruction.h:
+        * dom/RangeBoundaryPoint.h:
+        (WebCore::RangeBoundaryPoint::RangeBoundaryPoint):
+        * dom/TextEvent.cpp:
+        (WebCore::TextEvent::createForFragmentPaste):
+        (WebCore::TextEvent::TextEvent):
+        * dom/TextEvent.h:
+        * editing/Editor.cpp:
+        (WebCore::Editor::pasteAsFragment):
+        * editing/Editor.h:
+        * editing/mac/EditorMac.mm:
+        (WebCore::Editor::replaceNodeFromPasteboard):
+
+2016-01-31  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
+
</ins><span class="cx">         Use std::make_unique&lt;&gt; when creating an unique_ptr object.
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=153705
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/Document.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -1005,7 +1005,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-RefPtr&lt;Node&gt; Document::adoptNode(PassRefPtr&lt;Node&gt; source, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;Node&gt; Document::adoptNode(Node* source, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!source) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -1044,7 +1044,7 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    adoptIfNeeded(source.get());
</del><ins>+    adoptIfNeeded(source);
</ins><span class="cx"> 
</span><span class="cx">     return source;
</span><span class="cx"> }
</span><span class="lines">@@ -2731,8 +2731,8 @@
</span><span class="cx">     dispatchWindowLoadEvent();
</span><span class="cx">     enqueuePageshowEvent(PageshowEventNotPersisted);
</span><span class="cx">     if (m_pendingStateObject)
</span><del>-        enqueuePopstateEvent(m_pendingStateObject.release());
-    
</del><ins>+        enqueuePopstateEvent(WTFMove(m_pendingStateObject));
+
</ins><span class="cx">     if (f)
</span><span class="cx">         f-&gt;loader().dispatchOnloadEvents();
</span><span class="cx"> #ifdef INSTRUMENT_LAYOUT_SCHEDULING
</span><span class="lines">@@ -5550,9 +5550,9 @@
</span><span class="cx">     enqueueWindowEvent(HashChangeEvent::create(oldURL, newURL));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Document::enqueuePopstateEvent(PassRefPtr&lt;SerializedScriptValue&gt; stateObject)
</del><ins>+void Document::enqueuePopstateEvent(RefPtr&lt;SerializedScriptValue&gt;&amp;&amp; stateObject)
</ins><span class="cx"> {
</span><del>-    enqueueWindowEvent(PopStateEvent::create(stateObject, m_domWindow ? m_domWindow-&gt;history() : nullptr));
</del><ins>+    enqueueWindowEvent(PopStateEvent::create(WTFMove(stateObject), m_domWindow ? m_domWindow-&gt;history() : nullptr));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void Document::addMediaCanStartListener(MediaCanStartListener* listener)
</span><span class="lines">@@ -6830,7 +6830,7 @@
</span><span class="cx"> #if ENABLE(WEB_REPLAY)
</span><span class="cx"> void Document::setInputCursor(PassRefPtr&lt;InputCursor&gt; cursor)
</span><span class="cx"> {
</span><del>-    m_inputCursor = cursor;
</del><ins>+    m_inputCursor = WTFMove(cursor);
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/Document.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -466,7 +466,7 @@
</span><span class="cx">     DOMSecurityPolicy&amp; securityPolicy();
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    RefPtr&lt;Node&gt; adoptNode(PassRefPtr&lt;Node&gt; source, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;Node&gt; adoptNode(Node* source, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx">     Ref&lt;HTMLCollection&gt; images();
</span><span class="cx">     Ref&lt;HTMLCollection&gt; embeds();
</span><span class="lines">@@ -1100,7 +1100,7 @@
</span><span class="cx">     void enqueueOverflowEvent(Ref&lt;Event&gt;&amp;&amp;);
</span><span class="cx">     void enqueuePageshowEvent(PageshowEventPersistence);
</span><span class="cx">     void enqueueHashchangeEvent(const String&amp; oldURL, const String&amp; newURL);
</span><del>-    void enqueuePopstateEvent(PassRefPtr&lt;SerializedScriptValue&gt; stateObject);
</del><ins>+    void enqueuePopstateEvent(RefPtr&lt;SerializedScriptValue&gt;&amp;&amp; stateObject);
</ins><span class="cx">     virtual DocumentEventQueue&amp; eventQueue() const override final { return m_eventQueue; }
</span><span class="cx"> 
</span><span class="cx">     WEBCORE_EXPORT void addMediaCanStartListener(MediaCanStartListener*);
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentMarkercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DocumentMarker.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DocumentMarker.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/DocumentMarker.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-class DocumentMarkerDescription : public DocumentMarkerDetails {
</del><ins>+class DocumentMarkerDescription final : public DocumentMarkerDetails {
</ins><span class="cx"> public:
</span><span class="cx">     static Ref&lt;DocumentMarkerDescription&gt; create(const String&amp;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Event.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Event.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/Event.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -176,13 +176,14 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Event::setUnderlyingEvent(PassRefPtr&lt;Event&gt; ue)
</del><ins>+void Event::setUnderlyingEvent(Event* underlyingEvent)
</ins><span class="cx"> {
</span><span class="cx">     // Prohibit creation of a cycle -- just do nothing in that case.
</span><del>-    for (Event* e = ue.get(); e; e = e-&gt;underlyingEvent())
-        if (e == this)
</del><ins>+    for (Event* event = underlyingEvent; event; event = event-&gt;underlyingEvent()) {
+        if (event == this)
</ins><span class="cx">             return;
</span><del>-    m_underlyingEvent = ue;
</del><ins>+    }
+    m_underlyingEvent = underlyingEvent;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Event.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Event.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/Event.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -173,7 +173,7 @@
</span><span class="cx">     void setCancelBubble(bool cancel) { m_cancelBubble = cancel; }
</span><span class="cx"> 
</span><span class="cx">     Event* underlyingEvent() const { return m_underlyingEvent.get(); }
</span><del>-    void setUnderlyingEvent(PassRefPtr&lt;Event&gt;);
</del><ins>+    void setUnderlyingEvent(Event*);
</ins><span class="cx"> 
</span><span class="cx">     virtual DataTransfer* internalDataTransfer() const { return 0; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventDispatcherh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/EventDispatcher.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/EventDispatcher.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/EventDispatcher.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;SimulatedClickOptions.h&quot;
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomGenericEventQueuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/GenericEventQueue.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/GenericEventQueue.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/GenericEventQueue.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void GenericEventQueue::enqueueEvent(PassRefPtr&lt;Event&gt; event)
</del><ins>+void GenericEventQueue::enqueueEvent(RefPtr&lt;Event&gt;&amp;&amp; event)
</ins><span class="cx"> {
</span><span class="cx">     if (m_isClosed)
</span><span class="cx">         return;
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx">     if (event-&gt;target() == &amp;m_owner)
</span><span class="cx">         event-&gt;setTarget(nullptr);
</span><span class="cx"> 
</span><del>-    m_pendingEvents.append(event);
</del><ins>+    m_pendingEvents.append(WTFMove(event));
</ins><span class="cx"> 
</span><span class="cx">     if (m_isSuspended)
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkSourceWebCoredomGenericEventQueueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/GenericEventQueue.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/GenericEventQueue.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/GenericEventQueue.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">     explicit GenericEventQueue(EventTarget&amp;);
</span><span class="cx">     ~GenericEventQueue();
</span><span class="cx"> 
</span><del>-    void enqueueEvent(PassRefPtr&lt;Event&gt;);
</del><ins>+    void enqueueEvent(RefPtr&lt;Event&gt;&amp;&amp;);
</ins><span class="cx">     void close();
</span><span class="cx"> 
</span><span class="cx">     void cancelAllEvents();
</span></span></pre></div>
<a id="trunkSourceWebCoredomMouseEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MouseEvent.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MouseEvent.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/MouseEvent.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx">         m_shiftKey = keyStateEvent-&gt;shiftKey();
</span><span class="cx">         m_metaKey = keyStateEvent-&gt;metaKey();
</span><span class="cx">     }
</span><del>-    setUnderlyingEvent(underlyingEvent);
</del><ins>+    setUnderlyingEvent(underlyingEvent.get());
</ins><span class="cx"> 
</span><span class="cx">     if (is&lt;MouseEvent&gt;(this-&gt;underlyingEvent())) {
</span><span class="cx">         MouseEvent&amp; mouseEvent = downcast&lt;MouseEvent&gt;(*this-&gt;underlyingEvent());
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/Node.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -2128,7 +2128,7 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT_WITH_SECURITY_IMPLICATION(!NoEventDispatchAssertion::isEventDispatchForbidden());
</span><span class="cx">     Ref&lt;UIEvent&gt; event = UIEvent::create(eventNames().DOMActivateEvent, true, true, document().defaultView(), detail);
</span><del>-    event-&gt;setUnderlyingEvent(underlyingEvent);
</del><ins>+    event-&gt;setUnderlyingEvent(underlyingEvent.get());
</ins><span class="cx">     dispatchScopedEvent(event);
</span><span class="cx">     return event-&gt;defaultHandled();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodeIteratorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/NodeIterator.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/NodeIterator.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/NodeIterator.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> #include &quot;NodeFilter.h&quot;
</span><span class="cx"> #include &quot;ScriptWrappable.h&quot;
</span><span class="cx"> #include &quot;Traversal.h&quot;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoredomPendingScripth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PendingScript.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PendingScript.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/PendingScript.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -29,7 +29,6 @@
</span><span class="cx"> #include &quot;CachedResourceClient.h&quot;
</span><span class="cx"> #include &quot;CachedResourceHandle.h&quot;
</span><span class="cx"> #include &lt;wtf/text/TextPosition.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoredomPopStateEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PopStateEvent.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PopStateEvent.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/PopStateEvent.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -64,9 +64,9 @@
</span><span class="cx">     return adoptRef(*new PopStateEvent);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Ref&lt;PopStateEvent&gt; PopStateEvent::create(PassRefPtr&lt;SerializedScriptValue&gt; serializedState, PassRefPtr&lt;History&gt; history)
</del><ins>+Ref&lt;PopStateEvent&gt; PopStateEvent::create(RefPtr&lt;SerializedScriptValue&gt;&amp;&amp; serializedState, PassRefPtr&lt;History&gt; history)
</ins><span class="cx"> {
</span><del>-    return adoptRef(*new PopStateEvent(serializedState, history));
</del><ins>+    return adoptRef(*new PopStateEvent(WTFMove(serializedState), history));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ref&lt;PopStateEvent&gt; PopStateEvent::create(const AtomicString&amp; type, const PopStateEventInit&amp; initializer)
</span></span></pre></div>
<a id="trunkSourceWebCoredomPopStateEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PopStateEvent.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PopStateEvent.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/PopStateEvent.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~PopStateEvent();
</span><span class="cx">     static Ref&lt;PopStateEvent&gt; create();
</span><del>-    static Ref&lt;PopStateEvent&gt; create(PassRefPtr&lt;SerializedScriptValue&gt;, PassRefPtr&lt;History&gt;);
</del><ins>+    static Ref&lt;PopStateEvent&gt; create(RefPtr&lt;SerializedScriptValue&gt;&amp;&amp;, PassRefPtr&lt;History&gt;);
</ins><span class="cx">     static Ref&lt;PopStateEvent&gt; create(const AtomicString&amp;, const PopStateEventInit&amp;);
</span><span class="cx"> 
</span><span class="cx">     PassRefPtr&lt;SerializedScriptValue&gt; serializedState() const { ASSERT(m_serializedState); return m_serializedState; }
</span></span></pre></div>
<a id="trunkSourceWebCoredomProcessingInstructioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ProcessingInstruction.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ProcessingInstruction.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/ProcessingInstruction.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -236,15 +236,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ProcessingInstruction::setCSSStyleSheet(PassRefPtr&lt;CSSStyleSheet&gt; sheet)
-{
-    ASSERT(!m_cachedSheet);
-    ASSERT(!m_loading);
-    m_sheet = sheet;
-    sheet-&gt;setTitle(m_title);
-    sheet-&gt;setDisabled(m_alternate);
-}
-
</del><span class="cx"> void ProcessingInstruction::addSubresourceAttributeURLs(ListHashSet&lt;URL&gt;&amp; urls) const
</span><span class="cx"> {
</span><span class="cx">     if (!sheet())
</span></span></pre></div>
<a id="trunkSourceWebCoredomProcessingInstructionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ProcessingInstruction.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ProcessingInstruction.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/ProcessingInstruction.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -45,7 +45,6 @@
</span><span class="cx"> 
</span><span class="cx">     const String&amp; localHref() const { return m_localHref; }
</span><span class="cx">     StyleSheet* sheet() const { return m_sheet.get(); }
</span><del>-    void setCSSStyleSheet(PassRefPtr&lt;CSSStyleSheet&gt;);
</del><span class="cx"> 
</span><span class="cx">     bool isCSS() const { return m_isCSS; }
</span><span class="cx"> #if ENABLE(XSLT)
</span></span></pre></div>
<a id="trunkSourceWebCoredomRangeBoundaryPointh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/RangeBoundaryPoint.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/RangeBoundaryPoint.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/RangeBoundaryPoint.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx"> 
</span><span class="cx"> class RangeBoundaryPoint {
</span><span class="cx"> public:
</span><del>-    explicit RangeBoundaryPoint(PassRefPtr&lt;Node&gt; container);
</del><ins>+    explicit RangeBoundaryPoint(Node* container);
</ins><span class="cx"> 
</span><span class="cx">     explicit RangeBoundaryPoint(const RangeBoundaryPoint&amp;);
</span><span class="cx"> 
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx">     RefPtr&lt;Node&gt; m_childBeforeBoundary;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-inline RangeBoundaryPoint::RangeBoundaryPoint(PassRefPtr&lt;Node&gt; container)
</del><ins>+inline RangeBoundaryPoint::RangeBoundaryPoint(Node* container)
</ins><span class="cx">     : m_containerNode(container)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_containerNode);
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TextEvent.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextEvent.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/TextEvent.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -47,9 +47,9 @@
</span><span class="cx">     return adoptRef(*new TextEvent(view, data, 0, shouldSmartReplace, false, MailBlockquoteHandling::RespectBlockquote));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Ref&lt;TextEvent&gt; TextEvent::createForFragmentPaste(AbstractView* view, PassRefPtr&lt;DocumentFragment&gt; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling mailBlockquoteHandling)
</del><ins>+Ref&lt;TextEvent&gt; TextEvent::createForFragmentPaste(AbstractView* view, RefPtr&lt;DocumentFragment&gt;&amp;&amp; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling mailBlockquoteHandling)
</ins><span class="cx"> {
</span><del>-    return adoptRef(*new TextEvent(view, &quot;&quot;, data, shouldSmartReplace, shouldMatchStyle, mailBlockquoteHandling));
</del><ins>+    return adoptRef(*new TextEvent(view, emptyString(), WTFMove(data), shouldSmartReplace, shouldMatchStyle, mailBlockquoteHandling));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ref&lt;TextEvent&gt; TextEvent::createForDrop(AbstractView* view, const String&amp; data)
</span><span class="lines">@@ -80,11 +80,11 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-TextEvent::TextEvent(AbstractView* view, const String&amp; data, PassRefPtr&lt;DocumentFragment&gt; pastingFragment, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling mailBlockquoteHandling)
</del><ins>+TextEvent::TextEvent(AbstractView* view, const String&amp; data, RefPtr&lt;DocumentFragment&gt;&amp;&amp; pastingFragment, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling mailBlockquoteHandling)
</ins><span class="cx">     : UIEvent(eventNames().textInputEvent, true, true, view, 0)
</span><span class="cx">     , m_inputType(TextEventInputPaste)
</span><span class="cx">     , m_data(data)
</span><del>-    , m_pastingFragment(pastingFragment)
</del><ins>+    , m_pastingFragment(WTFMove(pastingFragment))
</ins><span class="cx">     , m_shouldSmartReplace(shouldSmartReplace)
</span><span class="cx">     , m_shouldMatchStyle(shouldMatchStyle)
</span><span class="cx">     , m_mailBlockquoteHandling(mailBlockquoteHandling)
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TextEvent.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextEvent.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/dom/TextEvent.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">         static Ref&lt;TextEvent&gt; create();
</span><span class="cx">         static Ref&lt;TextEvent&gt; create(AbstractView*, const String&amp; data, TextEventInputType = TextEventInputKeyboard);
</span><span class="cx">         static Ref&lt;TextEvent&gt; createForPlainTextPaste(AbstractView*, const String&amp; data, bool shouldSmartReplace);
</span><del>-        static Ref&lt;TextEvent&gt; createForFragmentPaste(AbstractView*, PassRefPtr&lt;DocumentFragment&gt; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling);
</del><ins>+        static Ref&lt;TextEvent&gt; createForFragmentPaste(AbstractView*, RefPtr&lt;DocumentFragment&gt;&amp;&amp; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling);
</ins><span class="cx">         static Ref&lt;TextEvent&gt; createForDrop(AbstractView*, const String&amp; data);
</span><span class="cx">         static Ref&lt;TextEvent&gt; createForDictation(AbstractView*, const String&amp; data, const Vector&lt;DictationAlternative&gt;&amp; dictationAlternatives);
</span><span class="cx"> 
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx">         TextEvent();
</span><span class="cx"> 
</span><span class="cx">         TextEvent(AbstractView*, const String&amp; data, TextEventInputType = TextEventInputKeyboard);
</span><del>-        TextEvent(AbstractView*, const String&amp; data, PassRefPtr&lt;DocumentFragment&gt;, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling);
</del><ins>+        TextEvent(AbstractView*, const String&amp; data, RefPtr&lt;DocumentFragment&gt;&amp;&amp;, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling);
</ins><span class="cx">         TextEvent(AbstractView*, const String&amp; data, const Vector&lt;DictationAlternative&gt;&amp; dictationAlternatives);
</span><span class="cx"> 
</span><span class="cx">         virtual bool isTextEvent() const override;
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/Editor.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/Editor.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/editing/Editor.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -464,12 +464,12 @@
</span><span class="cx">     target-&gt;dispatchEvent(TextEvent::createForPlainTextPaste(document().domWindow(), pastingText, smartReplace));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Editor::pasteAsFragment(PassRefPtr&lt;DocumentFragment&gt; pastingFragment, bool smartReplace, bool matchStyle, MailBlockquoteHandling respectsMailBlockquote)
</del><ins>+void Editor::pasteAsFragment(Ref&lt;DocumentFragment&gt;&amp;&amp; pastingFragment, bool smartReplace, bool matchStyle, MailBlockquoteHandling respectsMailBlockquote)
</ins><span class="cx"> {
</span><span class="cx">     Node* target = findEventTargetFromSelection();
</span><span class="cx">     if (!target)
</span><span class="cx">         return;
</span><del>-    target-&gt;dispatchEvent(TextEvent::createForFragmentPaste(document().domWindow(), pastingFragment, smartReplace, matchStyle, respectsMailBlockquote));
</del><ins>+    target-&gt;dispatchEvent(TextEvent::createForFragmentPaste(document().domWindow(), WTFMove(pastingFragment), smartReplace, matchStyle, respectsMailBlockquote));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void Editor::pasteAsPlainTextBypassingDHTML()
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/Editor.h (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/Editor.h        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/editing/Editor.h        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -346,7 +346,7 @@
</span><span class="cx">     WEBCORE_EXPORT void handleAlternativeTextUIResult(const String&amp; correction);
</span><span class="cx">     void dismissCorrectionPanelAsIgnored();
</span><span class="cx"> 
</span><del>-    WEBCORE_EXPORT void pasteAsFragment(PassRefPtr&lt;DocumentFragment&gt;, bool smartReplace, bool matchStyle, MailBlockquoteHandling = MailBlockquoteHandling::RespectBlockquote);
</del><ins>+    WEBCORE_EXPORT void pasteAsFragment(Ref&lt;DocumentFragment&gt;&amp;&amp;, bool smartReplace, bool matchStyle, MailBlockquoteHandling = MailBlockquoteHandling::RespectBlockquote);
</ins><span class="cx">     WEBCORE_EXPORT void pasteAsPlainText(const String&amp;, bool smartReplace);
</span><span class="cx"> 
</span><span class="cx">     // This is only called on the mac where paste is implemented primarily at the WebKit level.
</span></span></pre></div>
<a id="trunkSourceWebCoreeditinggtkEditorGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/gtk/EditorGtk.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/gtk/EditorGtk.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/editing/gtk/EditorGtk.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx">     bool chosePlainText;
</span><span class="cx">     RefPtr&lt;DocumentFragment&gt; fragment = createFragmentFromPasteboardData(*pasteboard, m_frame, *range, allowPlainText, chosePlainText);
</span><span class="cx">     if (fragment &amp;&amp; shouldInsertFragment(fragment, range, EditorInsertActionPasted))
</span><del>-        pasteAsFragment(fragment, canSmartReplaceWithPasteboard(*pasteboard), chosePlainText, mailBlockquoteHandling);
</del><ins>+        pasteAsFragment(fragment.releaseNonNull(), canSmartReplaceWithPasteboard(*pasteboard), chosePlainText, mailBlockquoteHandling);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static const AtomicString&amp; elementURL(Element&amp; element)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingiosEditorIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ios/EditorIOS.mm (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ios/EditorIOS.mm        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/editing/ios/EditorIOS.mm        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -546,7 +546,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (fragment &amp;&amp; shouldInsertFragment(fragment, range, EditorInsertActionPasted))
</span><del>-        pasteAsFragment(fragment, canSmartReplaceWithPasteboard(*pasteboard), false, mailBlockquoteHandling);
</del><ins>+        pasteAsFragment(fragment.releaseNonNull(), canSmartReplaceWithPasteboard(*pasteboard), false, mailBlockquoteHandling);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> PassRefPtr&lt;DocumentFragment&gt; Editor::createFragmentAndAddResources(NSAttributedString *string)
</span><span class="lines">@@ -602,7 +602,7 @@
</span><span class="cx">     if (m_frame.selection().selection().isContentRichlyEditable()) {
</span><span class="cx">         RefPtr&lt;DocumentFragment&gt; fragment = createFragmentAndAddResources(attributedString);
</span><span class="cx">         if (fragment &amp;&amp; shouldInsertFragment(fragment, selectedRange(), EditorInsertActionPasted))
</span><del>-            pasteAsFragment(fragment, false, false, mailBlockquoteHandling);
</del><ins>+            pasteAsFragment(fragment.releaseNonNull(), false, false, mailBlockquoteHandling);
</ins><span class="cx">     } else {
</span><span class="cx">         String text = [attributedString string];
</span><span class="cx">         if (shouldInsertText(text, selectedRange().get(), EditorInsertActionPasted))
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingmacEditorMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/mac/EditorMac.mm (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/mac/EditorMac.mm        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/editing/mac/EditorMac.mm        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx">     RefPtr&lt;DocumentFragment&gt; fragment = webContentFromPasteboard(*pasteboard, *range, allowPlainText, chosePlainText);
</span><span class="cx"> 
</span><span class="cx">     if (fragment &amp;&amp; shouldInsertFragment(fragment, range, EditorInsertActionPasted))
</span><del>-        pasteAsFragment(fragment, canSmartReplaceWithPasteboard(*pasteboard), false, mailBlockquoteHandling);
</del><ins>+        pasteAsFragment(fragment.releaseNonNull(), canSmartReplaceWithPasteboard(*pasteboard), false, mailBlockquoteHandling);
</ins><span class="cx"> 
</span><span class="cx">     client()-&gt;setInsertionPasteboard(String());
</span><span class="cx"> }
</span><span class="lines">@@ -283,7 +283,7 @@
</span><span class="cx">     if (RefPtr&lt;DocumentFragment&gt; fragment = webContentFromPasteboard(pasteboard, *range, true, chosePlainText)) {
</span><span class="cx">         maybeCopyNodeAttributesToFragment(*node, *fragment);
</span><span class="cx">         if (shouldInsertFragment(fragment, range, EditorInsertActionPasted))
</span><del>-            pasteAsFragment(fragment.release(), canSmartReplaceWithPasteboard(pasteboard), false, MailBlockquoteHandling::IgnoreBlockquote);
</del><ins>+            pasteAsFragment(fragment.releaseNonNull(), canSmartReplaceWithPasteboard(pasteboard), false, MailBlockquoteHandling::IgnoreBlockquote);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     client()-&gt;setInsertionPasteboard(String());
</span><span class="lines">@@ -673,7 +673,7 @@
</span><span class="cx">     if (m_frame.selection().selection().isContentRichlyEditable()) {
</span><span class="cx">         RefPtr&lt;DocumentFragment&gt; fragment = createFragmentAndAddResources(attributedString);
</span><span class="cx">         if (fragment &amp;&amp; shouldInsertFragment(fragment, selectedRange(), EditorInsertActionPasted))
</span><del>-            pasteAsFragment(fragment, false, false, mailBlockquoteHandling);
</del><ins>+            pasteAsFragment(fragment.releaseNonNull(), false, false, mailBlockquoteHandling);
</ins><span class="cx">     } else {
</span><span class="cx">         String text = [attributedString string];
</span><span class="cx">         if (shouldInsertText(text, selectedRange().get(), EditorInsertActionPasted))
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingwinEditorWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/win/EditorWin.cpp (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/win/EditorWin.cpp        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebCore/editing/win/EditorWin.cpp        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx">     bool chosePlainText;
</span><span class="cx">     RefPtr&lt;DocumentFragment&gt; fragment = pasteboard-&gt;documentFragment(m_frame, *range, allowPlainText, chosePlainText);
</span><span class="cx">     if (fragment &amp;&amp; shouldInsertFragment(fragment, range, EditorInsertActionPasted))
</span><del>-        pasteAsFragment(fragment, canSmartReplaceWithPasteboard(*pasteboard), chosePlainText, mailBlockquoteHandling);
</del><ins>+        pasteAsFragment(fragment.releaseNonNull(), canSmartReplaceWithPasteboard(*pasteboard), chosePlainText, mailBlockquoteHandling);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template &lt;typename PlatformDragData&gt;
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebHTMLViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebHTMLView.mm (195926 => 195927)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebHTMLView.mm        2016-01-31 11:41:52 UTC (rev 195926)
+++ trunk/Source/WebKit/mac/WebView/WebHTMLView.mm        2016-01-31 12:08:32 UTC (rev 195927)
</span><span class="lines">@@ -1326,7 +1326,7 @@
</span><span class="cx"> 
</span><span class="cx">     DOMDocumentFragment *fragment = [self _documentFragmentFromPasteboard:pasteboard inContext:range allowPlainText:allowPlainText];
</span><span class="cx">     if (fragment &amp;&amp; [self _shouldInsertFragment:fragment replacingDOMRange:range givenAction:WebViewInsertActionPasted])
</span><del>-        coreFrame-&gt;editor().pasteAsFragment(core(fragment), [self _canSmartReplaceWithPasteboard:pasteboard], false);
</del><ins>+        coreFrame-&gt;editor().pasteAsFragment(*core(fragment), [self _canSmartReplaceWithPasteboard:pasteboard], false);
</ins><span class="cx"> 
</span><span class="cx">     [webView _setInsertionPasteboard:nil];
</span><span class="cx">     [webView release];
</span></span></pre>
</div>
</div>

</body>
</html>