<!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>[185166] trunk</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/185166">185166</a></dd>
<dt>Author</dt> <dd>dbates@webkit.org</dd>
<dt>Date</dt> <dd>2015-06-03 13:44:56 -0700 (Wed, 03 Jun 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>AutoFill button should not be shown in read-only or disabled field
https://bugs.webkit.org/show_bug.cgi?id=145579
&lt;rdar://problem/21212494&gt;

Reviewed by Darin Adler.

Source/WebCore:

Fixes an issue where the AutoFill button is shown in a read-only or disabled
field. We should not show the AutoFill button in such cases.

Tests: fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html
       fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html
       fast/forms/auto-fill-button/input-auto-fill-button.html
       fast/forms/auto-fill-button/input-disabled-auto-fill-button.html
       fast/forms/auto-fill-button/input-readonly-auto-fill-button.html
       fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html

* html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::disabledAttributeChanged): Update AutoFill button state.
(WebCore::TextFieldInputType::readonlyAttributeChanged): Ditto.
(WebCore::TextFieldInputType::shouldDrawAutoFillButton): Do not draw AutoFill button
when the field is disabled or read-only.

LayoutTests:

Add tests to ensure that we do no show the AutoFill button in a read-only or disabled field.

Additionally, create directory LayoutTests/fast/forms/auto-fill-button and move existing test
LayoutTests/fast/forms/input-auto-fill-button.html and associated test results into this directory
or the platform-specific variant of this directory.

* fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled-expected.html: Added.
* fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html: Added.
* fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly-expected.html: Added.
* fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html: Added.
* fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/fast/forms/input-auto-fill-button-expected.txt.
* fast/forms/auto-fill-button/input-auto-fill-button.html: Renamed from LayoutTests/fast/forms/input-auto-fill-button.html.
* fast/forms/auto-fill-button/input-disabled-auto-fill-button-expected.html: Added.
* fast/forms/auto-fill-button/input-disabled-auto-fill-button.html: Added.
* fast/forms/auto-fill-button/input-readonly-auto-fill-button-expected.html: Added.
* fast/forms/auto-fill-button/input-readonly-auto-fill-button.html: Added.
* fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button-expected.html: Added.
* fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html: Added.
* platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.png: Renamed from LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.png.
* platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.txt.
* platform/mac-mavericks/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/platform/mac-mavericks/fast/forms/input-auto-fill-button-expected.txt.
* platform/win/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/platform/win/fast/forms/input-auto-fill-button-expected.txt.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlTextFieldInputTypecpp">trunk/Source/WebCore/html/TextFieldInputType.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/fast/forms/auto-fill-button/</li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesdisabledexpectedhtml">trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesdisabledhtml">trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesreadonlyexpectedhtml">trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesreadonlyhtml">trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputautofillbuttonexpectedtxt">trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputautofillbuttonhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputdisabledautofillbuttonexpectedhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputdisabledautofillbuttonhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputreadonlyautofillbuttonexpectedhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputreadonlyautofillbuttonhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputreadonlynonemptyautofillbuttonexpectedhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputreadonlynonemptyautofillbuttonhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html</a></li>
<li>trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/</li>
<li><a href="#trunkLayoutTestsplatformiossimulatorfastformsautofillbuttoninputautofillbuttonexpectedpng">trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorfastformsautofillbuttoninputautofillbuttonexpectedtxt">trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt</a></li>
<li>trunk/LayoutTests/platform/mac-mavericks/fast/forms/auto-fill-button/</li>
<li><a href="#trunkLayoutTestsplatformmacmavericksfastformsautofillbuttoninputautofillbuttonexpectedtxt">trunk/LayoutTests/platform/mac-mavericks/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt</a></li>
<li>trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/</li>
<li><a href="#trunkLayoutTestsplatformwinfastformsautofillbuttoninputautofillbuttonexpectedtxt">trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastformsinputautofillbuttonexpectedtxt">trunk/LayoutTests/fast/forms/input-auto-fill-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformsinputautofillbuttonhtml">trunk/LayoutTests/fast/forms/input-auto-fill-button.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorfastformsinputautofillbuttonexpectedpng">trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorfastformsinputautofillbuttonexpectedtxt">trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmavericksfastformsinputautofillbuttonexpectedtxt">trunk/LayoutTests/platform/mac-mavericks/fast/forms/input-auto-fill-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformwinfastformsinputautofillbuttonexpectedtxt">trunk/LayoutTests/platform/win/fast/forms/input-auto-fill-button-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/LayoutTests/ChangeLog        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -1,3 +1,34 @@
</span><ins>+2015-06-03  Daniel Bates  &lt;dabates@apple.com&gt;
+
+        AutoFill button should not be shown in read-only or disabled field
+        https://bugs.webkit.org/show_bug.cgi?id=145579
+        &lt;rdar://problem/21212494&gt;
+
+        Reviewed by Darin Adler.
+
+        Add tests to ensure that we do no show the AutoFill button in a read-only or disabled field.
+
+        Additionally, create directory LayoutTests/fast/forms/auto-fill-button and move existing test
+        LayoutTests/fast/forms/input-auto-fill-button.html and associated test results into this directory
+        or the platform-specific variant of this directory.
+
+        * fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled-expected.html: Added.
+        * fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html: Added.
+        * fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly-expected.html: Added.
+        * fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html: Added.
+        * fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/fast/forms/input-auto-fill-button-expected.txt.
+        * fast/forms/auto-fill-button/input-auto-fill-button.html: Renamed from LayoutTests/fast/forms/input-auto-fill-button.html.
+        * fast/forms/auto-fill-button/input-disabled-auto-fill-button-expected.html: Added.
+        * fast/forms/auto-fill-button/input-disabled-auto-fill-button.html: Added.
+        * fast/forms/auto-fill-button/input-readonly-auto-fill-button-expected.html: Added.
+        * fast/forms/auto-fill-button/input-readonly-auto-fill-button.html: Added.
+        * fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button-expected.html: Added.
+        * fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html: Added.
+        * platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.png: Renamed from LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.png.
+        * platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.txt.
+        * platform/mac-mavericks/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/platform/mac-mavericks/fast/forms/input-auto-fill-button-expected.txt.
+        * platform/win/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt: Renamed from LayoutTests/platform/win/fast/forms/input-auto-fill-button-expected.txt.
+
</ins><span class="cx"> 2015-06-02  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         GetById and PutById profiling should be more precise about it takes slow path
</span></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesdisabledexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled-expected.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled-expected.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render when the field becomes disabled.&lt;/p&gt;
+&lt;input type=&quot;password&quot; id=&quot;password&quot; disabled&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesdisabledhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render when the field becomes disabled.&lt;/p&gt;
+&lt;input type=&quot;password&quot; id=&quot;password&quot;&gt;
+&lt;script&gt;
+if (window.testRunner)
+    testRunner.waitUntilDone();
+
+var password = document.getElementById(&quot;password&quot;);
+
+if (window.internals)
+    internals.setShowAutoFillButton(password, true);
+
+function makeFieldDisabledAndNotifyDone()
+{
+    password.disabled = true;
+    if (window.internals)
+        internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
+    if (window.testRunner)
+        testRunner.notifyDone();
+}
+
+window.setTimeout(makeFieldDisabledAndNotifyDone, 0);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesreadonlyexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly-expected.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly-expected.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render when the field becomes read only.&lt;/p&gt;
+&lt;input type=&quot;password&quot; id=&quot;password&quot; readonly&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttonhideautofillbuttonwheninputbecomesreadonlyhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render when the field becomes read only.&lt;/p&gt;
+&lt;input type=&quot;password&quot; id=&quot;password&quot;&gt;
+&lt;script&gt;
+if (window.testRunner)
+    testRunner.waitUntilDone();
+
+var password = document.getElementById(&quot;password&quot;);
+
+if (window.internals)
+    internals.setShowAutoFillButton(password, true);
+
+function makeFieldReadOnlyAndNotifyDone()
+{
+    password.readOnly = true;
+    if (window.internals)
+        internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
+    if (window.testRunner)
+        testRunner.notifyDone();
+}
+
+window.setTimeout(makeFieldReadOnlyAndNotifyDone, 0);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputautofillbuttonexpectedtxtfromrev185165trunkLayoutTestsfastformsinputautofillbuttonexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt (from rev 185165, trunk/LayoutTests/fast/forms/input-auto-fill-button-expected.txt) (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 503x18
+          text run at (0,0) width 503: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
+      RenderBlock {DIV} at (0,34) size 784x23
+        RenderTextControl {INPUT} at (2,2) size 137x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 131x13
+            RenderBlock {DIV} at (0,0) size 111x13
+        RenderText {#text} at (140,2) size 5x18
+          text run at (140,2) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (146,2) size 137x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 131x13
+            RenderBlock {DIV} at (0,0) size 111x13
+        RenderText {#text} at (284,2) size 5x18
+          text run at (284,2) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (290,2) size 138x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 131x13
+            RenderBlock {DIV} at (0,0) size 111x13
+        RenderTextControl {INPUT} at (431,2) size 137x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 131x13
+            RenderBlock {DIV} at (0,0) size 111x13
+layer at (13,47) size 110x13
+  RenderBlock {DIV} at (0,0) size 111x13
+layer at (157,47) size 110x13
+  RenderBlock {DIV} at (0,0) size 111x13
+layer at (302,47) size 110x13
+  RenderBlock {DIV} at (0,0) size 111x13
+layer at (442,47) size 110x13
+  RenderBlock {DIV} at (0,0) size 111x13
+layer at (126,48) size 15x12
+  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
+layer at (271,48) size 15x12
+  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
+layer at (415,48) size 15x12
+  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
+layer at (555,48) size 15x12
+  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputautofillbuttonhtmlfromrev185165trunkLayoutTestsfastformsinputautofillbuttonhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button.html (from rev 185165, trunk/LayoutTests/fast/forms/input-auto-fill-button.html) (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-fill-button.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+&lt;p&gt;This tests that the AutoFill button renders. It can only be tested in the test tool.&lt;/p&gt;
+&lt;div id='container'&gt;
+    &lt;input type='text'&gt;
+    &lt;input type='password'&gt;
+&lt;/div&gt;
+&lt;script&gt;
+
+if (window.internals) {
+    var inputs = document.querySelectorAll(&quot;input&quot;);
+    for (var i = 0; i &lt; inputs.length; ++i)
+        window.internals.setShowAutoFillButton(inputs[i], true);
+
+    var dynamicInput = document.createElement(&quot;input&quot;);
+    window.internals.setShowAutoFillButton(dynamicInput, true);
+    document.querySelector(&quot;#container&quot;).appendChild(dynamicInput);
+
+    var dynamicInput2 = document.createElement(&quot;input&quot;);
+    window.internals.setShowAutoFillButton(dynamicInput2, true);
+    document.querySelector(&quot;#container&quot;).appendChild(dynamicInput2);
+    dynamicInput2.setAttribute(&quot;type&quot;, &quot;password&quot;);
+}
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputdisabledautofillbuttonexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button-expected.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button-expected.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render in a disabled field. It can only be tested in the test tool.&lt;/p&gt;
+&lt;input type=&quot;password&quot; placeholder=&quot;disabled&quot; disabled&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputdisabledautofillbuttonhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-disabled-auto-fill-button.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render in a disabled field. It can only be tested in the test tool.&lt;/p&gt;
+&lt;input type=&quot;password&quot; id=&quot;password&quot; placeholder=&quot;disabled&quot; disabled autofocus&gt;
+&lt;script&gt;
+if (window.internals)
+    internals.setShowAutoFillButton(document.getElementById(&quot;password&quot;), true);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputreadonlyautofillbuttonexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button-expected.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button-expected.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render in a read only field. It can only be tested in the test tool.&lt;/p&gt;
+&lt;input type=&quot;password&quot; placeholder=&quot;read only&quot; readonly&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputreadonlyautofillbuttonhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-auto-fill-button.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render in a read only field. It can only be tested in the test tool.&lt;/p&gt;
+&lt;input type=&quot;password&quot; id=&quot;password&quot; placeholder=&quot;read only&quot; readonly autofocus&gt;
+&lt;script&gt;
+if (window.internals)
+    internals.setShowAutoFillButton(document.getElementById(&quot;password&quot;), true);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputreadonlynonemptyautofillbuttonexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button-expected.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button-expected.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render in a non-empty read only field. It can only be tested in the test tool.&lt;/p&gt;
+&lt;input type=&quot;password&quot; value=&quot;read only&quot; readonly autofocus&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputreadonlynonemptyautofillbuttonhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that the AutoFill button does not render in a non-empty read only field. It can only be tested in the test tool.&lt;/p&gt;
+&lt;input type=&quot;password&quot; id=&quot;password&quot; value=&quot;read only&quot; readonly autofocus&gt;
+&lt;script&gt;
+if (window.internals)
+    internals.setShowAutoFillButton(document.getElementById(&quot;password&quot;), true);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsinputautofillbuttonexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/forms/input-auto-fill-button-expected.txt (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/LayoutTests/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -1,41 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x18
-        RenderText {#text} at (0,0) size 503x18
-          text run at (0,0) width 503: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
-      RenderBlock {DIV} at (0,34) size 784x23
-        RenderTextControl {INPUT} at (2,2) size 137x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 131x13
-            RenderBlock {DIV} at (0,0) size 111x13
-        RenderText {#text} at (140,2) size 5x18
-          text run at (140,2) width 5: &quot; &quot;
-        RenderTextControl {INPUT} at (146,2) size 137x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 131x13
-            RenderBlock {DIV} at (0,0) size 111x13
-        RenderText {#text} at (284,2) size 5x18
-          text run at (284,2) width 5: &quot; &quot;
-        RenderTextControl {INPUT} at (290,2) size 138x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 131x13
-            RenderBlock {DIV} at (0,0) size 111x13
-        RenderTextControl {INPUT} at (431,2) size 137x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 131x13
-            RenderBlock {DIV} at (0,0) size 111x13
-layer at (13,47) size 110x13
-  RenderBlock {DIV} at (0,0) size 111x13
-layer at (157,47) size 110x13
-  RenderBlock {DIV} at (0,0) size 111x13
-layer at (302,47) size 110x13
-  RenderBlock {DIV} at (0,0) size 111x13
-layer at (442,47) size 110x13
-  RenderBlock {DIV} at (0,0) size 111x13
-layer at (126,48) size 15x12
-  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
-layer at (271,48) size 15x12
-  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
-layer at (415,48) size 15x12
-  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
-layer at (555,48) size 15x12
-  RenderBlock {DIV} at (113,0) size 16x13 [bgcolor=#000000]
</del></span></pre></div>
<a id="trunkLayoutTestsfastformsinputautofillbuttonhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/forms/input-auto-fill-button.html (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/input-auto-fill-button.html        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/LayoutTests/fast/forms/input-auto-fill-button.html        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -1,22 +0,0 @@
</span><del>-&lt;p&gt;This tests that the AutoFill button renders. It can only be tested in the test tool.&lt;/p&gt;
-&lt;div id='container'&gt;
-    &lt;input type='text'&gt;
-    &lt;input type='password'&gt;
-&lt;/div&gt;
-&lt;script&gt;
-
-if (window.internals) {
-    var inputs = document.querySelectorAll(&quot;input&quot;);
-    for (var i = 0; i &lt; inputs.length; ++i)
-        window.internals.setShowAutoFillButton(inputs[i], true);
-
-    var dynamicInput = document.createElement(&quot;input&quot;);
-    window.internals.setShowAutoFillButton(dynamicInput, true);
-    document.querySelector(&quot;#container&quot;).appendChild(dynamicInput);
-
-    var dynamicInput2 = document.createElement(&quot;input&quot;);
-    window.internals.setShowAutoFillButton(dynamicInput2, true);
-    document.querySelector(&quot;#container&quot;).appendChild(dynamicInput2);
-    dynamicInput2.setAttribute(&quot;type&quot;, &quot;password&quot;);
-}
-&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorfastformsautofillbuttoninputautofillbuttonexpectedpngfromrev185165trunkLayoutTestsplatformiossimulatorfastformsinputautofillbuttonexpectedpng"></a>
<div class="binary"><h4>Copied: trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.png (from rev 185165, trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.png)</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorfastformsautofillbuttoninputautofillbuttonexpectedpng"></a>
<div class="propset"><h4>Property changes: trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.png</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="trunkLayoutTestsplatformiossimulatorfastformsautofillbuttoninputautofillbuttonexpectedtxtfromrev185165trunkLayoutTestsplatformiossimulatorfastformsinputautofillbuttonexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt (from rev 185165, trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.txt) (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 503x19
+          text run at (0,0) width 503: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
+      RenderBlock {DIV} at (0,36) size 784x25
+        RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+          RenderFlexibleBox {DIV} at (6,3) size 123x15
+            RenderBlock {DIV} at (0,0) size 107x14
+        RenderText {#text} at (139,1) size 5x19
+          text run at (139,1) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (145,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+          RenderFlexibleBox {DIV} at (6,3) size 123x15
+            RenderBlock {DIV} at (0,0) size 107x14
+        RenderText {#text} at (282,1) size 5x19
+          text run at (282,1) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (288,2) size 137x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+          RenderFlexibleBox {DIV} at (6,3) size 123x15
+            RenderBlock {DIV} at (0,0) size 107x14
+        RenderTextControl {INPUT} at (428,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
+layer at (17,49) size 106x14
+  RenderBlock {DIV} at (0,0) size 107x14
+layer at (160,49) size 106x14
+  RenderBlock {DIV} at (0,0) size 107x14
+layer at (303,49) size 106x14
+  RenderBlock {DIV} at (0,0) size 107x14
+layer at (443,49) size 122x14
+  RenderBlock {DIV} at (6,3) size 123x15
+layer at (123,49) size 16x14
+  RenderImage {DIV} at (106,0) size 17x14
+layer at (266,49) size 16x14
+  RenderImage {DIV} at (106,0) size 17x14
+layer at (410,49) size 16x14
+  RenderImage {DIV} at (106,0) size 17x14
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorfastformsinputautofillbuttonexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorfastformsinputautofillbuttonexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.txt (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/LayoutTests/platform/ios-simulator/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -1,37 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x20
-        RenderText {#text} at (0,0) size 503x19
-          text run at (0,0) width 503: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
-      RenderBlock {DIV} at (0,36) size 784x25
-        RenderTextControl {INPUT} at (2,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
-          RenderFlexibleBox {DIV} at (6,3) size 123x15
-            RenderBlock {DIV} at (0,0) size 107x14
-        RenderText {#text} at (139,1) size 5x19
-          text run at (139,1) width 5: &quot; &quot;
-        RenderTextControl {INPUT} at (145,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
-          RenderFlexibleBox {DIV} at (6,3) size 123x15
-            RenderBlock {DIV} at (0,0) size 107x14
-        RenderText {#text} at (282,1) size 5x19
-          text run at (282,1) width 5: &quot; &quot;
-        RenderTextControl {INPUT} at (288,2) size 137x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
-          RenderFlexibleBox {DIV} at (6,3) size 123x15
-            RenderBlock {DIV} at (0,0) size 107x14
-        RenderTextControl {INPUT} at (428,2) size 136x22 [bgcolor=#FFFFFF] [border: (1px solid #4C4C4C)]
-layer at (17,49) size 106x14
-  RenderBlock {DIV} at (0,0) size 107x14
-layer at (160,49) size 106x14
-  RenderBlock {DIV} at (0,0) size 107x14
-layer at (303,49) size 106x14
-  RenderBlock {DIV} at (0,0) size 107x14
-layer at (443,49) size 122x14
-  RenderBlock {DIV} at (6,3) size 123x15
-layer at (123,49) size 16x14
-  RenderImage {DIV} at (106,0) size 17x14
-layer at (266,49) size 16x14
-  RenderImage {DIV} at (106,0) size 17x14
-layer at (410,49) size 16x14
-  RenderImage {DIV} at (106,0) size 17x14
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacmavericksfastformsautofillbuttoninputautofillbuttonexpectedtxtfromrev185165trunkLayoutTestsplatformmacmavericksfastformsinputautofillbuttonexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/mac-mavericks/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt (from rev 185165, trunk/LayoutTests/platform/mac-mavericks/fast/forms/input-auto-fill-button-expected.txt) (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mavericks/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac-mavericks/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 503x18
+          text run at (0,0) width 503: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
+      RenderBlock {DIV} at (0,34) size 784x23
+        RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 120x13
+        RenderText {#text} at (149,2) size 5x18
+          text run at (149,2) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (155,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 120x13
+        RenderText {#text} at (302,2) size 5x18
+          text run at (302,2) width 5: &quot; &quot;
+        RenderTextControl {INPUT} at (308,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 120x13
+        RenderTextControl {INPUT} at (457,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (3,3) size 140x13
+            RenderBlock {DIV} at (0,0) size 120x13
+layer at (13,47) size 119x13
+  RenderBlock {DIV} at (0,0) size 120x13
+layer at (166,47) size 119x13
+  RenderBlock {DIV} at (0,0) size 120x13
+layer at (319,47) size 119x13
+  RenderBlock {DIV} at (0,0) size 120x13
+layer at (468,47) size 119x13
+  RenderBlock {DIV} at (0,0) size 120x13
+layer at (135,48) size 15x12
+  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
+layer at (288,48) size 15x12
+  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
+layer at (441,48) size 15x12
+  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
+layer at (591,48) size 15x12
+  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacmavericksfastformsinputautofillbuttonexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac-mavericks/fast/forms/input-auto-fill-button-expected.txt (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mavericks/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/LayoutTests/platform/mac-mavericks/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -1,41 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x18
-        RenderText {#text} at (0,0) size 503x18
-          text run at (0,0) width 503: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
-      RenderBlock {DIV} at (0,34) size 784x23
-        RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 140x13
-            RenderBlock {DIV} at (0,0) size 120x13
-        RenderText {#text} at (149,2) size 5x18
-          text run at (149,2) width 5: &quot; &quot;
-        RenderTextControl {INPUT} at (155,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 140x13
-            RenderBlock {DIV} at (0,0) size 120x13
-        RenderText {#text} at (302,2) size 5x18
-          text run at (302,2) width 5: &quot; &quot;
-        RenderTextControl {INPUT} at (308,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 140x13
-            RenderBlock {DIV} at (0,0) size 120x13
-        RenderTextControl {INPUT} at (457,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (3,3) size 140x13
-            RenderBlock {DIV} at (0,0) size 120x13
-layer at (13,47) size 119x13
-  RenderBlock {DIV} at (0,0) size 120x13
-layer at (166,47) size 119x13
-  RenderBlock {DIV} at (0,0) size 120x13
-layer at (319,47) size 119x13
-  RenderBlock {DIV} at (0,0) size 120x13
-layer at (468,47) size 119x13
-  RenderBlock {DIV} at (0,0) size 120x13
-layer at (135,48) size 15x12
-  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
-layer at (288,48) size 15x12
-  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
-layer at (441,48) size 15x12
-  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
-layer at (591,48) size 15x12
-  RenderBlock {DIV} at (122,0) size 16x13 [bgcolor=#000000]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformwinfastformsautofillbuttoninputautofillbuttonexpectedtxtfromrev185165trunkLayoutTestsplatformwinfastformsinputautofillbuttonexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt (from rev 185165, trunk/LayoutTests/platform/win/fast/forms/input-auto-fill-button-expected.txt) (0 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/win/fast/forms/auto-fill-button/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 490x18
+          text run at (0,0) width 490: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
+      RenderBlock {DIV} at (0,34) size 784x25
+        RenderTextControl {INPUT} at (2,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (2,3) size 145x15
+            RenderBlock {DIV} at (0,0) size 129x15
+        RenderText {#text} at (153,3) size 4x18
+          text run at (153,3) width 4: &quot; &quot;
+        RenderTextControl {INPUT} at (159,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (2,3) size 145x15
+            RenderBlock {DIV} at (0,0) size 129x15
+        RenderText {#text} at (310,3) size 4x18
+          text run at (310,3) width 4: &quot; &quot;
+        RenderTextControl {INPUT} at (316,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderFlexibleBox {DIV} at (2,3) size 145x15
+            RenderBlock {DIV} at (0,0) size 129x15
+        RenderTextControl {INPUT} at (469,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+layer at (12,47) size 129x15
+  RenderBlock {DIV} at (0,0) size 129x15
+layer at (169,47) size 129x15
+  RenderBlock {DIV} at (0,0) size 129x15
+layer at (326,47) size 129x15
+  RenderBlock {DIV} at (0,0) size 129x15
+layer at (479,47) size 145x15
+  RenderBlock {DIV} at (2,3) size 145x15
+layer at (141,47) size 16x15
+  RenderImage {DIV} at (129,0) size 16x15
+layer at (298,47) size 16x15
+  RenderImage {DIV} at (129,0) size 16x15
+layer at (455,47) size 16x15
+  RenderImage {DIV} at (129,0) size 16x15
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformwinfastformsinputautofillbuttonexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/win/fast/forms/input-auto-fill-button-expected.txt (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/LayoutTests/platform/win/fast/forms/input-auto-fill-button-expected.txt        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -1,37 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x18
-        RenderText {#text} at (0,0) size 490x18
-          text run at (0,0) width 490: &quot;This tests that the AutoFill button renders. It can only be tested in the test tool.&quot;
-      RenderBlock {DIV} at (0,34) size 784x25
-        RenderTextControl {INPUT} at (2,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (2,3) size 145x15
-            RenderBlock {DIV} at (0,0) size 125x15
-        RenderText {#text} at (153,3) size 4x18
-          text run at (153,3) width 4: &quot; &quot;
-        RenderTextControl {INPUT} at (159,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (2,3) size 145x15
-            RenderBlock {DIV} at (0,0) size 125x15
-        RenderText {#text} at (310,3) size 4x18
-          text run at (310,3) width 4: &quot; &quot;
-        RenderTextControl {INPUT} at (316,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderFlexibleBox {DIV} at (2,3) size 145x15
-            RenderBlock {DIV} at (0,0) size 125x15
-        RenderTextControl {INPUT} at (469,2) size 149x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-layer at (12,47) size 125x15
-  RenderBlock {DIV} at (0,0) size 125x15
-layer at (169,47) size 125x15
-  RenderBlock {DIV} at (0,0) size 125x15
-layer at (326,47) size 125x15
-  RenderBlock {DIV} at (0,0) size 125x15
-layer at (479,47) size 145x15
-  RenderBlock {DIV} at (2,3) size 145x15
-layer at (140,49) size 15x12
-  RenderBlock {DIV} at (128,1) size 15x13 [bgcolor=#000000]
-layer at (297,49) size 15x12
-  RenderBlock {DIV} at (128,1) size 15x13 [bgcolor=#000000]
-layer at (454,49) size 15x12
-  RenderBlock {DIV} at (128,1) size 15x13 [bgcolor=#000000]
</del></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/Source/WebCore/ChangeLog        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -1,3 +1,27 @@
</span><ins>+2015-06-03  Daniel Bates  &lt;dabates@apple.com&gt;
+
+        AutoFill button should not be shown in read-only or disabled field
+        https://bugs.webkit.org/show_bug.cgi?id=145579
+        &lt;rdar://problem/21212494&gt;
+
+        Reviewed by Darin Adler.
+
+        Fixes an issue where the AutoFill button is shown in a read-only or disabled
+        field. We should not show the AutoFill button in such cases.
+
+        Tests: fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-disabled.html
+               fast/forms/auto-fill-button/hide-auto-fill-button-when-input-becomes-readonly.html
+               fast/forms/auto-fill-button/input-auto-fill-button.html
+               fast/forms/auto-fill-button/input-disabled-auto-fill-button.html
+               fast/forms/auto-fill-button/input-readonly-auto-fill-button.html
+               fast/forms/auto-fill-button/input-readonly-non-empty-auto-fill-button.html
+
+        * html/TextFieldInputType.cpp:
+        (WebCore::TextFieldInputType::disabledAttributeChanged): Update AutoFill button state.
+        (WebCore::TextFieldInputType::readonlyAttributeChanged): Ditto.
+        (WebCore::TextFieldInputType::shouldDrawAutoFillButton): Do not draw AutoFill button
+        when the field is disabled or read-only.
+
</ins><span class="cx"> 2015-06-03  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION: (r181879): Scrolling in select/option region in iFrame scrolls both select and iframe
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlTextFieldInputTypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/TextFieldInputType.cpp (185165 => 185166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/TextFieldInputType.cpp        2015-06-03 20:39:52 UTC (rev 185165)
+++ trunk/Source/WebCore/html/TextFieldInputType.cpp        2015-06-03 20:44:56 UTC (rev 185166)
</span><span class="lines">@@ -358,12 +358,14 @@
</span><span class="cx"> {
</span><span class="cx">     if (m_innerSpinButton)
</span><span class="cx">         m_innerSpinButton-&gt;releaseCapture();
</span><ins>+    updateAutoFillButton();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TextFieldInputType::readonlyAttributeChanged()
</span><span class="cx"> {
</span><span class="cx">     if (m_innerSpinButton)
</span><span class="cx">         m_innerSpinButton-&gt;releaseCapture();
</span><ins>+    updateAutoFillButton();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool TextFieldInputType::supportsReadOnly() const
</span><span class="lines">@@ -570,7 +572,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool TextFieldInputType::shouldDrawAutoFillButton() const
</span><span class="cx"> {
</span><del>-    return element().showAutoFillButton();
</del><ins>+    return !element().isDisabledOrReadOnly() &amp;&amp; element().showAutoFillButton();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TextFieldInputType::autoFillButtonElementWasClicked()
</span></span></pre>
</div>
</div>

</body>
</html>