<!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>[149523] 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/149523">149523</a></dd>
<dt>Author</dt> <dd>mikhail.pozdnyakov@intel.com</dd>
<dt>Date</dt> <dd>2013-05-03 10:12:44 -0700 (Fri, 03 May 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove WTF::ListRefPtr class
https://bugs.webkit.org/show_bug.cgi?id=115516

Reviewed by Anders Carlsson.

ListRefPtr was used only by FontFamily class, besides it strongly depended
on FontFamily class semantics which made it non-generic and inappropriate
for being present inside WTF.

This patch removes WTF::ListRefPtr class and moves its the functionality
into FontFamily class.

Source/WebCore:

No new tests, no change in the behavior.

* page/FrameTree.h:
(FrameTree):
* platform/graphics/FontFamily.h:
(FontFamily):
(WebCore::FontFamily::~FontFamily):
(WebCore):

Source/WTF:

* GNUmakefile.list.am:
* WTF.pro:
* WTF.vcproj/WTF.vcproj:
* WTF.vcxproj/WTF.vcxproj:
* WTF.vcxproj/WTF.vcxproj.filters:
* WTF.xcodeproj/project.pbxproj:
* wtf/CMakeLists.txt:
* wtf/Forward.h:
(WTF):
* wtf/ListRefPtr.h: Removed.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFGNUmakefilelistam">trunk/Source/WTF/GNUmakefile.list.am</a></li>
<li><a href="#trunkSourceWTFWTFpro">trunk/Source/WTF/WTF.pro</a></li>
<li><a href="#trunkSourceWTFWTFvcprojWTFvcproj">trunk/Source/WTF/WTF.vcproj/WTF.vcproj</a></li>
<li><a href="#trunkSourceWTFWTFvcxprojWTFvcxproj">trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj</a></li>
<li><a href="#trunkSourceWTFWTFvcxprojWTFvcxprojfilters">trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters</a></li>
<li><a href="#trunkSourceWTFWTFxcodeprojprojectpbxproj">trunk/Source/WTF/WTF.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWTFwtfCMakeListstxt">trunk/Source/WTF/wtf/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWTFwtfForwardh">trunk/Source/WTF/wtf/Forward.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepageFrameTreeh">trunk/Source/WebCore/page/FrameTree.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsFontFamilyh">trunk/Source/WebCore/platform/graphics/FontFamily.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWTFwtfListRefPtrh">trunk/Source/WTF/wtf/ListRefPtr.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/ChangeLog        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -1,3 +1,28 @@
</span><ins>+2013-05-03  Mikhail Pozdnyakov  &lt;mikhail.pozdnyakov@intel.com&gt;
+
+        Remove WTF::ListRefPtr class
+        https://bugs.webkit.org/show_bug.cgi?id=115516
+
+        Reviewed by Anders Carlsson.
+
+        ListRefPtr was used only by FontFamily class, besides it strongly depended
+        on FontFamily class semantics which made it non-generic and inappropriate
+        for being present inside WTF.
+
+        This patch removes WTF::ListRefPtr class and moves its the functionality
+        into FontFamily class.
+
+        * GNUmakefile.list.am:
+        * WTF.pro:
+        * WTF.vcproj/WTF.vcproj:
+        * WTF.vcxproj/WTF.vcxproj:
+        * WTF.vcxproj/WTF.vcxproj.filters:
+        * WTF.xcodeproj/project.pbxproj:
+        * wtf/CMakeLists.txt:
+        * wtf/Forward.h:
+        (WTF):
+        * wtf/ListRefPtr.h: Removed.
+
</ins><span class="cx"> 2013-05-02  Brent Fulgham  &lt;bfulgham@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         [WinCairo] Unreviewed build fix.
</span></span></pre></div>
<a id="trunkSourceWTFGNUmakefilelistam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/GNUmakefile.list.am (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/GNUmakefile.list.am        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/GNUmakefile.list.am        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -79,7 +79,6 @@
</span><span class="cx">     Source/WTF/wtf/Int8Array.h \
</span><span class="cx">     Source/WTF/wtf/IntegralTypedArrayBase.h \
</span><span class="cx">     Source/WTF/wtf/ListHashSet.h \
</span><del>-    Source/WTF/wtf/ListRefPtr.h \
</del><span class="cx">     Source/WTF/wtf/Locker.h \
</span><span class="cx">     Source/WTF/wtf/MD5.cpp \
</span><span class="cx">     Source/WTF/wtf/MD5.h \
</span></span></pre></div>
<a id="trunkSourceWTFWTFpro"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.pro (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.pro        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/WTF.pro        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -84,7 +84,6 @@
</span><span class="cx">     Int32Array.h \
</span><span class="cx">     Int8Array.h \
</span><span class="cx">     ListHashSet.h \
</span><del>-    ListRefPtr.h \
</del><span class="cx">     Locker.h \
</span><span class="cx">     MainThread.h \
</span><span class="cx">     MallocZoneSupport.h \
</span></span></pre></div>
<a id="trunkSourceWTFWTFvcprojWTFvcproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcproj/WTF.vcproj (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcproj/WTF.vcproj        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/WTF.vcproj/WTF.vcproj        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -895,10 +895,6 @@
</span><span class="cx">                         &gt;
</span><span class="cx">                 &lt;/File&gt;
</span><span class="cx">                 &lt;File
</span><del>-                        RelativePath=&quot;..\wtf\ListRefPtr.h&quot;
-                        &gt;
-                &lt;/File&gt;
-                &lt;File
</del><span class="cx">                         RelativePath=&quot;..\wtf\Locker.h&quot;
</span><span class="cx">                         &gt;
</span><span class="cx">                 &lt;/File&gt;
</span></span></pre></div>
<a id="trunkSourceWTFWTFvcxprojWTFvcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -160,7 +160,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\Int32Array.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\Int8Array.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\ListHashSet.h&quot; /&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\wtf\ListRefPtr.h&quot; /&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\Locker.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\MainThread.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\MallocZoneSupport.h&quot; /&gt;
</span></span></pre></div>
<a id="trunkSourceWTFWTFvcxprojWTFvcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -483,9 +483,6 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\ListHashSet.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;wtf&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\wtf\ListRefPtr.h&quot;&gt;
-      &lt;Filter&gt;wtf&lt;/Filter&gt;
-    &lt;/ClInclude&gt;
</del><span class="cx">     &lt;ClInclude Include=&quot;..\wtf\Locker.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;wtf&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span></span></pre></div>
<a id="trunkSourceWTFWTFxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.xcodeproj/project.pbxproj (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/WTF.xcodeproj/project.pbxproj        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -139,7 +139,6 @@
</span><span class="cx">                 A8A473DF151A825B004123FF /* Int32Array.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472BF151A825A004123FF /* Int32Array.h */; };
</span><span class="cx">                 A8A473E0151A825B004123FF /* IntegralTypedArrayBase.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472C0151A825A004123FF /* IntegralTypedArrayBase.h */; };
</span><span class="cx">                 A8A473E1151A825B004123FF /* ListHashSet.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472C1151A825A004123FF /* ListHashSet.h */; };
</span><del>-                A8A473E2151A825B004123FF /* ListRefPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472C2151A825A004123FF /* ListRefPtr.h */; };
</del><span class="cx">                 A8A473E3151A825B004123FF /* Locker.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A472C3151A825A004123FF /* Locker.h */; };
</span><span class="cx">                 A8A473E4151A825B004123FF /* MainThreadMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = A8A472C5151A825A004123FF /* MainThreadMac.mm */; };
</span><span class="cx">                 A8A473E5151A825B004123FF /* MainThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A472C6151A825A004123FF /* MainThread.cpp */; };
</span><span class="lines">@@ -415,7 +414,6 @@
</span><span class="cx">                 A8A472BF151A825A004123FF /* Int32Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int32Array.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472C0151A825A004123FF /* IntegralTypedArrayBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntegralTypedArrayBase.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472C1151A825A004123FF /* ListHashSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ListHashSet.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                A8A472C2151A825A004123FF /* ListRefPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ListRefPtr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 A8A472C3151A825A004123FF /* Locker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Locker.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472C5151A825A004123FF /* MainThreadMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MainThreadMac.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A8A472C6151A825A004123FF /* MainThread.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MainThread.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -690,7 +688,6 @@
</span><span class="cx">                                 A8A472BD151A825A004123FF /* Int8Array.h */,
</span><span class="cx">                                 A8A472C0151A825A004123FF /* IntegralTypedArrayBase.h */,
</span><span class="cx">                                 A8A472C1151A825A004123FF /* ListHashSet.h */,
</span><del>-                                A8A472C2151A825A004123FF /* ListRefPtr.h */,
</del><span class="cx">                                 A8A472C3151A825A004123FF /* Locker.h */,
</span><span class="cx">                                 A8A472C6151A825A004123FF /* MainThread.cpp */,
</span><span class="cx">                                 A8A472C7151A825B004123FF /* MainThread.h */,
</span><span class="lines">@@ -1004,7 +1001,6 @@
</span><span class="cx">                                 26147B0A15DDCCDC00DDB907 /* IntegerToStringConversion.h in Headers */,
</span><span class="cx">                                 A8A473E0151A825B004123FF /* IntegralTypedArrayBase.h in Headers */,
</span><span class="cx">                                 A8A473E1151A825B004123FF /* ListHashSet.h in Headers */,
</span><del>-                                A8A473E2151A825B004123FF /* ListRefPtr.h in Headers */,
</del><span class="cx">                                 A8A473E3151A825B004123FF /* Locker.h in Headers */,
</span><span class="cx">                                 A8A473E6151A825B004123FF /* MainThread.h in Headers */,
</span><span class="cx">                                 A8A473E7151A825B004123FF /* MallocZoneSupport.h in Headers */,
</span></span></pre></div>
<a id="trunkSourceWTFwtfCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/CMakeLists.txt (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/CMakeLists.txt        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/wtf/CMakeLists.txt        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -43,7 +43,6 @@
</span><span class="cx">     HashTraits.h
</span><span class="cx">     HexNumber.h
</span><span class="cx">     ListHashSet.h
</span><del>-    ListRefPtr.h
</del><span class="cx">     Locker.h
</span><span class="cx">     MD5.h
</span><span class="cx">     MainThread.h
</span></span></pre></div>
<a id="trunkSourceWTFwtfForwardh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Forward.h (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Forward.h        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/wtf/Forward.h        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -26,7 +26,6 @@
</span><span class="cx"> namespace WTF {
</span><span class="cx"> 
</span><span class="cx">     template&lt;typename T&gt; class Function;
</span><del>-    template&lt;typename T&gt; class ListRefPtr;
</del><span class="cx">     template&lt;typename T&gt; class OwnArrayPtr;
</span><span class="cx">     template&lt;typename T&gt; class OwnPtr;
</span><span class="cx">     template&lt;typename T&gt; class PassOwnArrayPtr;
</span><span class="lines">@@ -60,7 +59,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> using WTF::Function;
</span><del>-using WTF::ListRefPtr;
</del><span class="cx"> using WTF::OwnArrayPtr;
</span><span class="cx"> using WTF::OwnPtr;
</span><span class="cx"> using WTF::PassOwnArrayPtr;
</span></span></pre></div>
<a id="trunkSourceWTFwtfListRefPtrh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WTF/wtf/ListRefPtr.h (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/ListRefPtr.h        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WTF/wtf/ListRefPtr.h        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -1,61 +0,0 @@
</span><del>-/*
- *  Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved.
- *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Library General Public
- *  License as published by the Free Software Foundation; either
- *  version 2 of the License, or (at your option) any later version.
- *
- *  This library is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- *  Library General Public License for more details.
- *
- *  You should have received a copy of the GNU Library General Public License
- *  along with this library; see the file COPYING.LIB.  If not, write to
- *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- *  Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef WTF_ListRefPtr_h
-#define WTF_ListRefPtr_h
-
-#include &lt;wtf/RefPtr.h&gt;
-
-namespace WTF {
-
-    // Specialized version of RefPtr desgined for use in singly-linked lists. 
-    // Derefs the list iteratively to avoid recursive derefing that can overflow the stack.
-    template &lt;typename T&gt; class ListRefPtr : public RefPtr&lt;T&gt; {
-    public:
-        ListRefPtr() : RefPtr&lt;T&gt;() {}
-        ListRefPtr(T* ptr) : RefPtr&lt;T&gt;(ptr) {}
-        ListRefPtr(const RefPtr&lt;T&gt;&amp; o) : RefPtr&lt;T&gt;(o) {}
-        // see comment in PassRefPtr.h for why this takes const reference
-        template &lt;typename U&gt; ListRefPtr(const PassRefPtr&lt;U&gt;&amp; o) : RefPtr&lt;T&gt;(o) {}
-        
-        ~ListRefPtr()
-        {
-            RefPtr&lt;T&gt; reaper = this-&gt;release();
-            while (reaper &amp;&amp; reaper-&gt;hasOneRef())
-                reaper = reaper-&gt;releaseNext(); // implicitly protects reaper-&gt;next, then derefs reaper
-        }
-        
-        ListRefPtr&amp; operator=(T* optr) { RefPtr&lt;T&gt;::operator=(optr); return *this; }
-        ListRefPtr&amp; operator=(const RefPtr&lt;T&gt;&amp; o) { RefPtr&lt;T&gt;::operator=(o); return *this; }
-        ListRefPtr&amp; operator=(const PassRefPtr&lt;T&gt;&amp; o) { RefPtr&lt;T&gt;::operator=(o); return *this; }
-        template &lt;typename U&gt; ListRefPtr&amp; operator=(const RefPtr&lt;U&gt;&amp; o) { RefPtr&lt;T&gt;::operator=(o); return *this; }
-        template &lt;typename U&gt; ListRefPtr&amp; operator=(const PassRefPtr&lt;U&gt;&amp; o) { RefPtr&lt;T&gt;::operator=(o); return *this; }
-    };
-
-    template &lt;typename T&gt; inline T* getPtr(const ListRefPtr&lt;T&gt;&amp; p)
-    {
-        return p.get();
-    }
-
-} // namespace WTF
-
-using WTF::ListRefPtr;
-
-#endif // WTF_ListRefPtr_h
</del></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WebCore/ChangeLog        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2013-05-03  Mikhail Pozdnyakov  &lt;mikhail.pozdnyakov@intel.com&gt;
+
+        Remove WTF::ListRefPtr class
+        https://bugs.webkit.org/show_bug.cgi?id=115516
+
+        Reviewed by Anders Carlsson.
+
+        ListRefPtr was used only by FontFamily class, besides it strongly depended
+        on FontFamily class semantics which made it non-generic and inappropriate
+        for being present inside WTF.
+
+        This patch removes WTF::ListRefPtr class and moves its the functionality
+        into FontFamily class.
+
+        No new tests, no change in the behavior.
+
+        * page/FrameTree.h:
+        (FrameTree):
+        * platform/graphics/FontFamily.h:
+        (FontFamily):
+        (WebCore::FontFamily::~FontFamily):
+        (WebCore):
+
</ins><span class="cx"> 2013-05-03  Allan Sandfeld Jensen  &lt;allan.jensen@digia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Crash when calling QWebFrame::evaluateJavaScript
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameTreeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameTree.h (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameTree.h        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WebCore/page/FrameTree.h        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -93,7 +93,6 @@
</span><span class="cx">         AtomicString m_name; // The actual frame name (may be empty).
</span><span class="cx">         AtomicString m_uniqueName;
</span><span class="cx"> 
</span><del>-        // FIXME: use ListRefPtr?
</del><span class="cx">         RefPtr&lt;Frame&gt; m_nextSibling;
</span><span class="cx">         Frame* m_previousSibling;
</span><span class="cx">         RefPtr&lt;Frame&gt; m_firstChild;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsFontFamilyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/FontFamily.h (149522 => 149523)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/FontFamily.h        2013-05-03 16:58:01 UTC (rev 149522)
+++ trunk/Source/WebCore/platform/graphics/FontFamily.h        2013-05-03 17:12:44 UTC (rev 149523)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> #define FontFamily_h
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><del>-#include &lt;wtf/ListRefPtr.h&gt;
</del><ins>+#include &lt;wtf/RefPtr.h&gt;
</ins><span class="cx"> #include &lt;wtf/text/AtomicString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -37,6 +37,7 @@
</span><span class="cx"> class FontFamily {
</span><span class="cx"> public:
</span><span class="cx">     FontFamily() { }
</span><ins>+    ~FontFamily();
</ins><span class="cx"> 
</span><span class="cx">     void setFamily(const AtomicString&amp; family) { m_family = family; }
</span><span class="cx">     const AtomicString&amp; family() const { return m_family; }
</span><span class="lines">@@ -49,7 +50,7 @@
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     AtomicString m_family;
</span><del>-    ListRefPtr&lt;SharedFontFamily&gt; m_next;
</del><ins>+    RefPtr&lt;SharedFontFamily&gt; m_next;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> class SharedFontFamily : public FontFamily, public RefCounted&lt;SharedFontFamily&gt; {
</span><span class="lines">@@ -66,6 +67,15 @@
</span><span class="cx"> bool operator==(const FontFamily&amp;, const FontFamily&amp;);
</span><span class="cx"> inline bool operator!=(const FontFamily&amp; a, const FontFamily&amp; b) { return !(a == b); }
</span><span class="cx"> 
</span><ins>+inline FontFamily::~FontFamily()
+{
+    // This code came from removed ListRefPtr to avoid possible overflowing the stack.
+    // FIXME: Do we really need it?
+    RefPtr&lt;SharedFontFamily&gt; reaper = m_next.release();
+    while (reaper &amp;&amp; reaper-&gt;hasOneRef())
+        reaper = reaper-&gt;releaseNext(); // implicitly protects reaper-&gt;next, then derefs reaper
+}
+
</ins><span class="cx"> inline const FontFamily* FontFamily::next() const
</span><span class="cx"> {
</span><span class="cx">     return m_next.get();
</span></span></pre>
</div>
</div>

</body>
</html>