<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 - Element should be const in StyleResolver"
   href="https://bugs.webkit.org/show_bug.cgi?id=156672">bug 156672</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 #276588 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Element should be const in StyleResolver"
   href="https://bugs.webkit.org/show_bug.cgi?id=156672#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Element should be const in StyleResolver"
   href="https://bugs.webkit.org/show_bug.cgi?id=156672">bug 156672</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=276588&amp;action=diff" name="attach_276588" title="patch">attachment 276588</a> <a href="attachment.cgi?id=276588&amp;action=edit" title="patch">[details]</a></span>
patch

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

I assume the idea here is to use const to sort of mean &quot;DOM mutation forbidden&quot;.

<span class="quote">&gt; Source/WebCore/ChangeLog:10
&gt; +        This patch just does Element* -&gt; const Element*, all the groundwork has beend done already.</span >

Typo: beend

<span class="quote">&gt; Source/WebCore/css/StyleResolver.cpp:761
&gt; +void StyleResolver::adjustRenderStyle(RenderStyle&amp; style, const RenderStyle&amp; parentStyle, const Element *element)</span >

Space should be after the *, not before it.

<span class="quote">&gt; Source/WebCore/rendering/RenderThemeIOS.mm:628
&gt;      else if (element-&gt;hasTagName(HTMLNames::inputTag))
&gt; -        adjustInputElementButtonStyle(style, static_cast&lt;HTMLInputElement&amp;&gt;(*element));
&gt; +        adjustInputElementButtonStyle(style, downcast&lt;HTMLInputElement&gt;(*element));</span >

Should also use is&lt;HTMLInputElement&gt; instead of hasTagName(HTMLNames::inputTag).</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>