<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Need ability to specify alternate image for AutoFill button in input fields"
   href="https://bugs.webkit.org/show_bug.cgi?id=153116#c17">Comment # 17</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Need ability to specify alternate image for AutoFill button in input fields"
   href="https://bugs.webkit.org/show_bug.cgi?id=153116">bug 153116</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=269302&amp;action=diff" name="attach_269302" title="Patch v2">attachment 269302</a> <a href="attachment.cgi?id=269302&amp;action=edit" title="Patch v2">[details]</a></span>
Patch v2

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

<span class="quote">&gt;&gt; Source/WebCore/html/HTMLInputElement.h:436
&gt;&gt; +    AutoFillButtonType m_autoFillButtonType;
&gt; 
&gt; This is only one bit. It’s not great that it’s going to make every HTMLInputElement 32 bits bigger (or more). Notice that all the fields around this are using bitfields to keep things cheap. Not OK to make every input element so much bigger. I think this should be:
&gt; 
&gt;     unsigned m_autoFillButtonType : 1; // AutoFillButtonType
&gt; 
&gt; To match how we do things in the rest of the class.
&gt; 
&gt; We could also consider combining this with</span >

We could also consider combining this with the flag that says there is an auto-fill button. We don’t need to support setting the type when showAutoFillButton is false, and over time that could save us some bits.

<span class="quote">&gt;&gt; Source/WebCore/html/TextFieldInputType.cpp:644
&gt;&gt; +            createAutoFillButton(autoFillButtonType);
&gt; 
&gt; This looks wrong. If the auto fill button type has changed, I don’t see code to cause the old one to be destroyed and a new one of the correct type to be created.</span >

We should make a test case that shows the auto-fill button correctly changing even when the attribute is changed after the fact.</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>