<!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>[167594] 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/167594">167594</a></dd>
<dt>Author</dt> <dd>zandobersek@gmail.com</dd>
<dt>Date</dt> <dd>2014-04-21 10:11:43 -0700 (Mon, 21 Apr 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Move cross-port Source/WebCore/page/ code to std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=130534

Reviewed by Darin Adler.


Source/WebCore: 
Replace uses of OwnPtr and PassOwnPtr in cross-port code under Source/WebCore/page/ with
std::unique_ptr. Unnecessary OwnPtr.h and PassOwnPtr.h header inclusions are removed as well.

* dom/Document.cpp:
(WebCore::Document::initSecurityContext):
* dom/SecurityContext.cpp:
(WebCore::SecurityContext::setContentSecurityPolicy):
* dom/SecurityContext.h:
* page/CaptionUserPreferences.h:
* page/ContentSecurityPolicy.cpp:
(WebCore::CSPDirectiveList::create):
(WebCore::CSPDirectiveList::checkEvalAndReportViolation):
(WebCore::CSPDirectiveList::checkInlineAndReportViolation):
(WebCore::CSPDirectiveList::checkSourceAndReportViolation):
(WebCore::CSPDirectiveList::setCSPDirective):
(WebCore::ContentSecurityPolicy::didReceiveHeader):
* page/ContentSecurityPolicy.h:
* page/DOMSecurityPolicy.h:
* page/DOMWindow.cpp:
(WebCore::PostMessageTimer::fired):
(WebCore::DOMWindow::postMessageTimerFired):
* page/DOMWindow.h:
* page/EventHandler.cpp:
(WebCore::EventHandler::EventHandler):
* page/EventHandler.h:
* page/Frame.cpp:
(WebCore::Frame::Frame):
(WebCore::createRegExpForLabels):
(WebCore::Frame::searchForLabelsAboveCell):
(WebCore::Frame::searchForLabelsBeforeElement):
(WebCore::matchLabelsAgainstString):
(WebCore::Frame::setTiledBackingStoreEnabled):
* page/Frame.h:
* page/FrameView.cpp:
(WebCore::FrameView::addEmbeddedObjectToUpdate):
(WebCore::FrameView::addSlowRepaintObject):
(WebCore::FrameView::addViewportConstrainedObject):
(WebCore::FrameView::addScrollableArea):
* page/FrameView.h:
* page/Page.cpp:
(WebCore::Page::Page):
* page/Page.h:
* page/PageConsole.h:
* page/PageThrottler.h:
* page/SecurityPolicy.cpp:
(WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
* page/animation/AnimationController.h:
* page/animation/CSSPropertyAnimation.cpp:
(WebCore::PropertyWrapperVisitedAffectedColor::PropertyWrapperVisitedAffectedColor):
(WebCore::CSSPropertyAnimationWrapperMap::instance):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* page/mac/PageMac.cpp:
(WebCore::Page::addSchedulePair):
* workers/WorkerGlobalScope.cpp:
(WebCore::WorkerGlobalScope::applyContentSecurityPolicyFromString):

Source/WebKit/mac: 
* WebView/WebHTMLRepresentation.mm:
(searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCoreexpin">trunk/Source/WebCore/WebCore.exp.in</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCoredomSecurityContextcpp">trunk/Source/WebCore/dom/SecurityContext.cpp</a></li>
<li><a href="#trunkSourceWebCoredomSecurityContexth">trunk/Source/WebCore/dom/SecurityContext.h</a></li>
<li><a href="#trunkSourceWebCorepageCaptionUserPreferencesh">trunk/Source/WebCore/page/CaptionUserPreferences.h</a></li>
<li><a href="#trunkSourceWebCorepageContentSecurityPolicycpp">trunk/Source/WebCore/page/ContentSecurityPolicy.cpp</a></li>
<li><a href="#trunkSourceWebCorepageContentSecurityPolicyh">trunk/Source/WebCore/page/ContentSecurityPolicy.h</a></li>
<li><a href="#trunkSourceWebCorepageDOMSecurityPolicyh">trunk/Source/WebCore/page/DOMSecurityPolicy.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="#trunkSourceWebCorepageEventHandlercpp">trunk/Source/WebCore/page/EventHandler.cpp</a></li>
<li><a href="#trunkSourceWebCorepageEventHandlerh">trunk/Source/WebCore/page/EventHandler.h</a></li>
<li><a href="#trunkSourceWebCorepageFramecpp">trunk/Source/WebCore/page/Frame.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFrameh">trunk/Source/WebCore/page/Frame.h</a></li>
<li><a href="#trunkSourceWebCorepageFrameViewcpp">trunk/Source/WebCore/page/FrameView.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFrameViewh">trunk/Source/WebCore/page/FrameView.h</a></li>
<li><a href="#trunkSourceWebCorepagePageh">trunk/Source/WebCore/page/Page.h</a></li>
<li><a href="#trunkSourceWebCorepagePageThrottlerh">trunk/Source/WebCore/page/PageThrottler.h</a></li>
<li><a href="#trunkSourceWebCorepageSecurityPolicycpp">trunk/Source/WebCore/page/SecurityPolicy.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationAnimationControllerh">trunk/Source/WebCore/page/animation/AnimationController.h</a></li>
<li><a href="#trunkSourceWebCorepageanimationCSSPropertyAnimationcpp">trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp</a></li>
<li><a href="#trunkSourceWebCorepagemacPageMaccpp">trunk/Source/WebCore/page/mac/PageMac.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerGlobalScopecpp">trunk/Source/WebCore/workers/WorkerGlobalScope.cpp</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebHTMLRepresentationmm">trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/ChangeLog        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -1,3 +1,66 @@
</span><ins>+2014-04-21  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
+
+        Move cross-port Source/WebCore/page/ code to std::unique_ptr
+        https://bugs.webkit.org/show_bug.cgi?id=130534
+
+        Reviewed by Darin Adler.
+
+        Replace uses of OwnPtr and PassOwnPtr in cross-port code under Source/WebCore/page/ with
+        std::unique_ptr. Unnecessary OwnPtr.h and PassOwnPtr.h header inclusions are removed as well.
+
+        * dom/Document.cpp:
+        (WebCore::Document::initSecurityContext):
+        * dom/SecurityContext.cpp:
+        (WebCore::SecurityContext::setContentSecurityPolicy):
+        * dom/SecurityContext.h:
+        * page/CaptionUserPreferences.h:
+        * page/ContentSecurityPolicy.cpp:
+        (WebCore::CSPDirectiveList::create):
+        (WebCore::CSPDirectiveList::checkEvalAndReportViolation):
+        (WebCore::CSPDirectiveList::checkInlineAndReportViolation):
+        (WebCore::CSPDirectiveList::checkSourceAndReportViolation):
+        (WebCore::CSPDirectiveList::setCSPDirective):
+        (WebCore::ContentSecurityPolicy::didReceiveHeader):
+        * page/ContentSecurityPolicy.h:
+        * page/DOMSecurityPolicy.h:
+        * page/DOMWindow.cpp:
+        (WebCore::PostMessageTimer::fired):
+        (WebCore::DOMWindow::postMessageTimerFired):
+        * page/DOMWindow.h:
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::EventHandler):
+        * page/EventHandler.h:
+        * page/Frame.cpp:
+        (WebCore::Frame::Frame):
+        (WebCore::createRegExpForLabels):
+        (WebCore::Frame::searchForLabelsAboveCell):
+        (WebCore::Frame::searchForLabelsBeforeElement):
+        (WebCore::matchLabelsAgainstString):
+        (WebCore::Frame::setTiledBackingStoreEnabled):
+        * page/Frame.h:
+        * page/FrameView.cpp:
+        (WebCore::FrameView::addEmbeddedObjectToUpdate):
+        (WebCore::FrameView::addSlowRepaintObject):
+        (WebCore::FrameView::addViewportConstrainedObject):
+        (WebCore::FrameView::addScrollableArea):
+        * page/FrameView.h:
+        * page/Page.cpp:
+        (WebCore::Page::Page):
+        * page/Page.h:
+        * page/PageConsole.h:
+        * page/PageThrottler.h:
+        * page/SecurityPolicy.cpp:
+        (WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
+        * page/animation/AnimationController.h:
+        * page/animation/CSSPropertyAnimation.cpp:
+        (WebCore::PropertyWrapperVisitedAffectedColor::PropertyWrapperVisitedAffectedColor):
+        (WebCore::CSSPropertyAnimationWrapperMap::instance):
+        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+        * page/mac/PageMac.cpp:
+        (WebCore::Page::addSchedulePair):
+        * workers/WorkerGlobalScope.cpp:
+        (WebCore::WorkerGlobalScope::applyContentSecurityPolicyFromString):
+
</ins><span class="cx"> 2014-04-21  Darin Adler  &lt;darin@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add HashSet::takeAny
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCoreexpin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.exp.in (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.exp.in        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/WebCore.exp.in        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -1110,7 +1110,7 @@
</span><span class="cx"> __ZN7WebCore5Frame17setPageZoomFactorEf
</span><span class="cx"> __ZN7WebCore5Frame17setTextZoomFactorEf
</span><span class="cx"> __ZN7WebCore5Frame23visiblePositionForPointERKNS_8IntPointE
</span><del>-__ZN7WebCore5Frame24searchForLabelsAboveCellEPN3JSC4Yarr17RegularExpressionEPNS_20HTMLTableCellElementEPm
</del><ins>+__ZN7WebCore5Frame24searchForLabelsAboveCellERKN3JSC4Yarr17RegularExpressionEPNS_20HTMLTableCellElementEPm
</ins><span class="cx"> __ZN7WebCore5Frame25setPageAndTextZoomFactorsEff
</span><span class="cx"> __ZN7WebCore5Frame27resizePageRectsKeepingRatioERKNS_9FloatSizeES3_
</span><span class="cx"> __ZN7WebCore5Frame6createEPNS_4PageEPNS_21HTMLFrameOwnerElementEPNS_17FrameLoaderClientE
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/dom/Document.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -4619,7 +4619,7 @@
</span><span class="cx">         // This can occur via document.implementation.createDocument().
</span><span class="cx">         m_cookieURL = URL(ParsedURLString, emptyString());
</span><span class="cx">         setSecurityOrigin(SecurityOrigin::createUnique());
</span><del>-        setContentSecurityPolicy(ContentSecurityPolicy::create(this));
</del><ins>+        setContentSecurityPolicy(std::make_unique&lt;ContentSecurityPolicy&gt;(this));
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -4639,7 +4639,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     setSecurityOrigin(isSandboxed(SandboxOrigin) ? SecurityOrigin::createUnique() : SecurityOrigin::create(m_url));
</span><del>-    setContentSecurityPolicy(ContentSecurityPolicy::create(this));
</del><ins>+    setContentSecurityPolicy(std::make_unique&lt;ContentSecurityPolicy&gt;(this));
</ins><span class="cx"> 
</span><span class="cx">     if (Settings* settings = this-&gt;settings()) {
</span><span class="cx">         if (!settings-&gt;webSecurityEnabled()) {
</span></span></pre></div>
<a id="trunkSourceWebCoredomSecurityContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/SecurityContext.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/SecurityContext.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/dom/SecurityContext.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -50,9 +50,9 @@
</span><span class="cx">     m_haveInitializedSecurityOrigin = true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void SecurityContext::setContentSecurityPolicy(PassOwnPtr&lt;ContentSecurityPolicy&gt; contentSecurityPolicy)
</del><ins>+void SecurityContext::setContentSecurityPolicy(std::unique_ptr&lt;ContentSecurityPolicy&gt; contentSecurityPolicy)
</ins><span class="cx"> {
</span><del>-    m_contentSecurityPolicy = contentSecurityPolicy;
</del><ins>+    m_contentSecurityPolicy = std::move(contentSecurityPolicy);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool SecurityContext::isSecureTransitionTo(const URL&amp; url) const
</span></span></pre></div>
<a id="trunkSourceWebCoredomSecurityContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/SecurityContext.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/SecurityContext.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/dom/SecurityContext.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #ifndef SecurityContext_h
</span><span class="cx"> #define SecurityContext_h
</span><span class="cx"> 
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="lines">@@ -76,7 +77,7 @@
</span><span class="cx">     SecurityContext();
</span><span class="cx">     virtual ~SecurityContext();
</span><span class="cx"> 
</span><del>-    void setContentSecurityPolicy(PassOwnPtr&lt;ContentSecurityPolicy&gt;);
</del><ins>+    void setContentSecurityPolicy(std::unique_ptr&lt;ContentSecurityPolicy&gt;);
</ins><span class="cx"> 
</span><span class="cx">     void didFailToInitializeSecurityOrigin() { m_haveInitializedSecurityOrigin = false; }
</span><span class="cx">     bool haveInitializedSecurityOrigin() const { return m_haveInitializedSecurityOrigin; }
</span><span class="lines">@@ -85,7 +86,7 @@
</span><span class="cx">     bool m_haveInitializedSecurityOrigin;
</span><span class="cx">     SandboxFlags m_sandboxFlags;
</span><span class="cx">     RefPtr&lt;SecurityOrigin&gt; m_securityOrigin;
</span><del>-    OwnPtr&lt;ContentSecurityPolicy&gt; m_contentSecurityPolicy;
</del><ins>+    std::unique_ptr&lt;ContentSecurityPolicy&gt; m_contentSecurityPolicy;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorepageCaptionUserPreferencesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/CaptionUserPreferences.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/CaptionUserPreferences.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/CaptionUserPreferences.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -32,7 +32,6 @@
</span><span class="cx"> #include &quot;LocalizedStrings.h&quot;
</span><span class="cx"> #include &quot;TextTrack.h&quot;
</span><span class="cx"> #include &quot;Timer.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/AtomicString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCorepageContentSecurityPolicycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ContentSecurityPolicy.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ContentSecurityPolicy.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/ContentSecurityPolicy.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -810,7 +810,8 @@
</span><span class="cx"> class CSPDirectiveList {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    static PassOwnPtr&lt;CSPDirectiveList&gt; create(ContentSecurityPolicy*, const String&amp;, ContentSecurityPolicy::HeaderType);
</del><ins>+    static std::unique_ptr&lt;CSPDirectiveList&gt; create(ContentSecurityPolicy*, const String&amp;, ContentSecurityPolicy::HeaderType);
+    CSPDirectiveList(ContentSecurityPolicy*, ContentSecurityPolicy::HeaderType);
</ins><span class="cx"> 
</span><span class="cx">     const String&amp; header() const { return m_header; }
</span><span class="cx">     ContentSecurityPolicy::HeaderType headerType() const { return m_headerType; }
</span><span class="lines">@@ -841,8 +842,6 @@
</span><span class="cx">     const Vector&lt;URL&gt;&amp; reportURIs() const { return m_reportURIs; }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    CSPDirectiveList(ContentSecurityPolicy*, ContentSecurityPolicy::HeaderType);
-
</del><span class="cx">     void parse(const String&amp;);
</span><span class="cx"> 
</span><span class="cx">     bool parseDirective(const UChar* begin, const UChar* end, String&amp; name, String&amp; value);
</span><span class="lines">@@ -854,7 +853,7 @@
</span><span class="cx">     void applySandboxPolicy(const String&amp; name, const String&amp; sandboxPolicy);
</span><span class="cx"> 
</span><span class="cx">     template &lt;class CSPDirectiveType&gt;
</span><del>-    void setCSPDirective(const String&amp; name, const String&amp; value, OwnPtr&lt;CSPDirectiveType&gt;&amp;);
</del><ins>+    void setCSPDirective(const String&amp; name, const String&amp; value, std::unique_ptr&lt;CSPDirectiveType&gt;&amp;);
</ins><span class="cx"> 
</span><span class="cx">     SourceListDirective* operativeDirective(SourceListDirective*) const;
</span><span class="cx">     void reportViolation(const String&amp; directiveText, const String&amp; effectiveDirective, const String&amp; consoleMessage, const URL&amp; blockedURL = URL(), const String&amp; contextURL = String(), const WTF::OrdinalNumber&amp; contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = 0) const;
</span><span class="lines">@@ -885,19 +884,19 @@
</span><span class="cx">     bool m_haveSandboxPolicy;
</span><span class="cx">     ContentSecurityPolicy::ReflectedXSSDisposition m_reflectedXSSDisposition;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;MediaListDirective&gt; m_pluginTypes;
-    OwnPtr&lt;NonceDirective&gt; m_scriptNonce;
-    OwnPtr&lt;SourceListDirective&gt; m_baseURI;
-    OwnPtr&lt;SourceListDirective&gt; m_connectSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_defaultSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_fontSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_formAction;
-    OwnPtr&lt;SourceListDirective&gt; m_frameSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_imgSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_mediaSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_objectSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_scriptSrc;
-    OwnPtr&lt;SourceListDirective&gt; m_styleSrc;
</del><ins>+    std::unique_ptr&lt;MediaListDirective&gt; m_pluginTypes;
+    std::unique_ptr&lt;NonceDirective&gt; m_scriptNonce;
+    std::unique_ptr&lt;SourceListDirective&gt; m_baseURI;
+    std::unique_ptr&lt;SourceListDirective&gt; m_connectSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_defaultSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_fontSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_formAction;
+    std::unique_ptr&lt;SourceListDirective&gt; m_frameSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_imgSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_mediaSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_objectSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_scriptSrc;
+    std::unique_ptr&lt;SourceListDirective&gt; m_styleSrc;
</ins><span class="cx"> 
</span><span class="cx">     Vector&lt;URL&gt; m_reportURIs;
</span><span class="cx"> 
</span><span class="lines">@@ -914,9 +913,9 @@
</span><span class="cx">     m_reportOnly = (type == ContentSecurityPolicy::Report || type == ContentSecurityPolicy::PrefixedReport);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;CSPDirectiveList&gt; CSPDirectiveList::create(ContentSecurityPolicy* policy, const String&amp; header, ContentSecurityPolicy::HeaderType type)
</del><ins>+std::unique_ptr&lt;CSPDirectiveList&gt; CSPDirectiveList::create(ContentSecurityPolicy* policy, const String&amp; header, ContentSecurityPolicy::HeaderType type)
</ins><span class="cx"> {
</span><del>-    OwnPtr&lt;CSPDirectiveList&gt; directives = adoptPtr(new CSPDirectiveList(policy, type));
</del><ins>+    auto directives = std::make_unique&lt;CSPDirectiveList&gt;(policy, type);
</ins><span class="cx">     directives-&gt;parse(header);
</span><span class="cx"> 
</span><span class="cx">     if (!directives-&gt;checkEval(directives-&gt;operativeDirective(directives-&gt;m_scriptSrc.get()))) {
</span><span class="lines">@@ -927,7 +926,7 @@
</span><span class="cx">     if (directives-&gt;isReportOnly() &amp;&amp; directives-&gt;reportURIs().isEmpty())
</span><span class="cx">         policy-&gt;reportMissingReportURI(header);
</span><span class="cx"> 
</span><del>-    return directives.release();
</del><ins>+    return directives;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void CSPDirectiveList::reportViolation(const String&amp; directiveText, const String&amp; effectiveDirective, const String&amp; consoleMessage, const URL&amp; blockedURL, const String&amp; contextURL, const WTF::OrdinalNumber&amp; contextLine, JSC::ExecState* state) const
</span><span class="lines">@@ -976,7 +975,7 @@
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     String suffix = String();
</span><del>-    if (directive == m_defaultSrc)
</del><ins>+    if (directive == m_defaultSrc.get())
</ins><span class="cx">         suffix = &quot; Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.&quot;;
</span><span class="cx"> 
</span><span class="cx">     reportViolation(directive-&gt;text(), scriptSrc, consoleMessage + &quot;\&quot;&quot; + directive-&gt;text() + &quot;\&quot;.&quot; + suffix + &quot;\n&quot;, URL(), contextURL, contextLine, state);
</span><span class="lines">@@ -1014,7 +1013,7 @@
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     String suffix = String();
</span><del>-    if (directive == m_defaultSrc)
</del><ins>+    if (directive == m_defaultSrc.get())
</ins><span class="cx">         suffix = makeString(&quot; Note that '&quot;, (isScript ? &quot;script&quot; : &quot;style&quot;), &quot;-src' was not explicitly set, so 'default-src' is used as a fallback.&quot;);
</span><span class="cx"> 
</span><span class="cx">     reportViolation(directive-&gt;text(), isScript ? scriptSrc : styleSrc, consoleMessage + &quot;\&quot;&quot; + directive-&gt;text() + &quot;\&quot;.&quot; + suffix + &quot;\n&quot;, URL(), contextURL, contextLine);
</span><span class="lines">@@ -1055,7 +1054,7 @@
</span><span class="cx">         prefix = &quot;Refused to load the stylesheet '&quot;;
</span><span class="cx"> 
</span><span class="cx">     String suffix = String();
</span><del>-    if (directive == m_defaultSrc)
</del><ins>+    if (directive == m_defaultSrc.get())
</ins><span class="cx">         suffix = &quot; Note that '&quot; + effectiveDirective + &quot;' was not explicitly set, so 'default-src' is used as a fallback.&quot;;
</span><span class="cx"> 
</span><span class="cx">     reportViolation(directive-&gt;text(), effectiveDirective, prefix + url.stringCenterEllipsizedToLength() + &quot;' because it violates the following Content Security Policy directive: \&quot;&quot; + directive-&gt;text() + &quot;\&quot;.&quot; + suffix + &quot;\n&quot;, url);
</span><span class="lines">@@ -1314,13 +1313,13 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> template&lt;class CSPDirectiveType&gt;
</span><del>-void CSPDirectiveList::setCSPDirective(const String&amp; name, const String&amp; value, OwnPtr&lt;CSPDirectiveType&gt;&amp; directive)
</del><ins>+void CSPDirectiveList::setCSPDirective(const String&amp; name, const String&amp; value, std::unique_ptr&lt;CSPDirectiveType&gt;&amp; directive)
</ins><span class="cx"> {
</span><span class="cx">     if (directive) {
</span><span class="cx">         m_policy-&gt;reportDuplicateDirective(name);
</span><span class="cx">         return;
</span><span class="cx">     }
</span><del>-    directive = adoptPtr(new CSPDirectiveType(name, value, m_policy));
</del><ins>+    directive = std::make_unique&lt;CSPDirectiveType&gt;(name, value, m_policy);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void CSPDirectiveList::applySandboxPolicy(const String&amp; name, const String&amp; sandboxPolicy)
</span><span class="lines">@@ -1459,7 +1458,7 @@
</span><span class="cx"> 
</span><span class="cx">         // header1,header2 OR header1
</span><span class="cx">         //        ^                  ^
</span><del>-        OwnPtr&lt;CSPDirectiveList&gt; policy = CSPDirectiveList::create(this, String(begin, position - begin), type);
</del><ins>+        std::unique_ptr&lt;CSPDirectiveList&gt; policy = CSPDirectiveList::create(this, String(begin, position - begin), type);
</ins><span class="cx">         if (!policy-&gt;isReportOnly() &amp;&amp; !policy-&gt;allowEval(0, SuppressReport))
</span><span class="cx">             m_scriptExecutionContext-&gt;disableEval(policy-&gt;evalDisabledErrorMessage());
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageContentSecurityPolicyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ContentSecurityPolicy.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ContentSecurityPolicy.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/ContentSecurityPolicy.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;URL.h&quot;
</span><span class="cx"> #include &quot;ScriptState.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/TextPosition.h&gt;
</span><span class="lines">@@ -46,15 +46,12 @@
</span><span class="cx"> class SecurityOrigin;
</span><span class="cx"> 
</span><span class="cx"> typedef int SandboxFlags;
</span><del>-typedef Vector&lt;OwnPtr&lt;CSPDirectiveList&gt;&gt; CSPDirectiveListVector;
</del><ins>+typedef Vector&lt;std::unique_ptr&lt;CSPDirectiveList&gt;&gt; CSPDirectiveListVector;
</ins><span class="cx"> 
</span><span class="cx"> class ContentSecurityPolicy {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    static PassOwnPtr&lt;ContentSecurityPolicy&gt; create(ScriptExecutionContext* scriptExecutionContext)
-    {
-        return adoptPtr(new ContentSecurityPolicy(scriptExecutionContext));
-    }
</del><ins>+    explicit ContentSecurityPolicy(ScriptExecutionContext*);
</ins><span class="cx">     ~ContentSecurityPolicy();
</span><span class="cx"> 
</span><span class="cx">     void copyStateFrom(const ContentSecurityPolicy*);
</span><span class="lines">@@ -137,8 +134,6 @@
</span><span class="cx">     bool experimentalFeaturesEnabled() const;
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit ContentSecurityPolicy(ScriptExecutionContext*);
-
</del><span class="cx">     void logToConsole(const String&amp; message, const String&amp; contextURL = String(), const WTF::OrdinalNumber&amp; contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = 0) const;
</span><span class="cx"> 
</span><span class="cx">     ScriptExecutionContext* m_scriptExecutionContext;
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMSecurityPolicyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMSecurityPolicy.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMSecurityPolicy.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/DOMSecurityPolicy.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define DOMSecurityPolicy_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ContextDestructionObserver.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/DOMWindow.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -102,6 +102,7 @@
</span><span class="cx"> #include &lt;algorithm&gt;
</span><span class="cx"> #include &lt;inspector/ScriptCallStack.h&gt;
</span><span class="cx"> #include &lt;inspector/ScriptCallStackFactory.h&gt;
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/CurrentTime.h&gt;
</span><span class="cx"> #include &lt;wtf/MainThread.h&gt;
</span><span class="cx"> #include &lt;wtf/MathExtras.h&gt;
</span><span class="lines">@@ -152,8 +153,9 @@
</span><span class="cx"> private:
</span><span class="cx">     virtual void fired()
</span><span class="cx">     {
</span><del>-        m_window-&gt;postMessageTimerFired(adoptPtr(this));
-        // This object is deleted now.
</del><ins>+        // This object gets deleted when std::unique_ptr falls out of scope..
+        std::unique_ptr&lt;PostMessageTimer&gt; timer(this);
+        m_window-&gt;postMessageTimerFired(*timer);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;DOMWindow&gt; m_window;
</span><span class="lines">@@ -841,14 +843,12 @@
</span><span class="cx">     timer-&gt;startOneShot(0);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void DOMWindow::postMessageTimerFired(PassOwnPtr&lt;PostMessageTimer&gt; t)
</del><ins>+void DOMWindow::postMessageTimerFired(PostMessageTimer&amp; timer)
</ins><span class="cx"> {
</span><del>-    OwnPtr&lt;PostMessageTimer&gt; timer(t);
-
</del><span class="cx">     if (!document() || !isCurrentlyDisplayedInFrame())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    dispatchMessageEventWithOriginCheck(timer-&gt;targetOrigin(), timer-&gt;event(document()), timer-&gt;stackTrace());
</del><ins>+    dispatchMessageEventWithOriginCheck(timer.targetOrigin(), timer.event(document()), timer.stackTrace());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void DOMWindow::dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetOrigin, PassRefPtr&lt;Event&gt; event, PassRefPtr&lt;ScriptCallStack&gt; stackTrace)
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/DOMWindow.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -239,7 +239,7 @@
</span><span class="cx">         void postMessage(PassRefPtr&lt;SerializedScriptValue&gt; message, const MessagePortArray*, const String&amp; targetOrigin, DOMWindow&amp; source, ExceptionCode&amp;);
</span><span class="cx">         // Needed for Objective-C bindings (see bug 28774).
</span><span class="cx">         void postMessage(PassRefPtr&lt;SerializedScriptValue&gt; message, MessagePort*, const String&amp; targetOrigin, DOMWindow&amp; source, ExceptionCode&amp;);
</span><del>-        void postMessageTimerFired(PassOwnPtr&lt;PostMessageTimer&gt;);
</del><ins>+        void postMessageTimerFired(PostMessageTimer&amp;);
</ins><span class="cx">         void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetOrigin, PassRefPtr&lt;Event&gt;, PassRefPtr&lt;Inspector::ScriptCallStack&gt;);
</span><span class="cx"> 
</span><span class="cx">         void scrollBy(int x, int y) const;
</span></span></pre></div>
<a id="trunkSourceWebCorepageEventHandlercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/EventHandler.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/EventHandler.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/EventHandler.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -336,7 +336,7 @@
</span><span class="cx"> #if ENABLE(CURSOR_SUPPORT)
</span><span class="cx">     , m_cursorUpdateTimer(this, &amp;EventHandler::cursorUpdateTimerFired)
</span><span class="cx"> #endif
</span><del>-    , m_autoscrollController(adoptPtr(new AutoscrollController))
</del><ins>+    , m_autoscrollController(std::make_unique&lt;AutoscrollController&gt;())
</ins><span class="cx">     , m_mouseDownMayStartAutoscroll(false)
</span><span class="cx">     , m_mouseDownWasInSubframe(false)
</span><span class="cx"> #if !ENABLE(IOS_TOUCH_EVENTS)
</span><span class="lines">@@ -357,7 +357,7 @@
</span><span class="cx"> #endif
</span><span class="cx">     , m_mousePositionIsUnknown(true)
</span><span class="cx">     , m_mouseDownTimestamp(0)
</span><del>-    , m_recentWheelEventDeltaTracker(adoptPtr(new WheelEventDeltaTracker))
</del><ins>+    , m_recentWheelEventDeltaTracker(std::make_unique&lt;WheelEventDeltaTracker&gt;())
</ins><span class="cx">     , m_widgetIsLatched(false)
</span><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx">     , m_mouseDownView(nil)
</span></span></pre></div>
<a id="trunkSourceWebCorepageEventHandlerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/EventHandler.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/EventHandler.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/EventHandler.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -38,8 +38,8 @@
</span><span class="cx"> #include &quot;TextGranularity.h&quot;
</span><span class="cx"> #include &quot;Timer.h&quot;
</span><span class="cx"> #include &quot;WheelEventDeltaTracker.h&quot;
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="lines">@@ -464,7 +464,7 @@
</span><span class="cx">     Timer&lt;EventHandler&gt; m_cursorUpdateTimer;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;AutoscrollController&gt; m_autoscrollController;
</del><ins>+    std::unique_ptr&lt;AutoscrollController&gt; m_autoscrollController;
</ins><span class="cx">     bool m_mouseDownMayStartAutoscroll;
</span><span class="cx">     bool m_mouseDownWasInSubframe;
</span><span class="cx"> 
</span><span class="lines">@@ -521,7 +521,7 @@
</span><span class="cx">     double m_mouseDownTimestamp;
</span><span class="cx">     PlatformMouseEvent m_mouseDown;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;WheelEventDeltaTracker&gt; m_recentWheelEventDeltaTracker;
</del><ins>+    std::unique_ptr&lt;WheelEventDeltaTracker&gt; m_recentWheelEventDeltaTracker;
</ins><span class="cx">     RefPtr&lt;Element&gt; m_latchedWheelEventElement;
</span><span class="cx">     bool m_widgetIsLatched;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Frame.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Frame.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/Frame.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -106,7 +106,6 @@
</span><span class="cx"> #include &quot;npruntime_impl.h&quot;
</span><span class="cx"> #include &quot;runtime_root.h&quot;
</span><span class="cx"> #include &lt;bindings/ScriptValue.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCountedLeakCounter.h&gt;
</span><span class="cx"> #include &lt;wtf/StdLibExtras.h&gt;
</span><span class="cx"> #include &lt;yarr/RegularExpression.h&gt;
</span><span class="lines">@@ -163,8 +162,8 @@
</span><span class="cx">     , m_ownerElement(ownerElement)
</span><span class="cx">     , m_script(std::make_unique&lt;ScriptController&gt;(*this))
</span><span class="cx">     , m_editor(std::make_unique&lt;Editor&gt;(*this))
</span><del>-    , m_selection(adoptPtr(new FrameSelection(this)))
-    , m_eventHandler(adoptPtr(new EventHandler(*this)))
</del><ins>+    , m_selection(std::make_unique&lt;FrameSelection&gt;(this))
+    , m_eventHandler(std::make_unique&lt;EventHandler&gt;(*this))
</ins><span class="cx">     , m_animationController(std::make_unique&lt;AnimationController&gt;(*this))
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     , m_overflowAutoScrollTimer(this, &amp;Frame::overflowAutoScrollTimerFired)
</span><span class="lines">@@ -312,7 +311,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif // ENABLE(ORIENTATION_EVENTS)
</span><span class="cx"> 
</span><del>-static PassOwnPtr&lt;JSC::Yarr::RegularExpression&gt; createRegExpForLabels(const Vector&lt;String&gt;&amp; labels)
</del><ins>+static JSC::Yarr::RegularExpression createRegExpForLabels(const Vector&lt;String&gt;&amp; labels)
</ins><span class="cx"> {
</span><span class="cx">     // REVIEW- version of this call in FrameMac.mm caches based on the NSArray ptrs being
</span><span class="cx">     // the same across calls.  We can't do that.
</span><span class="lines">@@ -344,10 +343,10 @@
</span><span class="cx">             pattern.appendLiteral(&quot;\\b&quot;);
</span><span class="cx">     }
</span><span class="cx">     pattern.append(')');
</span><del>-    return adoptPtr(new JSC::Yarr::RegularExpression(pattern.toString(), TextCaseInsensitive));
</del><ins>+    return JSC::Yarr::RegularExpression(pattern.toString(), TextCaseInsensitive);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-String Frame::searchForLabelsAboveCell(JSC::Yarr::RegularExpression* regExp, HTMLTableCellElement* cell, size_t* resultDistanceFromStartOfCell)
</del><ins>+String Frame::searchForLabelsAboveCell(const JSC::Yarr::RegularExpression&amp; regExp, HTMLTableCellElement* cell, size_t* resultDistanceFromStartOfCell)
</ins><span class="cx"> {
</span><span class="cx">     HTMLTableCellElement* aboveCell = cell-&gt;cellAbove();
</span><span class="cx">     if (aboveCell) {
</span><span class="lines">@@ -358,11 +357,11 @@
</span><span class="cx">                 continue;
</span><span class="cx">             // For each text chunk, run the regexp
</span><span class="cx">             String nodeString = textNode-&gt;data();
</span><del>-            int pos = regExp-&gt;searchRev(nodeString);
</del><ins>+            int pos = regExp.searchRev(nodeString);
</ins><span class="cx">             if (pos &gt;= 0) {
</span><span class="cx">                 if (resultDistanceFromStartOfCell)
</span><span class="cx">                     *resultDistanceFromStartOfCell = lengthSearched;
</span><del>-                return nodeString.substring(pos, regExp-&gt;matchedLength());
</del><ins>+                return nodeString.substring(pos, regExp.matchedLength());
</ins><span class="cx">             }
</span><span class="cx">             lengthSearched += nodeString.length();
</span><span class="cx">         }
</span><span class="lines">@@ -376,7 +375,7 @@
</span><span class="cx"> 
</span><span class="cx"> String Frame::searchForLabelsBeforeElement(const Vector&lt;String&gt;&amp; labels, Element* element, size_t* resultDistance, bool* resultIsInCellAbove)
</span><span class="cx"> {
</span><del>-    OwnPtr&lt;JSC::Yarr::RegularExpression&gt; regExp(createRegExpForLabels(labels));
</del><ins>+    JSC::Yarr::RegularExpression regExp = createRegExpForLabels(labels);
</ins><span class="cx">     // We stop searching after we've seen this many chars
</span><span class="cx">     const unsigned int charsSearchedThreshold = 500;
</span><span class="cx">     // This is the absolute max we search.  We allow a little more slop than
</span><span class="lines">@@ -402,7 +401,7 @@
</span><span class="cx">         if (n-&gt;hasTagName(tdTag) &amp;&amp; !startingTableCell) {
</span><span class="cx">             startingTableCell = toHTMLTableCellElement(n);
</span><span class="cx">         } else if (n-&gt;hasTagName(trTag) &amp;&amp; startingTableCell) {
</span><del>-            String result = searchForLabelsAboveCell(regExp.get(), startingTableCell, resultDistance);
</del><ins>+            String result = searchForLabelsAboveCell(regExp, startingTableCell, resultDistance);
</ins><span class="cx">             if (!result.isEmpty()) {
</span><span class="cx">                 if (resultIsInCellAbove)
</span><span class="cx">                     *resultIsInCellAbove = true;
</span><span class="lines">@@ -415,11 +414,11 @@
</span><span class="cx">             // add 100 for slop, to make it more likely that we'll search whole nodes
</span><span class="cx">             if (lengthSearched + nodeString.length() &gt; maxCharsSearched)
</span><span class="cx">                 nodeString = nodeString.right(charsSearchedThreshold - lengthSearched);
</span><del>-            int pos = regExp-&gt;searchRev(nodeString);
</del><ins>+            int pos = regExp.searchRev(nodeString);
</ins><span class="cx">             if (pos &gt;= 0) {
</span><span class="cx">                 if (resultDistance)
</span><span class="cx">                     *resultDistance = lengthSearched;
</span><del>-                return nodeString.substring(pos, regExp-&gt;matchedLength());
</del><ins>+                return nodeString.substring(pos, regExp.matchedLength());
</ins><span class="cx">             }
</span><span class="cx">             lengthSearched += nodeString.length();
</span><span class="cx">         }
</span><span class="lines">@@ -428,7 +427,7 @@
</span><span class="cx">     // If we started in a cell, but bailed because we found the start of the form or the
</span><span class="cx">     // previous element, we still might need to search the row above us for a label.
</span><span class="cx">     if (startingTableCell &amp;&amp; !searchedCellAbove) {
</span><del>-         String result = searchForLabelsAboveCell(regExp.get(), startingTableCell, resultDistance);
</del><ins>+        String result = searchForLabelsAboveCell(regExp, startingTableCell, resultDistance);
</ins><span class="cx">         if (!result.isEmpty()) {
</span><span class="cx">             if (resultIsInCellAbove)
</span><span class="cx">                 *resultIsInCellAbove = true;
</span><span class="lines">@@ -449,7 +448,7 @@
</span><span class="cx">     replace(mutableStringToMatch, JSC::Yarr::RegularExpression(&quot;\\d&quot;, TextCaseSensitive), &quot; &quot;);
</span><span class="cx">     mutableStringToMatch.replace('_', ' ');
</span><span class="cx">     
</span><del>-    OwnPtr&lt;JSC::Yarr::RegularExpression&gt; regExp(createRegExpForLabels(labels));
</del><ins>+    JSC::Yarr::RegularExpression regExp = createRegExpForLabels(labels);
</ins><span class="cx">     // Use the largest match we can find in the whole string
</span><span class="cx">     int pos;
</span><span class="cx">     int length;
</span><span class="lines">@@ -457,9 +456,9 @@
</span><span class="cx">     int bestLength = -1;
</span><span class="cx">     int start = 0;
</span><span class="cx">     do {
</span><del>-        pos = regExp-&gt;match(mutableStringToMatch, start);
</del><ins>+        pos = regExp.match(mutableStringToMatch, start);
</ins><span class="cx">         if (pos != -1) {
</span><del>-            length = regExp-&gt;matchedLength();
</del><ins>+            length = regExp.matchedLength();
</ins><span class="cx">             if (length &gt;= bestLength) {
</span><span class="cx">                 bestPos = pos;
</span><span class="cx">                 bestLength = length;
</span><span class="lines">@@ -946,12 +945,12 @@
</span><span class="cx"> void Frame::setTiledBackingStoreEnabled(bool enabled)
</span><span class="cx"> {
</span><span class="cx">     if (!enabled) {
</span><del>-        m_tiledBackingStore.clear();
</del><ins>+        m_tiledBackingStore = nullptr;
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     if (m_tiledBackingStore)
</span><span class="cx">         return;
</span><del>-    m_tiledBackingStore = adoptPtr(new TiledBackingStore(this));
</del><ins>+    m_tiledBackingStore = std::make_unique&lt;TiledBackingStore&gt;(this);
</ins><span class="cx">     m_tiledBackingStore-&gt;setCommitTileUpdatesOnIdleEventLoop(true);
</span><span class="cx">     if (m_view)
</span><span class="cx">         m_view-&gt;setPaintsEntireContents(true);
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Frame.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Frame.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/Frame.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -35,6 +35,7 @@
</span><span class="cx"> #include &quot;NavigationScheduler.h&quot;
</span><span class="cx"> #include &quot;ScrollTypes.h&quot;
</span><span class="cx"> #include &quot;UserScriptTypes.h&quot;
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="lines">@@ -235,7 +236,7 @@
</span><span class="cx">         Document* documentAtPoint(const IntPoint&amp; windowPoint);
</span><span class="cx">         PassRefPtr&lt;Range&gt; rangeForPoint(const IntPoint&amp; framePoint);
</span><span class="cx"> 
</span><del>-        String searchForLabelsAboveCell(JSC::Yarr::RegularExpression*, HTMLTableCellElement*, size_t* resultDistanceFromStartOfCell);
</del><ins>+        String searchForLabelsAboveCell(const JSC::Yarr::RegularExpression&amp;, HTMLTableCellElement*, size_t* resultDistanceFromStartOfCell);
</ins><span class="cx">         String searchForLabelsBeforeElement(const Vector&lt;String&gt;&amp; labels, Element*, size_t* resultDistance, bool* resultIsInCellAbove);
</span><span class="cx">         String matchLabelsAgainstElement(const Vector&lt;String&gt;&amp; labels, Element*);
</span><span class="cx"> 
</span><span class="lines">@@ -299,8 +300,8 @@
</span><span class="cx"> 
</span><span class="cx">         const std::unique_ptr&lt;ScriptController&gt; m_script;
</span><span class="cx">         const std::unique_ptr&lt;Editor&gt; m_editor;
</span><del>-        const OwnPtr&lt;FrameSelection&gt; m_selection;
-        const OwnPtr&lt;EventHandler&gt; m_eventHandler;
</del><ins>+        const std::unique_ptr&lt;FrameSelection&gt; m_selection;
+        const std::unique_ptr&lt;EventHandler&gt; m_eventHandler;
</ins><span class="cx">         const std::unique_ptr&lt;AnimationController&gt; m_animationController;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="lines">@@ -351,7 +352,7 @@
</span><span class="cx">         virtual IntRect tiledBackingStoreVisibleRect() override final;
</span><span class="cx">         virtual Color tiledBackingStoreBackgroundColor() const override final;
</span><span class="cx"> 
</span><del>-        OwnPtr&lt;TiledBackingStore&gt; m_tiledBackingStore;
</del><ins>+        std::unique_ptr&lt;TiledBackingStore&gt; m_tiledBackingStore;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">         int m_activeDOMObjectsAndAnimationsSuspendedCount;
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameView.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/FrameView.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -1382,7 +1382,7 @@
</span><span class="cx"> void FrameView::addEmbeddedObjectToUpdate(RenderEmbeddedObject&amp; embeddedObject)
</span><span class="cx"> {
</span><span class="cx">     if (!m_embeddedObjectsToUpdate)
</span><del>-        m_embeddedObjectsToUpdate = adoptPtr(new ListHashSet&lt;RenderEmbeddedObject*&gt;);
</del><ins>+        m_embeddedObjectsToUpdate = std::make_unique&lt;ListHashSet&lt;RenderEmbeddedObject*&gt;&gt;();
</ins><span class="cx"> 
</span><span class="cx">     HTMLFrameOwnerElement&amp; element = embeddedObject.frameOwnerElement();
</span><span class="cx">     if (isHTMLObjectElement(element) || isHTMLEmbedElement(element)) {
</span><span class="lines">@@ -1489,7 +1489,7 @@
</span><span class="cx">     bool hadSlowRepaintObjects = hasSlowRepaintObjects();
</span><span class="cx"> 
</span><span class="cx">     if (!m_slowRepaintObjects)
</span><del>-        m_slowRepaintObjects = adoptPtr(new HashSet&lt;RenderElement*&gt;);
</del><ins>+        m_slowRepaintObjects = std::make_unique&lt;HashSet&lt;RenderElement*&gt;&gt;();
</ins><span class="cx"> 
</span><span class="cx">     m_slowRepaintObjects-&gt;add(o);
</span><span class="cx"> 
</span><span class="lines">@@ -1523,7 +1523,7 @@
</span><span class="cx"> void FrameView::addViewportConstrainedObject(RenderElement* object)
</span><span class="cx"> {
</span><span class="cx">     if (!m_viewportConstrainedObjects)
</span><del>-        m_viewportConstrainedObjects = adoptPtr(new ViewportConstrainedObjectSet);
</del><ins>+        m_viewportConstrainedObjects = std::make_unique&lt;ViewportConstrainedObjectSet&gt;();
</ins><span class="cx"> 
</span><span class="cx">     if (!m_viewportConstrainedObjects-&gt;contains(object)) {
</span><span class="cx">         m_viewportConstrainedObjects-&gt;add(object);
</span><span class="lines">@@ -3989,7 +3989,7 @@
</span><span class="cx"> bool FrameView::addScrollableArea(ScrollableArea* scrollableArea)
</span><span class="cx"> {
</span><span class="cx">     if (!m_scrollableAreas)
</span><del>-        m_scrollableAreas = adoptPtr(new ScrollableAreaSet);
</del><ins>+        m_scrollableAreas = std::make_unique&lt;ScrollableAreaSet&gt;();
</ins><span class="cx">     return m_scrollableAreas-&gt;add(scrollableArea).isNewEntry;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameViewh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameView.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/FrameView.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -33,9 +33,9 @@
</span><span class="cx"> #include &quot;PaintPhase.h&quot;
</span><span class="cx"> #include &quot;RenderPtr.h&quot;
</span><span class="cx"> #include &quot;ScrollView.h&quot;
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> #include &lt;wtf/ListHashSet.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -602,10 +602,10 @@
</span><span class="cx">     LayoutSize m_size;
</span><span class="cx">     LayoutSize m_margins;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;ListHashSet&lt;RenderEmbeddedObject*&gt;&gt; m_embeddedObjectsToUpdate;
</del><ins>+    std::unique_ptr&lt;ListHashSet&lt;RenderEmbeddedObject*&gt;&gt; m_embeddedObjectsToUpdate;
</ins><span class="cx">     const RefPtr&lt;Frame&gt; m_frame;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;HashSet&lt;RenderElement*&gt;&gt; m_slowRepaintObjects;
</del><ins>+    std::unique_ptr&lt;HashSet&lt;RenderElement*&gt;&gt; m_slowRepaintObjects;
</ins><span class="cx"> 
</span><span class="cx">     bool m_needsFullRepaint;
</span><span class="cx">     
</span><span class="lines">@@ -697,8 +697,8 @@
</span><span class="cx">     // The intrinsic content size decided by autosizing.
</span><span class="cx">     IntSize m_autoSizeContentSize;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;ScrollableAreaSet&gt; m_scrollableAreas;
-    OwnPtr&lt;ViewportConstrainedObjectSet&gt; m_viewportConstrainedObjects;
</del><ins>+    std::unique_ptr&lt;ScrollableAreaSet&gt; m_scrollableAreas;
+    std::unique_ptr&lt;ViewportConstrainedObjectSet&gt; m_viewportConstrainedObjects;
</ins><span class="cx"> 
</span><span class="cx">     int m_headerHeight;
</span><span class="cx">     int m_footerHeight;
</span></span></pre></div>
<a id="trunkSourceWebCorepagePageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Page.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Page.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/Page.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -35,6 +35,7 @@
</span><span class="cx"> #include &quot;Supplementable.h&quot;
</span><span class="cx"> #include &quot;ViewState.h&quot;
</span><span class="cx"> #include &quot;ViewportArguments.h&quot;
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><span class="lines">@@ -257,7 +258,7 @@
</span><span class="cx">     void removeSchedulePair(PassRefPtr&lt;SchedulePair&gt;);
</span><span class="cx">     SchedulePairHashSet* scheduledRunLoopPairs() { return m_scheduledRunLoopPairs.get(); }
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;SchedulePairHashSet&gt; m_scheduledRunLoopPairs;
</del><ins>+    std::unique_ptr&lt;SchedulePairHashSet&gt; m_scheduledRunLoopPairs;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     const VisibleSelection&amp; selection() const;
</span></span></pre></div>
<a id="trunkSourceWebCorepagePageThrottlerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/PageThrottler.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/PageThrottler.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/PageThrottler.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -31,8 +31,6 @@
</span><span class="cx"> #include &quot;UserActivity.h&quot;
</span><span class="cx"> #include &quot;ViewState.h&quot;
</span><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/WeakPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCorepageSecurityPolicycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/SecurityPolicy.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/SecurityPolicy.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/SecurityPolicy.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -33,8 +33,7 @@
</span><span class="cx"> #include &lt;wtf/MainThread.h&gt;
</span><span class="cx"> #include &quot;OriginAccessEntry.h&quot;
</span><span class="cx"> #include &quot;SecurityOrigin.h&quot;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/text/StringHash.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -42,7 +41,7 @@
</span><span class="cx"> static SecurityPolicy::LocalLoadPolicy localLoadPolicy = SecurityPolicy::AllowLocalLoadsForLocalOnly;
</span><span class="cx"> 
</span><span class="cx"> typedef Vector&lt;OriginAccessEntry&gt; OriginAccessWhiteList;
</span><del>-typedef HashMap&lt;String, OwnPtr&lt;OriginAccessWhiteList&gt;&gt; OriginAccessMap;
</del><ins>+typedef HashMap&lt;String, std::unique_ptr&lt;OriginAccessWhiteList&gt;&gt; OriginAccessMap;
</ins><span class="cx"> 
</span><span class="cx"> static OriginAccessMap&amp; originAccessMap()
</span><span class="cx"> {
</span><span class="lines">@@ -136,7 +135,7 @@
</span><span class="cx">     String sourceString = sourceOrigin.toString();
</span><span class="cx">     OriginAccessMap::AddResult result = originAccessMap().add(sourceString, nullptr);
</span><span class="cx">     if (result.isNewEntry)
</span><del>-        result.iterator-&gt;value = adoptPtr(new OriginAccessWhiteList);
</del><ins>+        result.iterator-&gt;value = std::make_unique&lt;OriginAccessWhiteList&gt;();
</ins><span class="cx"> 
</span><span class="cx">     OriginAccessWhiteList* list = result.iterator-&gt;value.get();
</span><span class="cx">     list-&gt;append(OriginAccessEntry(destinationProtocol, destinationDomain, allowDestinationSubdomains ? OriginAccessEntry::AllowSubdomains : OriginAccessEntry::DisallowSubdomains));
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationAnimationControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/AnimationController.h (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/AnimationController.h        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/animation/AnimationController.h        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -32,7 +32,6 @@
</span><span class="cx"> #include &quot;AnimationBase.h&quot;
</span><span class="cx"> #include &quot;CSSPropertyNames.h&quot;
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationCSSPropertyAnimationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -51,6 +51,7 @@
</span><span class="cx"> #include &quot;StylePropertyShorthand.h&quot;
</span><span class="cx"> #include &quot;StyleResolver.h&quot;
</span><span class="cx"> #include &lt;algorithm&gt;
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/MathExtras.h&gt;
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="lines">@@ -765,15 +766,15 @@
</span><span class="cx">     PropertyWrapperVisitedAffectedColor(CSSPropertyID prop, Color (RenderStyle::*getter)() const, void (RenderStyle::*setter)(const Color&amp;),
</span><span class="cx">                                         Color (RenderStyle::*visitedGetter)() const, void (RenderStyle::*visitedSetter)(const Color&amp;))
</span><span class="cx">         : AnimationPropertyWrapperBase(prop)
</span><del>-        , m_wrapper(adoptPtr(new PropertyWrapperColor(prop, getter, setter)))
-        , m_visitedWrapper(adoptPtr(new PropertyWrapperColor(prop, visitedGetter, visitedSetter)))
</del><ins>+        , m_wrapper(std::make_unique&lt;PropertyWrapperColor&gt;(prop, getter, setter))
+        , m_visitedWrapper(std::make_unique&lt;PropertyWrapperColor&gt;(prop, visitedGetter, visitedSetter))
</ins><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx">     PropertyWrapperVisitedAffectedColor(CSSPropertyID prop, MaybeInvalidColorTag, Color (RenderStyle::*getter)() const, void (RenderStyle::*setter)(const Color&amp;),
</span><span class="cx">                                         Color (RenderStyle::*visitedGetter)() const, void (RenderStyle::*visitedSetter)(const Color&amp;))
</span><span class="cx">         : AnimationPropertyWrapperBase(prop)
</span><del>-        , m_wrapper(adoptPtr(new PropertyWrapperMaybeInvalidColor(prop, getter, setter)))
-        , m_visitedWrapper(adoptPtr(new PropertyWrapperMaybeInvalidColor(prop, visitedGetter, visitedSetter)))
</del><ins>+        , m_wrapper(std::make_unique&lt;PropertyWrapperMaybeInvalidColor&gt;(prop, getter, setter))
+        , m_visitedWrapper(std::make_unique&lt;PropertyWrapperMaybeInvalidColor&gt;(prop, visitedGetter, visitedSetter))
</ins><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx">     virtual bool equals(const RenderStyle* a, const RenderStyle* b) const
</span><span class="lines">@@ -787,8 +788,8 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    OwnPtr&lt;AnimationPropertyWrapperBase&gt; m_wrapper;
-    OwnPtr&lt;AnimationPropertyWrapperBase&gt; m_visitedWrapper;
</del><ins>+    std::unique_ptr&lt;AnimationPropertyWrapperBase&gt; m_wrapper;
+    std::unique_ptr&lt;AnimationPropertyWrapperBase&gt; m_visitedWrapper;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> // Wrapper base class for an animatable property in a FillLayer
</span><span class="lines">@@ -1079,10 +1080,8 @@
</span><span class="cx">     static CSSPropertyAnimationWrapperMap&amp; instance()
</span><span class="cx">     {
</span><span class="cx">         // FIXME: This data is never destroyed. Maybe we should ref count it and toss it when the last AnimationController is destroyed?
</span><del>-        DEPRECATED_DEFINE_STATIC_LOCAL(OwnPtr&lt;CSSPropertyAnimationWrapperMap&gt;, map, ());
-        if (!map)
-            map = adoptPtr(new CSSPropertyAnimationWrapperMap);
-        return *map;
</del><ins>+        static NeverDestroyed&lt;CSSPropertyAnimationWrapperMap&gt; map;
+        return map;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     AnimationPropertyWrapperBase* wrapperForProperty(CSSPropertyID propertyID)
</span><span class="lines">@@ -1115,10 +1114,12 @@
</span><span class="cx">         return m_propertyToIdMap[propertyID - firstCSSProperty];
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Vector&lt;OwnPtr&lt;AnimationPropertyWrapperBase&gt;&gt; m_propertyWrappers;
</del><ins>+    Vector&lt;std::unique_ptr&lt;AnimationPropertyWrapperBase&gt;&gt; m_propertyWrappers;
</ins><span class="cx">     unsigned char m_propertyToIdMap[numCSSProperties];
</span><span class="cx"> 
</span><span class="cx">     static const unsigned char cInvalidPropertyWrapperIndex = UCHAR_MAX;
</span><ins>+
+    friend class WTF::NeverDestroyed&lt;CSSPropertyAnimationWrapperMap&gt;;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap()
</span><span class="lines">@@ -1313,7 +1314,7 @@
</span><span class="cx"> 
</span><span class="cx">     for (unsigned i = 0; i &lt; animatableLonghandPropertiesCount; ++i) {
</span><span class="cx">         AnimationPropertyWrapperBase* wrapper = animatableLonghandPropertyWrappers[i];
</span><del>-        m_propertyWrappers.uncheckedAppend(adoptPtr(wrapper));
</del><ins>+        m_propertyWrappers.uncheckedAppend(std::unique_ptr&lt;AnimationPropertyWrapperBase&gt;(wrapper));
</ins><span class="cx">         indexFromPropertyID(wrapper-&gt;property()) = i;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -1334,7 +1335,7 @@
</span><span class="cx">             longhandWrappers.uncheckedAppend(m_propertyWrappers[wrapperIndex].get());
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        m_propertyWrappers.uncheckedAppend(adoptPtr(new ShorthandPropertyWrapper(propertyID, longhandWrappers)));
</del><ins>+        m_propertyWrappers.uncheckedAppend(std::make_unique&lt;ShorthandPropertyWrapper&gt;(propertyID, longhandWrappers));
</ins><span class="cx">         indexFromPropertyID(propertyID) = animatableLonghandPropertiesCount + i;
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorepagemacPageMaccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/mac/PageMac.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/mac/PageMac.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/page/mac/PageMac.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx">     RefPtr&lt;SchedulePair&gt; pair = prpPair;
</span><span class="cx"> 
</span><span class="cx">     if (!m_scheduledRunLoopPairs)
</span><del>-        m_scheduledRunLoopPairs = adoptPtr(new SchedulePairHashSet);
</del><ins>+        m_scheduledRunLoopPairs = std::make_unique&lt;SchedulePairHashSet&gt;();
</ins><span class="cx">     m_scheduledRunLoopPairs-&gt;add(pair);
</span><span class="cx"> 
</span><span class="cx"> #if !PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerGlobalScopecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerGlobalScope.cpp (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerGlobalScope.cpp        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebCore/workers/WorkerGlobalScope.cpp        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -109,7 +109,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WorkerGlobalScope::applyContentSecurityPolicyFromString(const String&amp; policy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType)
</span><span class="cx"> {
</span><del>-    setContentSecurityPolicy(ContentSecurityPolicy::create(this));
</del><ins>+    setContentSecurityPolicy(std::make_unique&lt;ContentSecurityPolicy&gt;(this));
</ins><span class="cx">     contentSecurityPolicy()-&gt;didReceiveHeader(policy, contentSecurityPolicyType);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebKit/mac/ChangeLog        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2014-04-21  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
+
+        Move cross-port Source/WebCore/page/ code to std::unique_ptr
+        https://bugs.webkit.org/show_bug.cgi?id=130534
+
+        Reviewed by Darin Adler.
+
+        * WebView/WebHTMLRepresentation.mm:
+        (searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().
+
</ins><span class="cx"> 2014-04-19  Darin Adler  &lt;darin@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Mac] WebView adjusts the cursor even when another window is in front
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebHTMLRepresentationmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm (167593 => 167594)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm        2014-04-21 16:56:14 UTC (rev 167593)
+++ trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm        2014-04-21 17:11:43 UTC (rev 167594)
</span><span class="lines">@@ -456,7 +456,7 @@
</span><span class="cx">         } else if (n-&gt;hasTagName(tdTag) &amp;&amp; !startingTableCell) {
</span><span class="cx">             startingTableCell = static_cast&lt;HTMLTableCellElement*&gt;(n);
</span><span class="cx">         } else if (n-&gt;hasTagName(trTag) &amp;&amp; startingTableCell) {
</span><del>-            NSString* result = frame-&gt;searchForLabelsAboveCell(regExp, startingTableCell, resultDistance);
</del><ins>+            NSString* result = frame-&gt;searchForLabelsAboveCell(*regExp, startingTableCell, resultDistance);
</ins><span class="cx">             if (result &amp;&amp; [result length] &gt; 0) {
</span><span class="cx">                 if (resultIsInCellAbove)
</span><span class="cx">                     *resultIsInCellAbove = true;
</span><span class="lines">@@ -482,7 +482,7 @@
</span><span class="cx">     // If we started in a cell, but bailed because we found the start of the form or the
</span><span class="cx">     // previous element, we still might need to search the row above us for a label.
</span><span class="cx">     if (startingTableCell &amp;&amp; !searchedCellAbove) {
</span><del>-        NSString* result = frame-&gt;searchForLabelsAboveCell(regExp, startingTableCell, resultDistance);
</del><ins>+        NSString* result = frame-&gt;searchForLabelsAboveCell(*regExp, startingTableCell, resultDistance);
</ins><span class="cx">         if (result &amp;&amp; [result length] &gt; 0) {
</span><span class="cx">             if (resultIsInCellAbove)
</span><span class="cx">                 *resultIsInCellAbove = true;
</span></span></pre>
</div>
</div>

</body>
</html>