<!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>[165805] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/165805">165805</a></dd>
<dt>Author</dt> <dd>akling@apple.com</dd>
<dt>Date</dt> <dd>2014-03-18 02:42:58 -0700 (Tue, 18 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Rename ElementDescendantIterator to TypedElementDescendantIterator.
Romper-stubbed by Antti &quot;Latte Lung&quot; Koivisto.

* GNUmakefile.list.am:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* dom/ElementDescendantIterator.h: Removed.
* dom/ElementIterator.h:
* dom/TypedElementDescendantIterator.h: Added.
(WebCore::TypedElementDescendantIterator&lt;ElementType&gt;::TypedElementDescendantIterator):
(WebCore::TypedElementDescendantIterator&lt;ElementType&gt;::operator):
(WebCore::TypedElementDescendantConstIterator&lt;ElementType&gt;::TypedElementDescendantConstIterator):
(WebCore::TypedElementDescendantConstIterator&lt;ElementType&gt;::operator):
(WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::TypedElementDescendantIteratorAdapter):
(WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::begin):
(WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::end):
(WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::beginAt):
(WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::from):
(WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::first):
(WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::last):
(WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::TypedElementDescendantConstIteratorAdapter):
(WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::begin):
(WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::end):
(WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::beginAt):
(WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::from):
(WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::first):
(WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::last):
(WebCore::descendantsOfType):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreGNUmakefilelistam">trunk/Source/WebCore/GNUmakefile.list.am</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxproj">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoredomElementIteratorh">trunk/Source/WebCore/dom/ElementIterator.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoredomTypedElementDescendantIteratorh">trunk/Source/WebCore/dom/TypedElementDescendantIterator.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoredomElementDescendantIteratorh">trunk/Source/WebCore/dom/ElementDescendantIterator.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (165804 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-03-18 08:51:55 UTC (rev 165804)
+++ trunk/Source/WebCore/ChangeLog        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -1,3 +1,35 @@
</span><ins>+2014-03-18  Andreas Kling  &lt;akling@apple.com&gt;
+
+        Rename ElementDescendantIterator to TypedElementDescendantIterator.
+        Romper-stubbed by Antti &quot;Latte Lung&quot; Koivisto.
+
+        * GNUmakefile.list.am:
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.vcxproj/WebCore.vcxproj.filters:
+        * WebCore.xcodeproj/project.pbxproj:
+        * dom/ElementDescendantIterator.h: Removed.
+        * dom/ElementIterator.h:
+        * dom/TypedElementDescendantIterator.h: Added.
+        (WebCore::TypedElementDescendantIterator&lt;ElementType&gt;::TypedElementDescendantIterator):
+        (WebCore::TypedElementDescendantIterator&lt;ElementType&gt;::operator):
+        (WebCore::TypedElementDescendantConstIterator&lt;ElementType&gt;::TypedElementDescendantConstIterator):
+        (WebCore::TypedElementDescendantConstIterator&lt;ElementType&gt;::operator):
+        (WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::TypedElementDescendantIteratorAdapter):
+        (WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::begin):
+        (WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::end):
+        (WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::beginAt):
+        (WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::from):
+        (WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::first):
+        (WebCore::TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::last):
+        (WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::TypedElementDescendantConstIteratorAdapter):
+        (WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::begin):
+        (WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::end):
+        (WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::beginAt):
+        (WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::from):
+        (WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::first):
+        (WebCore::TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::last):
+        (WebCore::descendantsOfType):
+
</ins><span class="cx"> 2014-03-18  Ion Rosca  &lt;rosca@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add blend mode property to dumped information in GraphicsLayer.
</span></span></pre></div>
<a id="trunkSourceWebCoreGNUmakefilelistam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/GNUmakefile.list.am (165804 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/GNUmakefile.list.am        2014-03-18 08:51:55 UTC (rev 165804)
+++ trunk/Source/WebCore/GNUmakefile.list.am        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -2848,7 +2848,6 @@
</span><span class="cx">         Source/WebCore/dom/ElementChildIterator.h \
</span><span class="cx">         Source/WebCore/dom/ElementData.cpp \
</span><span class="cx">         Source/WebCore/dom/ElementData.h \
</span><del>-        Source/WebCore/dom/ElementDescendantIterator.h \
</del><span class="cx">         Source/WebCore/dom/ElementIterator.h \
</span><span class="cx">         Source/WebCore/dom/ElementIteratorAssertions.h \
</span><span class="cx">         Source/WebCore/dom/ElementRareData.cpp \
</span><span class="lines">@@ -3037,6 +3036,7 @@
</span><span class="cx">         Source/WebCore/dom/TreeScopeAdopter.h \
</span><span class="cx">         Source/WebCore/dom/TreeWalker.cpp \
</span><span class="cx">         Source/WebCore/dom/TreeWalker.h \
</span><ins>+        Source/WebCore/dom/TypedElementDescendantIterator.h \
</ins><span class="cx">         Source/WebCore/dom/UIEvent.cpp \
</span><span class="cx">         Source/WebCore/dom/UIEvent.h \
</span><span class="cx">         Source/WebCore/dom/UIEventWithKeyState.cpp \
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (165804 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2014-03-18 08:51:55 UTC (rev 165804)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -20021,7 +20021,7 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementAncestorIterator.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementChildIterator.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementData.h&quot; /&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\dom\ElementDescendantIterator.h&quot; /&gt;
</del><ins>+    &lt;ClInclude Include=&quot;..\dom\TypedElementDescendantIterator.h&quot; /&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementIterator.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementIteratorAssertions.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementTraversal.h&quot; /&gt;
</span><span class="lines">@@ -20885,4 +20885,4 @@
</span><span class="cx">   &lt;ImportGroup Label=&quot;ExtensionTargets&quot;&gt;
</span><span class="cx">     &lt;Import Project=&quot;$(VCTargetsPath)\BuildCustomizations\masm.targets&quot; /&gt;
</span><span class="cx">   &lt;/ImportGroup&gt;
</span><del>-&lt;/Project&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;/Project&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters (165804 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2014-03-18 08:51:55 UTC (rev 165804)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -14493,7 +14493,7 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementData.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;dom&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><del>-    &lt;ClInclude Include=&quot;..\dom\ElementDescendantIterator.h&quot;&gt;
</del><ins>+    &lt;ClInclude Include=&quot;..\dom\TypedElementDescendantIterator.h&quot;&gt;
</ins><span class="cx">       &lt;Filter&gt;dom&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\dom\ElementIterator.h&quot;&gt;
</span><span class="lines">@@ -15014,4 +15014,4 @@
</span><span class="cx">       &lt;Filter&gt;platform\win&lt;/Filter&gt;
</span><span class="cx">     &lt;/MASM&gt;
</span><span class="cx">   &lt;/ItemGroup&gt;
</span><del>-&lt;/Project&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;/Project&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (165804 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-03-18 08:51:55 UTC (rev 165804)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -6006,7 +6006,7 @@
</span><span class="cx">                 E453904D0EAFD637003695C8 /* WidgetIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = E453903C0EAFD637003695C8 /* WidgetIOS.mm */; };
</span><span class="cx">                 E45390AE0EAFF4B5003695C8 /* SystemMemoryIOS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E45390AD0EAFF4B5003695C8 /* SystemMemoryIOS.cpp */; };
</span><span class="cx">                 E462A4A1113E71BE004A4220 /* IntPointHash.h in Headers */ = {isa = PBXBuildFile; fileRef = E462A4A0113E71BE004A4220 /* IntPointHash.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                E46A2B1C17CA65B9000DBCD8 /* ElementDescendantIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = E46A2B1B17CA65B9000DBCD8 /* ElementDescendantIterator.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><ins>+                E46A2B1C17CA65B9000DBCD8 /* TypedElementDescendantIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = E46A2B1B17CA65B9000DBCD8 /* TypedElementDescendantIterator.h */; settings = {ATTRIBUTES = (Private, ); }; };
</ins><span class="cx">                 E46A2B1E17CA76B1000DBCD8 /* ElementChildIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = E46A2B1D17CA76B1000DBCD8 /* ElementChildIterator.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 E47127CA163438A100ED6F5A /* StyleInvalidationAnalysis.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E47A97CE163059FC005DCD99 /* StyleInvalidationAnalysis.cpp */; };
</span><span class="cx">                 E47127CB163438AE00ED6F5A /* StyleInvalidationAnalysis.h in Headers */ = {isa = PBXBuildFile; fileRef = E47A97CF163059FC005DCD99 /* StyleInvalidationAnalysis.h */; };
</span><span class="lines">@@ -13357,7 +13357,7 @@
</span><span class="cx">                 E453903C0EAFD637003695C8 /* WidgetIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WidgetIOS.mm; path = ios/WidgetIOS.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 E45390AD0EAFF4B5003695C8 /* SystemMemoryIOS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SystemMemoryIOS.cpp; path = ios/SystemMemoryIOS.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 E462A4A0113E71BE004A4220 /* IntPointHash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntPointHash.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                E46A2B1B17CA65B9000DBCD8 /* ElementDescendantIterator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ElementDescendantIterator.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><ins>+                E46A2B1B17CA65B9000DBCD8 /* TypedElementDescendantIterator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TypedElementDescendantIterator.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 E46A2B1D17CA76B1000DBCD8 /* ElementChildIterator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ElementChildIterator.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 E4778B7D115A581A00B5D372 /* JSCustomEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCustomEvent.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 E4778B7E115A581A00B5D372 /* JSCustomEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCustomEvent.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -22122,7 +22122,7 @@
</span><span class="cx">                                 E46A2B1D17CA76B1000DBCD8 /* ElementChildIterator.h */,
</span><span class="cx">                                 B5B7A16F17C1080600E4AA0A /* ElementData.cpp */,
</span><span class="cx">                                 B5B7A16E17C1048000E4AA0A /* ElementData.h */,
</span><del>-                                E46A2B1B17CA65B9000DBCD8 /* ElementDescendantIterator.h */,
</del><ins>+                                E46A2B1B17CA65B9000DBCD8 /* TypedElementDescendantIterator.h */,
</ins><span class="cx">                                 E4AE7C1517D1BB950009FB31 /* ElementIterator.h */,
</span><span class="cx">                                 E401C27417CE53EC00C41A35 /* ElementIteratorAssertions.h */,
</span><span class="cx">                                 4FAB48641643A66D00F70C07 /* ElementRareData.cpp */,
</span><span class="lines">@@ -23640,7 +23640,7 @@
</span><span class="cx">                                 E4AE7C1A17D232350009FB31 /* ElementAncestorIterator.h in Headers */,
</span><span class="cx">                                 E46A2B1E17CA76B1000DBCD8 /* ElementChildIterator.h in Headers */,
</span><span class="cx">                                 B5B7A17117C10AC000E4AA0A /* ElementData.h in Headers */,
</span><del>-                                E46A2B1C17CA65B9000DBCD8 /* ElementDescendantIterator.h in Headers */,
</del><ins>+                                E46A2B1C17CA65B9000DBCD8 /* TypedElementDescendantIterator.h in Headers */,
</ins><span class="cx">                                 E4AE7C1617D1BB950009FB31 /* ElementIterator.h in Headers */,
</span><span class="cx">                                 E401C27517CE53EC00C41A35 /* ElementIteratorAssertions.h in Headers */,
</span><span class="cx">                                 63F5D4F70E8C4B7100C0BD04 /* ElementRareData.h in Headers */,
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementDescendantIteratorh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/dom/ElementDescendantIterator.h (165804 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ElementDescendantIterator.h        2014-03-18 08:51:55 UTC (rev 165804)
+++ trunk/Source/WebCore/dom/ElementDescendantIterator.h        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -1,239 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef ElementDescendantIterator_h
-#define ElementDescendantIterator_h
-
-#include &quot;ElementIterator.h&quot;
-
-namespace WebCore {
-
-template &lt;typename ElementType&gt;
-class ElementDescendantIterator : public ElementIterator&lt;ElementType&gt; {
-public:
-    ElementDescendantIterator(const ContainerNode&amp; root);
-    ElementDescendantIterator(const ContainerNode&amp; root, ElementType* current);
-    ElementDescendantIterator&amp; operator++();
-};
-
-template &lt;typename ElementType&gt;
-class ElementDescendantConstIterator : public ElementConstIterator&lt;ElementType&gt;  {
-public:
-    ElementDescendantConstIterator(const ContainerNode&amp; root);
-    ElementDescendantConstIterator(const ContainerNode&amp; root, const ElementType* current);
-    ElementDescendantConstIterator&amp; operator++();
-};
-
-template &lt;typename ElementType&gt;
-class ElementDescendantIteratorAdapter {
-public:
-    ElementDescendantIteratorAdapter(ContainerNode&amp; root);
-    ElementDescendantIterator&lt;ElementType&gt; begin();
-    ElementDescendantIterator&lt;ElementType&gt; end();
-    ElementDescendantIterator&lt;ElementType&gt; beginAt(ElementType&amp;);
-    ElementDescendantIterator&lt;ElementType&gt; from(Element&amp;);
-
-    ElementType* first();
-    ElementType* last();
-
-private:
-    ContainerNode&amp; m_root;
-};
-
-template &lt;typename ElementType&gt;
-class ElementDescendantConstIteratorAdapter {
-public:
-    ElementDescendantConstIteratorAdapter(const ContainerNode&amp; root);
-    ElementDescendantConstIterator&lt;ElementType&gt; begin() const;
-    ElementDescendantConstIterator&lt;ElementType&gt; end() const;
-    ElementDescendantConstIterator&lt;ElementType&gt; beginAt(const ElementType&amp;) const;
-    ElementDescendantConstIterator&lt;ElementType&gt; from(const Element&amp;) const;
-
-    const ElementType* first() const;
-    const ElementType* last() const;
-
-private:
-    const ContainerNode&amp; m_root;
-};
-
-template &lt;typename ElementType&gt; ElementDescendantIteratorAdapter&lt;ElementType&gt; descendantsOfType(ContainerNode&amp;);
-template &lt;typename ElementType&gt; ElementDescendantConstIteratorAdapter&lt;ElementType&gt; descendantsOfType(const ContainerNode&amp;);
-
-// ElementDescendantIterator
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIterator&lt;ElementType&gt;::ElementDescendantIterator(const ContainerNode&amp; root)
-    : ElementIterator&lt;ElementType&gt;(&amp;root)
-{
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIterator&lt;ElementType&gt;::ElementDescendantIterator(const ContainerNode&amp; root, ElementType* current)
-    : ElementIterator&lt;ElementType&gt;(&amp;root, current)
-{
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIterator&lt;ElementType&gt;&amp; ElementDescendantIterator&lt;ElementType&gt;::operator++()
-{
-    return static_cast&lt;ElementDescendantIterator&lt;ElementType&gt;&amp;&gt;(ElementIterator&lt;ElementType&gt;::traverseNext());
-}
-
-// ElementDescendantConstIterator
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIterator&lt;ElementType&gt;::ElementDescendantConstIterator(const ContainerNode&amp; root)
-    : ElementConstIterator&lt;ElementType&gt;(&amp;root)
-
-{
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIterator&lt;ElementType&gt;::ElementDescendantConstIterator(const ContainerNode&amp; root, const ElementType* current)
-    : ElementConstIterator&lt;ElementType&gt;(&amp;root, current)
-{
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIterator&lt;ElementType&gt;&amp; ElementDescendantConstIterator&lt;ElementType&gt;::operator++()
-{
-    return static_cast&lt;ElementDescendantConstIterator&lt;ElementType&gt;&amp;&gt;(ElementConstIterator&lt;ElementType&gt;::traverseNext());
-}
-
-// ElementDescendantIteratorAdapter
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIteratorAdapter&lt;ElementType&gt;::ElementDescendantIteratorAdapter(ContainerNode&amp; root)
-    : m_root(root)
-{
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIterator&lt;ElementType&gt; ElementDescendantIteratorAdapter&lt;ElementType&gt;::begin()
-{
-    return ElementDescendantIterator&lt;ElementType&gt;(m_root, Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root));
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIterator&lt;ElementType&gt; ElementDescendantIteratorAdapter&lt;ElementType&gt;::end()
-{
-    return ElementDescendantIterator&lt;ElementType&gt;(m_root);
-}
-    
-template &lt;typename ElementType&gt;
-inline ElementDescendantIterator&lt;ElementType&gt; ElementDescendantIteratorAdapter&lt;ElementType&gt;::beginAt(ElementType&amp; descendant)
-{
-    ASSERT(descendant.isDescendantOf(&amp;m_root));
-    return ElementDescendantIterator&lt;ElementType&gt;(m_root, &amp;descendant);
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIterator&lt;ElementType&gt; ElementDescendantIteratorAdapter&lt;ElementType&gt;::from(Element&amp; descendant)
-{
-    ASSERT(descendant.isDescendantOf(&amp;m_root));
-    if (isElementOfType&lt;const ElementType&gt;(descendant))
-        return ElementDescendantIterator&lt;ElementType&gt;(m_root, static_cast&lt;ElementType*&gt;(&amp;descendant));
-    ElementType* next = Traversal&lt;ElementType&gt;::next(&amp;m_root, &amp;descendant);
-    return ElementDescendantIterator&lt;ElementType&gt;(m_root, next);
-}
-
-template &lt;typename ElementType&gt;
-inline ElementType* ElementDescendantIteratorAdapter&lt;ElementType&gt;::first()
-{
-    return Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root);
-}
-
-template &lt;typename ElementType&gt;
-inline ElementType* ElementDescendantIteratorAdapter&lt;ElementType&gt;::last()
-{
-    return Traversal&lt;ElementType&gt;::lastWithin(&amp;m_root);
-}
-
-// ElementDescendantConstIteratorAdapter
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIteratorAdapter&lt;ElementType&gt;::ElementDescendantConstIteratorAdapter(const ContainerNode&amp; root)
-    : m_root(root)
-{
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIterator&lt;ElementType&gt; ElementDescendantConstIteratorAdapter&lt;ElementType&gt;::begin() const
-{
-    return ElementDescendantConstIterator&lt;ElementType&gt;(m_root, Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root));
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIterator&lt;ElementType&gt; ElementDescendantConstIteratorAdapter&lt;ElementType&gt;::end() const
-{
-    return ElementDescendantConstIterator&lt;ElementType&gt;(m_root);
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIterator&lt;ElementType&gt; ElementDescendantConstIteratorAdapter&lt;ElementType&gt;::beginAt(const ElementType&amp; descendant) const
-{
-    ASSERT(descendant.isDescendantOf(&amp;m_root));
-    return ElementDescendantConstIterator&lt;ElementType&gt;(m_root, &amp;descendant);
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIterator&lt;ElementType&gt; ElementDescendantConstIteratorAdapter&lt;ElementType&gt;::from(const Element&amp; descendant) const
-{
-    ASSERT(descendant.isDescendantOf(&amp;m_root));
-    if (isElementOfType&lt;const ElementType&gt;(descendant))
-        return ElementDescendantConstIterator&lt;ElementType&gt;(m_root, static_cast&lt;const ElementType*&gt;(&amp;descendant));
-    const ElementType* next = Traversal&lt;ElementType&gt;::next(&amp;m_root, &amp;descendant);
-    return ElementDescendantConstIterator&lt;ElementType&gt;(m_root, next);
-}
-
-template &lt;typename ElementType&gt;
-inline const ElementType* ElementDescendantConstIteratorAdapter&lt;ElementType&gt;::first() const
-{
-    return Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root);
-}
-
-template &lt;typename ElementType&gt;
-inline const ElementType* ElementDescendantConstIteratorAdapter&lt;ElementType&gt;::last() const
-{
-    return Traversal&lt;ElementType&gt;::lastWithin(&amp;m_root);
-}
-
-// Standalone functions
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantIteratorAdapter&lt;ElementType&gt; descendantsOfType(ContainerNode&amp; root)
-{
-    return ElementDescendantIteratorAdapter&lt;ElementType&gt;(root);
-}
-
-template &lt;typename ElementType&gt;
-inline ElementDescendantConstIteratorAdapter&lt;ElementType&gt; descendantsOfType(const ContainerNode&amp; root)
-{
-    return ElementDescendantConstIteratorAdapter&lt;ElementType&gt;(root);
-}
-
-}
-
-#endif
</del></span></pre></div>
<a id="trunkSourceWebCoredomElementIteratorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ElementIterator.h (165804 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ElementIterator.h        2014-03-18 08:51:55 UTC (rev 165804)
+++ trunk/Source/WebCore/dom/ElementIterator.h        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -372,6 +372,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ElementAncestorIterator.h&quot;
</span><span class="cx"> #include &quot;ElementChildIterator.h&quot;
</span><del>-#include &quot;ElementDescendantIterator.h&quot;
</del><ins>+#include &quot;TypedElementDescendantIterator.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoredomTypedElementDescendantIteratorh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/TypedElementDescendantIterator.h (0 => 165805)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TypedElementDescendantIterator.h                                (rev 0)
+++ trunk/Source/WebCore/dom/TypedElementDescendantIterator.h        2014-03-18 09:42:58 UTC (rev 165805)
</span><span class="lines">@@ -0,0 +1,239 @@
</span><ins>+/*
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef TypedElementDescendantIterator_h
+#define TypedElementDescendantIterator_h
+
+#include &quot;ElementIterator.h&quot;
+
+namespace WebCore {
+
+template &lt;typename ElementType&gt;
+class TypedElementDescendantIterator : public ElementIterator&lt;ElementType&gt; {
+public:
+    TypedElementDescendantIterator(const ContainerNode&amp; root);
+    TypedElementDescendantIterator(const ContainerNode&amp; root, ElementType* current);
+    TypedElementDescendantIterator&amp; operator++();
+};
+
+template &lt;typename ElementType&gt;
+class TypedElementDescendantConstIterator : public ElementConstIterator&lt;ElementType&gt;  {
+public:
+    TypedElementDescendantConstIterator(const ContainerNode&amp; root);
+    TypedElementDescendantConstIterator(const ContainerNode&amp; root, const ElementType* current);
+    TypedElementDescendantConstIterator&amp; operator++();
+};
+
+template &lt;typename ElementType&gt;
+class TypedElementDescendantIteratorAdapter {
+public:
+    TypedElementDescendantIteratorAdapter(ContainerNode&amp; root);
+    TypedElementDescendantIterator&lt;ElementType&gt; begin();
+    TypedElementDescendantIterator&lt;ElementType&gt; end();
+    TypedElementDescendantIterator&lt;ElementType&gt; beginAt(ElementType&amp;);
+    TypedElementDescendantIterator&lt;ElementType&gt; from(Element&amp;);
+
+    ElementType* first();
+    ElementType* last();
+
+private:
+    ContainerNode&amp; m_root;
+};
+
+template &lt;typename ElementType&gt;
+class TypedElementDescendantConstIteratorAdapter {
+public:
+    TypedElementDescendantConstIteratorAdapter(const ContainerNode&amp; root);
+    TypedElementDescendantConstIterator&lt;ElementType&gt; begin() const;
+    TypedElementDescendantConstIterator&lt;ElementType&gt; end() const;
+    TypedElementDescendantConstIterator&lt;ElementType&gt; beginAt(const ElementType&amp;) const;
+    TypedElementDescendantConstIterator&lt;ElementType&gt; from(const Element&amp;) const;
+
+    const ElementType* first() const;
+    const ElementType* last() const;
+
+private:
+    const ContainerNode&amp; m_root;
+};
+
+template &lt;typename ElementType&gt; TypedElementDescendantIteratorAdapter&lt;ElementType&gt; descendantsOfType(ContainerNode&amp;);
+template &lt;typename ElementType&gt; TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt; descendantsOfType(const ContainerNode&amp;);
+
+// TypedElementDescendantIterator
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIterator&lt;ElementType&gt;::TypedElementDescendantIterator(const ContainerNode&amp; root)
+    : ElementIterator&lt;ElementType&gt;(&amp;root)
+{
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIterator&lt;ElementType&gt;::TypedElementDescendantIterator(const ContainerNode&amp; root, ElementType* current)
+    : ElementIterator&lt;ElementType&gt;(&amp;root, current)
+{
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIterator&lt;ElementType&gt;&amp; TypedElementDescendantIterator&lt;ElementType&gt;::operator++()
+{
+    return static_cast&lt;TypedElementDescendantIterator&lt;ElementType&gt;&amp;&gt;(ElementIterator&lt;ElementType&gt;::traverseNext());
+}
+
+// TypedElementDescendantConstIterator
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIterator&lt;ElementType&gt;::TypedElementDescendantConstIterator(const ContainerNode&amp; root)
+    : ElementConstIterator&lt;ElementType&gt;(&amp;root)
+
+{
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIterator&lt;ElementType&gt;::TypedElementDescendantConstIterator(const ContainerNode&amp; root, const ElementType* current)
+    : ElementConstIterator&lt;ElementType&gt;(&amp;root, current)
+{
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIterator&lt;ElementType&gt;&amp; TypedElementDescendantConstIterator&lt;ElementType&gt;::operator++()
+{
+    return static_cast&lt;TypedElementDescendantConstIterator&lt;ElementType&gt;&amp;&gt;(ElementConstIterator&lt;ElementType&gt;::traverseNext());
+}
+
+// TypedElementDescendantIteratorAdapter
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::TypedElementDescendantIteratorAdapter(ContainerNode&amp; root)
+    : m_root(root)
+{
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIterator&lt;ElementType&gt; TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::begin()
+{
+    return TypedElementDescendantIterator&lt;ElementType&gt;(m_root, Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root));
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIterator&lt;ElementType&gt; TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::end()
+{
+    return TypedElementDescendantIterator&lt;ElementType&gt;(m_root);
+}
+    
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIterator&lt;ElementType&gt; TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::beginAt(ElementType&amp; descendant)
+{
+    ASSERT(descendant.isDescendantOf(&amp;m_root));
+    return TypedElementDescendantIterator&lt;ElementType&gt;(m_root, &amp;descendant);
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIterator&lt;ElementType&gt; TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::from(Element&amp; descendant)
+{
+    ASSERT(descendant.isDescendantOf(&amp;m_root));
+    if (isElementOfType&lt;const ElementType&gt;(descendant))
+        return TypedElementDescendantIterator&lt;ElementType&gt;(m_root, static_cast&lt;ElementType*&gt;(&amp;descendant));
+    ElementType* next = Traversal&lt;ElementType&gt;::next(&amp;m_root, &amp;descendant);
+    return TypedElementDescendantIterator&lt;ElementType&gt;(m_root, next);
+}
+
+template &lt;typename ElementType&gt;
+inline ElementType* TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::first()
+{
+    return Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root);
+}
+
+template &lt;typename ElementType&gt;
+inline ElementType* TypedElementDescendantIteratorAdapter&lt;ElementType&gt;::last()
+{
+    return Traversal&lt;ElementType&gt;::lastWithin(&amp;m_root);
+}
+
+// TypedElementDescendantConstIteratorAdapter
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::TypedElementDescendantConstIteratorAdapter(const ContainerNode&amp; root)
+    : m_root(root)
+{
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIterator&lt;ElementType&gt; TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::begin() const
+{
+    return TypedElementDescendantConstIterator&lt;ElementType&gt;(m_root, Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root));
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIterator&lt;ElementType&gt; TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::end() const
+{
+    return TypedElementDescendantConstIterator&lt;ElementType&gt;(m_root);
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIterator&lt;ElementType&gt; TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::beginAt(const ElementType&amp; descendant) const
+{
+    ASSERT(descendant.isDescendantOf(&amp;m_root));
+    return TypedElementDescendantConstIterator&lt;ElementType&gt;(m_root, &amp;descendant);
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIterator&lt;ElementType&gt; TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::from(const Element&amp; descendant) const
+{
+    ASSERT(descendant.isDescendantOf(&amp;m_root));
+    if (isElementOfType&lt;const ElementType&gt;(descendant))
+        return TypedElementDescendantConstIterator&lt;ElementType&gt;(m_root, static_cast&lt;const ElementType*&gt;(&amp;descendant));
+    const ElementType* next = Traversal&lt;ElementType&gt;::next(&amp;m_root, &amp;descendant);
+    return TypedElementDescendantConstIterator&lt;ElementType&gt;(m_root, next);
+}
+
+template &lt;typename ElementType&gt;
+inline const ElementType* TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::first() const
+{
+    return Traversal&lt;ElementType&gt;::firstWithin(&amp;m_root);
+}
+
+template &lt;typename ElementType&gt;
+inline const ElementType* TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;::last() const
+{
+    return Traversal&lt;ElementType&gt;::lastWithin(&amp;m_root);
+}
+
+// Standalone functions
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantIteratorAdapter&lt;ElementType&gt; descendantsOfType(ContainerNode&amp; root)
+{
+    return TypedElementDescendantIteratorAdapter&lt;ElementType&gt;(root);
+}
+
+template &lt;typename ElementType&gt;
+inline TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt; descendantsOfType(const ContainerNode&amp; root)
+{
+    return TypedElementDescendantConstIteratorAdapter&lt;ElementType&gt;(root);
+}
+
+}
+
+#endif
</ins></span></pre>
</div>
</div>

</body>
</html>