<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement ComposedTreeIterator in terms of ElementAndTextDescendantIterator"
   href="https://bugs.webkit.org/show_bug.cgi?id=154003">bug 154003</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #270878 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement ComposedTreeIterator in terms of ElementAndTextDescendantIterator"
   href="https://bugs.webkit.org/show_bug.cgi?id=154003#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement ComposedTreeIterator in terms of ElementAndTextDescendantIterator"
   href="https://bugs.webkit.org/show_bug.cgi?id=154003">bug 154003</a>
              from <span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=270878&amp;action=diff" name="attach_270878" title="patch">attachment 270878</a> <a href="attachment.cgi?id=270878&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=270878&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=270878&amp;action=review</a>

r=me assuming you find and fix the assertion failure (or maybe just a crash) that the mac-debug bot is showing.

<span class="quote">&gt; Source/WebCore/dom/ComposedTreeIterator.h:161
&gt; +        Iterator()
&gt; +            : ComposedTreeIterator()
&gt; +        { }</span >

I think you can write:

    Iterator() = default;

Which I think is better.

<span class="quote">&gt; Source/WebCore/dom/ComposedTreeIterator.h:162
&gt;          Iterator(ContainerNode&amp; root)</span >

explicit?

<span class="quote">&gt; Source/WebCore/dom/ComposedTreeIterator.h:177
&gt; +    Iterator begin() { return Iterator(m_parent); }</span >

Since the constructor is not explicit, could just write:

    return m_parent;

<span class="quote">&gt; Source/WebCore/dom/ComposedTreeIterator.h:178
&gt; +    Iterator end() { return Iterator(); }</span >

I slightly prefer:

    return { };

<span class="quote">&gt; Source/WebCore/dom/ElementAndTextDescendantIterator.h:36
&gt; +class ElementAndTextDescendantIterator {</span >

This class has a lot of code. Any way for it to share more with other classes?

<span class="quote">&gt; Source/WebCore/dom/ElementAndTextDescendantIterator.h:38
&gt; +    ElementAndTextDescendantIterator();</span >

I prefer = default.

<span class="quote">&gt; Source/WebCore/dom/ElementAndTextDescendantIterator.h:39
&gt; +    ElementAndTextDescendantIterator(ContainerNode&amp; root);</span >

explicit?

<span class="quote">&gt; Source/WebCore/dom/ElementAndTextDescendantIterator.h:52
&gt; +    bool operator!() const { return !m_current; }</span >

I normally expect an explicit operator bool any place I see an operator!

<span class="quote">&gt; Source/WebCore/dom/ElementAndTextDescendantIterator.h:86
&gt; +    ElementAndTextDescendantIteratorAdapter(ContainerNode&amp; root);</span >

explicit?

<span class="quote">&gt; Source/WebCore/dom/ElementAndTextDescendantIterator.h:99
&gt; +    : m_current(nullptr)</span >

Why not initialize this in the class definition?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>